Skip to Content
GrowSocmedDocsSocial media command center

Start a presigned upload

Start a presigned upload: PUT the file to upload_url, then call complete

POST
/media

Start a presigned upload: PUT the file to upload_url, then call complete

Authorization

apiKey
headerAuthorizationBearer <token>

API key from Developer → API keys (gs_…). An unbound key takes the workspace from the X-Workspace header.

Request Body

application/json
  1. body
file_name*string
Length1 <= length <= 255
mime_type*string
size_bytes*integer
Range0 < value

Response Body

Created

application/json
  1. response
media*
upload_url*string
Example Request
curl -X POST 'https://socmed.growpaces.com/api/v1/media' \  -H 'Content-Type: application/json' \  -d '{  "file_name": "string",  "mime_type": "string",  "size_bytes": 1}'
Example Response201
{  "media": {    "id": "string",    "type": "image",    "page_count": 0,    "status": "pending",    "original_name": "string",    "mime_type": "string",    "size_bytes": 0,    "width": 0,    "height": 0,    "duration_ms": 0,    "frame_rate": 0,    "fail_reason": "string",    "alt_text": "string",    "keep": true,    "used_in_posts": 0,    "expires_at": "string",    "url": "string",    "created_at": "string"  },  "upload_url": "string"}