Study API V2
Create and manage shareable and in-product surveys.
Study API authentication
Use environment API keys safely.
Find your API keys
Sprig Environment IDs are not API credentials. Each environment has a separate API key. To find your authorization keys:- In the Navigation Pane, click Integrations.
- Click Enrichment under the Sources section.
- Click Data Import API.
- Click on the appropriate Environment ID and then click the copy icon to copy a key.
Authentication
Authentication to the API is performed via the HTTPAuthorization header. Include this header on all requests to the API.
Sprig uses an authentication scheme followed by the credential. Use API-Key for environment API keys on V2 endpoints. Legacy V1 export endpoints use Bearer.
New code events must be approved in the Sprig app. If you are adding an event for the first time, it will not automatically appear in the Events table. For the event to become usable by Sprig once it is triggered, you must approve the event in Events > Manage Requests.