API reference
Media
Base URL https://api.beplan.io/v1. Authentication, envelopes, pagination, idempotency and rate limits:
conventions. OpenAPI document: openapi.json.
All 11 Media operations
- POST Clean up old media
- GET Preview a clean-up
- GET List media
- POST Delete media
- POST Tag media with formats
- POST Move media to a folder
- GET Get a media
- PATCH Rename a media or set its alt text
- GET Get a download URL
- GET List the posts using a media
- GET Get a video's transcript
Clean up old media
/organizations/{organizationId}/workspaces/{workspaceId}/media-library/clean media.clean - Scope
- media:write
- Role permission
- Delete media (
media:delete) - Effect
- Deletes data or cannot be undone.
- Idempotency
- Send an
Idempotency-Keyto 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
olderThanMonthsintegerrequiredfrom 1 to 24excludedFolderIdsarray of string (uuid)requiredat most 200 items
Responses
200 OK
object · MediaCleanResponse
dataobjectrequired2fields
mediaCountnumberrequiredtotalBytesnumberrequired
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 -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": []
}' 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/media-library/clean/preview 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
dataobjectrequired2fields
mediaCountnumberrequiredtotalBytesnumberrequired
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 -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/media-library/clean/preview?olderThanMonths=6" \
-H "Authorization: Bearer beplan_pat_…" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/media-library/items 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 objectrequired21fields in each item
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of (may gain values):image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of (may gain values):processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne of:speech,scene
pageobjectrequired2fields
nextCursorstringrequirednullablehasMorebooleanrequired
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 -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_…" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/media-library/items/delete media.delete - Scope
- media:write
- Role permission
- Delete media (
media:delete) - Effect
- Deletes data or cannot be undone.
- Idempotency
- Send an
Idempotency-Keyto 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)required1–500 items
Responses
200 OK
object · BulkMediaResponse
dataobjectrequired1field
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 -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"
]
}' 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/media-library/items/formats media.formats.update - Scope
- media:write
- Role permission
- Edit media (
media:update) - Effect
- Changes data in Beplan.
- Idempotency
- Send an
Idempotency-Keyto 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)required1–500 itemsaddarray of string (uuid)requiredat most 50 itemsremovearray of string (uuid)requiredat most 50 items
Responses
200 OK
object · BulkMediaResponse
dataobjectrequired1field
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 -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": []
}' 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/media-library/items/move media.move - Scope
- media:write
- Role permission
- Edit media (
media:update) - Effect
- Changes data in Beplan.
- Idempotency
- Send an
Idempotency-Keyto 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)required1–500 itemsfolderIdstring (uuid)requirednullable
Responses
200 OK
object · BulkMediaResponse
dataobjectrequired1field
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 -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"
}' 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/media-library/items/{mediaId} 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 · MediaDetailrequired22fields
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of (may gain values):image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of (may gain values):processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne of:speech,scene
reviewStatusstringrequirednullableOne 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 -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_…" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/media-library/items/{mediaId} 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
filenamestringoptional1–255 charactersaltTextstringoptionalnullableat most 1000 characters
Responses
200 OK
object · MediaItemResponse
dataobject · MediaItemrequired21fields
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of (may gain values):image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of (may gain values):processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne 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 -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"
}' 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/media-library/items/{mediaId}/download-url 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
dataobjectrequired1field
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 -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_…" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/media-library/items/{mediaId}/posts 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
dataobjectrequired2fields
postsarray of objectrequired4fields in each item
idstringrequiredtitlestringrequiredstatusstringrequirednullableWhere the post stands;nullfor an integration that does not holdposts:read.One of (may gain values):idea,in_progress,in_review,ready,scheduled,in_process,posted,failedscheduledAtstring (date-time)requirednullableWhen it goes (or went) out;nullwhile unscheduled, and for an integration that does not holdposts:read.
totalintegerrequiredat 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 -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_…" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/media-library/items/{mediaId}/transcript 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 · MediaTranscriptrequired6fields
statusstringrequiredOne of (may gain values):none,pending,processing,ready,no_speech,failedlanguagestringrequirednullabletextstringrequirednullablesegmentsarray of objectrequired3fields in each item
startMsnumberrequiredendMsnumberrequiredtextstringrequired
completedAtstringrequirednullableunderstandingobject · MediaUnderstandingrequired5fields
statusstringrequiredOne of (may gain values):none,pending,processing,ready,skipped,failedcontentTypestringrequirednullablesummarystringrequirednullablekeyMomentobjectrequirednullable3fields
startMsnumberrequiredendMsnumberrequireddescriptionstringrequired
scenesarray of objectrequired4fields in each item
startMsnumberrequiredendMsnumberrequireddescriptionstringrequiredonScreenTextstringoptional
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 -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_…" 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(); 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": []
}
}
}