API Reference
Getting Started with the API
Sphinx’s API lets your programmatically interact with the application. This lets you automate your work or integrate Sphinx with other applications you use.
Before you begin
To get access to the API, you first must create an account in Sphinx. If you haven’t already, you can sign up here
Working with paginated responses
The Spinx API returns results subject to the limit
parameter (when passed).
Results for an endpoint may exceed limit for a single response, in which case you will need to pass the nextToken
.
Passing the nextToken
returns the next set of results.
This can be repeated until a nextToken
is no longer provided.
An example script for listing Datasets is below. Replace your endpoint as required.
Working with Signed URLs
Some resources in the API returned a signedUrl
which allows for their download.
To work with these you can treat them as a file.
Here is an example in python.
Working with Tasks
Some resources in the API are returned after a task processes their download.
You must wait until the task is complete before a signedUrl
is provided.
An example script for requesting a Datatable is below.