API V3Authentication
Creates a Token resource.
The POM API uses OAuth 2.0 for authentication. From POM, you receive a Client-id and Client-secret with which you can request a token. This token must then be included in the Authorization header of your API calls as a Bearer token.
POST
/oauth/tokencurl -X POST "/oauth/token" \
-H "Authorization: Bearer $POM_API_DOCUMENTATION_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"grant_type": "client_credentials",
"client_id": "client_id",
"client_secret": "client_secret"
}'Authorization
AuthorizationstringheaderrequiredOAuth 2.0 client credentials Grant
Body
application/json
Only client_credentials is supported as grant_type.
grant_typestringrequiredDefault:client_credentialsclient_idstringrequiredclient_secretstringrequired
Response
application/json
Token response
token_typestringrequiredexpires_inintegerrequiredaccess_tokenstringrequired
{
"token_type": "string",
"expires_in": 0,
"access_token": "string"
}