Skip to content

Open view-once media or a voice note

POST
/v1/conversations/{id}/messages/{message_id}/open
curl --request POST \
--url https://app.mondochat.io/v1/conversations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/messages/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/open \
--header 'Authorization: Bearer <token>'

Returns a signed link to the full media: 120 seconds, or 1 hour for a video or voice note. The recipient of a view-once message or of a voice note can call it, and so can the sender of a voice note that is not view once. The recipient’s first call stamps opened_at and tells both participants. For a view-once message later calls work for 60 seconds, then answer 410 gone. Takes a session token. See https://docs.mondochat.io/guides/messages/.

id
required
Id
string format: uuid
message_id
required
Message Id
string format: uuid

Successful Response

Media typeapplication/json
OpenedMedia

The full media of a view-once message or a voice note.

object
caption
required
Any of:
string
expires_at
required
Expires At

When the link stops working.

string format: date-time
url
required
Url

Signed link to the media: 120 seconds, or 1 hour for a video or voice note.

string

Example

{
"caption": "Sunset",
"expires_at": "2026-11-01T09:32:00Z",
"url": "https://media.example.test/p/0199d6a0-4000-7000-8000-000000000001/full.webp"
}

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"
}