Files

Mint a presigned PUT URL for a user file upload

Changed on
post/agents/files/upload-url

Request

  • Base URL
    https://api.mobilerun.ai
  • URL
    https://api.mobilerun.ai/agents/files/upload-url
  • Auth
    HTTP bearer

Headers

idempotency-keystring

Idempotency-Key: 1-255 printable ASCII characters. Same key with a different request body is a 422 idempotency_key_reused. A retryable in-flight duplicate is a 409 with Retry-After and x-should-retry: true; a terminal duplicate is a 409 with x-should-retry: false. A replay returns the current resource state with Idempotent-Replayed: true.

Example:b3f6a9f0-6f1a-4e9a-9e7a-9c9b6b6a5a3f

Request body

filenamestring required
mimeTypestring required
sizeBytesinteger required
zone'user' | 'skills'

Response

Presigned PUT URL and fileId

fileIdstring uuid required
putUrlstring uri required
expiresAtstring date-time required

Changes