Skip to navigation

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

AuthorizationBearer

Your partner credential, issued by Campino. Send it as Authorization: Bearer pc_live_....

Headers

Idempotency-KeystringRequiredformat: "uuid"

A UUID you generate, one per search. Repeating it with the same objective returns the same search; with another objective it answers 409 (4091).

X-Request-IDstringOptionalformat: "uuid"
Optional. A UUID of your own for tracing. It is echoed back.

Request

This endpoint expects an object.
objectivestringRequired1-2048 characters

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

X-Request-IDstringOptionalformat: "uuid"

Echoes the X-Request-ID you sent, or a fresh UUID. Log it: it is how we find your request.

X-Partner-RateLimit-10-SecondsintegerOptional
Requests allowed per credential in 10 seconds.
X-Partner-RateLimit-MinuteintegerOptional
Requests allowed per credential in a minute.
X-Partner-RateLimit-DayintegerOptional
Requests allowed per credential in a day.
X-Partner-User-RateLimit-DayintegerOptional
Requests allowed for the whole account in a day.
X-Partner-Max-ConcurrentintegerOptional
Requests your credential may have in flight at once.
Cache-ControlstringOptional

Always no-store, private. Never cache a response.

LocationstringOptional
The URL to poll.
Idempotency-KeystringOptional
Echo of the key you sent.
Retry-AfterintegerOptional
Seconds to wait before the first poll.

Response

The search was accepted and is running. On a replay the status may already be DONE or FAILED.

statusenum
Allowed values:
dataobject
A search that was accepted.
erroranyOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
502
Bad Gateway Error
503
Service Unavailable Error