Skip to content
DocsMedia

Media

Upload and import media, organize the library, and read each file's renditions per network.

14 operations, every one needs an API key. Read the concepts first.

Every call goes to https://app.postbroad.com; see Authentication and the error catalogue.

EndpointWhat it doesScope
POST /v1/media/uploadsStart an upload: a pending session (1 h) and where to send the bytesmedia.upload
PUT /v1/media/uploads/{uploadId}/contentThe bytes of an upload whose target is api, streamed to storage with a bounded memory allowancemedia.upload
POST /v1/media/uploads/{uploadId}/completeBind the stored bytes; the media container then ingests themmedia.upload
GET /v1/media/uploads/{uploadId}Poll an upload until it is ingested or rejectedany key
POST /v1/media/importsAdd media from a shared link or a stock librarymedia.upload
GET /v1/media/stockSearch the stock photo libraries this installation offersmedia.upload
GET /v1/mediaThe media libraryany key
GET /v1/media-facetsFolders and tags of the library with counts, and how many files are unused or lack alt textany key
GET /v1/media/{assetId}One asset with signed URLs for its thumbnail and originalany key
PATCH /v1/media/{assetId}Change alt text, folder or tagsmedia.manage
POST /v1/media/bulk-deleteDelete assets that no scheduled or draft post usesmedia.manage
GET /v1/media/{assetId}/renditionsRenditions of an asset per media profile, with statusany key
POST /v1/media/{assetId}/alt-suggestionSuggest alt text for an image from the image itself; nothing is savedmedia.manage
GET /v1/media/{assetId}/usagePosts that use an assetany key

#Operations

#Start an upload: a pending session (1 h) and where to send the bytes

POST/v1/media/uploads

Operation createUpload. Needs a key with the scope media.upload.

Accepts an Idempotency-Key header. Add ?dry_run=true where the operation supports it to get a preview and write nothing.

Request body: CreateUploadInput

FieldTypeRequiredDescription
mime"image/jpeg" or "image/png" or "image/webp" or "image/gif" or "image/avif" or "video/mp4" or "video/quicktime" or "video/webm" or "application/pdf" or "audio/mpeg" or "audio/mp4"yes
sizeintegeryes
sha256stringyes
filenamestring or nullno
brandIdstring (uuid) or nullno
sourceAssetIdstring (uuid)no
clientRenderClientRenderno

Response 201: CreateUploadResult. The session and the upload target

Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 404 not_found, 409 request_in_progress, 413 payload_too_large, 415 unsupported_media_type, 422 validation_failed, 422 idempotency_key_reused, 429 rate_limited, 500 internal, 503 unavailable.

curl
curl -X POST "https://app.postbroad.com/v1/media/uploads" \
  -H "Authorization: Bearer $POSTBROAD_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "mime": "image/jpeg",
  "size": 0,
  "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
  "filename": "string",
  "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "sourceAssetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "clientRender": {
    "v": 1,
    "tool": "string",
    "action": "as_is",
    "networks": [
      "string"
    ],
    "facts": {
      "width": 0,
      "height": 0,
      "durationSeconds": 0,
      "frameRate": 0,
      "videoCodec": "string",
      "audioCodec": "string",
      "hdr": false
    },
    "actions": [
      "string"
    ],
    "timings": {}
  }
}'
TypeScript
const res = await fetch("https://app.postbroad.com/v1/media/uploads", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "mime": "image/jpeg",
    "size": 0,
    "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
    "filename": "string",
    "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
    "sourceAssetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
    "clientRender": {
      "v": 1,
      "tool": "string",
      "action": "as_is",
      "networks": [
        "string"
      ],
      "facts": {
        "width": 0,
        "height": 0,
        "durationSeconds": 0,
        "frameRate": 0,
        "videoCodec": "string",
        "audioCodec": "string",
        "hdr": false
      },
      "actions": [
        "string"
      ],
      "timings": {}
    }
  }),
});
const data = await res.json();
Response 201
{
  "upload": {
    "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
    "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
    "status": "pending",
    "store": "fs",
    "declaredMime": "string",
    "declaredSize": 0,
    "declaredSha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
    "filename": "string",
    "expiresAt": "2026-10-21T09:00:00Z",
    "mediaAssetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
    "error": "string"
  },
  "target": {
    "kind": "presigned",
    "method": "PUT",
    "url": "string",
    "headers": {}
  }
}

#The bytes of an upload whose target is api, streamed to storage with a bounded memory allowance

PUT/v1/media/uploads/{uploadId}/content

Operation uploadMediaContent. Needs a key with the scope media.upload.

Accepts an Idempotency-Key header. Add ?dry_run=true where the operation supports it to get a preview and write nothing.

Parameters

NameInRequiredTypeDescription
uploadIdpathyesstring (uuid)

Response 200: MediaUploadView. The session

Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 404 not_found, 409 request_in_progress, 409 conflict, 413 payload_too_large, 415 unsupported_media_type, 422 idempotency_key_reused, 429 rate_limited, 500 internal, 503 unavailable.

curl
curl -X PUT "https://app.postbroad.com/v1/media/uploads/<uploadId>/content" \
  -H "Authorization: Bearer $POSTBROAD_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"
TypeScript
const res = await fetch("https://app.postbroad.com/v1/media/uploads/<uploadId>/content", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
    "Idempotency-Key": crypto.randomUUID(),
  },
});
const data = await res.json();
Response 200
{
  "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "status": "pending",
  "store": "fs",
  "declaredMime": "string",
  "declaredSize": 0,
  "declaredSha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
  "filename": "string",
  "expiresAt": "2026-10-21T09:00:00Z",
  "mediaAssetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "error": "string"
}

#Bind the stored bytes; the media container then ingests them

POST/v1/media/uploads/{uploadId}/complete

Operation completeUpload. Needs a key with the scope media.upload.

Accepts an Idempotency-Key header. Add ?dry_run=true where the operation supports it to get a preview and write nothing.

Parameters

NameInRequiredTypeDescription
uploadIdpathyesstring (uuid)

Response 200: MediaUploadView or CompleteUploadDryRun. Pure operation preview when dry_run=true; no mutation is performed

Errors: 401 unauthenticated, 403 forbidden, 404 not_found, 409 request_in_progress, 409 conflict, 422 idempotency_key_reused, 422 validation_failed, 429 rate_limited, 500 internal.

curl
curl -X POST "https://app.postbroad.com/v1/media/uploads/<uploadId>/complete" \
  -H "Authorization: Bearer $POSTBROAD_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"
TypeScript
const res = await fetch("https://app.postbroad.com/v1/media/uploads/<uploadId>/complete", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
    "Idempotency-Key": crypto.randomUUID(),
  },
});
const data = await res.json();
Response 200
{
  "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "status": "pending",
  "store": "fs",
  "declaredMime": "string",
  "declaredSize": 0,
  "declaredSha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
  "filename": "string",
  "expiresAt": "2026-10-21T09:00:00Z",
  "mediaAssetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "error": "string"
}

#Poll an upload until it is ingested or rejected

GET/v1/media/uploads/{uploadId}

Operation getUpload. Any API key of the organization may call it.

Parameters

NameInRequiredTypeDescription
uploadIdpathyesstring (uuid)

Response 200: MediaUploadView. The session

Errors: 401 unauthenticated, 403 forbidden, 404 not_found, 429 rate_limited, 500 internal.

curl
curl -X GET "https://app.postbroad.com/v1/media/uploads/<uploadId>" \
  -H "Authorization: Bearer $POSTBROAD_TOKEN"
TypeScript
const res = await fetch("https://app.postbroad.com/v1/media/uploads/<uploadId>", {
  headers: {
    Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
  },
});
const data = await res.json();
Response 200
{
  "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "status": "pending",
  "store": "fs",
  "declaredMime": "string",
  "declaredSize": 0,
  "declaredSha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
  "filename": "string",
  "expiresAt": "2026-10-21T09:00:00Z",
  "mediaAssetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "error": "string"
}

#Add media from a shared link or a stock library

POST/v1/media/imports

Operation importMedia. Needs a key with the scope media.upload.

The file is read once through the safe fetch into the ordinary upload; the media worker checks and ingests it. Wait on the upload like any other.

Accepts an Idempotency-Key header. Add ?dry_run=true where the operation supports it to get a preview and write nothing.

Request body: ImportMediaInput

FieldTypeRequiredDescription
brandIdstring (uuid) or nullno
sourceobjectyes

Response 201: MediaUploadView. The upload, received

Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 404 not_found, 409 request_in_progress, 413 payload_too_large, 422 validation_failed, 422 idempotency_key_reused, 422 rule_violation, 429 rate_limited, 500 internal, 503 unavailable.

curl
curl -X POST "https://app.postbroad.com/v1/media/imports" \
  -H "Authorization: Bearer $POSTBROAD_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "source": {
    "kind": "link",
    "url": "string"
  }
}'
TypeScript
const res = await fetch("https://app.postbroad.com/v1/media/imports", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
    "source": {
      "kind": "link",
      "url": "string"
    }
  }),
});
const data = await res.json();
Response 201
{
  "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "status": "pending",
  "store": "fs",
  "declaredMime": "string",
  "declaredSize": 0,
  "declaredSha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
  "filename": "string",
  "expiresAt": "2026-10-21T09:00:00Z",
  "mediaAssetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "error": "string"
}

#Search the stock photo libraries this installation offers

GET/v1/media/stock

Operation searchStockMedia. Needs a key with the scope media.upload.

Parameters

NameInRequiredTypeDescription
qquerynostring
providerqueryno"unsplash" or "pexels"
pagequerynointeger

Response 200: StockSearch. Photos

Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 404 not_found, 422 validation_failed, 422 rule_violation, 429 rate_limited, 500 internal, 503 unavailable.

curl
curl -X GET "https://app.postbroad.com/v1/media/stock" \
  -H "Authorization: Bearer $POSTBROAD_TOKEN"
TypeScript
const res = await fetch("https://app.postbroad.com/v1/media/stock", {
  headers: {
    Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
  },
});
const data = await res.json();
Response 200
{
  "providers": [
    "unsplash"
  ],
  "results": [
    {
      "provider": "unsplash",
      "id": "string",
      "description": "string",
      "thumbUrl": "string",
      "fullUrl": "string",
      "width": 0,
      "height": 0,
      "credit": {
        "name": "string",
        "url": "string"
      },
      "sourceUrl": "string"
    }
  ]
}

#The media library

GET/v1/media

Operation listMedia. Any API key of the organization may call it.

Parameters

NameInRequiredTypeDescription
cursorquerynostring
limitquerynointeger
brandIdquerynostring (uuid)
kindqueryno"image" or "video" or "document" or "audio"
folderquerynostring
tagquerynostring
missingAltqueryno"true" or "false"
unusedqueryno"true" or "false"
qquerynostring
createdAfterquerynostring (date-time)

Response 200: MediaAssetPage. A page of assets

Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 404 not_found, 422 validation_failed, 429 rate_limited, 500 internal.

curl
curl -X GET "https://app.postbroad.com/v1/media" \
  -H "Authorization: Bearer $POSTBROAD_TOKEN"
TypeScript
const res = await fetch("https://app.postbroad.com/v1/media", {
  headers: {
    Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
  },
});
const data = await res.json();
Response 200
{
  "data": [
    {
      "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
      "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
      "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
      "kind": "image",
      "mime": "string",
      "sizeBytes": 0,
      "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
      "filename": "string",
      "altText": "string",
      "folder": "string",
      "tags": [
        "string"
      ],
      "width": 0,
      "height": 0,
      "durationMs": 0,
      "provenance": {},
      "aiGenerated": false,
      "thumbnail": {
        "url": "https://example.invalid/post/1",
        "expiresAt": "2026-10-21T09:00:00Z"
      },
      "original": {
        "url": "https://example.invalid/post/1",
        "expiresAt": "2026-10-21T09:00:00Z"
      },
      "renditions": {
        "ready": 0,
        "pending": 0,
        "failed": 0
      },
      "createdAt": "2026-10-21T09:00:00Z",
      "revision": 0
    }
  ],
  "nextCursor": "string"
}

#Folders and tags of the library with counts, and how many files are unused or lack alt text

GET/v1/media-facets

Operation getMediaFacets. Any API key of the organization may call it.

Parameters

NameInRequiredTypeDescription
brandIdquerynostring (uuid)

Response 200: MediaFacets. The facets

Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 404 not_found, 422 validation_failed, 429 rate_limited, 500 internal.

curl
curl -X GET "https://app.postbroad.com/v1/media-facets" \
  -H "Authorization: Bearer $POSTBROAD_TOKEN"
TypeScript
const res = await fetch("https://app.postbroad.com/v1/media-facets", {
  headers: {
    Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
  },
});
const data = await res.json();
Response 200
{
  "total": 0,
  "unused": 0,
  "missingAlt": 0,
  "folders": [
    {
      "name": "string",
      "count": 0
    }
  ],
  "tags": [
    {
      "name": "string",
      "count": 0
    }
  ]
}

#One asset with signed URLs for its thumbnail and original

GET/v1/media/{assetId}

Operation getMediaAsset. Any API key of the organization may call it.

Parameters

NameInRequiredTypeDescription
assetIdpathyesstring (uuid)

Response 200: MediaAssetView. The asset

Errors: 401 unauthenticated, 403 forbidden, 404 not_found, 429 rate_limited, 500 internal.

curl
curl -X GET "https://app.postbroad.com/v1/media/<assetId>" \
  -H "Authorization: Bearer $POSTBROAD_TOKEN"
TypeScript
const res = await fetch("https://app.postbroad.com/v1/media/<assetId>", {
  headers: {
    Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
  },
});
const data = await res.json();
Response 200
{
  "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "kind": "image",
  "mime": "string",
  "sizeBytes": 0,
  "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
  "filename": "string",
  "altText": "string",
  "folder": "string",
  "tags": [
    "string"
  ],
  "width": 0,
  "height": 0,
  "frameCount": 0,
  "durationMs": 0,
  "provenance": {},
  "aiGenerated": false,
  "canCrop": false,
  "thumbnail": {
    "url": "https://example.invalid/post/1",
    "expiresAt": "2026-10-21T09:00:00Z"
  },
  "original": {
    "url": "https://example.invalid/post/1",
    "expiresAt": "2026-10-21T09:00:00Z"
  },
  "renditions": {
    "ready": 0,
    "pending": 0,
    "failed": 0
  },
  "createdAt": "2026-10-21T09:00:00Z",
  "revision": 0
}

#Change alt text, folder or tags

PATCH/v1/media/{assetId}

Operation updateMediaAsset. Needs a key with the scope media.manage.

Accepts an Idempotency-Key header. Add ?dry_run=true where the operation supports it to get a preview and write nothing.

Parameters

NameInRequiredTypeDescription
assetIdpathyesstring (uuid)

Request body: UpdateMediaAssetInput

FieldTypeRequiredDescription
expectedRevisionintegeryes
altTextstring or nullno
folderstring or nullno
tagsstring[]no

Response 200: MediaAssetView or UpdateMediaAssetDryRun. Pure operation preview when dry_run=true; no mutation is performed

Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 404 not_found, 409 request_in_progress, 409 revision_mismatch, 422 validation_failed, 422 idempotency_key_reused, 429 rate_limited, 500 internal.

curl
curl -X PATCH "https://app.postbroad.com/v1/media/<assetId>" \
  -H "Authorization: Bearer $POSTBROAD_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "expectedRevision": 0,
  "altText": "string",
  "folder": "string",
  "tags": [
    "string"
  ]
}'
TypeScript
const res = await fetch("https://app.postbroad.com/v1/media/<assetId>", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "expectedRevision": 0,
    "altText": "string",
    "folder": "string",
    "tags": [
      "string"
    ]
  }),
});
const data = await res.json();
Response 200
{
  "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "kind": "image",
  "mime": "string",
  "sizeBytes": 0,
  "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
  "filename": "string",
  "altText": "string",
  "folder": "string",
  "tags": [
    "string"
  ],
  "width": 0,
  "height": 0,
  "frameCount": 0,
  "durationMs": 0,
  "provenance": {},
  "aiGenerated": false,
  "canCrop": false,
  "thumbnail": {
    "url": "https://example.invalid/post/1",
    "expiresAt": "2026-10-21T09:00:00Z"
  },
  "original": {
    "url": "https://example.invalid/post/1",
    "expiresAt": "2026-10-21T09:00:00Z"
  },
  "renditions": {
    "ready": 0,
    "pending": 0,
    "failed": 0
  },
  "createdAt": "2026-10-21T09:00:00Z",
  "revision": 0
}

#Delete assets that no scheduled or draft post uses

POST/v1/media/bulk-delete

Operation bulkDeleteMedia. Needs a key with the scope media.manage.

Accepts an Idempotency-Key header. Add ?dry_run=true where the operation supports it to get a preview and write nothing.

Request body: BulkDeleteMediaInput

FieldTypeRequiredDescription
assetIdsstring (uuid)[]yes

Response 200: BulkDeleteMediaResult or BulkDeleteMediaDryRun. Pure operation preview when dry_run=true; no mutation is performed

Errors: 400 bad_request, 400 idempotency_key_required, 401 unauthenticated, 403 forbidden, 404 not_found, 409 request_in_progress, 422 validation_failed, 422 idempotency_key_reused, 429 rate_limited, 500 internal.

curl
curl -X POST "https://app.postbroad.com/v1/media/bulk-delete" \
  -H "Authorization: Bearer $POSTBROAD_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "assetIds": [
    "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01"
  ]
}'
TypeScript
const res = await fetch("https://app.postbroad.com/v1/media/bulk-delete", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "assetIds": [
      "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01"
    ]
  }),
});
const data = await res.json();
Response 200
{
  "deleted": [
    "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01"
  ],
  "inUse": [
    {
      "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
      "posts": 0
    }
  ]
}

#Renditions of an asset per media profile, with status

GET/v1/media/{assetId}/renditions

Operation listMediaRenditions. Any API key of the organization may call it.

Parameters

NameInRequiredTypeDescription
assetIdpathyesstring (uuid)

Response 200: MediaRenditionList. The renditions

Errors: 401 unauthenticated, 403 forbidden, 404 not_found, 429 rate_limited, 500 internal.

curl
curl -X GET "https://app.postbroad.com/v1/media/<assetId>/renditions" \
  -H "Authorization: Bearer $POSTBROAD_TOKEN"
TypeScript
const res = await fetch("https://app.postbroad.com/v1/media/<assetId>/renditions", {
  headers: {
    Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
  },
});
const data = await res.json();
Response 200
{
  "data": [
    {
      "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
      "profileName": "string",
      "profileHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
      "status": "queued",
      "mime": "string",
      "width": 0,
      "height": 0,
      "durationMs": 0,
      "sizeBytes": 0,
      "error": "string",
      "url": {
        "url": "https://example.invalid/post/1",
        "expiresAt": "2026-10-21T09:00:00Z"
      }
    }
  ]
}

#Suggest alt text for an image from the image itself; nothing is saved

POST/v1/media/{assetId}/alt-suggestion

Operation suggestMediaAlt. Needs a key with the scope media.manage.

Accepts an Idempotency-Key header. Add ?dry_run=true where the operation supports it to get a preview and write nothing.

Parameters

NameInRequiredTypeDescription
assetIdpathyesstring (uuid)

Response 200: AltSuggestion. The suggestion

Errors: 401 unauthenticated, 403 forbidden, 404 not_found, 409 request_in_progress, 415 unsupported_media_type, 422 idempotency_key_reused, 422 budget_exhausted, 429 rate_limited, 500 internal, 503 unavailable.

curl
curl -X POST "https://app.postbroad.com/v1/media/<assetId>/alt-suggestion" \
  -H "Authorization: Bearer $POSTBROAD_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"
TypeScript
const res = await fetch("https://app.postbroad.com/v1/media/<assetId>/alt-suggestion", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
    "Idempotency-Key": crypto.randomUUID(),
  },
});
const data = await res.json();
Response 200
{
  "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "suggestion": "string",
  "model": "string"
}

#Posts that use an asset

GET/v1/media/{assetId}/usage

Operation getMediaUsage. Any API key of the organization may call it.

Parameters

NameInRequiredTypeDescription
assetIdpathyesstring (uuid)

Response 200: MediaUsage. The posts

Errors: 401 unauthenticated, 403 forbidden, 404 not_found, 429 rate_limited, 500 internal.

curl
curl -X GET "https://app.postbroad.com/v1/media/<assetId>/usage" \
  -H "Authorization: Bearer $POSTBROAD_TOKEN"
TypeScript
const res = await fetch("https://app.postbroad.com/v1/media/<assetId>/usage", {
  headers: {
    Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
  },
});
const data = await res.json();
Response 200
{
  "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
  "posts": [
    {
      "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
      "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
      "versionNo": 0,
      "state": "draft",
      "excerpt": "string"
    }
  ]
}

Schemas

Every type the operations above use

#AltSuggestion

FieldTypeRequiredDescription
assetIdstring (uuid)yes
suggestionstringyes
modelstring or nullyes

#BulkDeleteMediaDryRun

FieldTypeRequiredDescription
resourcesobject[]yes
effectsobject[]yes
contentobject[]yes
detailsobject[]yes
preflightPreflightResultyes
pendingChecksstring[]yes
costobjectyes
operationId"bulkDeleteMedia"yes

#BulkDeleteMediaInput

FieldTypeRequiredDescription
assetIdsstring (uuid)[]yes

#BulkDeleteMediaResult

FieldTypeRequiredDescription
deletedstring (uuid)[]yes
inUseobject[]yes

#ClientRender

FieldTypeRequiredDescription
v1yes
toolstringyes
action"as_is" or "remux" or "convert"yes
networksstring[]yes
factsobjectyes
actionsstring[]yes
timingsmap of integeryes

#CompleteUploadDryRun

FieldTypeRequiredDescription
resourcesobject[]yes
effectsobject[]yes
contentobject[]yes
detailsobject[]yes
preflightPreflightResultyes
pendingChecksstring[]yes
costobjectyes
operationId"completeUpload"yes

#CostEstimate

FieldTypeRequiredDescription
unitstringyes
amountMicrosintegeryes
currency"USD"yes
billedBy"postbroad" or "third_party"yes

#CreateUploadDryRun

FieldTypeRequiredDescription
resourcesobject[]yes
effectsobject[]yes
contentobject[]yes
detailsobject[]yes
preflightPreflightResultyes
pendingChecksstring[]yes
costobjectyes
operationId"createUpload"yes

#CreateUploadInput

FieldTypeRequiredDescription
mime"image/jpeg" or "image/png" or "image/webp" or "image/gif" or "image/avif" or "video/mp4" or "video/quicktime" or "video/webm" or "application/pdf" or "audio/mpeg" or "audio/mp4"yes
sizeintegeryes
sha256stringyes
filenamestring or nullno
brandIdstring (uuid) or nullno
sourceAssetIdstring (uuid)no
clientRenderClientRenderno

#CreateUploadResult

FieldTypeRequiredDescription
uploadMediaUploadViewyes
targetUploadTargetyes

#DestinationKind

Type: "feed" or "board" or "subreddit" or "chat" or "channel" or "community" or "group" or "forum" or "list" or "publication" or "organization" or "playlist"

#DispatchingRef

A delivery that had already started (or gone live) when the change committed; it may still publish.

FieldTypeRequiredDescription
deliveryIdstring (uuid)yes
channelIdstring (uuid)yes
state"sending" or "accepted" or "processing" or "published" or "unknown"yes
claimedAtstring (date-time) or nullyes
versionNointegeryes

#ErrorCode

Type: "bad_request" or "org_required" or "unauthenticated" or "reauth_required" or "invalid_credentials" or "forbidden" or "not_found" or "method_not_allowed" or "idempotency_key_required" or "idempotency_key_reused" or "request_in_progress" or "revision_mismatch" or "preview_required" or "preview_stale" or "dispatch_started" or "duplicate_risk_unacknowledged" or "conflict" or "validation_failed" or "rule_violation" or "budget_exhausted" or "limit_reached" or "organization_frozen" or "approval_required" or "unsupported_media_type" or "payload_too_large" or "rate_limited" or "internal" or "unavailable" or "busy" or "timeout"

#ImportMediaDryRun

FieldTypeRequiredDescription
resourcesobject[]yes
effectsobject[]yes
contentobject[]yes
detailsobject[]yes
preflightPreflightResultyes
pendingChecksstring[]yes
costobjectyes
operationId"importMedia"yes

#ImportMediaInput

FieldTypeRequiredDescription
brandIdstring (uuid) or nullno
sourceobjectyes

#MediaAssetPage

FieldTypeRequiredDescription
dataMediaAssetView[]yes
nextCursorstring or nullyes

#MediaAssetView

FieldTypeRequiredDescription
idstring (uuid)yes
brandIdstring (uuid) or nullyes
workspaceIdstring (uuid) or nullyes
kindMediaKindyes
mimestringyes
sizeBytesintegeryes
sha256stringyes
filenamestring or nullyes
altTextstring or nullyes
folderstring or nullyes
tagsstring[]yes
widthinteger or nullyes
heightinteger or nullyes
frameCountinteger or nullno
durationMsinteger or nullyes
provenancemap of anyyes
aiGeneratedbooleanyes
canCropbooleanno
thumbnailSignedUrl or nullyes
originalSignedUrl or nullyes
renditionsobjectyes
createdAtstring (date-time)yes
revisionintegeryes

#MediaFacets

FieldTypeRequiredDescription
totalintegeryes
unusedintegeryes
missingAltintegeryes
foldersobject[]yes
tagsobject[]yes

#MediaKind

Type: "image" or "video" or "document" or "audio"

#MediaRenditionList

FieldTypeRequiredDescription
dataMediaRenditionView[]yes

#MediaRenditionView

FieldTypeRequiredDescription
idstring (uuid)yes
profileNamestring or nullyes
profileHashstringyes
status"queued" or "running" or "ready" or "failed" or "evicted"yes
mimestring or nullyes
widthinteger or nullyes
heightinteger or nullyes
durationMsinteger or nullyes
sizeBytesinteger or nullyes
errorstring or nullyes
urlSignedUrl or nullyes

#MediaUploadView

FieldTypeRequiredDescription
idstring (uuid)yes
brandIdstring (uuid) or nullyes
status"pending" or "uploaded" or "ingested" or "rejected" or "expired"yes
store"fs" or "s3"yes
declaredMimestringyes
declaredSizeintegeryes
declaredSha256stringyes
filenamestring or nullyes
expiresAtstring (date-time)yes
mediaAssetIdstring (uuid) or nullyes
errorstring or nullyes

#MediaUsage

FieldTypeRequiredDescription
assetIdstring (uuid)yes
postsobject[]yes

#Network

Type: "facebook" or "instagram" or "threads" or "linkedin" or "bluesky" or "x" or "tiktok" or "youtube" or "google_business_profile" or "reddit" or "telegram" or "discord" or "slack" or "pinterest" or "dribbble" or "mastodon" or "whop" or "twitch" or "kick" or "farcaster" or "vk" or "lemmy" or "mewe" or "nostr" or "listmonk" or "wordpress" or "medium" or "hashnode" or "devto" or "ghost" or "snapchat" or "odnoklassniki" or "tumblr" or "flickr" or "vimeo" or "dailymotion" or "soundcloud" or "beehiiv" or "discourse" or "circle" or "mighty_networks" or "viber" or "line" or "hatena_blog" or "wechat" or "kuaishou" or "zalo" or "band" or "pixelfed" or "misskey" or "peertube" or "hive" or "lens" or "moltbook" or "facebook_groups" or "facebook_profile" or "substack_notes" or "skool"

#PreflightResult

Type: object

#PreviewDestination

FieldTypeRequiredDescription
channelIdstring (uuid)yes
networkNetworkyes
handlestring or nullyes
scheduledAtstring (date-time) or nullyes
payloadHashstringyes
payloadPreviewPayloadyesWhat will be sent to one destination, from the frozen payload model.
manualHandoffobjectno
preflightPreflightResultyes
pendingChecksstring[]yes
costCostEstimate[]yes
verificationLevelVerificationLevelyes

#PreviewPayload

What will be sent to one destination, from the frozen payload model.

FieldTypeRequiredDescription
v1yes
orgIdstring (uuid)yes
brandIdstring (uuid)yes
postVersionIdstring (uuid)yes
contentHashstringyes
variantIdstring (uuid)yes
channelIdstring (uuid)yes
networkstringyes
connectorVersionstringyes
destinationobjectyes
intendedVisibility"public" or "followers" or "private" or "draft" or "inbox" or "scheduled_native"yes
aiLabelbooleanyes
utmmap of stringyes
partsobject[]yes

#PreviewResult

FieldTypeRequiredDescription
receiptstringyes
expiresAtstring (date-time)yes
postIdstring (uuid)yes
versionNointegeryes
contentHashstringyes
mode"schedule" or "publish_now"yes
blockedbooleanyes
requiresReviewbooleanyes
destinationsPreviewDestination[]yes
totalCostCostEstimate[]yes

#Problem

The one error body of every route (RFC 9457 problem details with a stable code). Another organization's resource, a Postbroad-Org the member does not belong to and a resource outside a token's brand allowlist all answer 404 not_found, never 403.

FieldTypeRequiredDescription
typestringyes
titlestringyes
statusintegeryes
codeErrorCodeyes
detailstringyes
requestIdstringyes
retryablebooleanyes
errorsProblemItem[]no
previewPreviewResultno
currentRevisionintegerno
alreadyDispatchingDispatchingRef[]no
limitobjectno
retryAfterSecondsintegerno

#ProblemItem

FieldTypeRequiredDescription
pathstringyes
rulestringyes
messagestringyes
channelIdstring (uuid) or nullno

#SignedUrl

A signed media URL. Bearer access until it expires. In an answer that carries an ETag the URL is minted per fixed window: the expiry is rounded up to the next full hour plus one hour, and the signature is the same within that window, so the ETag changes only when the content does and polling with If-None-Match still gets 304.

FieldTypeRequiredDescription
urlstring (uri)yes
expiresAtstring (date-time)yes

#StockSearch

FieldTypeRequiredDescription
providers"unsplash" or "pexels"[]yes
resultsobject[]yes

#UpdateMediaAssetDryRun

FieldTypeRequiredDescription
resourcesobject[]yes
effectsobject[]yes
contentobject[]yes
detailsobject[]yes
preflightPreflightResultyes
pendingChecksstring[]yes
costobjectyes
operationId"updateMediaAsset"yes

#UpdateMediaAssetInput

FieldTypeRequiredDescription
expectedRevisionintegeryes
altTextstring or nullno
folderstring or nullno
tagsstring[]no

#UploadTarget

Type: object

#VerificationLevel

Type: "full" or "url_only" or "accepted_no_readback" or "manual"

Last generated 21 Nov 2026, from the contracts the API runs on.