API & Developer
Generate an API token for the public API
REST API base URL, tokens, and safe usage patterns.
RepDesk exposes a versioned REST API under /api/v1 on your host (for production: https://repdesk.io/api/v1). Integrations, scripts, and the Chrome extension (where applicable) authenticate with a Bearer token tied to your company—never with a password in the query string.
Full endpoint and auth reference (for developers):
Treat docs/PUBLIC_API.md in the RepDesk repository as the contract for paths, payloads, and error shapes. This help page is the operator summary.
(Screenshot — add later: My Settings → API Tokens with Create / list / revoke; blur any live token.)
Create and store tokens safely#
Sign in to RepDesk in the browser.
Open My Settings and find API Tokens (or the name your deployment uses).
Create a named token, copy it once, and store it in a secret manager or your integration’s env vars—the UI may not show the full secret again after creation.
Rotate or revoke when a teammate leaves, a laptop is lost, or a token was pasted into chat by mistake.
Never:
Commit tokens to git, Slack, email, or client-side browser code that users can view source on.
Share one token across two companies—each token is scoped to one
company_id.
How to call the API#
Typical pattern:
GET https://repdesk.io/api/v1/...
Authorization: Bearer <your_api_token>
Content-Type: application/json
Some flows also accept a Supabase session from the browser; server-to-server and CLI tools should use Bearer tokens as documented in PUBLIC_API.md.
Issuing a long-lived token from a session is described there (e.g. POST /api/v1/auth/token where enabled)—follow that doc for exact headers and body.
Tenancy (multi-company)#
Every successful request runs in the context of the company attached to the token (or session). If you get empty lists or 403 responses, confirm you are using a token created while signed into the correct org, not a personal test token from another tenant.
Troubleshooting#
Symptom | Check |
|---|---|
| Token revoked, typo, or missing |
| Wrong company for that token. |
CORS from browser | Prefer server-side or extension calls; public browsers cannot safely hold production secrets. |
For product bugs, contact support@repdesk.io with timestamp and request id if the response includes one—do not paste the raw token.