recomentionDocs
API reference

Start a report

Spends an agency credit, or runs on your own provider keys where enabled. Starts are limited to 10 per key per hour on top of the per-minute limit, and, on your own keys, to the Agent plan's limits. **Idempotency.** Send an `Idempotency-Key` header (or body `idempotencyKey`, 16–128 of `A–Z a–z 0–9 - _`). Keys are scoped to the account that owns the API key, not to the key itself or globally, and bound to the report it describes: `domain`, `brand`, `description`, `category`, `plan`, `engines` and `seedPrompts` (the same key with any of those changed is a different start). **`providerKeys` are not part of that fingerprint**: a retry with the same key and corrected provider keys returns the original start, even a failed one, so rerun with a new `Idempotency-Key`. A retry with the same key and the same report fields returns the original start (200, `reused: true`) and spends nothing again. If that original start was funded by a credit that has since been returned (it could not be queued, or it started, failed and got its credit back), the retry gets 409; start again with a new key. Without a key every request is a new start. **A 503 from this operation is ambiguous.** The start may still complete after the response (for example when it times out on our side). Retry with the **same** `Idempotency-Key` and body: you get the original start if it went through, or a new one if it did not, never both.

POST
/v1/reports

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (rmk_…).

Header Parameters

Idempotency-Key?string

Makes a start safe to retry. Scoped to the account that owns the API key and to the report fields (not providerKeys); a retry must repeat them. Same rules as body idempotencyKey; if both are sent they must match.

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

Request Body

application/json
  1. body
domain*string

The product's domain, e.g. example.com.

Length3 <= length <= 253
description*string

One line on what the product does.

Length3 <= length <= 300
category*string

The category buyers would search, e.g. "meeting scheduling".

Length2 <= length <= 120
brand?string

The product's name. Derived from the domain when omitted.

Lengthlength <= 80
plan?string

Which plan's question count and engines to run. An agency credit runs FULL.

Default"FULL"
Value in"QUICK""FULL""DEEP"
seedPrompts?array<>

Buyer questions to ask. They must not name the product.

Itemsitems <= 40
engines?array<>

A subset of the plan's engines. Defaults to all of them.

Items1 <= items <= 6
funding*string

"credits" spends one agency credit; "byok" runs on your own provider keys where enabled.

Value in"credits""byok"
providerKeys?

funding "byok" only. Used for this run and never stored in the clear or echoed back.

idempotencyKey?string

Same as the Idempotency-Key header. A retry with the same key returns the first start.

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

Response Body

An earlier start with the same idempotency key (reused: true).

application/json
  1. response
slug*string
status*string
reused*boolean

true when an earlier start with the same idempotency key is returned (200).

funding*string
Value in"credits""byok"
url*string
statusUrl*string

Poll this about once a minute.

Example Request
curl -X POST 'https://api.recomention.com/v1/reports' \  -H 'Content-Type: application/json' \  -d '{  "domain": "string",  "description": "string",  "category": "string",  "funding": "credits"}'
Example Response
{  "slug": "string",  "status": "string",  "reused": true,  "funding": "credits",  "url": "string",  "statusUrl": "string"}