Developers

Account endpoints

Agent API v1 endpoints for the account behind an API key — profile and scopes, workspaces, credit balance and usage.

On this page

These endpoints work with any valid key, whatever its scopes, and only return information about the key's own member and workspaces.

Account#

Who the key belongs to, its workspaces, credits and usage.

Get the current user#

GET/me
Convex profiles.meAny valid key

The user the API key belongs to, their plan and the key's scopes.

Shell
curl "https://api.desyn.app/api/v1/me" \
  -H "Authorization: Bearer $DESYN_API_KEY"

List workspaces#

GET/workspaces
Convex workspaces.listAny valid key

Workspaces the user belongs to, with their role in each.

Shell
curl "https://api.desyn.app/api/v1/workspaces" \
  -H "Authorization: Bearer $DESYN_API_KEY"

Get credit balance#

GET/credits
Convex credits.balanceAny valid key

Credits for the current period: the monthly grant, what has been used, what is reserved by running jobs, usage past the pool (overage, never billed) and whether requests are currently soft-throttled. On self-hosted installations granted and remaining are null (unlimited).

Shell
curl "https://api.desyn.app/api/v1/credits" \
  -H "Authorization: Bearer $DESYN_API_KEY"

Get usage#

GET/usage
Convex usage.summaryAny valid key

Counters for the current period against your plan's limits.

Shell
curl "https://api.desyn.app/api/v1/usage" \
  -H "Authorization: Bearer $DESYN_API_KEY"

Popular pages

QuickstartGet started
Keyboard shortcutsEditor
The agentAI
Docker Compose quickstartSelf-hosting
Configuration referenceSelf-hosting
Agent API (v1)Developers