API reference · Playground
Save a prompt
POST/api/promptsSigned in session
Private to the account that saved it.
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| namerequired | string | |
| contentrequired | string |
Example
{
"name": "string",
"content": "Say hello in five words."
}Answer 201
Saved.
| Field | Type | What it is |
|---|---|---|
| prompt | SavedPrompt | |
| prompt. | integer | |
| prompt. | string | |
| prompt. | string | |
| prompt. | integer | |
| prompt. | integer |
Errors
- 400OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.