/api/v2/clients/login

POST {{butlr_api_url}}/api/v2/clients/login

Headers
KeyValue
Content-Typeapplication/json
Body
KeyTypeDescriptionRequired
client_idstringYour Butlr-provided client IDYes
client_secretstringYour Butlr-provided client secretYes
audiencestringThe API audienceYes
grant_typestringThe grant typeYes

Response

Success (200 OK)

Body
KeyTypeDescription
access_tokenstringThe access token to access the API
scopestringThe granted scopes
expires_inintegerThe number of seconds the token is valid
token_typestringThe type of the token (Bearer)

Request Body

{"client_id"=>"", "client_secret"=>"", "audience"=>"https://butlrauth/", "grant_type"=>"client_credentials"}