Create a prompt

Creates a new prompt with optional provider assignments. Defaults to the project default provider when providers are omitted.

POST /prompts

Create a prompt

Creates a new prompt with optional provider assignments. Defaults to the project default provider when providers are omitted.

Authentication: API key required (Bearer token)

Request Body

FieldTypeRequiredDescription
textstringYesPrompt text to create.
providersarrayNoProvider list for this prompt. Defaults to project provider settings when omitted.
locationsarrayNoISO 3166-1 alpha-2 location codes for geo-targeted analysis. Defaults to ["US"] when omitted.

Request Example

curl -X POST https://sellm.io/api/v1/prompts \
  -H "Authorization: Bearer sellm_your_api_key_here" \
  -H "Content-Type: application/json"

Responses

StatusDescription
201Prompt created
400Bad request
401Unauthorized
403Prompt limit exceeded
409Prompt already exists
429Rate limited
500Internal error