# Access Token
The access token is needed to provide an authorization context to your requests to the Lauded APIs.
# Create An Access Token
When a new access token is requested, the old one is invalidated.
POST https://api.lauded.io/oauth/token
curl https://api.lauded.io/oauth/token \
\
-d grant_type="client_credentials" \
-d client_id="839e9118-1fc1-4bfd-8454-ab45cc2bfcff" \
-d client_secret="g48S50RGCmKteyXZIG0PE8QoBS4BqAcbpedUGoNA" \
# Parameters
grant_type required|string|in:['client_credentials']
The way the access token should be generated.
client_id required|string
The client id of the application.
client_secret required|string
The client secret of the application.
# Returns
A json with data
property that contains array of access-token
objects.
{
"token_type": "Bearer",
"expires_in": 31536000,
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWPiOiI5MzllOTExOC0xZmMxLTRiZmQtOTM0My1jYTQ1Y2MyYmZjZjMiLCJqdGkiOiJlOGNhOWExOGZlNzMyNDQ5Y2QzN2Q4NDZlNjUwOTgwYmI2OWYzZTA2ZmY2ODk5NThiMjBiZmRhMTA0ZTQyY2QwMzBiNDllNjdlOGU3OGFmZiIsImlhdCI6MTYyNTQ4NjEzOS4zMDQ1ODgsIm5iZiI6MTYyNTQ4NjEzOS4zMDQ1OTIsImV4cCI6MTY1NzAyMjEzOS4yOTE4MDcsInN1YiI6IiIsInNjb3BlcyI6WyIqIl19.B0h5mf_3ya0jy6gDzE4xc_3eXWAv3Ynn8CKstC-C6lRsFYjD6o3SG1GGpVj3yppj7Tf2NoVbs22w2elnHM_DoYlg3rlnOjjo95wlu58Qm1hBCsqlnIRDvImjBrf_q4JhYXVwPuZMccYC1gIGp6bGWz73qGGpr47y2PxhIaTqAPWT-vb-teY8GFSWtXROFhaCzfPDy2SESS6kzzN6JZ4EoQVsCE_qqjpenJ0stUztvwuFhT0IWBeDLlbE7FDoN-c1l0uQ6JTpcOeT0FqQd51enFinDXZiRhteHrcFQZbbkZGdPD4k5oSPGkLmnoI7Cr7ISr-Q4nB79A4mEFafcYKLFU-1K0dj5mfIIH8eJhFgBAD7ATb1WDpZb3eg-hG5zLBQHAK6P5MRsmBVnHkVZprwr4-fcOd8cqjWCMkSg2GsYKRrGfOFM_GMiqdzuG--jpiSkndl0b3f7NPBTdHKugatTNV0ADoLr2nlMhbvW9Czg5z7H3nvheAIG34IfWEreqN8F1woH5tcKGYr0ABuJDZZhC141zj89mwHftrGBGfBD50-h6yQNLBaPOLd-34A6w554Fv3UvpAo0S13VkJLGpgBijDTHWCHuDJyAsQoGrQIsIjerKzsGvhZMCYWa6rXl0KfVYxQDeDtciisW-0n0uKmTAbnVBAnvJGsQwiNBPQZEY"
}
token_type
The type of the token.
expires_in
The time in seconds the token will expire.
access_token
The access token to be used with requests.