Skip to main content
This guide provides cURL examples for common Relay API operations.

Setup

Set your API key as an environment variable:

Datasets

List datasets

Create dataset

Get dataset

Update dataset

Delete dataset

Audio files

Get upload URL

Upload file to presigned URL

After getting the upload URL and fields, upload using multipart form:

Confirm upload

List audio files

Get audio file

Delete audio file

Get download URL

Annotation sets

Create annotation set

List annotation sets

Get annotation set

Publish annotation set

Delete annotation set

Annotations

Create single annotation

Create bulk annotations

List annotations

Export to Label Studio

Training

Create training job

List training jobs

Get training job

Cancel training job

Models

List models

Get model

Update model

Delete model

Inference

Create inference job

List inference jobs

Get inference job

Get upload URL for inference

Confirm inference file upload

List inference files

Get inference file

API keys

List API keys

Create API key

Revoke API key

Shell script example

Complete workflow script: