The Sprig API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. Sprig offers API access to both your Production and Development environments. You can use your Development environment to validate your usage of the Sprig API before interacting with your live data. The API key you use to authenticate the request determines whether the request runs against Production data or Development data. Team members with the Admin or Developer roles can see the API keys.Documentation Index
Fetch the complete documentation index at: https://docs.sprig.com/llms.txt
Use this file to discover all available pages before exploring further.
Find your API keys
Sprig Environment IDs are not used to manage access to the Sprig API, but you will have separate keys for each environment. Environment IDs are appended to a string describing the authentication type. 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 keywords followed by the API keys to authenticate requests to the public API. Depending on the endpoint, you will prepend either API-Key (v2 API) or Bearer (export API):
curl, you would use the following snippet to include the API key with a request:
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.