Authentication
Authentication
Every request sent to Scale’s API requires authentication. In short, your API Key is the Bearer token. See the Authentication section for more details.
Pagination
Pagination
Remember to handle pagination when downloading large sets of tasks.
limit
).
If your request returns more tasks than your specified limit
, API response will also contain a next_token
until you reach to the last page.You can set the next_token
in your next request to continue downloading tasks from the next page.Required query parameters
You are expected to provide one of the following to start downloading tasks:- Dataset (
dataset_id
) - Delivery (
delivery_id
)
Example Code
Download All Tasks From a Dataset as JSONL
Download All Tasks From a Dataset as JSONL
Authorizations
Your API Key is the Bearer token. See the Authentication section to learn how to access your key.
Query Parameters
Scale's unique identifier for the dataset.
Example:
"dataset_abc123"
Scale's unique identifier for the delivery.
Example:
"delivery_abc123"
Deliveries with a delivered_at
after the given date will be returned. A timestamp formatted as an ISO 8601 date-time string.
Deliveries with a delivered_at
before the given date will be returned. A timestamp formatted as an ISO 8601 date-time string.
Limit the number of entities returned.
Required range:
1 <= x <= 100
A token used to retrieve the next page of results if there are more. You can find the next_token
in your last request.