Skip to content
Docs

Upload images, videos and documents for posts (and inbox attachments).

Base URLhttps://api.socialit.com/v1AuthenticationErrorsRate limits10 endpointsMCP toolset media

Get an upload URL

POST/media/presign

Returns a URL to PUT the file to (S3/R2 bucket when configured, else the API). Reference the returned media id (or public_url) in posts.

Access: writeIdempotency-KeyZernio: POST /v1/media/presign

Try it with MCPAsk your agent to call presign-media-upload (toolset media)Set up MCP

Headers

Idempotency-Keystring

Unique key (for example a UUID) that makes retries safe: a repeated request with the same key and body returns the first response (Idempotent-Replayed: true) for 24 hours.

≤ 255 characters

Body object

filenamestringrequired

1–255 characters

content_typestringrequired

3–100 characters

sizeinteger
folderstring

≤ 200 characters

tagsarray of string

≤ 50 items

alt_textstring

≤ 2000 characters

Returns object

objectstring

media_upload

mediaobject
Show 24 child attributes
objectstring

media

idstring
statusstring

pendingprocessingreadyfailed

typestring
namestring | null
file_namestring
mime_typestring | null
sizeinteger | null
urlstring | null
thumbnail_urlstring | null
preview_urlstring | null
widthinteger | null
heightinteger | null
durationinteger | null
alt_textstring | null
captionstring | null
tagsarray of string
folderstring | null
storagestring

locals3external

source_urlstring | null
used_in_postsinteger
created_byobject | null
Show 3 child attributes
typestring
idstring | null
namestring | null
created_atstring (date-time) | null
updated_atstring (date-time) | null
upload_urlstring
methodstring

PUT

headersmap of string
public_urlstring | null
expires_ininteger

Responses

  • 201Created
  • 4XXErrors: invalid request, auth, permission, not found, conflict, plan or rate limit
  • 5XXErrors: server or upstream network error
POST/media/presign
curl -X POST "https://api.socialit.com/v1/media/presign" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "filename": "string",
    "content_type": "string",
    "size": 0,
    "folder": "string",
    "tags": [
      "string"
    ]
  }'
Response · 201
{
  "object": "media_upload",
  "media": {
    "object": "media",
    "id": "string",
    "status": "pending",
    "type": "string",
    "name": "string",
    "file_name": "string",
    "mime_type": "string",
    "size": 1,
    "url": "https://example.com",
    "thumbnail_url": "https://example.com",
    "preview_url": "https://example.com",
    "width": 1,
    "height": 1,
    "duration": 1,
    "alt_text": "string",
    "caption": "string",
    "tags": [
      "string"
    ],
    "folder": "string",
    "storage": "local",
    "source_url": "https://example.com",
    "used_in_posts": 1,
    "created_by": {
      "type": "string",
      "id": "string",
      "name": "string"
    },
    "created_at": "2026-10-13T09:00:00.000Z",
    "updated_at": "2026-10-13T09:00:00.000Z"
  },
  "upload_url": "https://example.com",
  "method": "PUT",
  "headers": {
    "key": "string"
  },
  "public_url": "https://example.com",
  "expires_in": 1
}

Upload a file

POST/media/upload-direct

multipart/form-data with a file field (+ optional folder, alt_text, tags). Image ≤ 20 MB, GIF ≤ 15 MB, video ≤ 500 MB, document/audio ≤ 100 MB.

Access: writeIdempotency-KeyZernio: POST /v1/media/upload-direct

Headers

Idempotency-Keystring

Unique key (for example a UUID) that makes retries safe: a repeated request with the same key and body returns the first response (Idempotent-Replayed: true) for 24 hours.

≤ 255 characters

Returns object

objectstring

media

idstring
statusstring

pendingprocessingreadyfailed

typestring
namestring | null
file_namestring
mime_typestring | null
sizeinteger | null
urlstring | null
thumbnail_urlstring | null
preview_urlstring | null
widthinteger | null
heightinteger | null
durationinteger | null
alt_textstring | null
captionstring | null
tagsarray of string
folderstring | null
storagestring

locals3external

source_urlstring | null
used_in_postsinteger
created_byobject | null
Show 3 child attributes
typestring
idstring | null
namestring | null
created_atstring (date-time) | null
updated_atstring (date-time) | null

Responses

  • 201Created
  • 4XXErrors: invalid request, auth, permission, not found, conflict, plan or rate limit
  • 5XXErrors: server or upstream network error
