Give a service the smallest TimeLodge API access it needs, with a clear expiry and revocation path. The token belongs to one workspace and appears only once.
Before you begin
- Decide which service will use the token and who owns its rotation.
- Choose only the required read or write permissions.
- Choose an expiry date and a private secret store before creating it.
Roles and permissions
An Owner or Admin can create, view metadata for, and revoke service tokens. Other roles cannot open API & webhooks.
Data shared and external side effects
Creating a token stores its name, scopes, expiry, creator, and a hash of the secret in TimeLodge. It does not contact an external service. The external service receives only the token you copy to it and can access data allowed by its scopes.
API writes can create or change workspace records. Send an Idempotency-Key on POST or PATCH. Read the current ETag and return it through If-Match for mutable updates.
Create a token
- Open the account menu.
- Select API & webhooks.
- Under Create a service token, enter Name.
- Choose Expires.
- Select only the required Permissions.
- Select Create token.
- Copy the value from Copy this secret now directly into your secret store.
- Refresh the page after storing it so the value is no longer visible.

Expected result
The Service tokens row shows the token name, scopes, last use, and expiry. It never shows the secret again. Use GET /api/v1/ping for a side-effect-free credential check.
Disconnect and recovery
Select Revoke to stop the token on its next request. Revocation does not undo records already created by the service.
TimeLodge cannot recover a lost secret. Revoke the old token, create a replacement with the same or narrower scopes, update the service, then revoke any overlap you no longer need.
Troubleshooting
- The token value is gone: This is expected after the one-time display. Create a replacement; do not look for it in logs or exports.
- The API returns 401: Check revocation, expiry, and bearer-token formatting.
- The API returns 403: Add only the missing scope through a replacement token.
- A write returns 409, 412, or 428: Check idempotency and If-Match headers in Developer docs.
Related guides
Create one narrowly scoped token now, then schedule its replacement before the expiry date.