cURL
curl --request POST \ --url https://api.social-api.ai/v1/media/upload \ --header 'Authorization: <api-key>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file'
{ "media_id": "<string>" }
Upload a media file directly through the API server. Use this when your environment cannot reach the S3 presigned URL (e.g. AI sandboxes). The returned media_id is immediately ready for use in create_post — no separate verify step is needed.
Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...
Authorization: Bearer sapi_key_...
Media file to upload (max 50 MB)
Created