Skip to main content
POST
/
assets
/
files
Upload file
curl --request POST \
  --url https://api.example.com/assets/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'key=<string>' \
  --form 'name=<string>' \
  --form 'resource_uri=<string>' \
  --form 'description=<string>' \
  --form 'tags=<string>'
{
  "resource_uri": "<string>",
  "url": "<string>",
  "key": "<string>",
  "name": "<string>",
  "message": "<string>",
  "size": 123,
  "content_type": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.emergence.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Project-ID
string | null

Body

multipart/form-data
file
file
required

File to upload.

key
string
required

Object storage key

name
string
required

Human-readable file name

Required string length: 1 - 255
resource_uri
string | null

Resource URI (auto-generated from name if omitted)

description
string | null

File description

Maximum string length: 1000
tags
string | null

Comma-separated tags

Response

Successful Response

Response model for file uploads.

resource_uri
string
required
url
string
required
key
string
required
name
string
required
message
string
required
size
integer
required
content_type
string
required