v1

latestOpenAPI 3.0.12026-08-064278250.7 KB
authentication

Authenticate users

Authenticate the user before making other API calls. The token is valid for 24 hours.

post/oauth/token

Request body

client_idstring required

The unique identifier for the client. This value is provided by Coro support.

client_secretstring required

The secret for the client. This value is provided by Coro support.

audiencestring required

The URL for the Coro API server

grant_typestring required

The method by which you want to request a bearer token for authentication. At this time, Coro only supports client_credentials.

Example request

{
  "client_id": "2qDgzSrZxnUCs4jqmfdEP5MVkEmA3Uak",
  "client_secret": "9c9Dabz5nQT65LXfYt_61wxb9UssT7tpzTM-gVB4RJZB9gKDf1_TjO6o3eLcBaba",
  "audience": "https://secure.coro.net/api",
  "grant_type": "client_credentials"
}

Response

Success

access_tokenstring required

The access token used to access API resources

token_typestring required

Bearer token.

expires_ininteger required

The expiration time of the token, in seconds. The token is valid for 24 hours.

Example response

{
  "access_token": "eyJz93a...k4laUWw",
  "token_type": "Bearer",
  "expires_in": 86400
}