GET
/
sessions
/
get
/
{id}
curl --request GET \
  --url https://api.duohub.ai/sessions/get/{id} \
  --header 'X-API-Key: <api-key>'
{
  "status": "success",
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "userID": "user-123",
    "customerUserID": "cust-123",
    "metadata": [
      {
        "key": "source",
        "value": "web"
      }
    ],
    "createdAt": "2024-01-01T00:00:00.000Z",
    "updatedAt": "2024-01-01T00:00:00.000Z",
    "deletedAt": null,
    "endedAt": null
  }
}

Authorizations

X-API-Key
string
header
required

Your duohub API key. Type: str

Path Parameters

id
string
required

ID of the session to retrieve

Response

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