Access Tokens
Get and use access tokens to make API calls
Last updated
Was this helpful?
Get and use access tokens to make API calls
Last updated
Was this helpful?
Follow the to create an API key.
The API key will include a clientId and clientSecret.
Make the API call shown below and update the following variables:
CLIENT_ID: the clientId from the previous step
CLIENT_SECRET: the clientSecret from the previous step
AUTH_SERVER: The URI for the auth server (see table below)
App URI
Auth Server
API Endpoint
staging.firstresonance.io
or
sandbox.firstresonance.io
staging-auth.buildwithion.com
https://staging-api.buildwithion.com
app.firstresonance.io
auth.buildwithion.com
https://api.buildwithion.com
staging.ion-gov.com
or
sandbox.ion-gov.com
auth-staging-gov.buildwithion.com
https://api-staging-gov.buildwithion.com
app.ion-gov.com
auth-production-gov.buildwithion.com
https://api-production-gov.buildwithion.com
staging.ion-aus.com
auth-staging-aus.buildwithion.com
https://api-staging-aus.buildwithion.com
app.ion-aus.com
auth-production-aus.buildwithion.com
https://api-production-aus.buildwithion.com
The below also shows a very basic python script to query runs from ION.
To use, replace the following:
ACCESS_TOKEN: the access token from the previous step
API_ENDPOINT: The API endpoint for each environment are listed in the table above.
to get your access token via python. We also have our public repository linked below for some sample scripts.
We have a for some API queries via python scripts.
If you are using a tool like Postman or Insomnia, be sure to add a /graphql
to your end point. Example: