Skip to main content
POST
/
v1
/
attachments
/
upload-url
Generate attachment upload URL
curl --request POST \
  --url https://api.light.inc/v1/attachments/upload-url \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json;charset=UTF-8' \
  --data '{
  "resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "fileName": "<string>",
  "contentType": "<string>"
}'
{
  "uploadUrl": "<string>",
  "key": "<string>",
  "metadata": {}
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.

Body

application/json;charset=UTF-8
resourceId
string<uuid>
fileName
string
contentType
string

Response

default - application/json;charset=UTF-8

default response

uploadUrl
string<url>
key
string
metadata
object | null
I