Skip to main content
POST
Export Slice
Click for Python SDK
This endpoint exports all DatasetItems and associated Annotations of a Slice for use with model training page-by-page. In order to speed up the export, the following Annotation attributes are not included in the payload:
  • Annotation IDs
  • Annotation-level metadata
  • Reference IDs for annotations (since they are pulled down for the DatasetItem already)

Pagination

Each response has two fields:
  • data: the items of this page, each with its annotations grouped by type.
  • nextPageToken: pass it as pageToken in the next request. When it is empty or missing, you have received the last page.
Send the first request without a pageToken. pageSize is at most 10000 items; lower it if a request times out.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

slice_id
string
required

The Scale-generated ID of the Slice.

Body

application/json
pageToken
string

The dataset_item_id after which to start fetching items in the next page. Can be null (fetches the first page of items).

pageSize
integer<int32>
default:10000

The size of the fetched page. The maximum is 10000 items.

Response

200 - application/json

200

data
object[]

The items of this page with their annotations, grouped by annotation type.

nextPageToken
string

Pass this value as pageToken in the next request. When it is empty or missing, the last page has been returned.