POST
/
api
/
authentication
/
connect
/
token
curl --request POST \
  --url https://app.allyy.io/api/authentication/connect/token \
  --header 'Content-Type: <content-type>' \
  --data '{
  "client_id": "<string>",
  "client_secret": "<string>",
  "grant_type": "<string>",
  "allyy_api": "<string>"
}'
{
  "access_token": "my bearer token",
  "expires_in": 3600,
  "token_type": "Bearer",
  "scope": "allyy_api oneprediction_api"
}

Body

The request body have to be sent in x-www-form-urlencoded format

client_id
string
required

Client ID. You can generate a client credentials on Allyy settings page

client_secret
string
required

Client Secret. You can generate a client credentials on Allyy settings page

grant_type
string
default:"client_credentials"
required

Always client_credentials

allyy_api
string
default:"allyy_api"
required

Always allyy_api

Headers

Content-Type
string
default:"application/x-www-form-urlencoded"
required

Only application/x-www-form-urlencoded supported

Responses

access_token
string
required

Access token to be used for authentication

token_type
string
required

Token type

expires_in
integer
required

Validity periot in seconds

scope
string
required

Available scopes

{
  "access_token": "my bearer token",
  "expires_in": 3600,
  "token_type": "Bearer",
  "scope": "allyy_api oneprediction_api"
}