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" } }
Create a new chat room. Optionally associate it with an artist and/or provide a client-generated chat ID.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Chat creation parameters
UUID of the artist account the chat is associated with
UUID for the new chat (client-generated). If not provided, one will be generated automatically.
Chat created successfully
Status of the request
success
The created chat room object
Show child attributes