Skip to main content
GET
/
api
/
chats
cURL
curl --request GET \
  --url https://recoup-api.vercel.app/api/chats \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "chats": [
    {
      "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.

Query Parameters

account_id
string<uuid>
required

UUID of the account whose chats to retrieve

artist_account_id
string<uuid>

Optional. Filter chats to only include those for the specified artist.

Response

Chats retrieved successfully

status
enum<string>
required

Status of the request

Available options:
success
chats
object[]
required

Array of chat room objects