Projects
List owned projects GET /api/v1/projects
List active projects owned by the API-key account in reverse creation order. Use the returned opaque cursor to read the next page.
Operation ID listProjects
Scopes projects:read
MCP tool list_projectsParameters Name Location Required Description limitquery No Maximum projects to return, from 1 to 100 cursorquery No Opaque cursor returned by the previous page
Responses and errors 200Owned projects and a cursor when another page is available. {
"type": "object",
"properties": {
"projects": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"filename": {
"type": "string"
},
"mimeType": {
"type": "string"
},
"byteLength": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"durationMs": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"width": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"height": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
},
"claim": {
"type": "string"
},
"targetSeconds": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"activeMomentSetId": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"activeRenderVariantId": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"id",
"filename",
"mimeType",
"byteLength",
"durationMs",
"width",
"height",
"status",
"claim",
"targetSeconds",
"activeMomentSetId",
"activeRenderVariantId",
"error",
"createdAt",
"updatedAt"
],
"additionalProperties": false
}
},
"nextCursor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"projects",
"nextCursor"
],
"additionalProperties": false
}400The limit or cursor is invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks projects:read. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Project storage is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl "https://prismclip.com/api/v1/projects?limit=20" \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/projects?limit=20",
{ headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { projects, nextCursor } = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/projects",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
params={"limit": 20},
)
projects = response.json()["projects"]Sources
Create a direct-upload project POST /api/v1/projects
Create an owned project for a local media file and return bounded multipart upload instructions. Upload every part with the returned upload ID, retain each ETag, then complete the session.
Operation ID createDirectUpload
Scopes projects:write
MCP tool create_direct_uploadRequest body {
"contentType": "application/json",
"schema": {
"type": "object",
"properties": {
"filename": {
"type": "string",
"minLength": 1,
"maxLength": 180,
"description": "Original local media filename"
},
"mime_type": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "Video, audio, or application/octet-stream MIME type"
},
"byte_length": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 10737418240,
"description": "Exact source size in bytes"
},
"duration_ms": {
"description": "Known source duration in milliseconds",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"width": {
"description": "Known source width in pixels",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"height": {
"description": "Known source height in pixels",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"filename",
"mime_type",
"byte_length"
],
"additionalProperties": false
}
}Responses and errors 201The uploading project and its bounded multipart instructions. {
"type": "object",
"properties": {
"project": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"filename": {
"type": "string"
},
"mimeType": {
"type": "string"
},
"byteLength": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"durationMs": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"width": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"height": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
},
"claim": {
"type": "string"
},
"targetSeconds": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"activeMomentSetId": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"activeRenderVariantId": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"id",
"filename",
"mimeType",
"byteLength",
"durationMs",
"width",
"height",
"status",
"claim",
"targetSeconds",
"activeMomentSetId",
"activeRenderVariantId",
"error",
"createdAt",
"updatedAt"
],
"additionalProperties": false
},
"upload": {
"type": "object",
"properties": {
"uploadId": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"description": "Opaque multipart upload session ID returned when the project was created"
},
"partBytes": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"partCount": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 10000
},
"partUrlTemplate": {
"type": "string"
},
"completeUrl": {
"type": "string"
},
"cancelUrl": {
"type": "string"
}
},
"required": [
"uploadId",
"partBytes",
"partCount",
"partUrlTemplate",
"completeUrl",
"cancelUrl"
],
"additionalProperties": false
}
},
"required": [
"project",
"upload"
],
"additionalProperties": false
}400The filename, MIME type, dimensions, duration, or byte length is invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks projects:write. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}413The source exceeds the direct-upload size limit. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Project or object storage is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/projects \
-X POST -H "Authorization: Bearer $PRISMCLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"filename":"recording.mp4","mime_type":"video/mp4","byte_length":52428800}'TypeScript Copy
const response = await fetch("https://prismclip.com/api/v1/projects", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ filename: "recording.mp4", mime_type: "video/mp4", byte_length: 52428800 })
});
const { project, upload } = await response.json();Python Copy
import os, requests
response = requests.post(
"https://prismclip.com/api/v1/projects",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
json={"filename": "recording.mp4", "mime_type": "video/mp4", "byte_length": 52428800},
)
project, upload = response.json()["project"], response.json()["upload"]Projects
Get an owned project GET /api/v1/projects/{projectId}
Retrieve processing state and media metadata for one active project owned by the API-key account.
Operation ID getProject
Scopes projects:read
MCP tool get_projectParameters Name Location Required Description projectIdpath Yes Owned PrismClip project ID
Responses and errors 200The owned project. {
"type": "object",
"properties": {
"project": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"filename": {
"type": "string"
},
"mimeType": {
"type": "string"
},
"byteLength": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"durationMs": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"width": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"height": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
},
"claim": {
"type": "string"
},
"targetSeconds": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"activeMomentSetId": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"activeRenderVariantId": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"id",
"filename",
"mimeType",
"byteLength",
"durationMs",
"width",
"height",
"status",
"claim",
"targetSeconds",
"activeMomentSetId",
"activeRenderVariantId",
"error",
"createdAt",
"updatedAt"
],
"additionalProperties": false
}
},
"required": [
"project"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks projects:read. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned project was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Project storage is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111 \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111",
{ headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { project } = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
)
project = response.json()["project"]Sources
Upload a direct-upload part PUT /api/v1/projects/{projectId}/upload/parts/{partNumber}
Stream exactly the expected bytes for one multipart part. Send the opaque upload session ID in X-PrismClip-Upload-Id and retain the returned ETag. Binary transfer is available through REST and is intentionally omitted from MCP tools.
Operation ID uploadDirectPart
Scopes projects:writeParameters Name Location Required Description projectIdpath Yes Owned uploading project ID partNumberpath Yes Sequential multipart part number X-PrismClip-Upload-Idheader Yes Opaque upload session ID returned when the project was created
Request body {
"contentType": "application/octet-stream",
"schema": {
"type": "string",
"format": "binary"
}
}Responses and errors 200The uploaded part number and ETag required for completion. {
"type": "object",
"properties": {
"partNumber": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"etag": {
"type": "string"
}
},
"required": [
"partNumber",
"etag"
],
"additionalProperties": false
}400The part number or byte count is invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks projects:write. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned project was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409The upload session or project state does not match. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Project or object storage is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/upload/parts/1 \
-X PUT -H "Authorization: Bearer $PRISMCLIP_API_KEY" \
-H "X-PrismClip-Upload-Id: opaque-upload-session-id" \
-H "Content-Type: application/octet-stream" --data-binary @part-001TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/upload/parts/1",
{ method: "PUT", headers: {
Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}`,
"X-PrismClip-Upload-Id": upload.uploadId,
"Content-Type": "application/octet-stream"
}, body: partBytes }
);
const { etag } = await response.json();Python Copy
import os, requests
with open("part-001", "rb") as part:
response = requests.put(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/upload/parts/1",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}",
"X-PrismClip-Upload-Id": "opaque-upload-session-id"},
data=part,
)
etag = response.json()["etag"]Sources
Complete a direct upload POST /api/v1/projects/{projectId}/upload/complete
Complete an owned multipart upload after every part succeeds. Provide the returned ETags in sequential order and send the upload session ID in X-PrismClip-Upload-Id.
Operation ID completeDirectUpload
Scopes projects:write
MCP tool complete_direct_uploadParameters Name Location Required Description projectIdpath Yes Owned uploading project ID X-PrismClip-Upload-Idheader Yes Opaque upload session ID returned when the project was created
Request body {
"contentType": "application/json",
"schema": {
"type": "object",
"properties": {
"parts": {
"minItems": 1,
"maxItems": 10000,
"type": "array",
"items": {
"type": "object",
"properties": {
"part_number": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"description": "Sequential multipart part number"
},
"etag": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"description": "ETag returned after uploading the part"
}
},
"required": [
"part_number",
"etag"
],
"additionalProperties": false
},
"description": "Every uploaded part in sequential order"
}
},
"required": [
"parts"
],
"additionalProperties": false
}
}Responses and errors 200The completed project, ready for source processing. {
"type": "object",
"properties": {
"project": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"filename": {
"type": "string"
},
"mimeType": {
"type": "string"
},
"byteLength": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"durationMs": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"width": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"height": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
},
"claim": {
"type": "string"
},
"targetSeconds": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"activeMomentSetId": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"activeRenderVariantId": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"id",
"filename",
"mimeType",
"byteLength",
"durationMs",
"width",
"height",
"status",
"claim",
"targetSeconds",
"activeMomentSetId",
"activeRenderVariantId",
"error",
"createdAt",
"updatedAt"
],
"additionalProperties": false
}
},
"required": [
"project"
],
"additionalProperties": false
}400The part list is incomplete or the stored byte count does not match. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks projects:write. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned project was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409The upload session or project state does not match. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Project or object storage is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/upload/complete \
-X POST -H "Authorization: Bearer $PRISMCLIP_API_KEY" \
-H "X-PrismClip-Upload-Id: opaque-upload-session-id" \
-H "Content-Type: application/json" \
-d '{"parts":[{"part_number":1,"etag":"synthetic-part-etag"}]}'TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/upload/complete",
{ method: "POST", headers: {
Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}`,
"X-PrismClip-Upload-Id": upload.uploadId,
"Content-Type": "application/json"
}, body: JSON.stringify({ parts: [{ part_number: 1, etag }] }) }
);
const { project } = await response.json();Python Copy
import os, requests
response = requests.post(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/upload/complete",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}",
"X-PrismClip-Upload-Id": "opaque-upload-session-id"},
json={"parts": [{"part_number": 1, "etag": "synthetic-part-etag"}]},
)
project = response.json()["project"]Sources
Cancel a direct upload DELETE /api/v1/projects/{projectId}/upload
Abort an active multipart upload owned by the API-key account and mark its project cancelled. Send the upload session ID in X-PrismClip-Upload-Id.
Operation ID cancelDirectUpload
Scopes projects:write
MCP tool cancel_direct_uploadParameters Name Location Required Description projectIdpath Yes Owned uploading project ID X-PrismClip-Upload-Idheader Yes Opaque upload session ID returned when the project was created
Responses and errors 200The cancelled project. {
"type": "object",
"properties": {
"project": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"filename": {
"type": "string"
},
"mimeType": {
"type": "string"
},
"byteLength": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"durationMs": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"width": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"height": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
},
"claim": {
"type": "string"
},
"targetSeconds": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"activeMomentSetId": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"activeRenderVariantId": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"id",
"filename",
"mimeType",
"byteLength",
"durationMs",
"width",
"height",
"status",
"claim",
"targetSeconds",
"activeMomentSetId",
"activeRenderVariantId",
"error",
"createdAt",
"updatedAt"
],
"additionalProperties": false
},
"cancelled": {
"type": "boolean",
"const": true
}
},
"required": [
"project",
"cancelled"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks projects:write. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned project was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409The upload session or project state does not match. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Project or object storage is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/upload \
-X DELETE -H "Authorization: Bearer $PRISMCLIP_API_KEY" \
-H "X-PrismClip-Upload-Id: opaque-upload-session-id"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/upload",
{ method: "DELETE", headers: {
Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}`,
"X-PrismClip-Upload-Id": upload.uploadId
} }
);
const { project, cancelled } = await response.json();Python Copy
import os, requests
response = requests.delete(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/upload",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}",
"X-PrismClip-Upload-Id": "opaque-upload-session-id"},
)
project = response.json()["project"]Sources
Start a YouTube import POST /api/v1/imports/youtube
Import one YouTube video into an owned PrismClip project and return an import job.
Operation ID startYouTubeImport
Scopes projects:write
MCP tool start_youtube_import
Idempotency supported Request body {
"contentType": "application/json",
"schema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"maxLength": 2000,
"format": "uri",
"description": "URL for one YouTube video; playlists are not supported"
}
},
"required": [
"url"
],
"additionalProperties": false
}
}Responses and errors 200The existing import for this account and YouTube video. {
"type": "object",
"properties": {
"import": {
"type": "object",
"properties": {
"jobId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"provider": {
"type": "string",
"enum": [
"google_drive",
"youtube"
]
},
"status": {
"type": "string"
},
"attemptCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"maxAttempts": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"errorCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"cancelRequestedAt": {
"anyOf": [
{
"type": "string",
"description": "ISO 8601 timestamp"
},
{
"type": "null"
}
]
},
"expectedBytes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"byteCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"jobId",
"projectId",
"provider",
"status",
"attemptCount",
"maxAttempts",
"errorCategory",
"cancelRequestedAt",
"expectedBytes",
"byteCount",
"createdAt",
"updatedAt"
],
"additionalProperties": false
},
"replayed": {
"type": "boolean"
}
},
"required": [
"import",
"replayed"
],
"additionalProperties": false
}202The remote import was queued. {
"type": "object",
"properties": {
"import": {
"type": "object",
"properties": {
"jobId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"provider": {
"type": "string",
"enum": [
"google_drive",
"youtube"
]
},
"status": {
"type": "string"
},
"attemptCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"maxAttempts": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"errorCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"cancelRequestedAt": {
"anyOf": [
{
"type": "string",
"description": "ISO 8601 timestamp"
},
{
"type": "null"
}
]
},
"expectedBytes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"byteCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"jobId",
"projectId",
"provider",
"status",
"attemptCount",
"maxAttempts",
"errorCategory",
"cancelRequestedAt",
"expectedBytes",
"byteCount",
"createdAt",
"updatedAt"
],
"additionalProperties": false
},
"replayed": {
"type": "boolean"
}
},
"required": [
"import",
"replayed"
],
"additionalProperties": false
}400The URL is invalid or does not identify one supported YouTube video. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks projects:write. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}413Provider metadata shows that the source exceeds the remote-source limit. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}422YouTube rejected, restricted, or could not resolve the source. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Remote import storage, queueing, or the YouTube ingestion provider is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/imports/youtube -X POST -H "Authorization: Bearer $PRISMCLIP_API_KEY" -H "Content-Type: application/json" -d '{"url":"https://www.youtube.com/watch?v=M7lc1UVf-VE"}'TypeScript Copy
const response = await fetch("https://prismclip.com/api/v1/imports/youtube", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ url: "https://www.youtube.com/watch?v=M7lc1UVf-VE" })
});
const { import: importJob, replayed } = await response.json();Python Copy
import os, requests
response = requests.post(
"https://prismclip.com/api/v1/imports/youtube",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
json={"url": "https://www.youtube.com/watch?v=M7lc1UVf-VE"},
)
import_job = response.json()["import"]Sources
Start a Google Drive import POST /api/v1/imports/google-drive
Start an import of one explicit Google Drive video or audio file. Public files are attempted directly. Private files use the Google Drive connection established by the account through PrismClip's normal OAuth flow; provider tokens never enter this API payload.
Operation ID startGoogleDriveImport
Scopes projects:write
MCP tool start_google_drive_import
Idempotency supported Request body {
"contentType": "application/json",
"schema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"maxLength": 2000,
"format": "uri",
"description": "URL for one explicit Google Drive video or audio file"
}
},
"required": [
"url"
],
"additionalProperties": false
}
}Responses and errors 200The existing import for this account and Google Drive file. {
"type": "object",
"properties": {
"import": {
"type": "object",
"properties": {
"jobId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"provider": {
"type": "string",
"enum": [
"google_drive",
"youtube"
]
},
"status": {
"type": "string"
},
"attemptCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"maxAttempts": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"errorCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"cancelRequestedAt": {
"anyOf": [
{
"type": "string",
"description": "ISO 8601 timestamp"
},
{
"type": "null"
}
]
},
"expectedBytes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"byteCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"jobId",
"projectId",
"provider",
"status",
"attemptCount",
"maxAttempts",
"errorCategory",
"cancelRequestedAt",
"expectedBytes",
"byteCount",
"createdAt",
"updatedAt"
],
"additionalProperties": false
},
"replayed": {
"type": "boolean"
}
},
"required": [
"import",
"replayed"
],
"additionalProperties": false
}202The remote import was queued. {
"type": "object",
"properties": {
"import": {
"type": "object",
"properties": {
"jobId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"provider": {
"type": "string",
"enum": [
"google_drive",
"youtube"
]
},
"status": {
"type": "string"
},
"attemptCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"maxAttempts": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"errorCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"cancelRequestedAt": {
"anyOf": [
{
"type": "string",
"description": "ISO 8601 timestamp"
},
{
"type": "null"
}
]
},
"expectedBytes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"byteCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"jobId",
"projectId",
"provider",
"status",
"attemptCount",
"maxAttempts",
"errorCategory",
"cancelRequestedAt",
"expectedBytes",
"byteCount",
"createdAt",
"updatedAt"
],
"additionalProperties": false
},
"replayed": {
"type": "boolean"
}
},
"required": [
"import",
"replayed"
],
"additionalProperties": false
}400The URL is invalid or does not identify one explicit Google Drive file. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401The API key is missing or invalid, or the private file requires an account Google Drive connection. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks projects:write. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}413Provider metadata shows that the source exceeds the remote-source limit. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}422The file is unavailable, is not media, or cannot be downloaded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Remote import storage, queueing, or Google Drive is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/imports/google-drive -X POST -H "Authorization: Bearer $PRISMCLIP_API_KEY" -H "Content-Type: application/json" -d '{"url":"https://drive.google.com/file/d/synthetic-file-id/view"}'TypeScript Copy
const response = await fetch("https://prismclip.com/api/v1/imports/google-drive", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ url: "https://drive.google.com/file/d/synthetic-file-id/view" })
});
const { import: importJob, replayed } = await response.json();Python Copy
import os, requests
response = requests.post(
"https://prismclip.com/api/v1/imports/google-drive",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
json={"url": "https://drive.google.com/file/d/synthetic-file-id/view"},
)
import_job = response.json()["import"]Jobs
Get a remote import GET /api/v1/imports/{jobId}
Read durable state, byte progress, retry attempts, and normalized failure category for an owned Google Drive or YouTube import.
Operation ID getRemoteImport
Scopes projects:read
MCP tool get_remote_importParameters Name Location Required Description jobIdpath Yes Owned remote import job ID
Responses and errors 200The current owned remote import state. {
"type": "object",
"properties": {
"import": {
"type": "object",
"properties": {
"jobId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"provider": {
"type": "string",
"enum": [
"google_drive",
"youtube"
]
},
"status": {
"type": "string"
},
"attemptCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"maxAttempts": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"errorCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"cancelRequestedAt": {
"anyOf": [
{
"type": "string",
"description": "ISO 8601 timestamp"
},
{
"type": "null"
}
]
},
"expectedBytes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"byteCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"jobId",
"projectId",
"provider",
"status",
"attemptCount",
"maxAttempts",
"errorCategory",
"cancelRequestedAt",
"expectedBytes",
"byteCount",
"createdAt",
"updatedAt"
],
"additionalProperties": false
}
},
"required": [
"import"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks projects:read. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned remote import was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Import state is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/imports/22222222-2222-4222-8222-222222222222 \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/imports/22222222-2222-4222-8222-222222222222",
{ method: "GET", headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { import: importJob } = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/imports/22222222-2222-4222-8222-222222222222",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
)
import_job = response.json()["import"]Jobs
Cancel a remote import DELETE /api/v1/imports/{jobId}
Request cancellation of an owned queued, retrying, or running Google Drive or YouTube import. Running work observes the durable cancellation request between bounded transfer parts.
Operation ID cancelRemoteImport
Scopes projects:write
MCP tool cancel_remote_importParameters Name Location Required Description jobIdpath Yes Owned remote import job ID
Responses and errors 200Cancellation was accepted and the updated import state is returned. {
"type": "object",
"properties": {
"import": {
"type": "object",
"properties": {
"jobId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"provider": {
"type": "string",
"enum": [
"google_drive",
"youtube"
]
},
"status": {
"type": "string"
},
"attemptCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"maxAttempts": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"errorCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"cancelRequestedAt": {
"anyOf": [
{
"type": "string",
"description": "ISO 8601 timestamp"
},
{
"type": "null"
}
]
},
"expectedBytes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"byteCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"jobId",
"projectId",
"provider",
"status",
"attemptCount",
"maxAttempts",
"errorCategory",
"cancelRequestedAt",
"expectedBytes",
"byteCount",
"createdAt",
"updatedAt"
],
"additionalProperties": false
},
"cancelled": {
"type": "boolean",
"const": true
}
},
"required": [
"import",
"cancelled"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks projects:write. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned remote import was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409The import has finished or already has a cancellation request. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Import state is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/imports/22222222-2222-4222-8222-222222222222 \
-X DELETE \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/imports/22222222-2222-4222-8222-222222222222",
{ method: "DELETE", headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { import: importJob } = await response.json();Python Copy
import os, requests
response = requests.delete(
"https://prismclip.com/api/v1/imports/22222222-2222-4222-8222-222222222222",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
)
import_job = response.json()["import"]Evidence
Search the owned library GET /api/v1/library
Search active owned projects across filenames, generated summaries, transcript words, and completed visual scene descriptions. Results identify which evidence sources matched and use a stable cursor.
Operation ID searchLibrary
Scopes evidence:read
MCP tool search_libraryParameters Name Location Required Description qquery No Words to match across filename, summary, transcript, and visual scenes limitquery No Maximum matching projects to return, from 1 to 50 cursorquery No Opaque cursor returned by the previous page
Responses and errors 200Owned matching projects with evidence match types and an optional next cursor. {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"project": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"filename": {
"type": "string"
},
"mimeType": {
"type": "string"
},
"byteLength": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"durationMs": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"width": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"height": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
},
"claim": {
"type": "string"
},
"targetSeconds": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"activeMomentSetId": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"activeRenderVariantId": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"id",
"filename",
"mimeType",
"byteLength",
"durationMs",
"width",
"height",
"status",
"claim",
"targetSeconds",
"activeMomentSetId",
"activeRenderVariantId",
"error",
"createdAt",
"updatedAt"
],
"additionalProperties": false
},
"summary": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"matches": {
"type": "array",
"items": {
"type": "string",
"enum": [
"title",
"summary",
"transcript",
"visual"
]
}
}
},
"required": [
"project",
"summary",
"matches"
],
"additionalProperties": false
}
},
"nextCursor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"items",
"nextCursor"
],
"additionalProperties": false
}400The query, limit, or cursor is invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks evidence:read. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Evidence storage is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl "https://prismclip.com/api/v1/library?q=stage+reaction&limit=20" \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/library?q=stage+reaction&limit=20",
{ headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { items, nextCursor } = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/library",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
params={"q": "stage reaction", "limit": 20},
)
items = response.json()["items"]Evidence
Get transcript words GET /api/v1/projects/{projectId}/transcript
Retrieve a bounded passage of source-relative transcript words and exact timing from an owned project. Paginate with nextAfterOrdinal or constrain the result to a source time window.
Operation ID getTranscriptPassage
Scopes evidence:read
MCP tool get_transcript_passageParameters Name Location Required Description projectIdpath Yes Owned project ID after_ordinalquery No Return words after this ordinal; use -1 for the beginning limitquery No Maximum timed words to return, from 1 to 500 start_msquery No Only include words overlapping this source-relative start time end_msquery No Only include words overlapping this source-relative end time
Responses and errors 200A bounded transcript passage with exact word timing. {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"text": {
"type": "string"
},
"words": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ordinal": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"text": {
"type": "string"
},
"startMs": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"endMs": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"confidence": {
"anyOf": [
{
"type": "number",
"minimum": 0,
"maximum": 1
},
{
"type": "null"
}
]
},
"speaker": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"language": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"ordinal",
"text",
"startMs",
"endMs",
"confidence",
"speaker",
"language"
],
"additionalProperties": false
}
},
"nextAfterOrdinal": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"projectId",
"text",
"words",
"nextAfterOrdinal"
],
"additionalProperties": false
}400The pagination or source time window is invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks evidence:read. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned project or transcript was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Evidence storage is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl "https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/transcript?start_ms=12000&end_ms=30000&limit=200" \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/transcript?start_ms=12000&end_ms=30000&limit=200",
{ headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { text, words, nextAfterOrdinal } = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/transcript",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
params={"start_ms": 12000, "end_ms": 30000, "limit": 200},
)
words = response.json()["words"]Evidence
Get visual scenes GET /api/v1/projects/{projectId}/visual-scenes
Retrieve a bounded page of source-relative scenes from the latest completed full visual analysis for an owned project, including the analysis ID, model, duration, and timestamps needed for provenance.
Operation ID getVisualScenes
Scopes evidence:read
MCP tool get_visual_scenesParameters Name Location Required Description projectIdpath Yes Owned project ID offsetquery No Zero-based scene offset limitquery No Maximum visual scenes to return, from 1 to 200
Responses and errors 200Completed visual analysis provenance and a bounded page of scenes. {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"analysis": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"model": {
"type": "string"
},
"status": {
"type": "string",
"const": "completed"
},
"durationMs": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"id",
"model",
"status",
"durationMs",
"createdAt",
"updatedAt"
],
"additionalProperties": false
},
"scenes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"index": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"startMs": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"endMs": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"description": {
"type": "string"
}
},
"required": [
"index",
"startMs",
"endMs",
"description"
],
"additionalProperties": false
}
},
"nextOffset": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"projectId",
"analysis",
"scenes",
"nextOffset"
],
"additionalProperties": false
}400The scene offset or limit is invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks evidence:read. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned project or completed visual analysis was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Evidence storage is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl "https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/visual-scenes?offset=0&limit=100" \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/visual-scenes?offset=0&limit=100",
{ headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { analysis, scenes, nextOffset } = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/visual-scenes",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
params={"offset": 0, "limit": 100},
)
scenes = response.json()["scenes"]Moments
Create an explicit moment set POST /api/v1/projects/{projectId}/moment-sets
Create and activate a ready moment set from ordered source ranges backed by transcript words, visual scenes, or both. PrismClip validates every citation against the owned project's stored evidence and preserves caption corrections.
Operation ID createMomentSet
Scopes moments:write
MCP tool create_moment_setParameters Name Location Required Description projectIdpath Yes Owned project ID
Request body {
"contentType": "application/json",
"schema": {
"type": "object",
"properties": {
"claim": {
"type": "string",
"minLength": 1,
"maxLength": 2000,
"description": "Moment, claim, action, or exchange these passages capture"
},
"target_seconds": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Target total duration, or 0 when the set contains all matching moments"
},
"passages": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"evidence_kind": {
"type": "string",
"enum": [
"speech",
"visual",
"mixed"
]
},
"first_word": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"last_word": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"start_ms": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"end_ms": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"scene_indices": {
"maxItems": 100,
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"caption_corrections": {
"default": [],
"maxItems": 500,
"type": "array",
"items": {
"type": "object",
"properties": {
"ordinal": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"text": {
"type": "string",
"maxLength": 200
}
},
"required": [
"ordinal",
"text"
],
"additionalProperties": false
}
},
"reason": {
"type": "string",
"minLength": 1,
"maxLength": 2000
}
},
"required": [
"evidence_kind",
"first_word",
"last_word",
"start_ms",
"end_ms",
"scene_indices",
"caption_corrections",
"reason"
],
"additionalProperties": false
},
"description": "Ordered, non-overlapping passages with explicit evidence"
}
},
"required": [
"claim",
"target_seconds",
"passages"
],
"additionalProperties": false
}
}Responses and errors 201The ready moment set and its validated passages. {
"type": "object",
"properties": {
"momentSet": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"claim": {
"type": "string"
},
"targetSeconds": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"selectionMode": {
"type": "string",
"enum": [
"moment",
"quick_cut"
]
},
"status": {
"type": "string"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"id",
"projectId",
"claim",
"targetSeconds",
"selectionMode",
"status",
"error",
"createdAt",
"updatedAt"
],
"additionalProperties": false
},
"passages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"position": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"firstWord": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"lastWord": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"startMs": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"endMs": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"reason": {
"type": "string"
},
"evidence": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "speech"
}
},
"required": [
"kind"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "visual"
},
"visualAnalysisId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"sceneIndices": {
"minItems": 1,
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
}
},
"required": [
"kind",
"visualAnalysisId",
"sceneIndices"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "mixed"
},
"visualAnalysisId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"sceneIndices": {
"minItems": 1,
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
}
},
"required": [
"kind",
"visualAnalysisId",
"sceneIndices"
],
"additionalProperties": false
}
]
},
"captionCorrections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ordinal": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"text": {
"type": "string"
}
},
"required": [
"ordinal",
"text"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"position",
"firstWord",
"lastWord",
"startMs",
"endMs",
"reason",
"evidence",
"captionCorrections"
],
"additionalProperties": false
}
}
},
"required": [
"momentSet",
"passages"
],
"additionalProperties": false
}400The claim, target duration, source ranges, evidence citations, ordering, or caption corrections are invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks moments:write. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned project or cited evidence was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409The project cannot accept an explicit moment set in its current state. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Moment or evidence storage is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/moment-sets \
-X POST -H "Authorization: Bearer $PRISMCLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"claim":"Heated audience exchange","target_seconds":30,"passages":[{"evidence_kind":"mixed","first_word":10,"last_word":18,"start_ms":12000,"end_ms":18000,"scene_indices":[2],"caption_corrections":[],"reason":"The audience responds to the exchange."}]}'TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/moment-sets",
{ method: "POST", headers: {
Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}`,
"Content-Type": "application/json"
}, body: JSON.stringify({
claim: "Heated audience exchange", target_seconds: 30,
passages: [{ evidence_kind: "mixed", first_word: 10, last_word: 18,
start_ms: 12000, end_ms: 18000, scene_indices: [2],
caption_corrections: [], reason: "The audience responds to the exchange." }]
}) }
);
const { momentSet, passages } = await response.json();Python Copy
import os, requests
response = requests.post(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/moment-sets",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
json={"claim": "Heated audience exchange", "target_seconds": 30, "passages": [{
"evidence_kind": "mixed", "first_word": 10, "last_word": 18,
"start_ms": 12000, "end_ms": 18000, "scene_indices": [2],
"caption_corrections": [], "reason": "The audience responds to the exchange."
}]},
)
moment_set = response.json()["momentSet"]Moments
Get a moment set GET /api/v1/projects/{projectId}/moment-sets/{momentSetId}
Retrieve an owned moment set and its ordered evidence-backed passages, including caption corrections and durable state.
Operation ID getMomentSet
Scopes evidence:read
MCP tool get_moment_setParameters Name Location Required Description projectIdpath Yes Owned project ID momentSetIdpath Yes Owned moment-set ID
Responses and errors 200The owned moment set and ordered passages. {
"type": "object",
"properties": {
"momentSet": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"claim": {
"type": "string"
},
"targetSeconds": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"selectionMode": {
"type": "string",
"enum": [
"moment",
"quick_cut"
]
},
"status": {
"type": "string"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"id",
"projectId",
"claim",
"targetSeconds",
"selectionMode",
"status",
"error",
"createdAt",
"updatedAt"
],
"additionalProperties": false
},
"passages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"position": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"firstWord": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"lastWord": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"startMs": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"endMs": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"reason": {
"type": "string"
},
"evidence": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "speech"
}
},
"required": [
"kind"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "visual"
},
"visualAnalysisId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"sceneIndices": {
"minItems": 1,
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
}
},
"required": [
"kind",
"visualAnalysisId",
"sceneIndices"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "mixed"
},
"visualAnalysisId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"sceneIndices": {
"minItems": 1,
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
}
},
"required": [
"kind",
"visualAnalysisId",
"sceneIndices"
],
"additionalProperties": false
}
]
},
"captionCorrections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ordinal": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"text": {
"type": "string"
}
},
"required": [
"ordinal",
"text"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"position",
"firstWord",
"lastWord",
"startMs",
"endMs",
"reason",
"evidence",
"captionCorrections"
],
"additionalProperties": false
}
}
},
"required": [
"momentSet",
"passages"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks evidence:read. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned moment set was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Moment storage is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/moment-sets/33333333-3333-4333-8333-333333333333 \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/moment-sets/33333333-3333-4333-8333-333333333333",
{ headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { momentSet, passages } = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/moment-sets/33333333-3333-4333-8333-333333333333",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
)
moment_set, passages = response.json()["momentSet"], response.json()["passages"]Moments
Revise moment passages PUT /api/v1/projects/{projectId}/moment-sets/{momentSetId}/passages
Replace the passages of an owned moment set using the same evidence and caption validation as the Studio review UI. Revisions are immutable: PrismClip creates and activates a new ready moment set and returns the prior ID.
Operation ID reviseMomentPassages
Scopes moments:write
MCP tool revise_moment_passagesParameters Name Location Required Description projectIdpath Yes Owned project ID momentSetIdpath Yes Owned moment-set ID to revise
Request body {
"contentType": "application/json",
"schema": {
"type": "object",
"properties": {
"passages": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"evidence_kind": {
"type": "string",
"enum": [
"speech",
"visual",
"mixed"
]
},
"first_word": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"last_word": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"start_ms": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"end_ms": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"scene_indices": {
"maxItems": 100,
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"caption_corrections": {
"default": [],
"maxItems": 500,
"type": "array",
"items": {
"type": "object",
"properties": {
"ordinal": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"text": {
"type": "string",
"maxLength": 200
}
},
"required": [
"ordinal",
"text"
],
"additionalProperties": false
}
},
"reason": {
"type": "string",
"minLength": 1,
"maxLength": 2000
}
},
"required": [
"evidence_kind",
"first_word",
"last_word",
"start_ms",
"end_ms",
"scene_indices",
"caption_corrections",
"reason"
],
"additionalProperties": false
},
"description": "Complete replacement passage list; revision creates a new immutable moment set"
}
},
"required": [
"passages"
],
"additionalProperties": false
}
}Responses and errors 200The new ready revision, validated passages, and prior moment-set ID. {
"type": "object",
"properties": {
"momentSet": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"claim": {
"type": "string"
},
"targetSeconds": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"selectionMode": {
"type": "string",
"enum": [
"moment",
"quick_cut"
]
},
"status": {
"type": "string"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"id",
"projectId",
"claim",
"targetSeconds",
"selectionMode",
"status",
"error",
"createdAt",
"updatedAt"
],
"additionalProperties": false
},
"passages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"position": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"firstWord": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"lastWord": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"startMs": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"endMs": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"reason": {
"type": "string"
},
"evidence": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "speech"
}
},
"required": [
"kind"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "visual"
},
"visualAnalysisId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"sceneIndices": {
"minItems": 1,
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
}
},
"required": [
"kind",
"visualAnalysisId",
"sceneIndices"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "mixed"
},
"visualAnalysisId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"sceneIndices": {
"minItems": 1,
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
}
},
"required": [
"kind",
"visualAnalysisId",
"sceneIndices"
],
"additionalProperties": false
}
]
},
"captionCorrections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ordinal": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"text": {
"type": "string"
}
},
"required": [
"ordinal",
"text"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"position",
"firstWord",
"lastWord",
"startMs",
"endMs",
"reason",
"evidence",
"captionCorrections"
],
"additionalProperties": false
}
},
"priorMomentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"momentSet",
"passages",
"priorMomentSetId"
],
"additionalProperties": false
}400The replacement source ranges, evidence citations, ordering, or caption corrections are invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks moments:write. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned moment set or cited evidence was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409The moment set cannot be revised in its current state. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Moment or evidence storage is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/moment-sets/33333333-3333-4333-8333-333333333333/passages \
-X PUT -H "Authorization: Bearer $PRISMCLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"passages":[{"evidence_kind":"speech","first_word":10,"last_word":18,"start_ms":0,"end_ms":1,"scene_indices":[],"caption_corrections":[],"reason":"Keep the complete spoken exchange."}]}'TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/moment-sets/33333333-3333-4333-8333-333333333333/passages",
{ method: "PUT", headers: {
Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}`,
"Content-Type": "application/json"
}, body: JSON.stringify({ passages: [{ evidence_kind: "speech",
first_word: 10, last_word: 18, start_ms: 0, end_ms: 1,
scene_indices: [], caption_corrections: [], reason: "Keep the complete spoken exchange." }] }) }
);
const { momentSet, priorMomentSetId, passages } = await response.json();Python Copy
import os, requests
response = requests.put(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/moment-sets/33333333-3333-4333-8333-333333333333/passages",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
json={"passages": [{"evidence_kind": "speech", "first_word": 10,
"last_word": 18, "start_ms": 0, "end_ms": 1, "scene_indices": [],
"caption_corrections": [], "reason": "Keep the complete spoken exchange."}]},
)
moment_set = response.json()["momentSet"]Rendering
Queue a cloud render POST /api/v1/projects/{projectId}/renders
Queue a durable MP4 render from any ready owned moment set. Choose aspect ratio, framing and camera motion, caption style and appearance, saved branding, intro/outro cards, audio visualization, and an optional ordered passage subset. Use idempotency_key for safe retries.
Operation ID queueRender
Scopes renders:write
MCP tool queue_render
Idempotency supported Parameters Name Location Required Description projectIdpath Yes Owned project ID Idempotency-Keyheader No Optional stable render retry key
Request body {
"contentType": "application/json",
"schema": {
"type": "object",
"properties": {
"moment_set_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Owned ready moment-set ID; active selection is not required"
},
"aspect_ratio": {
"default": "original",
"type": "string",
"enum": [
"original",
"16:9",
"1:1",
"9:16"
]
},
"framing": {
"default": "full-frame",
"type": "string",
"enum": [
"full-frame",
"background-fill",
"tracked"
]
},
"captions": {
"default": false,
"type": "boolean"
},
"caption_style": {
"default": "progressive",
"type": "string",
"enum": [
"progressive",
"page",
"scroll"
]
},
"caption_size": {
"type": "string",
"enum": [
"standard",
"large"
]
},
"caption_appearance": {
"type": "object",
"properties": {
"font": {
"type": "string",
"enum": [
"Inter",
"Arial",
"Georgia",
"Impact",
"Montserrat",
"Verdana"
]
},
"text_color": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
"accent_color": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
"outline_color": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
}
},
"additionalProperties": false
},
"style_preset_id": {
"description": "Owned saved preset ID, or default",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"tracking_motion": {
"default": "cut",
"type": "string",
"enum": [
"cut",
"fast-pan",
"smooth-follow"
]
},
"transition": {
"default": "hard-cut",
"type": "string",
"enum": [
"hard-cut",
"fade"
]
},
"intro_enabled": {
"type": "boolean"
},
"outro_enabled": {
"type": "boolean"
},
"audio_motion": {
"type": "string",
"enum": [
"waveform",
"bars",
"pulse"
]
},
"audio_background_color": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
"audio_waveform_color": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
"crop_analysis_id": {
"description": "Completed framing analysis ID returned by analyze_framing",
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"segment_ids": {
"description": "Ordered subset of passage IDs; omit to render every passage",
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"idempotency_key": {
"description": "Stable retry key; reusing it with different settings is rejected",
"type": "string",
"pattern": "^[A-Za-z0-9_.:-]{8,120}$"
}
},
"required": [
"moment_set_id",
"aspect_ratio",
"framing",
"captions",
"caption_style",
"tracking_motion",
"transition"
],
"additionalProperties": false
}
}Responses and errors 202Queued render state, media URLs, and provenance identifiers. {
"type": "object",
"properties": {
"render": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"aspectRatio": {
"type": "string"
},
"framing": {
"type": "string"
},
"cropAnalysisId": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"captions": {
"type": "boolean"
},
"captionStyle": {
"type": "string"
},
"transition": {
"type": "string"
},
"renderTarget": {
"type": "string",
"const": "cloud"
},
"segmentIds": {
"type": "array",
"items": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"status": {
"type": "string"
},
"progressPercent": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"rendererVersion": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"downloadUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"previewUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"provenance": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"segmentIds": {
"type": "array",
"items": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"rendererVersion": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"projectId",
"momentSetId",
"segmentIds",
"rendererVersion"
],
"additionalProperties": false
}
},
"required": [
"id",
"projectId",
"momentSetId",
"aspectRatio",
"framing",
"cropAnalysisId",
"captions",
"captionStyle",
"transition",
"renderTarget",
"segmentIds",
"status",
"progressPercent",
"error",
"createdAt",
"updatedAt",
"rendererVersion",
"downloadUrl",
"previewUrl",
"provenance"
],
"additionalProperties": false
}
},
"required": [
"render"
],
"additionalProperties": false
}400Render settings or selected passages are invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks renders:write. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned project or moment set was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409The project, moment set, framing analysis, transcript, or source is not ready. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Background rendering or storage is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/renders \
-X POST -H "Authorization: Bearer $PRISMCLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"moment_set_id":"33333333-3333-4333-8333-333333333333","aspect_ratio":"9:16","framing":"background-fill","captions":true,"caption_style":"progressive","transition":"hard-cut"}'TypeScript Copy
const response = await fetch("https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/renders", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ moment_set_id: "33333333-3333-4333-8333-333333333333", aspect_ratio: "9:16",
framing: "background-fill", captions: true, caption_style: "progressive", transition: "hard-cut" })
});
const { render } = await response.json();Python Copy
import os, requests
response = requests.post(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/renders",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
json={"moment_set_id": "33333333-3333-4333-8333-333333333333", "aspect_ratio": "9:16",
"framing": "background-fill", "captions": True, "caption_style": "progressive", "transition": "hard-cut"},
)
render = response.json()["render"]Rendering
Get render state GET /api/v1/projects/{projectId}/renders/{renderId}
Retrieve durable render status, progress, settings, preview and download URLs, and source provenance identifiers for an owned render.
Operation ID getRender
Scopes projects:read
MCP tool get_renderParameters Name Location Required Description projectIdpath Yes Owned project ID renderIdpath Yes Owned render ID
Responses and errors 200Durable render state with media URLs when complete. {
"type": "object",
"properties": {
"render": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"aspectRatio": {
"type": "string"
},
"framing": {
"type": "string"
},
"cropAnalysisId": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"captions": {
"type": "boolean"
},
"captionStyle": {
"type": "string"
},
"transition": {
"type": "string"
},
"renderTarget": {
"type": "string",
"const": "cloud"
},
"segmentIds": {
"type": "array",
"items": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"status": {
"type": "string"
},
"progressPercent": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"rendererVersion": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"downloadUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"previewUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"provenance": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"segmentIds": {
"type": "array",
"items": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"rendererVersion": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"projectId",
"momentSetId",
"segmentIds",
"rendererVersion"
],
"additionalProperties": false
}
},
"required": [
"id",
"projectId",
"momentSetId",
"aspectRatio",
"framing",
"cropAnalysisId",
"captions",
"captionStyle",
"transition",
"renderTarget",
"segmentIds",
"status",
"progressPercent",
"error",
"createdAt",
"updatedAt",
"rendererVersion",
"downloadUrl",
"previewUrl",
"provenance"
],
"additionalProperties": false
}
},
"required": [
"render"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks projects:read. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned render was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Render state is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/renders/44444444-4444-4444-8444-444444444444 \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/renders/44444444-4444-4444-8444-444444444444",
{ method: "GET", headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const result = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/renders/44444444-4444-4444-8444-444444444444",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
)
result = response.json()Rendering
Cancel or delete a render DELETE /api/v1/projects/{projectId}/renders/{renderId}
Cancel an active owned render or delete a terminal render when no feed submission depends on it.
Operation ID removeRender
Scopes renders:write
MCP tool remove_renderParameters Name Location Required Description projectIdpath Yes Owned project ID renderIdpath Yes Owned render ID
Responses and errors 200Whether the render was cancelled or deleted. {
"type": "object",
"properties": {
"cancelled": {
"type": "boolean"
},
"deleted": {
"type": "boolean"
}
},
"required": [
"cancelled",
"deleted"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks renders:write. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned render was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409A feed submission depends on this render. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Render storage is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/renders/44444444-4444-4444-8444-444444444444 \
-X DELETE \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/renders/44444444-4444-4444-8444-444444444444",
{ method: "DELETE", headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const result = await response.json();Python Copy
import os, requests
response = requests.delete(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/renders/44444444-4444-4444-8444-444444444444",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
)
result = response.json()Rendering
Download rendered media GET /api/v1/projects/{projectId}/renders/{renderId}/media
Stream a completed owned MP4 render with byte-range support for previews and resumable downloads.
Operation ID getRenderMedia
Scopes projects:readParameters Name Location Required Description projectIdpath Yes Owned project ID renderIdpath Yes Owned render ID dispositionquery No Use inline for browser preview or attachment for download
Responses and errors 200Completed MP4 bytes; range requests return 206. {}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks projects:read. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The completed owned render was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Render media is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/renders/44444444-4444-4444-8444-444444444444/media \
-H "Authorization: Bearer $PRISMCLIP_API_KEY" -o clip.mp4TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/renders/44444444-4444-4444-8444-444444444444/media",
{ headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const clip = await response.arrayBuffer();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/renders/44444444-4444-4444-8444-444444444444/media",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
)
open("clip.mp4", "wb").write(response.content)Submissions
Create a feed submission POST /api/v1/projects/{projectId}/feed-submissions
Send a completed owned 9:16 render into PrismClip's human moderation workflow. The submission captures immutable source, evidence, render, transcript, and analysis provenance. Rights confirmation is required.
Operation ID createFeedSubmission
Scopes submissions:write
MCP tool create_feed_submissionParameters Name Location Required Description projectIdpath Yes Owned project ID
Request body {
"contentType": "application/json",
"schema": {
"type": "object",
"properties": {
"render_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Completed owned 9:16 render ID"
},
"title": {
"type": "string",
"minLength": 3,
"maxLength": 120,
"description": "Public clip title"
},
"category": {
"type": "string",
"enum": [
"interviews",
"podcasts",
"education",
"business",
"comedy",
"music",
"stories"
],
"description": "Feed category"
},
"rights_confirmed": {
"type": "boolean",
"const": true,
"description": "Confirms the account has permission to publish the clip and its contents"
}
},
"required": [
"render_id",
"title",
"category",
"rights_confirmed"
],
"additionalProperties": false
}
}Responses and errors 201The pending feed submission and its durable identifiers. {
"type": "object",
"properties": {
"submission": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"slug": {
"type": "string"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"renderId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"title": {
"type": "string"
},
"category": {
"type": "string",
"enum": [
"interviews",
"podcasts",
"education",
"business",
"comedy",
"music",
"stories"
]
},
"status": {
"type": "string"
},
"rightsConfirmedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"id",
"slug",
"projectId",
"renderId",
"momentSetId",
"title",
"category",
"status",
"rightsConfirmedAt",
"createdAt",
"updatedAt"
],
"additionalProperties": false
}
},
"required": [
"submission"
],
"additionalProperties": false
}400The title, category, render ID, or rights confirmation is invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks submissions:write. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned project was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409The render, moment set, transcript, evidence, or submission state is ineligible. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Feed submission storage is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/feed-submissions -X POST -H "Authorization: Bearer $PRISMCLIP_API_KEY" -H "Content-Type: application/json" -d '{"render_id":"44444444-4444-4444-8444-444444444444","title":"Complete stage exchange","category":"interviews","rights_confirmed":true}'TypeScript Copy
const response = await fetch("https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/feed-submissions", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ render_id: "44444444-4444-4444-8444-444444444444", title: "Complete stage exchange",
category: "interviews", rights_confirmed: true })
});
const { submission } = await response.json();Python Copy
import os, requests
response = requests.post(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/feed-submissions",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
json={"render_id": "44444444-4444-4444-8444-444444444444", "title": "Complete stage exchange",
"category": "interviews", "rights_confirmed": True},
)
submission = response.json()["submission"]Submissions
Get a feed submission GET /api/v1/projects/{projectId}/feed-submissions/{submissionId}
Read the durable state and public metadata of an owned feed submission. Moderation notes and internal review fields are excluded.
Operation ID getFeedSubmission
Scopes projects:read
MCP tool get_feed_submissionParameters Name Location Required Description projectIdpath Yes Owned project ID submissionIdpath Yes Owned feed-submission ID
Responses and errors 200The owned feed submission. {
"type": "object",
"properties": {
"submission": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"slug": {
"type": "string"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"renderId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"title": {
"type": "string"
},
"category": {
"type": "string",
"enum": [
"interviews",
"podcasts",
"education",
"business",
"comedy",
"music",
"stories"
]
},
"status": {
"type": "string"
},
"rightsConfirmedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"id",
"slug",
"projectId",
"renderId",
"momentSetId",
"title",
"category",
"status",
"rightsConfirmedAt",
"createdAt",
"updatedAt"
],
"additionalProperties": false
}
},
"required": [
"submission"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks projects:read. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned feed submission was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Feed submission state is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/feed-submissions/55555555-5555-4555-8555-555555555555 -H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/feed-submissions/55555555-5555-4555-8555-555555555555",
{ method: "GET", headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { submission } = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/feed-submissions/55555555-5555-4555-8555-555555555555",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
)
submission = response.json()["submission"]Submissions
Revise a pending feed submission PATCH /api/v1/projects/{projectId}/feed-submissions/{submissionId}
Replace the public title and category of an owned pending feed submission. Review status, withdrawal, approval, rejection, and publication remain human control-panel operations.
Operation ID reviseFeedSubmission
Scopes submissions:write
MCP tool revise_feed_submissionParameters Name Location Required Description projectIdpath Yes Owned project ID submissionIdpath Yes Owned feed-submission ID
Request body {
"contentType": "application/json",
"schema": {
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 3,
"maxLength": 120,
"description": "Replacement public clip title"
},
"category": {
"type": "string",
"enum": [
"interviews",
"podcasts",
"education",
"business",
"comedy",
"music",
"stories"
],
"description": "Replacement feed category"
}
},
"required": [
"title",
"category"
],
"additionalProperties": false
}
}Responses and errors 200The revised pending feed submission. {
"type": "object",
"properties": {
"submission": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"slug": {
"type": "string"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"renderId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"title": {
"type": "string"
},
"category": {
"type": "string",
"enum": [
"interviews",
"podcasts",
"education",
"business",
"comedy",
"music",
"stories"
]
},
"status": {
"type": "string"
},
"rightsConfirmedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
}
},
"required": [
"id",
"slug",
"projectId",
"renderId",
"momentSetId",
"title",
"category",
"status",
"rightsConfirmedAt",
"createdAt",
"updatedAt"
],
"additionalProperties": false
}
},
"required": [
"submission"
],
"additionalProperties": false
}400The replacement title or category is invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403The API key lacks submissions:write. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned feed submission was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409The submission is no longer pending or changed concurrently. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Feed submission state is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/feed-submissions/55555555-5555-4555-8555-555555555555 \
+ -X PATCH -H "Content-Type: application/json" \
+ -d '{"title":"Revised stage exchange","category":"education"}' -H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/feed-submissions/55555555-5555-4555-8555-555555555555",
{ method: "PATCH", headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}`, "Content-Type": "application/json" }, body: JSON.stringify({ title: "Revised stage exchange", category: "education" }) }
);
const { submission } = await response.json();Python Copy
import os, requests
response = requests.patch(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/feed-submissions/55555555-5555-4555-8555-555555555555",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
json={"title": "Revised stage exchange", "category": "education"},
)
submission = response.json()["submission"]Moments
Queue automatic clip suggestions POST /api/v1/projects/{projectId}/auto-pick
Queue 1–12 independent 15–30 second clip suggestions from an owned project's completed visual timeline. The operation is asynchronous and safely replayed with the same Idempotency-Key.
Operation ID autoPickClips
Scopes moments:write
MCP tool auto_pick_clips
Idempotency required Parameters Name Location Required Description projectIdpath Yes Owned PrismClip project ID Idempotency-Keyheader Yes Stable retry key containing 8 to 120 safe characters
Request body {
"contentType": "application/json",
"schema": {
"type": "object",
"properties": {
"count": {
"default": 8,
"description": "Number of independent clip suggestions to create",
"type": "integer",
"minimum": 1,
"maximum": 12
}
},
"required": [
"count"
],
"additionalProperties": false
}
}Responses and errors 200An earlier request with this idempotency key was replayed. {
"type": "object",
"properties": {
"job": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"status": {
"type": "string"
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"requestedCount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"replayed": {
"type": "boolean"
}
},
"required": [
"id",
"status",
"createdAt",
"requestedCount",
"projectId",
"replayed"
],
"additionalProperties": false
}
},
"required": [
"job"
],
"additionalProperties": false
}202The automatic selection job was queued. {
"type": "object",
"properties": {
"job": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"status": {
"type": "string"
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"requestedCount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"replayed": {
"type": "boolean"
}
},
"required": [
"id",
"status",
"createdAt",
"requestedCount",
"projectId",
"replayed"
],
"additionalProperties": false
}
},
"required": [
"job"
],
"additionalProperties": false
}400The count or idempotency key is invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned project was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409The project does not have a completed visual analysis. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429The API-key rate limit was exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Automatic clip selection is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/auto-pick \
-X POST -H "Authorization: Bearer $PRISMCLIP_API_KEY" \
-H "Idempotency-Key: clip-request-001" \
-H "Content-Type: application/json" -d '{"count":6}'TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/auto-pick",
{ method: "POST", headers: {
Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}`,
"Idempotency-Key": "clip-request-001",
"Content-Type": "application/json"
}, body: JSON.stringify({ count: 6 }) }
);
const { job } = await response.json();Python Copy
import os, requests
response = requests.post(
"https://prismclip.com/api/v1/projects/11111111-1111-4111-8111-111111111111/auto-pick",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}",
"Idempotency-Key": "clip-request-001"},
json={"count": 6},
)
job = response.json()["job"]Jobs
Get an automatic clip-selection job GET /api/v1/jobs/{jobId}
Read an owned automatic clip-selection job. Completed jobs include their candidate moments.
Operation ID getAutoPickJob
Scopes projects:read
MCP tool get_auto_pick_jobParameters Name Location Required Description jobIdpath Yes PrismClip job ID
Responses and errors 200The current job and completed candidates when available. {
"type": "object",
"properties": {
"job": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"status": {
"type": "string"
},
"errorCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"updatedAt": {
"type": "string",
"description": "ISO 8601 timestamp"
},
"requestedCount": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"sourceKind": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"rank": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"title": {
"type": "string"
},
"category": {
"type": "string"
},
"startMs": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"endMs": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"reason": {
"type": "string"
},
"captions": {
"type": "boolean"
},
"status": {
"type": "string"
}
},
"required": [
"id",
"momentSetId",
"rank",
"title",
"category",
"startMs",
"endMs",
"reason",
"captions",
"status"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"projectId",
"status",
"errorCategory",
"createdAt",
"updatedAt",
"requestedCount",
"sourceKind",
"candidates"
],
"additionalProperties": false
}
},
"required": [
"job"
],
"additionalProperties": false
}401The API key is missing or invalid. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404The owned job was not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Job storage is unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222 \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
{ headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { job } = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
)
job = response.json()["job"]Jobs
Prepare recording POST /api/v1/projects/{projectId}/prepare
Prepare an uploaded or imported recording entirely inside PrismClip. Probes media, transcribes speech with word timings, and optionally indexes visual scenes. No local codecs, provider keys, or browser required. Returns a durable job; poll get_workflow.
Operation ID prepareProject
Scopes projects:write
MCP tool prepare_project
Idempotency required Parameters Name Location Required Description projectIdpath Yes Owned project ID Idempotency-Keyheader Yes Stable retry key; changed requests require a new key
Request body {
"contentType": "application/json",
"schema": {
"type": "object",
"properties": {
"transcript": {
"default": true,
"description": "Prepare a timed transcript internally; silent media produces an empty transcript",
"type": "boolean"
},
"visual": {
"default": false,
"description": "Also prepare a visual scene index for visual or mixed moment selection",
"type": "boolean"
}
},
"required": [
"transcript",
"visual"
],
"additionalProperties": false
}
}Responses and errors 202Durable workflow state; poll get_workflow until terminal. {
"type": "object",
"properties": {
"job": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"kind": {
"type": "string",
"enum": [
"prepare",
"framing",
"generate",
"reframe"
]
},
"status": {
"type": "string"
},
"stage": {
"type": "string"
},
"errorCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"replayed": {
"type": "boolean"
},
"pollAfterSeconds": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"result": {
"type": "object",
"properties": {
"analysisId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"title": {
"type": "string"
},
"startMs": {
"type": "number"
},
"endMs": {
"type": "number"
},
"captions": {
"type": "boolean"
}
},
"required": [
"id",
"momentSetId",
"title",
"startMs",
"endMs",
"captions"
],
"additionalProperties": {}
}
},
"renders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"status": {
"type": "string"
},
"downloadUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"previewUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"momentSetId",
"status",
"downloadUrl",
"previewUrl"
],
"additionalProperties": {}
}
}
},
"additionalProperties": {}
}
},
"required": [
"id",
"projectId",
"kind",
"status",
"stage",
"errorCategory",
"createdAt",
"updatedAt",
"replayed",
"pollAfterSeconds",
"result"
],
"additionalProperties": false
}
},
"required": [
"job"
],
"additionalProperties": false
}400Invalid input. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401Authentication required. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}402Source allowance exhausted. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403Required scope missing. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404Owned resource not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409Prerequisite unavailable or idempotency key reused with changed inputs. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429Rate limit exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Processing unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222 \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
{ headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { job } = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
)
job = response.json()["job"]Jobs
Analyze framing POST /api/v1/projects/{projectId}/framing
Create tracked framing for an owned ready moment set, including background proxy creation. Supports a passage subset and visual direction. Poll get_workflow; pass result.analysisId as crop_analysis_id to queue_render.
Operation ID analyzeFraming
Scopes renders:write
MCP tool analyze_framing
Idempotency required Parameters Name Location Required Description projectIdpath Yes Owned project ID Idempotency-Keyheader Yes Stable retry key; changed requests require a new key
Request body {
"contentType": "application/json",
"schema": {
"type": "object",
"properties": {
"moment_set_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"segment_ids": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"visual_direction": {
"default": "",
"type": "string",
"maxLength": 500
}
},
"required": [
"moment_set_id",
"visual_direction"
],
"additionalProperties": false
}
}Responses and errors 202Durable workflow state; poll get_workflow until terminal. {
"type": "object",
"properties": {
"job": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"kind": {
"type": "string",
"enum": [
"prepare",
"framing",
"generate",
"reframe"
]
},
"status": {
"type": "string"
},
"stage": {
"type": "string"
},
"errorCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"replayed": {
"type": "boolean"
},
"pollAfterSeconds": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"result": {
"type": "object",
"properties": {
"analysisId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"title": {
"type": "string"
},
"startMs": {
"type": "number"
},
"endMs": {
"type": "number"
},
"captions": {
"type": "boolean"
}
},
"required": [
"id",
"momentSetId",
"title",
"startMs",
"endMs",
"captions"
],
"additionalProperties": {}
}
},
"renders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"status": {
"type": "string"
},
"downloadUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"previewUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"momentSetId",
"status",
"downloadUrl",
"previewUrl"
],
"additionalProperties": {}
}
}
},
"additionalProperties": {}
}
},
"required": [
"id",
"projectId",
"kind",
"status",
"stage",
"errorCategory",
"createdAt",
"updatedAt",
"replayed",
"pollAfterSeconds",
"result"
],
"additionalProperties": false
}
},
"required": [
"job"
],
"additionalProperties": false
}400Invalid input. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401Authentication required. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}402Source allowance exhausted. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403Required scope missing. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404Owned resource not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409Prerequisite unavailable or idempotency key reused with changed inputs. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429Rate limit exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Processing unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222 \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
{ headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { job } = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
)
job = response.json()["job"]Jobs
Generate clips POST /api/v1/projects/{projectId}/clips
Complete clipping workflow for an owned recording. PrismClip prepares transcripts and visual scenes, selects up to count clips matching instruction, prepares framing, captions and cloud renders internally. Set render=false to review candidate moment sets first. Poll get_workflow for progress, candidates and authenticated media URLs. Stable Idempotency-Key prevents duplicate workflows.
Operation ID generateClips
Scopes projects:writemoments:writerenders:write
MCP tool generate_clips
Idempotency required Parameters Name Location Required Description projectIdpath Yes Owned project ID Idempotency-Keyheader Yes Stable retry key; changed requests require a new key
Request body {
"contentType": "application/json",
"schema": {
"type": "object",
"properties": {
"instruction": {
"default": "",
"description": "Requested topics, answers, scenes, or editorial preferences; empty selects general highlights",
"type": "string",
"maxLength": 2000
},
"evidence_mode": {
"default": "mixed",
"description": "Speech uses the transcript only; visual skips transcription; mixed prepares both. Audio sources use speech.",
"type": "string",
"enum": [
"speech",
"visual",
"mixed"
]
},
"count": {
"default": 3,
"type": "integer",
"minimum": 1,
"maximum": 12
},
"min_duration_seconds": {
"default": 15,
"type": "integer",
"minimum": 1,
"maximum": 300
},
"max_duration_seconds": {
"default": 60,
"type": "integer",
"minimum": 1,
"maximum": 300
},
"render": {
"default": true,
"description": "False returns candidate moment sets for review before rendering",
"type": "boolean"
},
"aspect_ratio": {
"default": "9:16",
"type": "string",
"enum": [
"original",
"16:9",
"1:1",
"9:16"
]
},
"framing": {
"default": "tracked",
"type": "string",
"enum": [
"full-frame",
"background-fill",
"tracked"
]
},
"captions": {
"default": true,
"type": "boolean"
},
"caption_style": {
"default": "progressive",
"type": "string",
"enum": [
"progressive",
"page",
"scroll"
]
},
"caption_size": {
"type": "string",
"enum": [
"standard",
"large"
]
},
"caption_appearance": {
"type": "object",
"properties": {
"font": {
"type": "string",
"enum": [
"Inter",
"Arial",
"Georgia",
"Impact",
"Montserrat",
"Verdana"
]
},
"text_color": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
"accent_color": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
"outline_color": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
}
},
"additionalProperties": false
},
"style_preset_id": {
"description": "Owned saved preset ID, or default",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"tracking_motion": {
"default": "cut",
"type": "string",
"enum": [
"cut",
"fast-pan",
"smooth-follow"
]
},
"transition": {
"default": "hard-cut",
"type": "string",
"enum": [
"hard-cut",
"fade"
]
},
"intro_enabled": {
"type": "boolean"
},
"outro_enabled": {
"type": "boolean"
},
"audio_motion": {
"type": "string",
"enum": [
"waveform",
"bars",
"pulse"
]
},
"audio_background_color": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
"audio_waveform_color": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
}
},
"required": [
"instruction",
"evidence_mode",
"count",
"min_duration_seconds",
"max_duration_seconds",
"render",
"aspect_ratio",
"framing",
"captions",
"caption_style",
"tracking_motion",
"transition"
],
"additionalProperties": false
}
}Responses and errors 202Durable workflow state; poll get_workflow until terminal. {
"type": "object",
"properties": {
"job": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"kind": {
"type": "string",
"enum": [
"prepare",
"framing",
"generate",
"reframe"
]
},
"status": {
"type": "string"
},
"stage": {
"type": "string"
},
"errorCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"replayed": {
"type": "boolean"
},
"pollAfterSeconds": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"result": {
"type": "object",
"properties": {
"analysisId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"title": {
"type": "string"
},
"startMs": {
"type": "number"
},
"endMs": {
"type": "number"
},
"captions": {
"type": "boolean"
}
},
"required": [
"id",
"momentSetId",
"title",
"startMs",
"endMs",
"captions"
],
"additionalProperties": {}
}
},
"renders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"status": {
"type": "string"
},
"downloadUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"previewUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"momentSetId",
"status",
"downloadUrl",
"previewUrl"
],
"additionalProperties": {}
}
}
},
"additionalProperties": {}
}
},
"required": [
"id",
"projectId",
"kind",
"status",
"stage",
"errorCategory",
"createdAt",
"updatedAt",
"replayed",
"pollAfterSeconds",
"result"
],
"additionalProperties": false
}
},
"required": [
"job"
],
"additionalProperties": false
}400Invalid input. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401Authentication required. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}402Source allowance exhausted. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403Required scope missing. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404Owned resource not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409Prerequisite unavailable or idempotency key reused with changed inputs. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429Rate limit exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Processing unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222 \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
{ headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { job } = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
)
job = response.json()["job"]Jobs
Reframe whole video POST /api/v1/projects/{projectId}/reframe
Preserve the entire uploaded video from its first frame to its last, with tracked framing and a cloud render. Defaults to vertical 9:16 with smooth subject tracking. Skips moment selection and transcription. Poll get_workflow for the completed video.
Operation ID reframeVideo
Scopes projects:writemoments:writerenders:write
MCP tool reframe_video
Idempotency required Parameters Name Location Required Description projectIdpath Yes Owned project ID Idempotency-Keyheader Yes Stable retry key; changed requests require a new key
Request body {
"contentType": "application/json",
"schema": {
"type": "object",
"properties": {
"aspect_ratio": {
"default": "9:16",
"type": "string",
"enum": [
"16:9",
"1:1",
"9:16"
]
},
"visual_direction": {
"default": "",
"type": "string",
"maxLength": 500
},
"tracking_motion": {
"default": "smooth-follow",
"type": "string",
"enum": [
"cut",
"fast-pan",
"smooth-follow"
]
}
},
"required": [
"aspect_ratio",
"visual_direction",
"tracking_motion"
],
"additionalProperties": false
}
}Responses and errors 202Durable workflow state; poll get_workflow until terminal. {
"type": "object",
"properties": {
"job": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"kind": {
"type": "string",
"enum": [
"prepare",
"framing",
"generate",
"reframe"
]
},
"status": {
"type": "string"
},
"stage": {
"type": "string"
},
"errorCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"replayed": {
"type": "boolean"
},
"pollAfterSeconds": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"result": {
"type": "object",
"properties": {
"analysisId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"title": {
"type": "string"
},
"startMs": {
"type": "number"
},
"endMs": {
"type": "number"
},
"captions": {
"type": "boolean"
}
},
"required": [
"id",
"momentSetId",
"title",
"startMs",
"endMs",
"captions"
],
"additionalProperties": {}
}
},
"renders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"status": {
"type": "string"
},
"downloadUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"previewUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"momentSetId",
"status",
"downloadUrl",
"previewUrl"
],
"additionalProperties": {}
}
}
},
"additionalProperties": {}
}
},
"required": [
"id",
"projectId",
"kind",
"status",
"stage",
"errorCategory",
"createdAt",
"updatedAt",
"replayed",
"pollAfterSeconds",
"result"
],
"additionalProperties": false
}
},
"required": [
"job"
],
"additionalProperties": false
}400Invalid input. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401Authentication required. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}402Source allowance exhausted. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403Required scope missing. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404Owned resource not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409Prerequisite unavailable or idempotency key reused with changed inputs. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429Rate limit exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Processing unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222 \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
{ headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { job } = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
)
job = response.json()["job"]Jobs
Get workflow GET /api/v1/workflows/{jobId}
Read an owned preparation, framing, or clip-generation workflow. Stage and pollAfterSeconds guide polling; completed renders include authenticated preview and download URLs. Stops at completed, failed or cancelled.
Operation ID getWorkflow
Scopes projects:read
MCP tool get_workflowParameters Name Location Required Description jobIdpath Yes Workflow job ID
Responses and errors 200Workflow state and outputs {
"type": "object",
"properties": {
"job": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"kind": {
"type": "string",
"enum": [
"prepare",
"framing",
"generate",
"reframe"
]
},
"status": {
"type": "string"
},
"stage": {
"type": "string"
},
"errorCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"replayed": {
"type": "boolean"
},
"pollAfterSeconds": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"result": {
"type": "object",
"properties": {
"analysisId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"title": {
"type": "string"
},
"startMs": {
"type": "number"
},
"endMs": {
"type": "number"
},
"captions": {
"type": "boolean"
}
},
"required": [
"id",
"momentSetId",
"title",
"startMs",
"endMs",
"captions"
],
"additionalProperties": {}
}
},
"renders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"status": {
"type": "string"
},
"downloadUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"previewUrl": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"momentSetId",
"status",
"downloadUrl",
"previewUrl"
],
"additionalProperties": {}
}
}
},
"additionalProperties": {}
}
},
"required": [
"id",
"projectId",
"kind",
"status",
"stage",
"errorCategory",
"createdAt",
"updatedAt",
"replayed",
"pollAfterSeconds",
"result"
],
"additionalProperties": false
}
},
"required": [
"job"
],
"additionalProperties": false
}400Invalid input. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401Authentication required. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}402Source allowance exhausted. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403Required scope missing. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404Owned resource not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409Prerequisite unavailable or idempotency key reused with changed inputs. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429Rate limit exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Processing unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222 \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
{ headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { job } = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
)
job = response.json()["job"]Projects
Get project readiness GET /api/v1/projects/{projectId}/readiness
Inspect source, media metadata, transcript and visual preparation state with suggested next tool names. All evidence timestamps are source-relative milliseconds.
Operation ID getProjectReadiness
Scopes projects:read
MCP tool get_project_readinessParameters Name Location Required Description projectIdpath Yes Owned project ID
Responses and errors 200Readiness and next actions {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"sourceReady": {
"type": "boolean"
},
"mediaReady": {
"type": "boolean"
},
"transcript": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"id": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"errorCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"wordCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"status",
"id",
"errorCategory",
"wordCount"
],
"additionalProperties": false
},
"visual": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"id": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"errorCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"status",
"id",
"errorCategory"
],
"additionalProperties": false
},
"nextActions": {
"type": "array",
"items": {
"type": "string"
}
},
"timing": {
"type": "string",
"const": "source-relative milliseconds; transcript ordinals are zero-based"
}
},
"required": [
"projectId",
"sourceReady",
"mediaReady",
"transcript",
"visual",
"nextActions",
"timing"
],
"additionalProperties": false
}400Invalid input. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401Authentication required. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}402Source allowance exhausted. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403Required scope missing. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404Owned resource not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409Prerequisite unavailable or idempotency key reused with changed inputs. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429Rate limit exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Processing unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222 \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
{ headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { job } = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
)
job = response.json()["job"]Rendering
List style presets GET /api/v1/style-presets
List owned render styles including caption appearance, logo, audio visualization and intro/outro settings. Use a returned ID as style_preset_id in generate_clips or queue_render.
Operation ID listStylePresets
Scopes projects:read
MCP tool list_style_presetsResponses and errors 200Owned style presets {
"type": "object",
"properties": {
"presets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"additionalProperties": {}
}
}
},
"required": [
"presets"
],
"additionalProperties": false
}400Invalid input. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401Authentication required. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}402Source allowance exhausted. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403Required scope missing. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404Owned resource not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409Prerequisite unavailable or idempotency key reused with changed inputs. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429Rate limit exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Processing unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222 \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
{ headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { job } = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
)
job = response.json()["job"]Evidence
Get framing analysis GET /api/v1/projects/{projectId}/framing/{analysisId}
Read owned framing analysis state and paginate its original source-timed tracks and scenes, including normalized crop geometry. Use the returned ID for tracked rendering. Time is source-relative milliseconds; geometry values are normalized to the source frame.
Operation ID getFramingAnalysis
Scopes evidence:read
MCP tool get_framing_analysisParameters Name Location Required Description projectIdpath Yes Owned project ID analysisIdpath Yes Framing analysis ID offsetquery No Zero-based track/scene offset limitquery No Maximum tracks and scenes per page, up to 200 each
Responses and errors 200Analysis and original source-timed geometry {
"type": "object",
"properties": {
"analysis": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"projectId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"momentSetId": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"model": {
"type": "string"
},
"status": {
"type": "string"
},
"visualDirection": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"errorCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"projectId",
"momentSetId",
"model",
"status",
"visualDirection",
"errorCategory"
],
"additionalProperties": false
},
"tracks": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"scenes": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"nextOffset": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"analysis",
"tracks",
"scenes",
"nextOffset"
],
"additionalProperties": false
}400Invalid input. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}401Authentication required. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}402Source allowance exhausted. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}403Required scope missing. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}404Owned resource not found. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}409Prerequisite unavailable or idempotency key reused with changed inputs. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}429Rate limit exceeded. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}503Processing unavailable. {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}Examples curl Copy
curl https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222 \
-H "Authorization: Bearer $PRISMCLIP_API_KEY"TypeScript Copy
const response = await fetch(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
{ headers: { Authorization: `Bearer ${process.env.PRISMCLIP_API_KEY}` } }
);
const { job } = await response.json();Python Copy
import os, requests
response = requests.get(
"https://prismclip.com/api/v1/jobs/22222222-2222-4222-8222-222222222222",
headers={"Authorization": f"Bearer {os.environ['PRISMCLIP_API_KEY']}"},
)
job = response.json()["job"]