GET /v1/sessions
Retrieves all sessions under the current account with cursor pagination. Results are sorted by creation time in descending order (newest first).
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer $QODER_PAT |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Maximum number of records to return. Default 20 |
after_id | string | No | Cursor pagination: return records after this ID |
before_id | string | No | Cursor pagination: return records before this ID |
Example request
Example response
HTTP 200 OKResponse fields
| Field | Type | Description |
|---|---|---|
data | array | List of Session objects |
first_id | string | ID of the first record on the current page |
last_id | string | ID of the last record on the current page |
has_more | boolean | Whether more records are available |
last_id as the after_id parameter on the next request to page forward.
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 401 | authentication_error | PAT invalid or expired |