Create a new prompt

Create a new prompt with the given configuration. This endpoint allows superusers to create a new prompt with a specified name, template, and input types.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

X-API-KeystringRequired

Request

This endpoint expects an object.
namestringRequired
The name of the prompt
templatestringRequired
The template string for the prompt
input_typesmap from strings to stringsOptional
A dictionary mapping input names to their types

Response

Successful Response
resultsobject

Errors