Upload Media
Upload media
Authorizations
Header parameters
x-api-keystringRequiredExample:
API key of the posting user
3YJ2ZVJ8QAURI08VH2
Body
countnumberRequiredExample:
1
configuration_idstring · uuidRequired
Responses
200
Successful response
application/json
400
Bad request
application/json
401
Authentication failed
application/json
post
const response = await fetch('https://api.cloudfactory.app/v1/signed-url', {
method: 'POST',
headers: {
"Content-Type": "application/json",
"X-Api-Key": "<YOUR_API_KEY>"
},
body: JSON.stringify({
"count": 1,
"configuration_id": "123e4567-e89b-12d3-a456-426614174000"
}),
});
const data = await response.json();
{
"entries": [
{
"id": "1a05d1e5-44cd-43c4-9628-79c033af8b99",
"media_upload_url": "https://example.com",
"expires_at": "2024-01-01T00:00:00Z",
"media_key": "https://xyz.s3.region.amazonaws.com/abc/def"
}
]
}
For more detailed instructions on uploading media, please refer to the Getting Started Guide - Uploading Media Assets.
Last updated
Was this helpful?