Skip to content
Orion Docs
Talk to usNeed help?Get Started
Orion Data API v1.2 is deprecated. Use Orion Data API v1.3 for new integrations.

Token

Generate a bearer token

Orion Data API v1.2 · Deprecated

Deprecated
GET
/token
curl --request GET \
--url 'https://api.oriondata.io/api/token?apiKey=example'

Exchanges an API key for a JWT bearer token. The token is valid for 7 days, although generating a fresh token each session is recommended. The bearer token returned by this endpoint must be supplied in the Authorization header of every other request.

apiKey
required
string

The API key generated from the Account Settings page of the Orion Data application.

A JSON object containing the bearer token.

Media typeapplication/json
object
token

The JWT bearer token. Supply this string in the Authorization header as Bearer {token}.

string

Example

{
"token": "your_generated_token_here"
}

The server could not understand the request.

The resource could not be found.

Rate limit exceeded.