Outsend API

Outsend API as documented publicly: 30 operations. Contract generated from the documentation by API Evangelist (2026-11-20); not the provider's own document.

GitHub OpenAPI

Operations 30

POST /api/auth/email/resend-verify Re-sends the verification email to the authenticated user. #
POST /api/auth/email/verify Consumes a single-use verification token and flips email_verified to true. #
POST /api/auth/login Validates credentials and opens a session. #
POST /api/auth/logout Revokes the current session and clears the cookie. #
DELETE /api/auth/me Permanently deletes the account and every owned record (jobs, pipelines, surveillances, sessions, tokens). #
GET /api/auth/me Returns the currently authenticated user. #
GET /api/auth/me/export GDPR portability endpoint. Streams a ZIP archive containing every record owned by the user. #
POST /api/auth/password/change Rotates the password for a logged-in user. #
POST /api/auth/password/reset-confirm Consumes a single-use reset token and sets the new password. #
POST /api/auth/password/reset-request Sends a reset link to the email if it matches an active user. #
POST /api/auth/signup Creates a user, sends the welcome + verification email, and opens a session. #
POST /api/estimate Jobs API #
GET /api/events GET /api/events #
GET /api/jobs List jobs #
POST /api/jobs Create a job (generic) #
DELETE /api/jobs/{id} Jobs API #
GET /api/jobs/{id} Get a job #
POST /api/jobs/{id}/cancel Cancel a job #
GET /api/jobs/{id}/download Download a job's result #
GET /api/jobs/{id}/items List a job's items #
POST /api/jobs/{id}/resume Jobs API #
GET /api/jobs/{id}/stream Stream live progress (SSE) #
POST /api/jobs/{type} Create a job (typed shortcut) #
GET /api/keys Lists the account's keys: prefixes only, never secrets. #
POST /api/keys Creates a key. Auth: session cookie only. #
DELETE /api/keys/{id} Revokes the key (logical delete). #
GET /api/webhooks Lists the account's endpoints: without secrets. #
POST /api/webhooks POST /api/webhooks #
DELETE /api/webhooks/{id} Deletes the endpoint (hard delete: this is what n8n does when a workflow is deactivated). #
GET /api/webhooks/{id}/deliveries Last 20 delivery attempts for the endpoint (status, attempts, HTTP code, error): the first place to look when debugging an integration. #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/outsend-xyz:outsend-xyz-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

outsend-xyz-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Outsend API
  version: '2026-11-20'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-20: 30 operation(s) read from 3 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; Outsend has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 2
    documentation: 28
    pages-with-code: 1
    pages-read: 3
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-20'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://outsend.xyz/docs/api/auth
  - https://outsend.xyz/docs/api/jobs
  - https://outsend.xyz/docs/api/events
