Skip to main content
POST
/
v1
/
projects
/
{project_id}
/
files
Upload File
curl --request POST \
  --url https://api.example.com/v1/projects/{project_id}/files \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --header 'x-selected-account-id: <api-key>' \
  --form file='@example-file'
{
  "id": "<string>",
  "project_id": "<string>",
  "filename": "<string>",
  "size_bytes": 123,
  "mime_type": "<string>",
  "status": "uploading",
  "created_at": "2023-11-07T05:31:56Z",
  "storage_key": "<string>",
  "object": "file"
}

Authorizations

x-api-key
string
header
required

API key for authentication

x-selected-account-id
string
header
required

Selected Account ID

Path Parameters

project_id
string
required

Body

multipart/form-data
file
file
required

Response

Successful Response

id
string
required

ID of the entity

project_id
string
required

ID of the project

filename
string
required
size_bytes
integer
required
mime_type
string
required
status
enum<string>
required
Available options:
uploading,
uploaded,
failed,
deleted
created_at
string<date-time>
required
storage_key
string
required
object
string | null
default:file
Allowed value: "file"