Skip to main content
POST
/
api
/
external
/
v1
/
portals
/
creatives
/
upload-url
Get Creative Upload URL
curl --request POST \
  --url https://app.magna.so/api/external/v1/portals/creatives/upload-url \
  --header 'Content-Type: application/json' \
  --header 'x-magna-api-token: <api-key>' \
  --data '
{
  "fileName": "<string>",
  "contentType": "<string>"
}
'
{
  "isProcessed": true,
  "result": {
    "uploadUrl": "https://...signed-upload-url...",
    "storageKey": "images/portal/hero-abc123.png",
    "publicUrl": "https://.../images/portal/hero-abc123.png"
  }
}

Authorizations

x-magna-api-token
string
header
required

Body

application/json
fileName
string
required
Minimum string length: 1
contentType
string
required
Minimum string length: 1
kind
enum<string>
required
Available options:
image,
animation

Response

Successful response

isProcessed
boolean
result
any

Endpoint-specific result payload.