get profile
Uses the selected organization and the authenticated user’s current permissions. Applies the same setup and archive rules as the dashboard.
/api/v1/meAuthorization
ManagementOAuth managementUser-based Clerk OAuth. CLI is a public Authorization Code client using S256 PKCE and browser loopback redirect. Hosted MCP uses resource-bound OAuth. Verify issuer, token type, intended audience/resource, scopes, live membership and current role. Do not forward arbitrary OAuth tokens into Convex session JWT auth. OAuth URLs below are placeholders for deployment configuration.
In: header
Scope: management
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/me"{ "userId": "string", "defaultOrganizationId": "string"}Retrieve a saved prompt GET
Retrieve saved prompt configuration for your application. Omit both selectors to resolve production. Supply either label or version, never both; reject duplicate, empty, or unknown parameters. Authenticate and authorize before cache validation. The next server request sees a completed label move, including rollback. Exact versions are immutable. Missing/unassigned labels never fall back. A successful 200 or authenticated 304 for an archived prompt records activity. Retrieval never executes a model.
set default organization PUT
Remember the user's account default as an initial organization suggestion; null clears it. This preference does not change an established local CLI organization context or an MCP action's explicit organization target. Every organization-scoped MCP tool invocation supplies organizationId. An inaccessible default causes an explicit choose-organization error; never silently switch to another organization.