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
| Field | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Prompt text to create. |
providers | array | No | Provider list for this prompt. Defaults to project provider settings when omitted. |
locations | array | No | ISO 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
| Status | Description |
|---|---|
201 | Prompt created |
400 | Bad request |
401 | Unauthorized |
403 | Prompt limit exceeded |
409 | Prompt already exists |
429 | Rate limited |
500 | Internal error |