/v1/promptCreate a prompt
Creates a new prompt under a project. Supply project_id, name, and slug, and use prompt_data, tags, and function_type to define the prompt and its classification; an existing prompt with the same project and slug is returned unchanged.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Information for the prompt to create. project_id, name, and slug are required.
Unique identifier for the project that the prompt belongs under
Name of the prompt
Unique identifier for the prompt
Textual description of the prompt
The prompt, model, and its parameters
A list of tags for the prompt
The prompt function type: llm, scorer, task, tool, or null.
Unique identifier for the prompt
The transaction id of an event is unique to the network operation that processed the event insertion. Transaction ids are monotonically increasing over time and can be used to retrieve a versioned snapshot of the prompt (see the version parameter)
Unique identifier for the project that the prompt belongs under
A literal 'p' which identifies the object as a project prompt
Unique identifier for the organization
Name of the prompt
Unique identifier for the prompt
Textual description of the prompt
Date of prompt creation
The prompt, model, and its parameters
A list of tags for the prompt
User-controlled metadata about the prompt
name or slug is empty.A 400 is returned when the request is unacceptable, including when project_id, name, or slug is missing, or when name or slug is empty. A 401 is returned without a valid API key, and a 403 is returned when the API key lacks permission. A 429 indicates that requests are being sent too quickly, while a 500 indicates an API-side failure.