Authenticate users

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

Request
Request Body schema: application/json
client_id
required
string

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

client_secret
required
string

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

audience
required
string

The URL for the Coro API server

grant_type
required
string

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

Responses
200

Success

400

Bad request, validation error

401

Unauthorized request

403

Access forbidden

429

Too Many Requests

500

Internal server error

post/oauth/token
Request samples
application/json
{
  • "client_id": "2qDgzSrZxnUCs4jqmfdEP5MVkEmA3Uak",
  • "client_secret": "9c9Dabz5nQT65LXfYt_61wxb9UssT7tpzTM-gVB4RJZB9gKDf1_TjO6o3eLcBaba",
  • "grant_type": "client_credentials"
}
Response samples
application/json
{
  • "access_token": "eyJz93a...k4laUWw",
  • "token_type": "Bearer",
  • "expires_in": 86400
}