POST
/
oauth
/
token
Get Token
curl --request POST \
  --url https://api.soharhealth.com/oauth/token \
  --header 'Content-Type: application/json' \
  --data '{
  "client_id": "YOUR_CLIENT_ID",
  "client_secret": "YOUR_CLIENT_SECRET"
}'
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzb2hhciI6ImhlYWx0aCJ9.0sXbystKB9fXid-8ESps2JnaFRFPmLFOc8n6jnCDih4",
  "token_type": "Bearer",
  "expires_in": 3600
}

Body

application/json
client_id
string
required

Your application's Client ID

client_secret
string
required

Your application's Client Secret

Response

Access token

access_token
string
Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzb2hhciI6ImhlYWx0aCJ9.0sXbystKB9fXid-8ESps2JnaFRFPmLFOc8n6jnCDih4"

token_type
enum<string>
Available options:
Bearer
Example:

"Bearer"

expires_in
number

Time in seconds

Example:

3600