Skip to main content
GET
/
api
/
sessions
List sessions
curl --request GET \
  --url https://api.example.com/api/sessions
{
  "sessions": [
    {
      "id": "<string>",
      "agent": "<string>",
      "handle": "<string>",
      "createdAt": "2023-12-25",
      "updatedAt": "2023-12-25",
      "metadata": {},
      "user": {
        "id": "<string>",
        "externalId": "<string>",
        "createdAt": "2023-12-25",
        "updatedAt": "2023-12-25",
        "createdBy": "<string>",
        "space": "production",
        "token": "<string>"
      },
      "userId": "<string>",
      "space": "production",
      "summary": "<string>",
      "versions": [
        "<string>"
      ],
      "state": "<unknown>"
    }
  ],
  "pagination": {
    "page": 123,
    "limit": 123,
    "totalPages": 123,
    "totalCount": 123,
    "hasNextPage": true,
    "hasPreviousPage": true,
    "currentPageStart": 123,
    "currentPageEnd": 123
  }
}

Query Parameters

agent
string
page
limit
userId
string
space
enum<string>
Available options:
production,
playground,
shared-playground
starred

Response

Undescribed

sessions
object[]
required
pagination
object
required