POST/media/upload-direct
curl -X POST "https://api.socialit.com/v1/media/upload-direct" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Response · 201
{
  "object": "media",
  "id": "string",
  "status": "pending",
  "type": "string",
  "name": "string",
  "file_name": "string",
  "mime_type": "string",
  "size": 1,
  "url": "https://example.com",
  "thumbnail_url": "https://example.com",
  "preview_url": "https://example.com",
  "width": 1,
  "height": 1,
  "duration": 1,
  "alt_text": "string",
  "caption": "string",
  "tags": [
    "string"
  ],
  "folder": "string",
  "storage": "local",
  "source_url": "https://example.com",
  "used_in_posts": 1,
  "created_by": {
    "type": "string",
    "id": "string",
    "name": "string"
  },
  "created_at": "2026-10-13T09:00:00.000Z",
  "updated_at": "2026-10-13T09:00:00.000Z"
}

List the media library

GET/media

Access: read

Try it with MCPAsk your agent to call list-media-library (toolset media)Set up MCP

Query parameters

pageintegerdefault: 1

Page number

≥ 1

limitintegerdefault: 20

Items per page (max 100)

1–100

sortstring

created_atsizename

orderstring

ascdesc

matchstring

Combine filters with AND (default) or OR

allor

typestring

imagevideogifdocumentaudio

statusstring

pendingprocessingreadyfailed

folderstring
tagstring
searchstring

≤ 200 characters

Returns object

objectstringrequired

list

dataarray of objectrequired
Show 24 item attributes
objectstring

media

idstring
statusstring

pendingprocessingreadyfailed

typestring
namestring | null
file_namestring
mime_typestring | null
sizeinteger | null
urlstring | null
thumbnail_urlstring | null
preview_urlstring | null
widthinteger | null
heightinteger | null
durationinteger | null
alt_textstring | null
captionstring | null
tagsarray of string
folderstring | null
storagestring

locals3external

source_urlstring | null
used_in_postsinteger
created_byobject | null
Show 3 child attributes
typestring
idstring | null
namestring | null
created_atstring (date-time) | null
updated_atstring (date-time) | null
pageintegerrequired
limitintegerrequired
totalinteger | null
has_morebooleanrequired
next_page_urlstring | null
previous_page_urlstring | null

Responses

  • 200OK
  • 4XXErrors: invalid request, auth, permission, not found, conflict, plan or rate limit
  • 5XXErrors: server or upstream network error
GET/media
curl "https://api.socialit.com/v1/media" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "object": "media",
      "id": "string",
      "status": "pending",
      "type": "string",
      "name": "string",
      "file_name": "string",
      "mime_type": "string",
      "size": 1,
      "url": "https://example.com",
      "thumbnail_url": "https://example.com",
      "preview_url": "https://example.com",
      "width": 1,
      "height": 1,
      "duration": 1,
      "alt_text": "string",
      "caption": "string",
      "tags": [
        "string"
      ],
      "folder": "string",
      "storage": "local",
      "source_url": "https://example.com",
      "used_in_posts": 1,
      "created_by": {
        "type": "string",
        "id": "string",
        "name": "string"
      },
      "created_at": "2026-10-13T09:00:00.000Z",
      "updated_at": "2026-10-13T09:00:00.000Z"
    }
  ],
  "page": 1,
  "limit": 1,
  "total": 1,
  "has_more": true,
  "next_page_url": "https://example.com",
  "previous_page_url": "https://example.com"
}

Register media from a public URL

POST/media

Access: writeIdempotency-Key

Try it with MCPAsk your agent to call create-media-from-url (toolset media)Set up MCP

Headers

Idempotency-Keystring

Unique key (for example a UUID) that makes retries safe: a repeated request with the same key and body returns the first response (Idempotent-Replayed: true) for 24 hours.

≤ 255 characters

Body object

urlstringrequired

8–2048 characters

namestring

≤ 255 characters

typestring

imagevideogifdocumentaudio

alt_textstring

≤ 2000 characters

captionstring

≤ 5000 characters

tagsarray of string

≤ 50 items

folderstring

≤ 200 characters

Returns object

objectstring

media

idstring
statusstring

pendingprocessingreadyfailed

typestring
namestring | null
file_namestring
mime_typestring | null
sizeinteger | null
urlstring | null
thumbnail_urlstring | null
preview_urlstring | null
widthinteger | null
heightinteger | null
durationinteger | null
alt_textstring | null
captionstring | null
tagsarray of string
folderstring | null
storagestring

locals3external

source_urlstring | null
used_in_postsinteger
created_byobject | null
Show 3 child attributes
typestring
idstring | null
namestring | null
created_atstring (date-time) | null
updated_atstring (date-time) | null

Responses

  • 201Created
  • 4XXErrors: invalid request, auth, permission, not found, conflict, plan or rate limit
  • 5XXErrors: server or upstream network error
POST/media
curl -X POST "https://api.socialit.com/v1/media" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com",
    "name": "string",
    "type": "image",
    "alt_text": "string",
    "caption": "string"
  }'
