curl --request POST \
--url https://api-next.ofauth.com/v2/access/uploads/init \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--header 'x-connection-id: <api-key>' \
--data '
{
"filename": "<string>",
"size": 1,
"contentType": "<string>",
"vaultUpload": {
"mode": "message",
"userId": "<string>"
}
}
'{
"mediaUploadId": "<string>"
}Initialize media upload
Permission Required: vault:write
curl --request POST \
--url https://api-next.ofauth.com/v2/access/uploads/init \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--header 'x-connection-id: <api-key>' \
--data '
{
"filename": "<string>",
"size": 1,
"contentType": "<string>",
"vaultUpload": {
"mode": "message",
"userId": "<string>"
}
}
'{
"mediaUploadId": "<string>"
}Requires a connection via the x-connection-id header.
Name of the file to upload
1File size in bytes
x > 0MIME type of the file (e.g., image/jpeg, video/mp4)
1Options for vault upload (if uploading to vault)
Show child attributes
Successful response
Was this page helpful?