recomentionDocs
API reference

Add saved questions

Idempotency receipts can be replayed for 7 days; after that window the same key may be processed as a new edit. Edits saved next-run questions only; no run starts and nothing is charged. Send a required Idempotency-Key header (16–128 letters, digits, - or _). Keys are bound to the owner, project and edit fields; repeating those returns the original result with reused=true, even after intervening edits. Changed fields describe a new edit, as with report starts. Additions use the dashboard's validation, duplicate rejection and plan cap (up to 10). Historical report questions are never modified.

POST
/v1/projects/{id}/prompts

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (rmk_…).

Path Parameters

id*string

Header Parameters

Idempotency-Key*string
Match^[A-Za-z0-9_-]{16,128}$

Request Body

application/json
  1. body
text*array<>
Items1 <= items <= 10

Response Body

The saved list after this edit.

application/json
  1. response
prompts*array<>
ok*boolean
reused*boolean
Example Request
curl -X POST 'https://api.recomention.com/v1/projects/string/prompts' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "text": [    "string"  ]}'
Example Response
{  "prompts": [    {      "id": "string",      "text": "string",      "intent": "string",      "stage": "string",      "createdAt": "string"    }  ],  "ok": true,  "reused": true}