Dashboard API
Resolve
Resolve is a Dashboard API runtime endpoint. Your backend calls it directly to get a route/provider/model decision, then you execute the request via your existing provider access layer (OpenRouter/Portkey/Vercel AI Gateway or direct providers).
Base URL: https://restormel.dev/keys/dashboard/api
Auth: Authorization: Bearer rk_... (Gateway Key, project-scoped)
Endpoint
POST /projects/{projectId}/resolve
Request
- Path param:
projectId(must match your Gateway Key’s project scope) - JSON body:
environmentId(required): environment name (e.g.dev,prod)routeId(optional): route UUID or route name; when set, only that route is considered (no fallback)workload/stage(optional): metadata-based discovery whenrouteIdis omitted (see Host runtime discovery)task(optional): reserved for future switch criteria
Response (200)
Code
Errors
Read JSON error for stable codes (see OpenAPI docs/api/openapi.yaml).
401+unauthorized: missing/invalid Gateway Key or project not in scope403+policy_blocked: route matched; all enabled steps blocked (violationsarray)403+route_disabled: explicitrouteIdis disabled or not active404+no_route: no matching route or wrong environment forrouteId409+route_unpublished: explicitrouteIdis draft (version≠publishedVersion)422+no_key_available: route matched but no enabled step to select
Security
- Call from your backend only (never from the browser).
- Do not log or expose raw
rk_...keys.
Last modified on