Create a prompt version
Create a new version of a prompt. Use {{variable_name}} syntax in messages to define template variables.
Authentication
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.
Use a dashboard JWT only for dashboard-authenticated endpoints. Respan API-key endpoints use the respanApiKey auth field instead.
Path parameters
Request
Non-empty message array. Each message requires role; content may be omitted, an empty string, null, or an empty array.
Optional provider-specific reasoning configuration.
Sampling temperature (0-2).
Frequency penalty (-2 to 2).
Presence penalty (-2 to 2).
Weighted load-balancing model configuration.
Structured output / response format configuration.