EndpointsCreate S3 presigned upload

Create S3 presigned upload

Returns a presigned URL for uploading a file to S3. Requires API key authentication.

curl -X POST "//v1/upload/s3" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (API Key)" \
  -d '{
  "filename": "John Doe",
  "contentType": "example_string",
  "size": 42
}'
{
  "uploadUrl": "example_string",
  "publicUrl": "example_string",
  "fileKey": "example_string"
}
POST
/v1/upload/s3
POST
Bearer Token (API Key)
Bearer Tokenstring
Required

User API Key. Create in the Ctxfy dashboard or via POST /v1/api-keys. Use Bearer <api_key> in Authorization header.

User API Key. Create in the Ctxfy dashboard or via POST /v1/api-keys. Use Bearer <api_key> in Authorization header.
Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (API Key). User API Key. Create in the Ctxfy dashboard or via POST /v1/api-keys. Use Bearer <api_key> in Authorization header.

Responses

uploadUrlstring
Required
publicUrlstring
Required
fileKeystring
Required