cURL
curl --request POST \ --url https://files.adclear.ai/v1/uploads \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "fileName": "<string>", "fileSize": 123, "contentType": "<string>" } '
{ "uploadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "uploadUrl": "<string>", "expiresAt": "2023-11-07T05:31:56Z" }
Creates a GCS signed URL for direct file upload. The caller PUTs the file to the returned URL. Upload is verified automatically when referenced in promotion creation.
Clerk session JWT or Unkey API key passed as Bearer token
Original file name
1
File size in bytes
MIME type (e.g. application/pdf, image/png)
Upload initiated — use uploadUrl to PUT the file
Server-generated upload identifier
GCS signed URL — PUT your file here with the correct Content-Type
ISO 8601 timestamp when the signed URL expires