Skip to content

Request a call frame upload

POST
/v1/calls/{id}/frames
curl --request POST \
--url https://app.mondochat.io/v1/calls/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/frames \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "content_type": "image/jpeg", "subject_id": "0199d6a0-1000-7000-8000-000000000002" }'

Returns a presigned POST for one frame of the other participant’s video, which moderation judges like a photo. Only a participant of an active call may call it, naming the other participant as subject_id, and only after the call.capture event was sent for that subject. Past moderation.calls.capture_max_frames for the subject it answers 429. The link lives 2 minutes and takes up to 1 MB. Takes a session token. See https://docs.mondochat.io/guides/calls/.

id
required
Id
string format: uuid
Media typeapplication/json
FrameRequest

Asks for a presigned upload of one captured call frame.

object
content_type
required
Content Type

The frame’s media type.

string
Allowed value: image/jpeg
subject_id
required
Subject Id

The other participant, whose video the frame shows.

string format: uuid

Successful Response

Media typeapplication/json
FrameUpload

A presigned POST for one call frame.

object
expires_at
required
Expires At

When the upload link stops working, 2 minutes on.

string format: date-time
fields
required
Fields

Form fields to send with the file in the POST.

object
key
additional properties
string
frame_id
required
Frame Id

The frame’s id. Pass it to the complete route.

string format: uuid
url
required
Url

Where to POST the frame.

string

Example

{
"expires_at": "2026-11-01T09:32:00Z",
"fields": {
"key": "c/0199d6a0-5000-7000-8000-000000000001/frame.jpg"
},
"frame_id": "0199d6a0-5100-7000-8000-000000000001",
"url": "https://uploads.example.test/"
}

Problem

Media typeapplication/problem+json

An RFC 9457 problem: the body of every error answer.

object
code
required

The stable error code to branch on, such as policy_denied.

string
detail

What went wrong this time, when there is more to say.

string | null
errors

For validation, one entry per invalid field.

Array<object>

One invalid field.

object
loc

The path to the field.

array
msg

What is wrong with it.

string
instance

The path of the request.

string
reason

For policy_denied and limit_reached, the rule or limit that refused the request; for forbidden, a short cause such as you_blocked; for banned, temporary when the ban expires.

string
status
required

The HTTP status code.

integer
title
required

A short summary of the problem.

string
type
required

A URL that names the problem, https://app.mondochat.io/problems/<code>.

string

Example

{
"code": "policy_denied",
"detail": null,
"instance": "/v1/conversations/0199d6a0-2000-7000-8000-000000000001",
"reason": "pins",
"status": 403,
"title": "Policy denied",
"type": "https://app.mondochat.io/problems/policy_denied"
}