Skip to main content
POST
/
oauth2
/
token
Get Token
curl --request POST \
  --url https://sandbox.elationemr.com/api/2.0/oauth2/token/ \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data grant_type=client_credentials \
  --data 'client_id=<string>' \
  --data 'client_secret=<string>' \
  --data 'scope=<string>'
"{\n  \"access_token\": \"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm\",\n  \"token_type\": \"Bearer\",\n  \"expires_in\": 36000,\n  \"refresh_token\": \"44fpQdEzMP36klMm8xrg8CuD75jPnF\",\n  \"scope\": \"...\"\n}"

Documentation Index

Fetch the complete documentation index at: https://help.elationhealth.com/llms.txt

Use this file to discover all available pages before exploring further.

We currently support one OAuth2 grant type: Client Credentials.

Client Credentials

You can exchange your client_id and client_secret for an access token directly.

Headers

Content-type
string
default:application/x-www-form-urlencoded

Body

application/x-www-form-urlencoded
grant_type
string
default:client_credentials
required

We currently only support client_credentials grant type.

client_id
string

Client ID that was supplied to you with your credentials

client_secret
string

Client Secret that was provided to you with your credentials

scope
string

Currently in closed Beta for select customers. Optional. Space-separated list of scopes to request. If omitted, defaults to apiv2 which grants the token access to all API resources.

Response

200

access_token
string
Example:

"TyEPKw8fVGRKpCBa81ygwjCLXDNIAm"

token_type
string
Example:

"Bearer"

expires_in
integer
default:0
Example:

36000

refresh_token
string
Example:

"44fpQdEzMP36klMm8xrg8CuD75jPnF"

scope
string
Example:

"..."