How API keys work
API keys in Sift are user-associated credentials used to authenticate requests to the Sift API. Each key inherits the permissions of the user it is associated with and remains valid indefinitely unless explicitly deleted. All API keys are listed under the API Keys interface, where they can also be removed. When interacting with the Sift API:- For REST requests using the Bearer authentication scheme, the API key must be included in the HTTP request
authorizationheader. - For gRPC requests, the API key must be passed as a metadata field, also using the
authorizationheader with the Bearer scheme.
Create an API key
- Click your profile icon.
- Select Manage.
- In the Manage navigation menu, click API Keys.
- Click Create API Key.
- In the Name box, enter a name for the API key.
- In the User list, select the user email to link to the API key.
- Click Create.
Obtain the base URL
The REST or gRPC base URL can be obtained through the Sift UI. The base URL tells your application exactly where to send API requests and ensures that your requests reach the correct environment.- Click your profile icon.
- Select Manage.
- In the Manage navigation menu, click API Keys.
API rate limits
Sift enforces rate limits on its API to keep the platform fast and reliable for everyone. How limits are applied- Per organization
- Per API endpoint
- Set well above typical usage (you won’t be seeing this most of the time)
- HTTP API: status
429 Too Many Requests, with a message indicating waiting before retrying. - gRPC API: status
RESOURCE_EXHAUSTED, with a message indicating waiting before retrying.
- Batch where the API supports it rather than looping single-record calls.
- Avoid tight retry loops without backoff.
- Spread large backfills or migrations over time instead of issuing them all at once.