Resource Links
Tokens must be linked to at least one resource (calendar) to access data. Tokens with no linked resources cannot query any calendar endpoints.
Base URL
/api/auth/token/{tokenId}/resourcesGET
/api/auth/token/{tokenId}/resourcesBearer / JWTList Token Resources
Returns all resources linked to the specified token.
Response 200 OK
[ { "id": 1, "resourceId": "550e8400-e29b-41d4-a716-446655440000", "resourceTitle": "Primary Calendar", "createDate": "2026-02-01T10:00:00Z" } ] POST
/api/auth/token/{tokenId}/resourcesBearer / JWTLink Resource to Token
Links a single resource (calendar) to the specified token.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| resourceId | UUID | Yes | Resource (calendar) ID to link |
{ "resourceId": "550e8400-e29b-41d4-a716-446655440000" } POST
/api/auth/token/{tokenId}/resources/bulkBearer / JWTBulk Link Resources
Links multiple resources to a token in a single operation.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| resourceIds | UUID[] | Yes | List of resource IDs (at least 1) |
{ "resourceIds": [ "550e8400-e29b-41d4-a716-446655440000", "660e8400-e29b-41d4-a716-446655440000" ] } DELETE
/api/auth/token/{tokenId}/resources/{linkId}Bearer / JWTUnlink Resource from Token
Removes a specific resource link from the token.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| tokenId | int | Access token ID |
| linkId | int | Resource link ID (from the list response) |
Response 200 OK
{ "success": true, "message": "Resource unlinked from token" } Warning
If all resources are unlinked, the token will no longer be able to access any data.
DELETE
/api/auth/token/{tokenId}/resourcesBearer / JWTUnlink All Resources
Removes all resource links from a token.
Response 200 OK
{ "success": true, "message": "Unlinked 3 resources from token", "count": 3 } Warning
The token will no longer be able to access any data until resources are linked again.