Skip to main content

Open or send a message to a studio owner

Get-or-create the subscriber thread and send the first or next message. Requires an active subscription with the owner_chat perk. The studio owner cannot message their own studio.
1 min read
post/p/{handle}/messages
Request example
Response
post/p/{handle}/messages

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

handlestringrequired#

Body

application/json
bodystringrequired#

Length: 1–4000

Responses

application/json
Created.
dataobjectrequired#
Show child attributes
threadobjectrequired#
Show child attributes
idstringrequired#
profileobjectrequired#
Show child attributes
studioIdstringrequired#
handlestringrequired#
namestringrequired#
imageUrlstring#
subscriberobjectrequired#
Show child attributes
userIdstringrequired#
namestring#
avatarUrlstring#
ownerobjectrequired#
Show child attributes
userIdstringrequired#
namestring#
avatarUrlstring#
lastMessageobject#
Show child attributes
idstringrequired#
threadIdstringrequired#
senderUserIdstringrequired#
bodystringrequired#

Length: max 4000

createdAtstringrequired#
lastMessageAtstring#
unreadCountintegerrequired#
viewerRoleenum<string>required#
Options:ownersubscriber
subscriptionActivebooleanrequired#
canOwnerChatbooleanrequired#
blockedbooleanrequired#
canSendbooleanrequired#
createdAtstringrequired#
updatedAtstringrequired#
messageobjectrequired#
Show child attributes
idstringrequired#
threadIdstringrequired#
senderUserIdstringrequired#
bodystringrequired#

Length: max 4000

createdAtstringrequired#
request_idstring#