EndpointsCollections

Get all user collections

Retrieves all collections belonging to the authenticated user, newest first.

GET
/collections

Authorization

headerAuthorizationBearer <token>

Personal access token for non-browser clients. Mint at Settings → API Tokens. Carries one of two scopes: read (list/get Routes, export GPX, profile) or write (read plus metadata-only mutations on owned routes and on preferences). Blocked from /admin/* and from DELETE /users/me. Destructive operations require X-Routess-Confirm: true and return 428 PRECONDITION_REQUIRED otherwise. See ADR-0022 and ADR-0023.

Response Body

application/json
  1. response
[index: integer]?
curl -X GET 'https://api.routess.com/collections'
[  {    "id": 0,    "name": "string",    "description": "string",    "visibility": "private",    "routeIds": [      0    ],    "routeCount": 0,    "shareToken": "9f86d081884c7d659a2feaa0c55ad015",    "user": {      "id": 1,      "name": "Jane Doe",      "handle": "jane-doe",      "avatar": "https://example.com/avatar.jpg",      "idHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"    },    "createdAt": "string",    "updatedAt": "string"  }]