← Dashboard

External API v1

For integrations from your other apps. Requires API_KEY in server .env.

Base URL

https://acc-api-dashboeard.34.166.92.24.sslip.io

Local dev: http://localhost:3847

Authentication

Authorization: Bearer YOUR_API_KEY
# or
X-Api-Key: YOUR_API_KEY

Endpoints

MethodPathDescription
GET/api/v1/healthAPI + queue status
GET/api/v1/tokensAll accounts with token metadata
GET/api/v1/accounts/:emailSingle account (?target=outlook)
POST/api/v1/accounts/:email/refreshQueue token refresh
GET/api/v1/jobs/:idPoll job status
POST/api/v1/sync/bulkBatch token lookup (≤100 emails)
GET/api/v1/sync/deltaChanged accounts since since
POST/api/v1/sync/webhooksRegister token-update webhook

Full sync guide: SYNC-API.md (also in repo root)

Get all tokens

GET /api/v1/tokens?target=outlook&group=my-group&tokens_only=1

Returns access_token, token_expires_at, last_login_at, health, group, etc.

Refresh one account

POST /api/v1/accounts/user@outlook.com/refresh
Content-Type: application/json

{"target": "outlook"}

Add ?wait=true to block until done (max 120s default).

Refresh vs Re-login

RefreshRe-login
PasswordNot usedSaved password
What it doesRenews token via saved sessionFull Microsoft sign-in
WhenToken expired, session OKSession dead / session-only

Proxy on refresh

Proxy is always used when enabled. IP rotates every 5 account operations (not every refresh).

CSV export (no API key)

GET /api/accounts/export/tokens
GET /api/accounts/export/failed-refresh

Columns include last_login and token_expires.

Restore accounts (zip upload)

Dashboard → Restore data backup on the Account dashboard card, or:

POST /api/data/import
Authorization: Bearer YOUR_API_KEY
Content-Type: application/zip

(raw data-backup.zip bytes)

Extracts into persistent /app/data. Server restarts automatically. Use the same CREDENTIALS_KEY as when the backup was created.

Example — list all tokens

curl -s -H "Authorization: Bearer YOUR_API_KEY" \
  "https://acc-api-dashboeard.34.166.92.24.sslip.io/api/v1/tokens?target=outlook"

Full reference: API.md in the repository.