Skip to main content
POST
/
service
/
v2
/
exports
Create Export Job
curl --request POST \
  --url https://oathnet.org/api/service/v2/exports \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "type": "docs",
  "format": "jsonl",
  "limit": 123,
  "fields": [
    "<string>"
  ],
  "search": {
    "query": "<string>",
    "domains": [
      "<string>"
    ],
    "emails": [
      "<string>"
    ],
    "ips": [
      "<string>"
    ],
    "log_id": "<string>",
    "from_date": "2023-12-25",
    "to_date": "2023-12-25"
  }
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "job_id": "<string>",
    "status": "queued",
    "progress": {
      "records_done": 123,
      "records_total": 123,
      "bytes_done": 123,
      "percent": 123,
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "result": {
      "ready_at": "2023-11-07T05:31:56Z",
      "expires_at": "2023-11-07T05:31:56Z",
      "file_name": "<string>",
      "file_path": "<string>",
      "file_size": 123,
      "format": "<string>",
      "records": 123
    },
    "metadata": {},
    "created_at": "2023-11-07T05:31:56Z",
    "started_at": "2023-11-07T05:31:56Z",
    "completed_at": "2023-11-07T05:31:56Z",
    "expires_at": "2023-11-07T05:31:56Z",
    "next_poll_after_ms": 123,
    "_meta": {
      "user": {
        "plan": "Pro",
        "plan_type": "pro",
        "is_plan_active": true
      },
      "lookups": {
        "used_today": 5,
        "left_today": 995,
        "daily_limit": 1000,
        "is_unlimited": false
      },
      "service": {
        "name": "Service Name",
        "id": "service-id",
        "category": "general",
        "is_premium": false,
        "is_available": true,
        "session_quota": 10
      },
      "performance": {
        "duration_ms": 111.47,
        "timestamp": "2026-01-06T00:44:08.191547"
      }
    }
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication (lowercase header name)

Body

application/json
type
enum<string>
required
Available options:
docs,
victims
format
enum<string>
default:jsonl
Available options:
jsonl,
csv
limit
integer
fields
string[]

Search criteria for export

Response

200 - application/json

Export job created

success
boolean
message
string
data
object