Response · 201
{
  "object": "media",
  "id": "string",
  "status": "pending",
  "type": "string",
  "name": "string",
  "file_name": "string",
  "mime_type": "string",
  "size": 1,
  "url": "https://example.com",
  "thumbnail_url": "https://example.com",
  "preview_url": "https://example.com",
  "width": 1,
  "height": 1,
  "duration": 1,
  "alt_text": "string",
  "caption": "string",
  "tags": [
    "string"
  ],
  "folder": "string",
  "storage": "local",
  "source_url": "https://example.com",
  "used_in_posts": 1,
  "created_by": {
    "type": "string",
    "id": "string",
    "name": "string"
  },
  "created_at": "2026-10-13T09:00:00.000Z",
  "updated_at": "2026-10-13T09:00:00.000Z"
}

Media storage usage

GET/media/usage

Access: read

Try it with MCPAsk your agent to call get-media-usage (toolset media)Set up MCP

Returns object

objectstring

media_usage

used_bytesinteger
limit_bytesinteger | null
filesinteger
by_typemap of integer

Responses

  • 200OK
  • 4XXErrors: invalid request, auth, permission, not found, conflict, plan or rate limit
  • 5XXErrors: server or upstream network error
GET/media/usage
curl "https://api.socialit.com/v1/media/usage" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY"
Response · 200
{
  "object": "media_usage",
  "used_bytes": 1,
  "limit_bytes": 1,
  "files": 1,
  "by_type": {
    "key": 1
  }
}

List media folders

GET/media/folders

Access: read

Try it with MCPAsk your agent to call list-media-folders (toolset media)Set up MCP

Returns object

objectstringrequired

list

dataarray of objectrequired
Show 3 item attributes
objectstring

media_folder

namestring
countinteger
pageintegerrequired
limitintegerrequired
totalinteger | null
has_morebooleanrequired
next_page_urlstring | null
previous_page_urlstring | null

Responses

  • 200OK
  • 4XXErrors: invalid request, auth, permission, not found, conflict, plan or rate limit
  • 5XXErrors: server or upstream network error
GET/media/folders
curl "https://api.socialit.com/v1/media/folders" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "object": "media_folder",
      "name": "string",
      "count": 1
    }
  ],
  "page": 1,
  "limit": 1,
  "total": 1,
  "has_more": true,
  "next_page_url": "https://example.com",
  "previous_page_url": "https://example.com"
}

Get media

GET/media/{id}

Access: read

Try it with MCPAsk your agent to call get-media-item (toolset media)Set up MCP

Path parameters

idstringrequired

media id (med_…)

1–80 characters

Returns object

objectstring

media

idstring
statusstring

pendingprocessingreadyfailed

typestring
namestring | null
file_namestring
mime_typestring | null
sizeinteger | null
urlstring | null
thumbnail_urlstring | null
preview_urlstring | null
widthinteger | null
heightinteger | null
durationinteger | null
alt_textstring | null
captionstring | null
tagsarray of string
folderstring | null
storagestring

locals3external

source_urlstring | null
used_in_postsinteger
created_byobject | null
Show 3 child attributes
typestring
idstring | null
namestring | null
created_atstring (date-time) | null
updated_atstring (date-time) | null

Responses

  • 200OK
  • 4XXErrors: invalid request, auth, permission, not found, conflict, plan or rate limit
  • 5XXErrors: server or upstream network error
GET/media/{id}
curl "https://api.socialit.com/v1/media/med_2Jx0Fq5Pz8vYkB3mN6rT1wQ9sLd" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY"
Response · 200
{
  "object": "media",
  "id": "string",
  "status": "pending",
  "type": "string",
  "name": "string",
  "file_name": "string",
  "mime_type": "string",
  "size": 1,
  "url": "https://example.com",
  "thumbnail_url": "https://example.com",
  "preview_url": "https://example.com",
  "width": 1,
  "height": 1,
  "duration": 1,
  "alt_text": "string",
  "caption": "string",
  "tags": [
    "string"
  ],
  "folder": "string",
  "storage": "local",
  "source_url": "https://example.com",
  "used_in_posts": 1,
  "created_by": {
    "type": "string",
    "id": "string",
    "name": "string"
  },
  "created_at": "2026-10-13T09:00:00.000Z",
  "updated_at": "2026-10-13T09:00:00.000Z"
}

Update media

PATCH/media/{id}

Name, alt text, caption, tags and folder.

Access: write

Try it with MCPAsk your agent to call update-media-item (toolset media)Set up MCP

Path parameters

idstringrequired

media id (med_…)

1–80 characters

Body object

namestring

1–255 characters

alt_textstring | null

≤ 2000 characters

captionstring | null

≤ 5000 characters

tagsarray of string

≤ 50 items

folderstring | null

≤ 200 characters

Returns object

objectstring

media

