List active sessions
/v1/auth/sessionsLists one page of the authenticated user's active sessions (non-revoked, unexpired refresh tokens, filtered in the query), newest first, each exposing the session's id, ip_address, user_agent, created_at, and expires_at. Takes page and take only. Guarded by UserJwtGuard.
Query Parameters
pagenumber Optional Page number (1-based)
takenumber Optional Items per page (1-100, default 20)
Responses
application/json
items *SessionDto[]pagination *PageMetaDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Pagination
This endpoint returns a paginated collection. Use the query parameters below to page through results.
pagenumberPage number (1-indexed). Defaults to 1.
takenumberItems per page (1 to 100). Defaults to 20.
Each response includes an items array alongside a pagination object with item_count, page_count, has_previous_page, and has_next_page fields.
Returned object
curl -X GET "https://auth.canopy-io.com/v1/auth/sessions?page=0&take=0"
{ "items": [ { "id": "string", "ip_address": "string", "user_agent": "string", "created_at": "2026-04-20T12:00:00.000Z", "expires_at": "2026-04-20T12:00:00.000Z" } ], "pagination": { "page": 0, "take": 0, "item_count": 0, "page_count": 0, "has_previous_page": false, "has_next_page": false } }
Tell us how we can improve this guide.