Skip to main content

Get or create a message thread with a studio owner

Returns the subscriber's owner-chat thread without sending a message. Requires an active subscription with the owner_chat perk.
1 min read
post/p/{handle}/messages/thread
Request example
Response
post/p/{handle}/messages/thread

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#

Responses

application/json
OK.
dataobjectrequired#
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#
request_idstring#