Nurama Developers
Chats

Create a short link for a chat message

Creates a short link for a chat message. If a short link already exists for the message, the existing short link is returned. Visibility is automatically inherited from the parent chat (e.g., 'creator' or 'reviewer' for topic chats, null for member chats). Requires `canCreateMessageShortLink` (read access to the message's chat).

POST
/chats/message/{messageId}/shortlink

Creates a short link for a chat message. If a short link already exists for the message, the existing short link is returned. Visibility is automatically inherited from the parent chat (e.g., 'creator' or 'reviewer' for topic chats, null for member chats). Requires canCreateMessageShortLink (read access to the message's chat).

Authorization

AuthorizationBearer <token>

OAuth 2.1 authorization code flow with PKCE (required of every client, public or confidential). Scopes are a ceiling on the credential, not a grant of access: a token also cannot exceed what the user who approved it may already do. A write scope does not imply its matching read — ask for both.

In: header

Scope: chat:write

Path Parameters

messageId*string

ID of the chat message to create a short link for.

Match^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Formatuuid

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/chats/message/497f6eca-6276-4993-bfeb-53cbbbba6f08/shortlink"
{  "code": "Xk7mPq2R",  "shortUrl": "https://app.nurama.com/s/Xk7mPq2R"}