Skip to content

Read the transcripts of the videos a task or ticket embeds

GET
/video-transcripts
Code sample: Shell / cURL
curl --request GET \
--url https://example.com/api/v1/video-transcripts \
--header 'Authorization: Bearer <token>'

Returns the transcript of every Cap video embedded in a task (its description and comments) or in a ticket (its messages, internal ones included). Send exactly one of task or ticket. A video whose transcript is not ready yet is PENDING; one that will never have text is UNAVAILABLE with the reason in words. Needs tasks.view with Boards on, or tickets.view with Tickets on, and only what the caller reaches: a task or ticket outside their reach answers 404, exactly like one that does not exist. The module of the record asked for must be on, else 404 MODULE_DISABLED.

task

Id of the task whose videos to read. Send this or ticket, never both.

string
>= 1 characters

Id of the task whose videos to read. Send this or ticket, never both.

ticket

Id of the ticket whose videos to read. Send this or task, never both.

string
>= 1 characters

Id of the ticket whose videos to read. Send this or task, never both.

The transcripts, empty when the record embeds no video.

Media typeapplication/json
object
data
required
object
transcripts
required

One entry per video embedded in the task’s description and comments, or in the ticket’s messages, internal ones included.

Array<object>
object
language
required

The spoken language, when known.

string | null
reason
required

Why there is no text, in words a person reads; null unless UNAVAILABLE.

string | null
record
required

Where the video is embedded: the task’s description, one of its comments, or a ticket message.

string
Allowed values: task task_comment ticket_message
recordId
required

Id of the task, comment or message that embeds it.

string
status
required

PENDING while the transcript is being made, READY once text is available, UNAVAILABLE when there will be none.

string
Allowed values: PENDING READY UNAVAILABLE
text
required

The transcript; null unless READY.

string | null
truncated
required

True when text was cut at 100000 characters.

boolean
video
required

The video’s address, as it is shared.

string

Example

{
"data": {
"transcripts": [
{
"record": "task",
"status": "PENDING"
}
]
}
}

Validation error. Parse failures include field paths and expectations.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Not found.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.