Skip to main content
POST
/
api
/
v1
/
assets
/
upload-url
cURL
curl --request POST \
  --url http://localhost:3001/api/v1/assets/upload-url \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "filename": "<string>",
  "size": 123,
  "assetType": "content-image",
  "websiteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "success": true,
  "uploadUrl": "<string>",
  "key": "<string>",
  "expiresIn": 123
}

Documentation Index

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

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

Authorizations

x-api-key
string
header
required

Unified API key for server-side SDK and API integrations

Body

application/json
filename
string
required
Minimum string length: 1
contentType
enum<string>
required
Available options:
image/jpeg,
image/png,
text/csv,
application/vnd.ms-excel,
application/pdf
size
number
required
Required range: x <= 20971520
assetType
enum<string>
default:content-image
Available options:
content-image,
content-document,
lead-magnet
websiteId
string<uuid>
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

Default Response

success
boolean
required
uploadUrl
string
required
key
string
required
expiresIn
number
required