Assets and Media Delivery

Upload asset

Uploads a small media file as base64 and returns a SocialClaw delivery URL.

Note: Use POST /v1/assets/import for anything large: it takes a URL instead of base64 and handles files up to 1 GB.

post/v1/assets/upload

Request

  • Base URL: https://getsocialclaw.com
  • URL: https://getsocialclaw.com/v1/assets/upload
  • Auth: HTTP bearer

Request body

filenamestring required

Original file name.

namestring nullable

Alias for filename.

mimestring nullable

MIME type. Inferred from filename when omitted.

contentBase64string required

Base64-encoded file content.

content_base64string nullable

Snake-case alias for contentBase64.

durationnumber nullable
widthinteger nullable
heightinteger nullable
deleteAfterstring date-time nullable

Optional retention timestamp.

Response

Successful response.

okunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.