Submit a search
Describe the audience you want and start a search. The fee is charged now and the search runs in the background, so this call answers at once with 202.
A search takes about 2 to 3 minutes. Poll Get a search until status is DONE or FAILED.
The Idempotency-Key names one search. Send the same key and objective again and you get the same request_id back, charged once. Use this to recover from a lost answer. A new search needs a new key.
An account runs one search at a time. A second submission while one is running answers 409 (code 4092) and charges nothing.
Authentication
Your partner credential, issued by Campino. Send it as Authorization: Bearer pc_live_....
Headers
A UUID you generate, one per search. Repeating it with the same objective returns the same search; with another objective it answers 409 (4091).
Request
Plain-language description of the audience, in Persian or English. 1 to 2,048 characters and at most 8,192 bytes. Leading and trailing spaces are trimmed; control characters are rejected.
Response headers
Echoes the X-Request-ID you sent, or a fresh UUID. Log it: it is how we find your request.
Always no-store, private. Never cache a response.
Response
The search was accepted and is running. On a replay the status may already be DONE or FAILED.

