/oauth/tokenGenerate OAuth token
Generate an OAuth token for use with the ScreenMeet API using an ApiKey's client_id and client_secret. - grant_type should be 'client_credentials' - client_id and client_secret are required See [How to authenticate using an API key](docs/How-to-authenticate-using-an-API-key.md) for more information.
Authorization
Request body
client_idstring
The client id (key field) of the ApiKey
The client id (key field) of the ApiKey
grant_typestring
The grant type for the request. Must be client_credentials
The grant type for the request. Must be client_credentials
client_secretstring
The secret of the ApiKey
The secret of the ApiKey
client_idstring
The client id (key field) of the ApiKey
The client id (key field) of the ApiKey
grant_typestring
The grant type for the request. Must be client_credentials
The grant type for the request. Must be client_credentials
client_secretstring
The secret of the ApiKey
The secret of the ApiKey
Responses
OK
scopestring
expires_innumber
token_typestring
access_tokenstring
{
"default": {
"value": {
"scope": "role:group_admin",
"expires_in": 3600,
"token_type": "Bearer",
"access_token": "xnJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6123vaG4gRG9lIiw819F0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
}
}Bad Request
errorstring
The error code
The error code
error_descriptionstring
A human-readable description of the error
A human-readable description of the error
{
"Invalid Client": {
"value": {
"error": "invalid_client",
"error_description": "The client credentials are invalid"
}
},
"Invalid Request": {
"value": {
"error": "invalid_request",
"error_description": "Invalid request body"
}
},
"Unsupported Grant Type": {
"value": {
"error": "unsupported_grant_type",
"error_description": "The grant type is not supported"
}
}
}