POST/v1/training/uploads

Create an archive upload

Requires training:write. Returns a presigned form, valid for 900 seconds. POST every returned field and the file to url as multipart/form-data, then import with source.kind=upload and upload_id. Honor max_bytes; do not send the API key to the storage URL.

Authentication: Bearer API key in the Authorization header

Responses

  • 201

    Success. Example response excerpt.

  • 422

    Invalid request.

    Response
    • detailarray<object>
      detail
      • ctxobject
      • inputany
      • locarray<string | integer>required
      • msgstringrequired
      • typestringrequired

Request

curl -X POST 'https://api.staging.experientiallabs.ai/v1/training/uploads' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Response

{
  "upload_id": "00000000-0000-4000-8000-000000000007",
  "url": "https://example.invalid/presigned-upload",
  "fields": {
    "key": "<RETURNED_KEY>",
    "policy": "<RETURNED_POLICY>",
    "x-amz-signature": "<RETURNED_SIGNATURE>"
  },
  "expires_in_seconds": 900,
  "max_bytes": 1000000
}

https://api.staging.experientiallabs.ai/v1/training/uploads