Token
Generate a bearer token
Orion Data API v1.2 · Deprecated
const url = 'https://api.oriondata.io/api/token?apiKey=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The API key generated from the Account Settings page of the Orion Data application.
Responses
Section titled “Responses”A JSON object containing the bearer token.
object
The JWT bearer token. Supply this string in the Authorization header as Bearer {token}.
Example
{ "token": "your_generated_token_here"}The server could not understand the request.
The resource could not be found.
Rate limit exceeded.