prompts

Create a prompt

Create a new prompt template.

post/api/prompts/

Headers

Authorizationstring required

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, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.

Request body

namestring required

Prompt name.

descriptionstring

Prompt description.

Response

Prompt created successfully.

idstring

The unique prompt identifier.

namestring
descriptionstring nullable
prompt_slugstring nullable
created_atstring date-time
updated_atstring date-time

Changes