GET
/
sessions
/
list
curl --request GET \
  --url https://api.duohub.ai/sessions/list \
  --header 'X-API-Key: <api-key>'
{
  "status": "success",
  "data": {
    "sessions": [
      {
        "id": "<string>",
        "userID": "<string>",
        "customerUserID": "<string>",
        "metadata": [
          {
            "key": "<string>",
            "value": "<string>"
          }
        ],
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "deletedAt": "2023-11-07T05:31:56Z",
        "endedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "nextToken": "<string>",
    "previousToken": "<string>",
    "count": 123
  }
}

Authorizations

X-API-Key
string
header
required

Your duohub API key. Type: str

Query Parameters

customerUserID
string

Filter sessions by customer user ID

limit
integer
default:10

Maximum number of sessions to return

Required range: 1 <= x <= 100
nextToken
string

Token for getting the next page of results

previousToken
string

Token for getting the previous page of results

Response

200
application/json
Sessions retrieved successfully
status
enum<string>
required
Available options:
success
data
object
required