Skip to main content
POST
/
oauth
/
token
cURL
curl --request POST \
  --url https://pre-public-api.cobee.io/api/v3/oauth/token \
  --header 'Content-Type: application/json' \
  --data '{
  "clientId": "<string>",
  "clientSecret": "<string>"
}'
{
  "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEyMywiZXhwIjoxNzEwNjU1MjAwfQ.NDCEZZKZ7v8bIh_vO8ht51EepUuCOZBIX8DVXy5eVhA",
  "tokenType": "Bearer",
  "expiresIn": 86400
}

Overview

Get a valid access token to authenticate requests on the API. Learn about Authentication

Body

application/json
clientId
string
required

Client ID

clientSecret
string
required

Client Secret

Response

Authentication successful

accessToken
string

Token to be used in the Authorization header on subsequent requests

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEyMywiZXhwIjoxNzEwNjU1MjAwfQ.NDCEZZKZ7v8bIh_vO8ht51EepUuCOZBIX8DVXy5eVhA"

tokenType
string

Type of token

Example:

"Bearer"

expiresIn
integer

The number of seconds until the token expires

Example:

86400