idstring
statusstring

pendingprocessingreadyfailed

typestring
namestring | null
file_namestring
mime_typestring | null
sizeinteger | null
urlstring | null
thumbnail_urlstring | null
preview_urlstring | null
widthinteger | null
heightinteger | null
durationinteger | null
alt_textstring | null
captionstring | null
tagsarray of string
folderstring | null
storagestring

locals3external

source_urlstring | null
used_in_postsinteger
created_byobject | null
Show 3 child attributes
typestring
idstring | null
namestring | null
created_atstring (date-time) | null
updated_atstring (date-time) | null

Responses

  • 200OK
  • 4XXErrors: invalid request, auth, permission, not found, conflict, plan or rate limit
  • 5XXErrors: server or upstream network error
PATCH/media/{id}
curl -X PATCH "https://api.socialit.com/v1/media/med_2Jx0Fq5Pz8vYkB3mN6rT1wQ9sLd" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "alt_text": "string",
    "caption": "string",
    "tags": [
      "string"
    ],
    "folder": "string"
  }'
Response · 200
{
  "object": "media",
  "id": "string",
  "status": "pending",
  "type": "string",
  "name": "string",
  "file_name": "string",
  "mime_type": "string",
  "size": 1,
  "url": "https://example.com",
  "thumbnail_url": "https://example.com",
  "preview_url": "https://example.com",
  "width": 1,
  "height": 1,
  "duration": 1,
  "alt_text": "string",
  "caption": "string",
  "tags": [
    "string"
  ],
  "folder": "string",
  "storage": "local",
  "source_url": "https://example.com",
  "used_in_posts": 1,
  "created_by": {
    "type": "string",
    "id": "string",
    "name": "string"
  },
  "created_at": "2026-10-13T09:00:00.000Z",
  "updated_at": "2026-10-13T09:00:00.000Z"
}

Delete media

DELETE/media/{id}

Access: write

Try it with MCPAsk your agent to call delete-media-item (toolset media)Set up MCP

Path parameters

idstringrequired

media id (med_…)

1–80 characters

Returns object

objectstringrequired

media

idstringrequired
deletedbooleanrequired

Responses

  • 200OK
  • 4XXErrors: invalid request, auth, permission, not found, conflict, plan or rate limit
  • 5XXErrors: server or upstream network error
DELETE/media/{id}
curl -X DELETE "https://api.socialit.com/v1/media/med_2Jx0Fq5Pz8vYkB3mN6rT1wQ9sLd" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY"
Response · 200
{
  "object": "media",
  "id": "string",
  "deleted": true
}

Finalize a presigned upload

POST/media/{id}/complete

Access: writeIdempotency-Key

Try it with MCPAsk your agent to call complete-media-upload (toolset media)Set up MCP

Path parameters

idstringrequired

media id (med_…)

1–80 characters

Headers

Idempotency-Keystring

Unique key (for example a UUID) that makes retries safe: a repeated request with the same key and body returns the first response (Idempotent-Replayed: true) for 24 hours.

≤ 255 characters

Returns object

objectstring

media

idstring
statusstring

pendingprocessingreadyfailed

typestring
namestring | null
file_namestring
mime_typestring | null
sizeinteger | null
urlstring | null
thumbnail_urlstring | null
preview_urlstring | null
widthinteger | null
heightinteger | null
durationinteger | null
alt_textstring | null
captionstring | null
tagsarray of string
folderstring | null
storagestring

locals3external

source_urlstring | null
used_in_postsinteger
created_byobject | null
Show 3 child attributes
typestring
idstring | null
namestring | null
created_atstring (date-time) | null
updated_atstring (date-time) | null

Responses

  • 200OK
  • 4XXErrors: invalid request, auth, permission, not found, conflict, plan or rate limit
  • 5XXErrors: server or upstream network error
POST/media/{id}/complete
curl -X POST "https://api.socialit.com/v1/media/med_2Jx0Fq5Pz8vYkB3mN6rT1wQ9sLd/complete" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Response · 200
{
  "object": "media",
  "id": "string",
  "status": "pending",
  "type": "string",
  "name": "string",
  "file_name": "string",
  "mime_type": "string",
  "size": 1,
  "url": "https://example.com",
  "thumbnail_url": "https://example.com",
  "preview_url": "https://example.com",
  "width": 1,
  "height": 1,
  "duration": 1,
  "alt_text": "string",
  "caption": "string",
  "tags": [
    "string"
  ],
  "folder": "string",
  "storage": "local",
  "source_url": "https://example.com",
  "used_in_posts": 1,
  "created_by": {
    "type": "string",
    "id": "string",
    "name": "string"
  },
  "created_at": "2026-10-13T09:00:00.000Z",
  "updated_at": "2026-10-13T09:00:00.000Z"
}