Skip to main content
POST
/
api
/
chats
cURL
curl --request POST \
  --url https://recoup-api.vercel.app/api/chats \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "artistId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "chatId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "status": "success",
  "chat": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "topic": "<string>",
    "updated_at": "2023-11-07T05:31:56Z",
    "artist_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Chat creation parameters

artistId
string<uuid>

UUID of the artist account the chat is associated with

chatId
string<uuid>

UUID for the new chat (client-generated). If not provided, one will be generated automatically.

Response

Chat created successfully

status
enum<string>
required

Status of the request

Available options:
success
chat
object
required

The created chat room object