Skip to main content
POST
/
api
/
user
/
courses
Retrieve user conversations
curl --request POST \
  --url http://localhost:3000/api/user/courses \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '{}'
{
  "success": true,
  "data": [
    {
      "_id": "688b024f7db6fe6e921399e3",
      "name": "Converssation 123",
      "history_count": 12
    }
  ]
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json

Empty object for this endpoint

Response

Successfully retrieved user courses

success
boolean

Indicates if the request was successful

data
object[]

Array of course objects matching the search criteria