Last updated 3 months ago
Was this helpful?
For more detailed instructions on uploading media, please refer to the .
Upload media
API key of the posting user
3YJ2ZVJ8QAURI08VH2
1
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();
Successful response
{ "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" } ] }