Opsis API / v1
Create a search
Submit an email, username, or domain search.
Request
POST
/v1/searchesStart one search. Send JSON and an authenticated API key. A standard search costs 1 credit; a Premium username search costs 2.
| Field | Type / default | Description |
|---|---|---|
| type | string · required | email, username, or domain. |
| query | string · required | The email address, username, or domain to search. |
| wait | boolean · false | Wait briefly for a terminal snapshot. If still running at the wait deadline, retrieve the same run with GET. |
| stream | boolean · false | Return an SSE stream. Takes precedence over wait when both are true. |
| premium | boolean · false | Include additional solver-backed username modules for 2 credits total. Ignored for email and domain. |
shell
curl -X POST https://api.useopsis.com/v1/searches \
-H "Authorization: Bearer $OPSIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type":"email","query":"[email protected]"}'Choose a response mode
| Mode | Response |
|---|---|
| Default | JSON with run_id and status: running. Save the ID and poll or attach a stream. |
| wait: true | A terminal snapshot if the run finishes within the configured wait, otherwise run_id and status: running. |
| stream: true | text/event-stream with run, result, progress, and terminal or reconnect events. |
Example · accepted search
{
"run_id": "00000000-0000-4000-8000-000000000001",
"status": "running"
}The default synchronous wait is 30 seconds, but deployments can override it. Read limits.sync_wait_seconds from capabilities.