cURL
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 } }
Retrieve a single session by ID
Your duohub API key. Type: str
ID of the session to retrieve
Session retrieved successfully
The response is of type object.
object