This guide covers connections authenticated through
id.app.firebolt.io, using Firebolt service accounts and account and user engine URLs. For engines deployed with the Firebolt Operator or Helm chart, see Connect over HTTP.Create a service account and associate it with a user
Create a service account with organization administrator privilege, i.e., the service account property_is_organization_admin_ must be true. Next, create a user with role privileges you would like to have the service account and associate the service account with the user.Use tokens for authentication
To authenticate Firebolt using the service accounts with the properties as described above via Firebolt’s REST API, send the following request to receive an authentication token:
Response
- The
access_tokenis a unique token that authorizes your API requests that acts as a temporary key to access resources or perform actions. You can use this token to authenticate with Firebolt’s platform until it expires. - The
token_typeisBearer, which means that the access token must be included in an authorization header of your API requests using the format:Authorization: Bearer <access_token>. - The token
expires_inindicates the number of seconds until the token expires.
Get the account gateway URL
Use the following endpoint to return the account gateway URL for<account name>.
https://api.app.firebolt.io/web/v3/account/my-account/engineUrl
Response
information_schema.engines) and for DDL that does not target a specific user engine.
Get a user engine URL
Get a user engine URL by running the following query against theinformation_schema.engines table:
Execute a query on a user engine
Use the following endpoint to run a query on a user engine:Queries are per request. To run multiple statement queries, separate queries each into one request.
API limits
Request size limits
The limits and retry behavior in this section apply to requests sent to the user engine URLs obtained through the account gateway as described in this guide. Query requests to these user engines have a maximum body size of 40 MiB (41,943,040 bytes). A request whose body exceeds the limit is rejected with HTTP 413:- Is not retried. The first failure is returned to the client.
- Is not included in online upgrade verification.
- Is not redirected automatically if it must run on the account gateway URL rather than on a user engine. Send such requests to the account gateway URL directly.
IN (...) clause, load the values into a table and join against it instead of inlining them.