Skip to main content
POST
/
uploads
Upload a file from a URL
curl --request POST \
  --url https://app.tryordinal.com/api/v1/uploads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://example.com/images/product-photo.jpg"
}
'
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "pending",
  "createdAt": "2026-02-04T10:30:00.000Z"
}

Authorizations

Authorization
string
header
required

API key authentication. Generate an API key from your workspace settings.

Body

application/json
url
string<uri>
required

URL of the file to upload. Must be publicly accessible.

Response

Upload job created successfully

Response when an upload job is created

id
string<uuid>

Upload job ID. Use this to poll the GET /uploads/{id} endpoint.

status
enum<string>

Initial status of the upload

Available options:
pending
createdAt
string<date-time>