Ruzora Outbound API

The Outbound API from Ruzora — 10 operation(s) for outbound.

GitHub OpenAPI

Operations 10

POST /api/outbound/enroll-tick Enroll Tick #
POST /api/outbound/enrich-tick Enrich Tick #
POST /api/outbound/mpc-tick Mpc Tick #
POST /api/outbound/heartbeat Outbound Heartbeat #
POST /api/outbound/vendor-rescue/findings Vendor Rescue Findings #
GET /api/outbound/vendor-rescue/queue Vendor Rescue Queue #
POST /api/outbound/vendor-rescue/dismiss Vendor Rescue Dismiss #
POST /api/outbound/cv-alumni/mentions Cv Alumni Mentions #
GET /api/outbound/capabilities Outbound Capabilities #
GET /api/outbound/mpc-results Mpc Results #

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/ruzora-com:ruzora-com-outbound-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

ruzora-com-outbound-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ruzora Candidate CRM Outbound API
  description: Candidate pipeline, sourcing, and LinkedIn automation
  version: 1.0.0
tags:
- name: Outbound
paths:
  /api/outbound/enroll-tick:
    post:
      tags:
      - Outbound
      summary: Enroll Tick
      description: 'Run one Instantly enrollment tick.


        Called by the enrollment-cron GitHub Action every 30 minutes (and safe

        to call manually to drain the queue). Returns the tick''s stats dict so

        the cron log shows exactly what happened.'
      operationId: enroll_tick_api_outbound_enroll_tick_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Enroll Tick Api Outbound Enroll Tick Post
  /api/outbound/enrich-tick:
    post:
      tags:
      - Outbound
      summary: Enrich Tick
      description: 'Run one AI-opener enrichment tick (LeadEnrichmentService.run_tick).


        Driven by ``.github/workflows/enrichment-cron.yml`` (prod, every 15 min).

        This REPLACES the in-process APScheduler ``IntervalTrigger(minutes=15)``

        job ``enrich_pending_leads``: interval triggers inside crm-api reset on

        every Railway replica restart and silently never fire (2026-08-18

        enrollment stall), and enrichment had already frozen once for two weeks

        (Aug 4-18) with nothing visibly wrong. An external cron fails LOUDLY in

        GitHub Actions instead.


        AUTHED with X-Cron-Token, unlike ``/enroll-tick``: every call spends

        money (Anthropic + enrichment providers). The daily budget breaker would

        cap the damage, but an anonymous caller could still burn the whole daily

        budget in a few requests and starve the real tick.


        Gates — all unchanged from the scheduler path:

        * ``OUTREACH_ENABLED`` (settings.outreach_enabled) — the scheduler''s

        master switch; when false the in-process job was never registered, so

        this endpoint no-ops too.

        * DB feature flag ``outbound_enrichment_enabled`` (kill switch),

        ``OUTBOUND_ENRICHMENT_TICK_ENABLED`` env, and the fail-closed daily

        budget breaker ``OUTBOUND_ENRICHMENT_DAILY_BUDGET_CENTS`` — all

        enforced inside run_tick.

        * Concurrency: leads are claimed with ``FOR UPDATE SKIP LOCKED`` and

        flipped to ``in_progress`` (db.claim_leads_for_enrichment), so an

        overlapping manual call or a slow previous tick can never enrich the

        same lead twice.'
      operationId: enrich_tick_api_outbound_enrich_tick_post
      parameters:
      - name: x-cron-token
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Cron-Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Enrich Tick Api Outbound Enrich Tick Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/outbound/mpc-tick:
    post:
      tags:
      - Outbound
      summary: Mpc Tick
      description: 'Run one MPC pass: discover → score → assign → lead.


        CHUNKED (``max_postings`` set — what mpc-cron.yml sends): the first call

        (no ``cursor``) runs the discovery stages and returns ``next_cursor``;

        each following call passes that cursor back and matches up to

        ``max_postings`` postings inside a time budget, until ``remaining`` is

        0. Each call fits well inside Railway''s 5-minute request limit, which

        the single call blew on 7 of 8 runs Sep 23 - Oct 1. See

        the matcher''s ``run_tick`` docstring. Without ``max_postings`` this is the

        old single call, unchanged.


        Driven by ``.github/workflows/mpc-cron.yml`` (external, weekdays). Never

        an in-process scheduler — an interval trigger inside crm-api starves on

        ephemeral Railway replicas, which is what silently froze enrollment for

        two days in August while every gate read healthy.


        AUTHED with X-Cron-Token, unlike ``/enroll-tick`` above. An earlier

        version copied that endpoint''s no-auth justification, which was wrong:

        ``/enroll-tick`` takes NO PARAMETERS and drains a pre-existing queue,

        buying nothing. This one takes ``limit``, which feeds

        ``cap = limit or daily_send_cap()`` and therefore overrides

        MPC_DAILY_SEND_CAP entirely, and it spends TheirStack, Hunter and

        Anthropic credits on every call. An anonymous POST could have drained

        the monthly TheirStack plan in ~50 requests. ``limit`` is now bounded

        as well; two guards, because the blast radius is the shared

        ruzora.com sending domain that every outbound channel rides on.


        ``dry_run=true`` returns the plan without creating leads or writing the

        ledger — the batch-approval surface.


        NOTE: this creates leads. It does not send. The existing enrollment tick

        picks them up and resolves ``instantly_campaign_mpc``; with that flag

        unset, nothing goes out.'
      operationId: mpc_tick_api_outbound_mpc_tick_post
      parameters:
      - name: x-cron-token
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Cron-Token
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Body_mpc_tick_api_outbound_mpc_tick_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Mpc Tick Api Outbound Mpc Tick Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/outbound/heartbeat:
    post:
      tags:
      - Outbound
      summary: Outbound Heartbeat
      description: 'Post the daily outbound heartbeat to #ruz-growth (ChannelKind.GROWTH).


        ``once_per_day=true`` (sent by both schedulers — the Railway

        cron-scheduler primary and the GitHub backup) makes the post idempotent

        per UTC day: the first caller atomically claims today''s date in

        ``feature_flags`` and posts; later callers get 200 with

        ``skipped="already_posted_today"``. A failed Slack post releases the

        claim so the other scheduler can retry.


        Driven once a day by ``.github/workflows/outbound-heartbeat-cron.yml``.

        Leads created / enrolled, emails sent, bounces + bounce rate, replies

        (human vs auto/OOO vs not interested), positive intents, queue size and

        the state of every send gate — with a :rotating_light: line for a

        zero-enrolled day, any gate that is off, a 7d bounce rate over 3%, or

        200+ sends in 7d with no positive intent. See

        ``outbound_heartbeat_service`` for why a heartbeat and not another alert.


        AUTHED with X-Cron-Token: the response carries per-source lead counts

        and the gate configuration, and an anonymous caller could spam the

        growth channel. ``dry_run=true`` returns the rendered message without

        posting it. A real run whose Slack post fails returns 502 (body still

        carries the rendered text) so the cron job fails loudly.'
      operationId: outbound_heartbeat_api_outbound_heartbeat_post
      parameters:
      - name: x-cron-token
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Cron-Token
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Body_outbound_heartbeat_api_outbound_heartbeat_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Outbound Heartbeat Api Outbound Heartbeat Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/outbound/vendor-rescue/findings:
    post:
      tags:
      - Outbound
      summary: Vendor Rescue Findings
      description: Submit the weekly sweep's findings. Same gates as the cron stage.
      operationId: vendor_rescue_findings_api_outbound_vendor_rescue_findings_post
      parameters:
      - name: x-cron-token
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Cron-Token
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VendorRescueFindingsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Vendor Rescue Findings Api Outbound Vendor Rescue Findings Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/outbound/vendor-rescue/queue:
    get:
      tags:
      - Outbound
      summary: Vendor Rescue Queue
      description: 'Leads awaiting activation, targets held for review, vendor alerts.


        Authed, unlike /mpc-results: it returns names and email addresses.'
      operationId: vendor_rescue_queue_api_outbound_vendor_rescue_queue_get
      parameters:
      - name: x-cron-token
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Cron-Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Vendor Rescue Queue Api Outbound Vendor Rescue Queue Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/outbound/vendor-rescue/dismiss:
    post:
      tags:
      - Outbound
      summary: Vendor Rescue Dismiss
      description: Close review items / alerts so next week's session does not repeat them.
      operationId: vendor_rescue_dismiss_api_outbound_vendor_rescue_dismiss_post
      parameters:
      - name: x-cron-token
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Cron-Token
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VendorRescueDismissRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Vendor Rescue Dismiss Api Outbound Vendor Rescue Dismiss Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/outbound/cv-alumni/mentions:
    post:
      tags:
      - Outbound
      summary: Cv Alumni Mentions
      description: 'Sync companies extracted from candidates'' work history (vp-data

        cv_alumni.py). Each candidate''s mentions are REPLACED, so re-sending is

        idempotent and an edited CV can''t leave stale mentions behind.'
      operationId: cv_alumni_mentions_api_outbound_cv_alumni_mentions_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CvAlumniMentionsRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Cv Alumni Mentions Api Outbound Cv Alumni Mentions Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/outbound/capabilities:
    get:
      tags:
      - Outbound
      summary: Outbound Capabilities
      description: 'Deploy + config preflight for local sourcing scripts (daily_wave.py

        refuses to buy cv_alumni leads unless this lists cv_alumni).'
      operationId: outbound_capabilities_api_outbound_capabilities_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Outbound Capabilities Api Outbound Capabilities Get
      security:
      - HTTPBearer: []
  /api/outbound/mpc-results:
    get:
      tags:
      - Outbound
      summary: Mpc Results
      description: 'Read back what MPC actually did. Board Round 2 #26, tech design M4-15.


        Without this the data accumulates in mpc_pitches and nobody can look at

        it: rows, and no answer.


        Read in this order:

        1. rank_distribution — is the matcher better than chance, and does

        anyone ever click past rank 2? This settles the 3-vs-5 question

        without splitting traffic.

        2. by_arm.avg_cards — the VALIDITY check. If the challenger arm

        cannot fill its card count, a null result is the harness''s fault.

        3. guardrails — bounces and opt-outs. ruzora.com carries every

        outbound channel, so this stops the experiment on its own.

        4. coverage — PRD §6.1''s independent kill rule: below 50% the

        assignment logic is broken however good the reply rate looks.


        Read-only. No auth, matching the ticks above: it exposes counts and

        rates, never a candidate name, a company, or an email address.'
      operationId: mpc_results_api_outbound_mpc_results_get
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          maximum: 365
          minimum: 1
          default: 90
          title: Days
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Mpc Results Api Outbound Mpc Results Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CvAlumniMention:
      properties:
        entry_index:
          type: integer
          title: Entry Index
        role:
          type: string
          title: Role
        company_name:
          type: string
          title: Company Name
        company_key:
          anyOf:
          - type: string
          - type: 'null'
          title: Company Key
        domain:
          anyOf:
          - type: string
          - type: 'null'
          title: Domain
        country:
          anyOf:
          - type: string
          - type: 'null'
          title: Country
        label:
          type: string
          title: Label
        via_company:
          anyOf:
          - type: string
          - type: 'null'
          title: Via Company
        ended:
          type: boolean
          title: Ended
          default: false
        stack:
          items:
            type: string
          type: array
          title: Stack
      type: object
      required:
      - entry_index
      - role
      - company_name
      - label
      title: CvAlumniMention
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    Body_mpc_tick_api_outbound_mpc_tick_post:
      properties:
        dry_run:
          type: boolean
          title: Dry Run
          default: false
        limit:
          anyOf:
          - type: integer
            maximum: 200.0
            minimum: 1.0
          - type: 'null'
          title: Limit
        max_postings:
          anyOf:
          - type: integer
            maximum: 100.0
            minimum: 1.0
          - type: 'null'
          title: Max Postings
        cursor:
          anyOf:
          - type: string
            maxLength: 80
          - type: 'null'
          title: Cursor
      type: object
      title: Body_mpc_tick_api_outbound_mpc_tick_post
    VendorRescueFindingsRequest:
      properties:
        findings:
          items:
            $ref: '#/components/schemas/VendorRescueFinding'
          type: array
          maxItems: 50
          minItems: 1
          title: Findings
        dry_run:
          type: boolean
          title: Dry Run
          default: false
      type: object
      required:
      - findings
      title: VendorRescueFindingsRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    VendorRescueFinding:
      properties:
        target_domain:
          type: string
          maxLength: 255
          minLength: 3
          title: Target Domain
        target_name:
          anyOf:
          - type: string
            maxLength: 255
          - type: 'null'
          title: Target Name
        country:
          type: string
          maxLength: 2
          minLength: 2
          title: Country
        vendor_name:
          type: string
          maxLength: 100
          minLength: 1
          title: Vendor Name
        trigger:
          type: string
          maxLength: 50
          minLength: 1
          title: Trigger
        tier:
          type: integer
          maximum: 4.0
          minimum: 1.0
          title: Tier
          default: 2
        event_date:
          anyOf:
          - type: string
            maxLength: 10
          - type: 'null'
          title: Event Date
        source_url:
          anyOf:
          - type: string
            maxLength: 500
          - type: 'null'
          title: Source Url
        note:
          anyOf:
          - type: string
            maxLength: 300
          - type: 'null'
          title: Note
        contact:
          anyOf:
          - $ref: '#/components/schemas/VendorRescueContact'
          - type: 'null'
      type: object
      required:
      - target_domain
      - country
      - vendor_name
      - trigger
      title: VendorRescueFinding
    CvAlumniMentionsRequest:
      properties:
        candidates:
          items:
            $ref: '#/components/schemas/CvAlumniCandidate'
          type: array
          maxItems: 200
          minItems: 1
          title: Candidates
      type: object
      required:
      - candidates
      title: CvAlumniMentionsRequest
    VendorRescueContact:
      properties:
        email:
          type: string
          maxLength: 320
          minLength: 3
          title: Email
        first_name:
          type: string
          maxLength: 100
          minLength: 1
          title: First Name
        last_name:
          type: string
          maxLength: 100
          title: Last Name
          default: ''
        title:
          type: string
          maxLength: 255
          title: Title
          default: ''
      type: object
      required:
      - email
      - first_name
      title: VendorRescueContact
    Body_outbound_heartbeat_api_outbound_heartbeat_post:
      properties:
        dry_run:
          type: boolean
          title: Dry Run
          default: false
        once_per_day:
          type: boolean
          title: Once Per Day
          default: false
      type: object
      title: Body_outbound_heartbeat_api_outbound_heartbeat_post
    CvAlumniCandidate:
      properties:
        candidate_id:
          type: string
          format: uuid
          title: Candidate Id
        entries_hash:
          type: string
          title: Entries Hash
        prompt_version:
          type: integer
          title: Prompt Version
          default: 1
        model:
          type: string
          title: Model
        mentions:
          items:
            $ref: '#/components/schemas/CvAlumniMention'
          type: array
          maxItems: 60
          title: Mentions
      type: object
      required:
      - candidate_id
      - entries_hash
      - model
      title: CvAlumniCandidate
    VendorRescueDismissRequest:
      properties:
        ids:
          items:
            type: string
            format: uuid
          type: array
          maxItems: 200
          minItems: 1
          title: Ids
      type: object
      required:
      - ids
      title: VendorRescueDismissRequest
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer