Start free
Docs · Media

API reference

Media

Read as Markdown

On this page
  1. Clean up old media
  2. Preview a clean-up
  3. List media
  4. Delete media
  5. Tag media with formats
  6. Move media to a folder
  7. Get a media
  8. Rename a media or set its alt text
  9. Get a download URL
  10. List the posts using a media
  11. Get a video's transcript

Base URL https://api.beplan.io/v1. Authentication, envelopes, pagination, idempotency and rate limits: conventions. OpenAPI document: openapi.json.

All 11 Media operations

Clean up old media

POST /organizations/{organizationId}/workspaces/{workspaceId}/media-library/clean
Beta Deletes media.clean
Scope
media:write
Role permission
Delete media (media:delete)
Effect
Deletes data or cannot be undone.
Idempotency
Send an Idempotency-Key to retry safely: the same key with the same body within 24 hours returns the stored response.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Deletes the media media.clean.preview counts for the same olderThanMonths and excludedFolderIds, and frees their storage; this cannot be undone (the published posts keep their history). Returns what was deleted. Preview first. Needs a plan with media clean-up (402 PLAN_UPGRADE_REQUIRED).

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)

Request body JSON, required

object · MediaCleanBody

  • olderThanMonthsintegerrequired
    from 1 to 24
  • excludedFolderIdsarray of string (uuid)required
    at most 200 items

Responses

200 OK

object · MediaCleanResponse

  • dataobjectrequired
    2fields
    • mediaCountnumberrequired
    • totalBytesnumberrequired

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 402, 403, 404, 409, 413, 415, 429, 500.

Error codes

Status Code Message
400 VALIDATION_FAILED Some of the information sent is invalid.
402 PLAN_UPGRADE_REQUIRED Your current plan doesn't include this feature.
403 MISSING_PERMISSION You don't have permission to do this.
404 ORGANIZATION_NOT_FOUND This organization doesn't exist or you're not a member of it.
404 WORKSPACE_NOT_FOUND This workspace doesn't exist or you don't have access to it.
13 more that every operation can answer (tokens, scopes, limits)
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
409 CONFLICT This changed in the meantime. Refresh and try again.
409 IDEMPOTENCY_KEY_REUSED This Idempotency-Key was already used for a different request. Send a new key.
413 PAYLOAD_TOO_LARGE This request is too large to be sent with an Idempotency-Key. Send a smaller body or no key.
415 UNSUPPORTED_MEDIA_TYPE This API reads JSON bodies only. Send the body as JSON with `Content-Type: application/json`.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

Media older than a year, everywhere

curl
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/clean" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "olderThanMonths": 12,
  "excludedFolderIds": []
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/clean", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "olderThanMonths": 12,
    "excludedFolderIds": []
  }),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import uuid

import requests

response = requests.post(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/clean",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "olderThanMonths": 12,
        "excludedFolderIds": [],
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "mediaCount": 0,
    "totalBytes": 0
  }
}

Preview a clean-up

GET /organizations/{organizationId}/workspaces/{workspaceId}/media-library/clean/preview
Beta Reads only media.clean.preview
Scope
media:read
Role permission
Delete media (media:delete)
Effect
Changes nothing.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Counts the media a clean-up would delete, and their size in bytes: media only used in posts published (or failed) more than olderThanMonths months ago (1–24), never versioned, outside excludedFolderId (repeat it; subfolders are excluded too). Nothing is deleted. Needs a plan with media clean-up (402 PLAN_UPGRADE_REQUIRED).

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
olderThanMonths required query integer from 1 to 24
excludedFolderId optional query one of

Responses

200 OK

object · MediaCleanResponse

  • dataobjectrequired
    2fields
    • mediaCountnumberrequired
    • totalBytesnumberrequired

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 402, 403, 404, 429, 500.

Error codes

Status Code Message
400 VALIDATION_FAILED Some of the information sent is invalid.
402 PLAN_UPGRADE_REQUIRED Your current plan doesn't include this feature.
403 MISSING_PERMISSION You don't have permission to do this.
404 ORGANIZATION_NOT_FOUND This organization doesn't exist or you're not a member of it.
404 WORKSPACE_NOT_FOUND This workspace doesn't exist or you don't have access to it.
9 more that every operation can answer (tokens, scopes, limits)
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

Media older than 6 months

curl
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/clean/preview?olderThanMonths=6" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/clean/preview?olderThanMonths=6", {
  method: "GET",
  headers: {
    Authorization: "Bearer beplan_pat_…",
  },
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import requests

response = requests.get(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/clean/preview?olderThanMonths=6",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "mediaCount": 0,
    "totalBytes": 0
  }
}

List media

GET /organizations/{organizationId}/workspaces/{workspaceId}/media-library/items
Beta Reads only media.list
Scope
media:read
Role permission
Any of: Upload media (media:create), Edit media (media:update), Delete media (media:delete), Review media (media:review)
Effect
Changes nothing.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Lists the workspace's media library, newest first: images, videos and GIFs that finished uploading (media still in review or raw footage are listed by their own operations). Filter with folderId (a folder; with search, that folder and its subfolders), search (name or alt text contains; with transcripts on, also what is said in videos, and such items carry transcriptMatch), type, usage and formatId (repeat it; none for media without a format). Paginated with limit (1–100, default 25) and the opaque cursor of the previous page. URLs are signed and last about an hour: fetch them again rather than storing them. playback is always null through the API (video playback is for the Beplan app); use mediaUrl or the download URL to get the file.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
limit optional query integer from 1 to 100
cursor optional query string at most 512 characters
folderId optional query string (uuid)
search optional query string at most 200 characters
type optional query string One of all, image, video, picture, audio, visual.
usage optional query string One of all, unused, used.
formatId optional query one of
origin optional query string One of library, clipEditor.

Responses

200 OK

object · ListMediaResponse

  • dataarray of objectrequired
    21fields in each item
    • idstringrequired
    • folderIdstringrequirednullable
      The folder holding the media; null at the root of the library.
    • filenamestringrequired
    • altTextstringrequirednullable
    • mediaTypestringrequired
      One of (may gain values): image, video, gif, audio
    • mimeTypestringrequirednullable
    • sizenumberrequirednullable
      File size in bytes, when known.
    • widthnumberrequirednullable
      Width in pixels, when known (images at upload, videos once processed); null for audio.
    • heightnumberrequirednullable
      Height in pixels, when known (images at upload, videos once processed); null for audio.
    • aspectRationumberrequired
      Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
    • durationnumberrequirednullable
      Length in seconds, for videos, GIFs and audio once known (null for images).
    • waveformarray of numberrequirednullable
      Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over duration. null while processing, when processing failed, and for every other type.
    • createdAtstring (date-time)required
    • formatsarray of objectrequired
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • usagestringrequired
      Where the media is used: unused; used in a post still to publish; published only in posts already published (or failed).
      One of: unused, used, published
    • processingobjectrequired
      Upload and processing state: processing (videos and audio are being processed), ready, or failed with a readable error. A media can be put in a post while processing.
      2fields
      • statestringrequired
        One of (may gain values): processing, ready, failed
      • errorstringrequirednullable
    • previewUrlstringrequirednullable
      Signed URL (valid about one hour) of the image itself or of the video's poster; null while there is none yet, and always for audio.
    • mediaUrlstringrequired
      Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's download-url.
    • playbackobjectrequirednullable
      HLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), else null. Always null through the public API (/v1) and MCP: use mediaUrl, or the media's download-url, to fetch the file.
      1field
      • manifestUrlstringrequired
    • publishCopyobjectrequirednullable
      The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. null when every platform takes the original, or while it is being made.
      4fields
      • mimeTypestringrequired
      • widthnumberrequired
      • heightnumberrequired
      • sizenumberrequired
    • transcriptMatchobject · MediaTranscriptMatchoptional
      3fields
      • snippetstringrequired
      • startMsnumberrequired
      • sourcestringoptional
        One of: speech, scene
  • pageobjectrequired
    2fields
    • nextCursorstringrequirednullable
    • hasMorebooleanrequired

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 429, 500.

Error codes

Status Code Message
400 VALIDATION_FAILED Some of the information sent is invalid.
403 MISSING_PERMISSION You don't have permission to do this.
404 ORGANIZATION_NOT_FOUND This organization doesn't exist or you're not a member of it.
404 WORKSPACE_NOT_FOUND This workspace doesn't exist or you don't have access to it.
9 more that every operation can answer (tokens, scopes, limits)
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

The first page of images

curl
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items?type=image&limit=25" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items?type=image&limit=25", {
  method: "GET",
  headers: {
    Authorization: "Bearer beplan_pat_…",
  },
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import requests

response = requests.get(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items?type=image&limit=25",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": [
    {
      "id": "0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11",
      "folderId": null,
      "filename": "launch-teaser.jpg",
      "altText": "Our new studio at sunrise",
      "mediaType": "image",
      "mimeType": "image/jpeg",
      "size": 482133,
      "width": 1080,
      "height": 1350,
      "aspectRatio": 0.8,
      "duration": null,
      "waveform": null,
      "createdAt": "2026-11-18T09:30:00.000Z",
      "formats": [],
      "usage": "unused",
      "processing": {
        "state": "ready",
        "error": null
      },
      "previewUrl": "https://storage.beplan.io/org-media/…/preview?X-Amz-Signature=…",
      "mediaUrl": "https://storage.beplan.io/org-media/…?X-Amz-Signature=…",
      "playback": null,
      "publishCopy": null
    }
  ],
  "page": {
    "nextCursor": null,
    "hasMore": false
  }
}

Delete media

POST /organizations/{organizationId}/workspaces/{workspaceId}/media-library/items/delete
Beta Deletes media.delete
Scope
media:write
Role permission
Delete media (media:delete)
Effect
Deletes data or cannot be undone.
Idempotency
Send an Idempotency-Key to retry safely: the same key with the same body within 24 hours returns the stored response.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Deletes up to 500 library media. All or nothing. A media used in a post is hidden from the library but kept, so the post still publishes; the others are deleted with their files, which cannot be undone. Returns how many media were deleted. Media in review are removed with media.review.remove.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)

Request body JSON, required

object · DeleteMediaBody

  • mediaIdsarray of string (uuid)required
    1–500 items

Responses

200 OK

object · BulkMediaResponse

  • dataobjectrequired
    1field
    • countnumberrequired

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 409, 413, 415, 429, 500.

Error codes

Status Code Message
400 VALIDATION_FAILED Some of the information sent is invalid.
403 MISSING_PERMISSION You don't have permission to do this.
404 MEDIA_NOT_FOUND This media doesn't exist or was deleted.
404 ORGANIZATION_NOT_FOUND This organization doesn't exist or you're not a member of it.
404 WORKSPACE_NOT_FOUND This workspace doesn't exist or you don't have access to it.
13 more that every operation can answer (tokens, scopes, limits)
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
409 CONFLICT This changed in the meantime. Refresh and try again.
409 IDEMPOTENCY_KEY_REUSED This Idempotency-Key was already used for a different request. Send a new key.
413 PAYLOAD_TOO_LARGE This request is too large to be sent with an Idempotency-Key. Send a smaller body or no key.
415 UNSUPPORTED_MEDIA_TYPE This API reads JSON bodies only. Send the body as JSON with `Content-Type: application/json`.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

Delete one media

curl
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/delete" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "mediaIds": [
    "0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11"
  ]
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/delete", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "mediaIds": [
      "0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11"
    ]
  }),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import uuid

import requests

response = requests.post(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/delete",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "mediaIds": [
            "0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11",
        ],
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "count": 1
  }
}

Tag media with formats

POST /organizations/{organizationId}/workspaces/{workspaceId}/media-library/items/formats
Beta Changes data media.formats.update
Scope
media:write
Role permission
Edit media (media:update)
Effect
Changes data in Beplan.
Idempotency
Send an Idempotency-Key to retry safely: the same key with the same body within 24 hours returns the stored response.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Adds (add) and removes (remove) the workspace's formats (its content categories, e.g. "Tutorial") on up to 500 library media at once. All or nothing: an unknown media or format refuses the whole request. Returns how many media changed.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)

Request body JSON, required

object · UpdateMediaFormatsBody

  • mediaIdsarray of string (uuid)required
    1–500 items
  • addarray of string (uuid)required
    at most 50 items
  • removearray of string (uuid)required
    at most 50 items

Responses

200 OK

object · BulkMediaResponse

  • dataobjectrequired
    1field
    • countnumberrequired

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 409, 413, 415, 429, 500.

Error codes

Status Code Message
400 VALIDATION_FAILED Some of the information sent is invalid.
403 MISSING_PERMISSION You don't have permission to do this.
404 FORMAT_NOT_FOUND One of the formats doesn't exist in this workspace.
404 MEDIA_NOT_FOUND This media doesn't exist or was deleted.
404 ORGANIZATION_NOT_FOUND This organization doesn't exist or you're not a member of it.
404 WORKSPACE_NOT_FOUND This workspace doesn't exist or you don't have access to it.
13 more that every operation can answer (tokens, scopes, limits)
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
409 CONFLICT This changed in the meantime. Refresh and try again.
409 IDEMPOTENCY_KEY_REUSED This Idempotency-Key was already used for a different request. Send a new key.
413 PAYLOAD_TOO_LARGE This request is too large to be sent with an Idempotency-Key. Send a smaller body or no key.
415 UNSUPPORTED_MEDIA_TYPE This API reads JSON bodies only. Send the body as JSON with `Content-Type: application/json`.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

Remove nothing, add nothing (a no-op)

curl
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/formats" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "mediaIds": [
    "0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11"
  ],
  "add": [],
  "remove": []
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/formats", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "mediaIds": [
      "0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11"
    ],
    "add": [],
    "remove": []
  }),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import uuid

import requests

response = requests.post(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/formats",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "mediaIds": [
            "0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11",
        ],
        "add": [],
        "remove": [],
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "count": 1
  }
}

Move media to a folder

POST /organizations/{organizationId}/workspaces/{workspaceId}/media-library/items/move
Beta Changes data media.move
Scope
media:write
Role permission
Edit media (media:update)
Effect
Changes data in Beplan.
Idempotency
Send an Idempotency-Key to retry safely: the same key with the same body within 24 hours returns the stored response.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Moves up to 500 library media into a folder (folderId, from media.folders.list), or to the root with null. All or nothing: one id that isn't a library media of the workspace refuses the whole request. Returns how many media moved.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)

Request body JSON, required

object · MoveMediaBody

  • mediaIdsarray of string (uuid)required
    1–500 items
  • folderIdstring (uuid)requirednullable

Responses

200 OK

object · BulkMediaResponse

  • dataobjectrequired
    1field
    • countnumberrequired

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 409, 413, 415, 429, 500.

Error codes

Status Code Message
400 VALIDATION_FAILED Some of the information sent is invalid.
403 MISSING_PERMISSION You don't have permission to do this.
404 FOLDER_NOT_FOUND This folder doesn't exist in this workspace.
404 MEDIA_NOT_FOUND This media doesn't exist or was deleted.
404 ORGANIZATION_NOT_FOUND This organization doesn't exist or you're not a member of it.
404 WORKSPACE_NOT_FOUND This workspace doesn't exist or you don't have access to it.
13 more that every operation can answer (tokens, scopes, limits)
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
409 CONFLICT This changed in the meantime. Refresh and try again.
409 IDEMPOTENCY_KEY_REUSED This Idempotency-Key was already used for a different request. Send a new key.
413 PAYLOAD_TOO_LARGE This request is too large to be sent with an Idempotency-Key. Send a smaller body or no key.
415 UNSUPPORTED_MEDIA_TYPE This API reads JSON bodies only. Send the body as JSON with `Content-Type: application/json`.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

Move two media into a folder

curl
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/move" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "mediaIds": [
    "0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11"
  ],
  "folderId": "6d1c2b7a-1f2e-4b8c-9a3d-5e6f7a8b9c0d"
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/move", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "mediaIds": [
      "0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11"
    ],
    "folderId": "6d1c2b7a-1f2e-4b8c-9a3d-5e6f7a8b9c0d"
  }),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import uuid

import requests

response = requests.post(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/move",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "mediaIds": [
            "0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11",
        ],
        "folderId": "6d1c2b7a-1f2e-4b8c-9a3d-5e6f7a8b9c0d",
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "count": 1
  }
}

Get a media

GET /organizations/{organizationId}/workspaces/{workspaceId}/media-library/items/{mediaId}
Beta Reads only media.get
Scope
media:read
Role permission
Any member who can see it
Effect
Changes nothing.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Returns one media of the workspace, whatever its review state (reviewStatus: null for a plain library media, else pending_review, changes_requested, approved or raw_footage). Use it to follow a video's processing after an upload (processing.state). URLs are signed and last about an hour: fetch them again rather than storing them. playback is always null through the API (video playback is for the Beplan app); use mediaUrl or the download URL to get the file.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
mediaId required path string (uuid)

Responses

200 OK

object · MediaDetailResponse

  • dataobject · MediaDetailrequired
    22fields
    • idstringrequired
    • folderIdstringrequirednullable
      The folder holding the media; null at the root of the library.
    • filenamestringrequired
    • altTextstringrequirednullable
    • mediaTypestringrequired
      One of (may gain values): image, video, gif, audio
    • mimeTypestringrequirednullable
    • sizenumberrequirednullable
      File size in bytes, when known.
    • widthnumberrequirednullable
      Width in pixels, when known (images at upload, videos once processed); null for audio.
    • heightnumberrequirednullable
      Height in pixels, when known (images at upload, videos once processed); null for audio.
    • aspectRationumberrequired
      Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
    • durationnumberrequirednullable
      Length in seconds, for videos, GIFs and audio once known (null for images).
    • waveformarray of numberrequirednullable
      Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over duration. null while processing, when processing failed, and for every other type.
    • createdAtstring (date-time)required
    • formatsarray of objectrequired
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • usagestringrequired
      Where the media is used: unused; used in a post still to publish; published only in posts already published (or failed).
      One of: unused, used, published
    • processingobjectrequired
      Upload and processing state: processing (videos and audio are being processed), ready, or failed with a readable error. A media can be put in a post while processing.
      2fields
      • statestringrequired
        One of (may gain values): processing, ready, failed
      • errorstringrequirednullable
    • previewUrlstringrequirednullable
      Signed URL (valid about one hour) of the image itself or of the video's poster; null while there is none yet, and always for audio.
    • mediaUrlstringrequired
      Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's download-url.
    • playbackobjectrequirednullable
      HLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), else null. Always null through the public API (/v1) and MCP: use mediaUrl, or the media's download-url, to fetch the file.
      1field
      • manifestUrlstringrequired
    • publishCopyobjectrequirednullable
      The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. null when every platform takes the original, or while it is being made.
      4fields
      • mimeTypestringrequired
      • widthnumberrequired
      • heightnumberrequired
      • sizenumberrequired
    • transcriptMatchobject · MediaTranscriptMatchoptional
      3fields
      • snippetstringrequired
      • startMsnumberrequired
      • sourcestringoptional
        One of: speech, scene
    • reviewStatusstringrequirednullable
      One of (may gain values): pending_review, changes_requested, approved, raw_footage

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 429, 500.

Error codes

Status Code Message
404 MEDIA_NOT_FOUND This media doesn't exist or was deleted.
404 ORGANIZATION_NOT_FOUND This organization doesn't exist or you're not a member of it.
404 WORKSPACE_NOT_FOUND This workspace doesn't exist or you don't have access to it.
10 more that every operation can answer (tokens, scopes, limits)
400 VALIDATION_FAILED Some of the information sent is invalid.
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

A ready image

curl
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11", {
  method: "GET",
  headers: {
    Authorization: "Bearer beplan_pat_…",
  },
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import requests

response = requests.get(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "id": "0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11",
    "folderId": null,
    "filename": "launch-teaser.jpg",
    "altText": "Our new studio at sunrise",
    "mediaType": "image",
    "mimeType": "image/jpeg",
    "size": 482133,
    "width": 1080,
    "height": 1350,
    "aspectRatio": 0.8,
    "duration": null,
    "waveform": null,
    "createdAt": "2026-11-18T09:30:00.000Z",
    "formats": [],
    "usage": "unused",
    "processing": {
      "state": "ready",
      "error": null
    },
    "previewUrl": "https://storage.beplan.io/org-media/…/preview?X-Amz-Signature=…",
    "mediaUrl": "https://storage.beplan.io/org-media/…?X-Amz-Signature=…",
    "playback": null,
    "publishCopy": null,
    "reviewStatus": null
  }
}

Rename a media or set its alt text

PATCH /organizations/{organizationId}/workspaces/{workspaceId}/media-library/items/{mediaId}
Beta Changes data media.update
Scope
media:write
Role permission
Edit media (media:update)
Effect
Changes data in Beplan.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Changes a library media's filename and/or altText (null clears it; alt text is what screen readers say, and is sent to the platforms that take it). Fields left out are kept. Returns the media. When the organization requires approval for posts from integrations, changing altText of a media in posts that are scheduled or waiting for approval answers 422 MEDIA_IN_POSTS_UNDER_APPROVAL (change it in Beplan).

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
mediaId required path string (uuid)

Request body JSON, required

object · UpdateMediaBody

  • filenamestringoptional
    1–255 characters
  • altTextstringoptionalnullable
    at most 1000 characters

Responses

200 OK

object · MediaItemResponse

  • dataobject · MediaItemrequired
    21fields
    • idstringrequired
    • folderIdstringrequirednullable
      The folder holding the media; null at the root of the library.
    • filenamestringrequired
    • altTextstringrequirednullable
    • mediaTypestringrequired
      One of (may gain values): image, video, gif, audio
    • mimeTypestringrequirednullable
    • sizenumberrequirednullable
      File size in bytes, when known.
    • widthnumberrequirednullable
      Width in pixels, when known (images at upload, videos once processed); null for audio.
    • heightnumberrequirednullable
      Height in pixels, when known (images at upload, videos once processed); null for audio.
    • aspectRationumberrequired
      Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
    • durationnumberrequirednullable
      Length in seconds, for videos, GIFs and audio once known (null for images).
    • waveformarray of numberrequirednullable
      Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over duration. null while processing, when processing failed, and for every other type.
    • createdAtstring (date-time)required
    • formatsarray of objectrequired
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • usagestringrequired
      Where the media is used: unused; used in a post still to publish; published only in posts already published (or failed).
      One of: unused, used, published
    • processingobjectrequired
      Upload and processing state: processing (videos and audio are being processed), ready, or failed with a readable error. A media can be put in a post while processing.
      2fields
      • statestringrequired
        One of (may gain values): processing, ready, failed
      • errorstringrequirednullable
    • previewUrlstringrequirednullable
      Signed URL (valid about one hour) of the image itself or of the video's poster; null while there is none yet, and always for audio.
    • mediaUrlstringrequired
      Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's download-url.
    • playbackobjectrequirednullable
      HLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), else null. Always null through the public API (/v1) and MCP: use mediaUrl, or the media's download-url, to fetch the file.
      1field
      • manifestUrlstringrequired
    • publishCopyobjectrequirednullable
      The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. null when every platform takes the original, or while it is being made.
      4fields
      • mimeTypestringrequired
      • widthnumberrequired
      • heightnumberrequired
      • sizenumberrequired
    • transcriptMatchobject · MediaTranscriptMatchoptional
      3fields
      • snippetstringrequired
      • startMsnumberrequired
      • sourcestringoptional
        One of: speech, scene

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 413, 415, 422, 429, 500.

Error codes

Status Code Message
400 VALIDATION_FAILED Some of the information sent is invalid.
403 MISSING_PERMISSION You don't have permission to do this.
404 MEDIA_NOT_FOUND This media doesn't exist or was deleted.
404 ORGANIZATION_NOT_FOUND This organization doesn't exist or you're not a member of it.
404 WORKSPACE_NOT_FOUND This workspace doesn't exist or you don't have access to it.
422 MEDIA_IN_POSTS_UNDER_APPROVAL This media is in posts that are scheduled or waiting for approval, and this organization requires approval for posts from integrations. Change it in Beplan, or take it out of those posts first.
11 more that every operation can answer (tokens, scopes, limits)
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
413 PAYLOAD_TOO_LARGE This request is too large to be sent with an Idempotency-Key. Send a smaller body or no key.
415 UNSUPPORTED_MEDIA_TYPE This API reads JSON bodies only. Send the body as JSON with `Content-Type: application/json`.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

Set the alt text

curl
curl -X PATCH "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "altText": "Our new studio at sunrise"
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11", {
  method: "PATCH",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "altText": "Our new studio at sunrise"
  }),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import requests

response = requests.patch(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11",
    headers={"Authorization": "Bearer beplan_pat_…"},
    json={
        "altText": "Our new studio at sunrise",
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "id": "0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11",
    "folderId": null,
    "filename": "launch-teaser.jpg",
    "altText": "Our new studio at sunrise",
    "mediaType": "image",
    "mimeType": "image/jpeg",
    "size": 482133,
    "width": 1080,
    "height": 1350,
    "aspectRatio": 0.8,
    "duration": null,
    "waveform": null,
    "createdAt": "2026-11-18T09:30:00.000Z",
    "formats": [],
    "usage": "unused",
    "processing": {
      "state": "ready",
      "error": null
    },
    "previewUrl": "https://storage.beplan.io/org-media/…/preview?X-Amz-Signature=…",
    "mediaUrl": "https://storage.beplan.io/org-media/…?X-Amz-Signature=…",
    "playback": null,
    "publishCopy": null
  }
}

Get a download URL

GET /organizations/{organizationId}/workspaces/{workspaceId}/media-library/items/{mediaId}/download-url
Beta Reads only media.downloadUrl.get
Scope
media:read
Role permission
Any of: Upload media (media:create), Edit media (media:update), Delete media (media:delete), Review media (media:review)
Effect
Changes nothing.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Returns a signed URL (valid about one hour, no Authorization header needed) that downloads the media's original file under its name. Ask for a new one when it expires.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
mediaId required path string (uuid)

Responses

200 OK

object · MediaDownloadUrlResponse

  • dataobjectrequired
    1field
    • urlstringrequired

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 429, 500.

Error codes

Status Code Message
403 MISSING_PERMISSION You don't have permission to do this.
404 MEDIA_NOT_FOUND This media doesn't exist or was deleted.
404 ORGANIZATION_NOT_FOUND This organization doesn't exist or you're not a member of it.
404 WORKSPACE_NOT_FOUND This workspace doesn't exist or you don't have access to it.
10 more that every operation can answer (tokens, scopes, limits)
400 VALIDATION_FAILED Some of the information sent is invalid.
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

The original file

curl
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11/download-url" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11/download-url", {
  method: "GET",
  headers: {
    Authorization: "Bearer beplan_pat_…",
  },
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import requests

response = requests.get(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11/download-url",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "url": "https://storage.beplan.io/org-media/…?X-Amz-Signature=…"
  }
}

List the posts using a media

GET /organizations/{organizationId}/workspaces/{workspaceId}/media-library/items/{mediaId}/posts
Beta Reads only media.posts.list
Scope
media:read
Role permission
Any member who can see it
Effect
Changes nothing.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Lists up to 10 posts of the workspace that hold the media (posts still to publish first, then the latest), with their id, title, status and time (scheduledAt, null while unscheduled); total counts them all. Without posts:read, status and scheduledAt are null. Check it before deleting a media.

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
mediaId required path string (uuid)

Responses

200 OK

object · MediaPostsResponse

  • dataobjectrequired
    2fields
    • postsarray of objectrequired
      4fields in each item
      • idstringrequired
      • titlestringrequired
      • statusstringrequirednullable
        Where the post stands; null for an integration that does not hold posts:read.
        One of (may gain values): idea, in_progress, in_review, ready, scheduled, in_process, posted, failed
      • scheduledAtstring (date-time)requirednullable
        When it goes (or went) out; null while unscheduled, and for an integration that does not hold posts:read.
    • totalintegerrequired
      at least 0

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 429, 500.

Error codes

Status Code Message
404 MEDIA_NOT_FOUND This media doesn't exist or was deleted.
404 ORGANIZATION_NOT_FOUND This organization doesn't exist or you're not a member of it.
404 WORKSPACE_NOT_FOUND This workspace doesn't exist or you don't have access to it.
10 more that every operation can answer (tokens, scopes, limits)
400 VALIDATION_FAILED Some of the information sent is invalid.
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

A media used nowhere

curl
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11/posts" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11/posts", {
  method: "GET",
  headers: {
    Authorization: "Bearer beplan_pat_…",
  },
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import requests

response = requests.get(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11/posts",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "posts": [],
    "total": 0
  }
}

Get a video's transcript

GET /organizations/{organizationId}/workspaces/{workspaceId}/media-library/items/{mediaId}/transcript
Beta Reads only media.transcript.get
Scope
media:read
Role permission
Any member who can see it
Effect
Changes nothing.
Stability
Beta. May still change before it is marked stable. Since 2026-11-19.

Returns what is said in a video (text, timed segments in milliseconds, its language) and what happens on screen (understanding: a summary, the key moment, scenes), once ready. status says where it stands: none (never queued: an image, or an old video), pending, processing, ready, no_speech or failed. Only for organizations with media transcripts turned on (402 PLAN_UPGRADE_REQUIRED otherwise).

Parameters

Name In Type Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
mediaId required path string (uuid)

Responses

200 OK

object · MediaTranscriptResponse

  • dataobject · MediaTranscriptrequired
    6fields
    • statusstringrequired
      One of (may gain values): none, pending, processing, ready, no_speech, failed
    • languagestringrequirednullable
    • textstringrequirednullable
    • segmentsarray of objectrequired
      3fields in each item
      • startMsnumberrequired
      • endMsnumberrequired
      • textstringrequired
    • completedAtstringrequirednullable
    • understandingobject · MediaUnderstandingrequired
      5fields
      • statusstringrequired
        One of (may gain values): none, pending, processing, ready, skipped, failed
      • contentTypestringrequirednullable
      • summarystringrequirednullable
      • keyMomentobjectrequirednullable
        3fields
        • startMsnumberrequired
        • endMsnumberrequired
        • descriptionstringrequired
      • scenesarray of objectrequired
        4fields in each item
        • startMsnumberrequired
        • endMsnumberrequired
        • descriptionstringrequired
        • onScreenTextstringoptional

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 402, 403, 404, 429, 500.

Error codes

Status Code Message
402 PLAN_UPGRADE_REQUIRED Your current plan doesn't include this feature.
404 MEDIA_NOT_FOUND This media doesn't exist or was deleted.
404 ORGANIZATION_NOT_FOUND This organization doesn't exist or you're not a member of it.
404 WORKSPACE_NOT_FOUND This workspace doesn't exist or you don't have access to it.
10 more that every operation can answer (tokens, scopes, limits)
400 VALIDATION_FAILED Some of the information sent is invalid.
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

An image has no transcript

curl
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11/transcript" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11/transcript", {
  method: "GET",
  headers: {
    Authorization: "Bearer beplan_pat_…",
  },
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import requests

response = requests.get(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/items/0b6f5a52-7f4e-4c55-9d6f-2f0a6a1c3e11/transcript",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "data": {
    "status": "none",
    "language": null,
    "text": null,
    "segments": [],
    "completedAt": null,
    "understanding": {
      "status": "none",
      "contentType": null,
      "summary": null,
      "keyMoment": null,
      "scenes": []
    }
  }
}