API Reference
Run Prompt
Execute a saved prompt by slug with variable interpolation.
POST
POST /v1/prompts/{slug}/run
Execute a saved prompt from the dashboard by its slug. The gateway fetches the published version, interpolates your variables into the template, and routes through the normal chat completions pipeline.
Auth
All three schemes are accepted:Bearer (OIDC) is supported but in Alpha. Contact us if you need OIDC auth.Path parameters
Request body
Examples
Response
Same shape as/v1/chat/completions. Response headers include x-gatelit-request-id and x-gatelit-model.
Errors
Authorizations
OIDC JWT issued by your auth provider (Alpha). Full self-serve configuration is coming soon — contact us for early access. Use this for browser/frontend clients where a user is signed in.
Path Parameters
The prompt slug from the dashboard.
Pattern:
^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$Body
application/json
Response
Same response shape as /v1/chat/completions. Headers include x-gatelit-request-id and x-gatelit-model.