FilesCreate Files Upload
Files

POST /files/upload

Upload a file to the system

curl -X POST "https://api.example.com/v2/files/upload" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "id": "file_abc123",
  "filename": "document.pdf",
  "size": 1048576,
  "mime_type": "application/pdf",
  "category": "document",
  "url": "https://files.example.com/document.pdf",
  "uploaded_at": "2024-12-25T14:30:00Z",
  "tags": [
    "important",
    "project-a"
  ]
}
POST
/files/upload
POST
Security Scheme
X-API-Keystring
Required

API key for authentication. Get your API key from the dashboard.

API key for authentication. Get your API key from the dashboard.
Content-Typestring
Required

The media type of the request body

Options: multipart/form-data
filestring
Required

The file to upload

Format: binary
categorystring
Options: document, image, video, other
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. API key for authentication. Get your API key from the dashboard.

Body

multipart/form-data
filefile
Required

The file to upload

Responses