paths:
  /api/auth/email/resend-verify:
    post:
      operationId: post_api_auth_email_resend_verify
      tags:
      - Api
      summary: Re-sends the verification email to the authenticated user.
      x-source: https://outsend.xyz/docs/api/auth
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiAuthEmailResendVerifyResponse'
      x-evidence:
        kind: documentation
  /api/auth/email/verify:
    post:
      operationId: post_api_auth_email_verify
      tags:
      - Api
      summary: Consumes a single-use verification token and flips email_verified to true.
      x-source: https://outsend.xyz/docs/api/auth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiAuthEmailVerifyRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiAuthEmailVerifyResponse'
      x-evidence:
        kind: documentation
  /api/auth/login:
    post:
      operationId: post_api_auth_login
      tags:
      - Api
      summary: Validates credentials and opens a session.
      x-source: https://outsend.xyz/docs/api/auth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiAuthLoginRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiAuthLoginResponse'
      x-evidence:
        kind: documentation
  /api/auth/logout:
    post:
      operationId: post_api_auth_logout
      tags:
      - Api
      summary: Revokes the current session and clears the cookie.
      x-source: https://outsend.xyz/docs/api/auth
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiAuthLogoutResponse'
      x-evidence:
        kind: documentation
  /api/auth/me:
    delete:
      operationId: delete_api_auth_me
      tags:
      - Api
      summary: Permanently deletes the account and every owned record (jobs, pipelines, surveillances, sessions, tokens).
      x-source: https://outsend.xyz/docs/api/auth
      responses:
        '204':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    get:
      operationId: get_api_auth_me
      tags:
      - Api
      summary: Returns the currently authenticated user.
      x-source: https://outsend.xyz/docs/api/auth
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiAuthMeResponse'
      x-evidence:
        kind: documentation
  /api/auth/me/export:
    get:
      operationId: get_api_auth_me_export
      tags:
      - Api
      summary: GDPR portability endpoint. Streams a ZIP archive containing every record owned by the user.
      x-source: https://outsend.xyz/docs/api/auth
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiAuthMeExportResponse'
      x-evidence:
        kind: documentation
  /api/auth/password/change:
    post:
      operationId: post_api_auth_password_change
      tags:
      - Api
      summary: Rotates the password for a logged-in user.
      x-source: https://outsend.xyz/docs/api/auth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiAuthPasswordChangeRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiAuthPasswordChangeResponse'
      x-evidence:
        kind: documentation
  /api/auth/password/reset-confirm:
    post:
      operationId: post_api_auth_password_reset_confirm
      tags:
      - Api
      summary: Consumes a single-use reset token and sets the new password.
      x-source: https://outsend.xyz/docs/api/auth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiAuthPasswordResetConfirmRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiAuthPasswordResetConfirmResponse'
      x-evidence:
        kind: documentation
  /api/auth/password/reset-request:
    post:
      operationId: post_api_auth_password_reset_request
      tags:
      - Api
      summary: Sends a reset link to the email if it matches an active user.
      x-source: https://outsend.xyz/docs/api/auth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiAuthPasswordResetRequestRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiAuthPasswordResetRequestResponse'
      x-evidence:
        kind: documentation
  /api/auth/signup:
    post:
      operationId: post_api_auth_signup
      tags:
      - Api
      summary: Creates a user, sends the welcome + verification email, and opens a session.
      x-source: https://outsend.xyz/docs/api/auth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiAuthSignupRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiAuthSignupResponse'
      x-evidence:
        kind: documentation
  /api/estimate:
    post:
      operationId: post_api_estimate
      tags:
      - Api
      summary: Jobs API
      description: Computes the EF cost of a hypothetical scrap job without creating one. Returns a JobEstimateResponse.
      x-source: https://outsend.xyz/docs/api/jobs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiEstimateRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiEstimateResponse'
      x-evidence:
        kind: documentation
  /api/events:
    get:
      operationId: get_api_events
      tags:
      - Api
      summary: GET /api/events
      x-source: https://outsend.xyz/docs/api/events
      parameters:
      - name: since_id
        in: query
        required: false
        schema:
          type: string
      - name: types
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiEventsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -s \"https://outsend.xyz/api/events?since_id=0&types=job.completed\"  -H \"Authorization: Bearer osk_...\"\n Response:\
          \ 200 OK \n {\n \"events\": [ { \"id\": 42, \"type\": \"job.completed\", \"created_at\": \"…\", \"data\": { } } ],\n \"last_id\": 42,\n\
          \ \"head_id\": 57\n}\n Two cursors, do not confuse them: \n last_id : id of the last event on this page . Pass it back as since_id to\
          \ catch up. Each event is then seen exactl"
  /api/jobs:
    get:
      operationId: get_api_jobs
      tags:
      - Api
      summary: List jobs
      x-source: https://outsend.xyz/docs/api/jobs
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: Default 100, clamped to [1,500]
      - name: offset
        in: query
        required: false
        schema:
          type: integer
        description: Default 0, ≥0
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiJobsResponse'
      x-evidence:
        kind: documentation
    post:
      operationId: post_api_jobs
      tags:
      - Api
      summary: Create a job (generic)
      x-source: https://outsend.xyz/docs/api/jobs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiJobsRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiJobsResponse'
      x-evidence:
        kind: documentation
  /api/jobs/{id}:
    delete:
      operationId: delete_api_jobs_id
      tags:
      - Api
      summary: Jobs API
      description: Permanently removes the job and its output CSV. Returns 204 No Content.
      x-source: https://outsend.xyz/docs/api/jobs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    get:
      operationId: get_api_jobs_id
      tags:
      - Api
      summary: Get a job
      x-source: https://outsend.xyz/docs/api/jobs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiJobsIdResponse'
      x-evidence:
        kind: documentation
  /api/jobs/{id}/cancel:
    post:
      operationId: post_api_jobs_id_cancel
      tags:
      - Api
      summary: Cancel a job
      x-source: https://outsend.xyz/docs/api/jobs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiJobsIdCancelResponse'
      x-evidence:
        kind: documentation
  /api/jobs/{id}/download:
    get:
      operationId: get_api_jobs_id_download
      tags:
      - Api
      summary: Download a job's result
      x-source: https://outsend.xyz/docs/api/jobs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: format
        in: query
        required: false
        schema:
          type: string
        description: csv (default), json, xlsx
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiJobsIdDownloadResponse'
      x-evidence:
        kind: documentation
  /api/jobs/{id}/items:
    get:
      operationId: get_api_jobs_id_items
      tags:
      - Api
      summary: List a job's items
      x-source: https://outsend.xyz/docs/api/jobs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: offset
        in: query
        required: false
        schema:
          type: integer
        description: Offset for pagination
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: Limit for pagination
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiJobsIdItemsResponse'
      x-evidence:
        kind: documentation
  /api/jobs/{id}/resume:
    post:
      operationId: post_api_jobs_id_resume
      tags:
      - Api
      summary: Jobs API
      description: Creates a new job that picks up a cancelled or failed scrap where it left off. Returns a new JobPublic in pending status.
      x-source: https://outsend.xyz/docs/api/jobs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiJobsIdResumeResponse'
      x-evidence:
        kind: documentation
  /api/jobs/{id}/stream:
    get:
      operationId: get_api_jobs_id_stream
      tags:
      - Api
      summary: Stream live progress (SSE)
      x-source: https://outsend.xyz/docs/api/jobs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: since
        in: query
        required: false
        schema:
          type: string
        description: Log ID fallback for non‑SSE clients
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiJobsIdStreamResponse'
      x-evidence:
        kind: documentation
  /api/jobs/{type}:
    post:
      operationId: post_api_jobs_type
      tags:
      - Api
      summary: Create a job (typed shortcut)
      x-source: https://outsend.xyz/docs/api/jobs
      parameters:
      - name: type
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiJobsTypeRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiJobsTypeResponse'
      x-evidence:
        kind: documentation
  /api/keys:
    get:
      operationId: get_api_keys
      tags:
      - Api
      summary: 'Lists the account''s keys: prefixes only, never secrets.'
      x-source: https://outsend.xyz/docs/api/auth
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiKeysResponse'
      x-evidence:
        kind: documentation
    post:
      operationId: post_api_keys
      tags:
      - Api
      summary: 'Creates a key. Auth: session cookie only.'
      x-source: https://outsend.xyz/docs/api/auth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiKeysRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiKeysResponse'
      x-evidence:
        kind: documentation
  /api/keys/{id}:
    delete:
      operationId: delete_api_keys_id
      tags:
      - Api
      summary: Revokes the key (logical delete).
      x-source: https://outsend.xyz/docs/api/auth
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/webhooks:
    get:
      operationId: get_api_webhooks
      tags:
      - Api
      summary: 'Lists the account''s endpoints: without secrets.'
      x-source: https://outsend.xyz/docs/api/events
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiWebhooksResponse'
      x-evidence:
        kind: documentation
    post:
      operationId: post_api_webhooks
      tags:
      - Api
      summary: POST /api/webhooks
      x-source: https://outsend.xyz/docs/api/events
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiWebhooksRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiWebhooksResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -s -X POST https://outsend.xyz/api/webhooks  -H \"Authorization: Bearer osk_...\" -H \"Content-Type: application/json\"\
          \  -d '{\"url\": \"https://example.com/hooks/outsend\", \"events\": [\"job.completed\"]}'\n Response: 201 Created \n { \"id\": 7, \"\
          url\": \"https://example.com/hooks/outsend\", \"events\": [\"job.completed\"], \"secret\": \"whsec_…\", \"is_active\": true, \"consecutive_failures\"\
          : 0, \"created_at\": \"…\", \"dis"
  /api/webhooks/{id}:
    delete:
      operationId: delete_api_webhooks_id
      tags:
      - Api
      summary: 'Deletes the endpoint (hard delete: this is what n8n does when a workflow is deactivated).'
      x-source: https://outsend.xyz/docs/api/events
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/webhooks/{id}/deliveries:
    get:
      operationId: get_api_webhooks_id_deliveries
      tags:
      - Api
      summary: 'Last 20 delivery attempts for the endpoint (status, attempts, HTTP code, error): the first place to look when debugging an integration.'
      x-source: https://outsend.xyz/docs/api/events
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    PostApiAuthEmailResendVerifyResponse:
      type: object
      properties:
        ok:
          type: boolean
        already_verified:
          type: boolean
          description: Present when the address is already verified
    PostApiAuthEmailVerifyRequest:
      type: object
      properties:
        token:
          type: string
      required:
      - token
    PostApiAuthEmailVerifyResponse:
      type: object
      properties:
        ok:
          type: boolean
    PostApiAuthLoginRequest:
      type: object
      properties:
        email:
          type: string
          description: email
        password:
          type: string
          description: 1 to 128 chars
      required:
      - email
      - password
    PostApiAuthLoginResponse:
      type: object
      properties:
        ok:
          type: boolean
        user:
          type: object
          description: User object with id, email, is_admin, is_active, email_verified, created_at
    PostApiAuthLogoutResponse:
      type: object
      properties:
        ok:
          type: boolean
    GetApiAuthMeResponse:
      type: object
      properties:
        id:
          type: integer
        email:
          type: string
        is_admin:
          type: boolean
        is_active:
          type: boolean
        email_verified:
          type: boolean
        created_at:
          type: string
    GetApiAuthMeExportResponse:
      type: object
      properties:
        Content-Type:
          type: string
          description: application/zip
        Content-Disposition:
          type: string
          description: attachment; filename="outsend-export-<local>-<YYYY-MM-DD>.zip"
        archive layout:
          type: object
          description: Contains account.json, jobs.json, jobs/<job_id>/*, pipelines.json, veille.json, manifest.txt as described.
    PostApiAuthPasswordChangeRequest:
      type: object
      properties:
        current_password:
          type: string
          description: 1 to 200 chars
        new_password:
          type: string
          description: 8 to 200 chars, must differ from current
      required:
      - current_password
      - new_password
    PostApiAuthPasswordChangeResponse:
      type: object
      properties:
        ok:
          type: boolean
    PostApiAuthPasswordResetConfirmRequest:
      type: object
      properties:
        token:
          type: string
          description: 10 to 256 chars
        new_password:
          type: string
          description: 8 to 128 chars, letter + digit/symbol
      required:
      - token
      - new_password
    PostApiAuthPasswordResetConfirmResponse:
      type: object
      properties:
        ok:
          type: boolean
    PostApiAuthPasswordResetRequestRequest:
      type: object
      properties:
        email:
          type: string
          description: email
      required:
      - email
    PostApiAuthPasswordResetRequestResponse:
      type: object
      properties:
        ok:
          type: boolean
    PostApiAuthSignupRequest:
      type: object
      properties:
        email:
          type: string
          description: email
        password:
          type: string
          description: 8 to 128 chars, must contain a letter AND a digit/symbol
        invitation_code:
          type: string
          description: 1 to 64 chars
        accept_responsibility:
          type: boolean
          description: Must be true
        hcaptcha_token:
          type: string
          description: Required when HCAPTCHA_SECRET is configured
      required:
      - email
      - password
      - accept_responsibility
    PostApiAuthSignupResponse:
      type: object
      properties:
        ok:
          type: boolean
        user:
          type: object
          description: User object with id, email, is_admin, is_active, email_verified, created_at
    PostApiEstimateRequest:
      type: object
      properties:
        queries:
          type: string
          description: Search queries.
        country:
          type: string
          description: ISO3 country code.
        zones:
          type: string
          description: Geographic zones.
        include_reviews:
          type: boolean
          description: Whether to fetch reviews.
        scrap_mode:
          type: string
          description: Scrape mode (fast, normal, ultra).
        stop_at:
          type: integer
          description: Stop threshold for number of places.
        max_per_phone:
          type: integer
          description: Maximum listings per phone.
        exclude_foreign_phones:
          type: boolean
          description: Exclude foreign phone numbers.
        extra_columns:
          type: string
          description: Optional output columns.
      required:
      - queries
      - zones
    PostApiEstimateResponse:
      type: object
      properties:
        valid:
          type: boolean
          description: True iff errors is empty.
        grid_points:
          type: integer
          description: Distinct GPS tiles across zones.
        total_requests:
          type: integer
          description: grid_points × len(queries).
        queries_count:
          type: integer
          description: Number of queries.
        ef_cost:
          type: number
          description: Estimated EF cost.
        estimated_duration_seconds:
          type: integer
          description: Estimated duration in seconds.
        errors:
          type: array
          description: Hard blockers.
        warnings:
          type: array
          description: Soft signals.
    GetApiEventsResponse:
      type: object
      properties:
        events:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
              type:
                type: string
              created_at:
                type: string
              data:
                type: object
        last_id:
          type: integer
        head_id:
          type: integer
    GetApiJobsResponse:
      type: object
      properties:
        JobPublic[]:
          type: array
          description: Array of jobs
    PostApiJobsRequest:
      type: object
      properties:
        queries:
          type: string
          description: Each item ≤ 200 chars, trimmed, deduplicated
        country:
          type: string
          description: Target country, ISO‑3166 alpha‑3 (e.g. FRA, USA, DEU)
        zones:
          type: string
          description: Geographic zones expressed within country
        include_reviews:
          type: boolean
          description: If true, fetches the latest reviews per POI
        scrap_mode:
          type: string
          description: 'Subdivision depth of saturated tiles: fast (default), normal, ultra'
        stop_at:
          type: integer
          description: Stop the scrape once about this many places are collected
        max_per_phone:
          type: integer
          description: Maximum listings kept per phone number
        exclude_foreign_phones:
          type: boolean
          description: Drop listings whose phone number carries another country's calling code
        extra_columns:
          type: string
          description: Optional output columns, off by default
      required:
      - queries
      - zones
    PostApiJobsResponse:
      type: object
      properties:
        JobPublic:
          type: object
          description: Job representation returned on success
    GetApiJobsIdResponse:
      type: object
      properties:
        JobPublic:
          type: object
          description: Single job representation
    PostApiJobsIdCancelResponse:
      type: object
      properties:
        ok:
          type: boolean
          description: True if cancellation succeeded
        pipeline_cancelled:
          type: boolean
          description: True when the cancellation closed the job's pipeline
    GetApiJobsIdDownloadResponse:
      type: object
      properties:
        file:
          type: string
          description: Exported job result in requested format
    GetApiJobsIdItemsResponse:
      type: object
      properties:
        count:
          type: integer
          description: Rows returned in this response
        total:
          type: integer
          description: Total rows in the job
        offset:
          type: integer
          description: Offset actually applied
        items:
          type: array
          description: The rows themselves
    PostApiJobsIdResumeResponse:
      type: object
      properties:
        id:
          type: string
          description: Job identifier.
        job_type:
          type: string
          description: Type of the job.
        status:
          type: string
          description: Job status (pending, running, etc.).
        source_job_id:
          type: string
          description: Reference to the original job.
    GetApiJobsIdStreamResponse:
      type: object
      properties:
        SSE events:
          type: string
          description: Server‑Sent Events stream
    PostApiJobsTypeRequest:
      type: object
      properties:
        items:
          type: object
          description: Module‑specific keys; usually a subset of a previous job's CSV
        source_job_id:
          type: string
          description: Chains the new job to a previous job
        mode:
          type: string
          description: 'Only for POST /api/jobs/emails: "normal" | "deep"'
        capture_screenshot:
          type: boolean
          description: Only for POST /api/jobs/brand-assets
        domain:
          type: string
          description: Only for POST /api/jobs/delivery-check
        subject_filter:
          type: string
          description: Only for POST /api/jobs/delivery-check
      required:
      - items
    PostApiJobsTypeResponse:
      type: object
      properties:
        JobPublic:
          type: object
          description: Job representation returned on success
    GetApiKeysResponse:
      type: object
      properties:
        keys:
          type: array
          description: Array of key objects
    PostApiKeysRequest:
      type: object
      properties:
        name:
          type: string
          description: 1–60 chars
      required:
      - name
    PostApiKeysResponse:
      type: object
      properties:
        id:
          type: integer
        key:
          type: string
        name:
          type: string
        prefix:
          type: string
        created_at:
          type: string
    GetApiWebhooksResponse:
      type: object
      properties:
        webhooks:
          type: array
          description: Array of webhook endpoint objects (without secrets).
    PostApiWebhooksRequest:
      type: object
      properties:
        url:
          type: string
        events:
          type: array
          items:
            type: string
    PostApiWebhooksResponse:
      type: object
      properties:
        id:
          type: integer
        url:
          type: string
        events:
          type: array
          items:
            type: string
        secret:
          type: string
        is_active:
          type: boolean
        consecutive_failures:
          type: integer
        created_at:
          type: string
        disabled_at:
          type:
          - string
          - 'null'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Api