Skip to main content
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

Authorization
string
header
required

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

slug
string
required

The prompt slug from the dashboard.

Pattern: ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

Body

application/json

Variables to inject into the saved prompt's template. Which variables are required depends on the prompt's definition in the dashboard.

variables
object

Key-value map of variable name → value.

stream
boolean
default:false
max_tokens
integer
temperature
number
Required range: 0 <= x <= 2

Response

Same response shape as /v1/chat/completions. Headers include x-gatelit-request-id and x-gatelit-model.

OpenAI-compatible chat completion response. Returned when stream is false (default).

id
string
object
string
Example:

"chat.completion"

created
integer
model
string

The upstream model that handled the request.

choices
object[]
usage
object