DavenDaven Documentation
APIAPI ReferenceAuthentication

Get token

POST
/oauth2/token

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

client_id*string
client_secret*string
grant_type?string

Response Body

application/json

application/json

curl -X POST "https://example.com/oauth2/token" \  -H "Content-Type: application/json" \  -d '{    "client_id": "string",    "client_secret": "string"  }'
{
  "access_token": "string",
  "token_type": "string",
  "expires_in": 0
}
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "data": null
    }
  ]
}