Ruzora Client Referrals API

The client-referrals API from Ruzora — 11 operation(s) for client-referrals.

GitHub OpenAPI

Operations 12

POST /api/client-referrals Submit Client Referral #
GET /api/client-referrals List Client Referrals #
GET /api/client-referrals/my-referrals Get My Client Referrals #
GET /api/client-referrals/leaderboard Get Referral Leaderboard #
GET /api/client-referrals/stats Get Client Referral Stats #
GET /api/client-referrals/{referral_id} Get Client Referral #
PATCH /api/client-referrals/{referral_id}/status Update Client Referral Status #
POST /api/client-referrals/{referral_id}/convert Convert Referral To Company #
PATCH /api/client-referrals/{referral_id}/reward Process Reward Payout #
GET /api/client-referrals/{referral_id}/tranches Get Client Referral Tranches #
POST /api/client-referrals/{referral_id}/tranches/{tranche}/mark-paid Mark Client Referral Tranche Paid #
GET /api/client-referrals/{referral_id}/history Get Client Referral History #

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-client-referrals-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-client-referrals-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ruzora Candidate CRM Client Referrals API
  description: Candidate pipeline, sourcing, and LinkedIn automation
  version: 1.0.0
tags:
- name: client-referrals
paths:
  /api/client-referrals:
    post:
      tags:
      - client-referrals
      summary: Submit Client Referral
      description: 'Submit a new client/company referral


        Candidates and client users can submit referrals.'
      operationId: submit_client_referral_api_client_referrals_post
      security:
      - HTTPBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClientReferralCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientReferralResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - client-referrals
      summary: List Client Referrals
      description: 'List client referrals


        Founders see all, users see only their own.'
      operationId: list_client_referrals_api_client_referrals_get
      security:
      - HTTPBearer: []
      parameters:
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
      - name: referrer_type
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Referrer Type
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
          title: Page
      - name: per_page
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 20
          title: Per Page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientReferralListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/client-referrals/my-referrals:
    get:
      tags:
      - client-referrals
      summary: Get My Client Referrals
      description: Get current user's client referral dashboard
      operationId: get_my_client_referrals_api_client_referrals_my_referrals_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MyClientReferralsResponse'
      security:
      - HTTPBearer: []
  /api/client-referrals/leaderboard:
    get:
      tags:
      - client-referrals
      summary: Get Referral Leaderboard
      description: Get referral leaderboard (all users can view)
      operationId: get_referral_leaderboard_api_client_referrals_leaderboard_get
      security:
      - HTTPBearer: []
      parameters:
      - name: period
        in: query
        required: false
        schema:
          type: string
          description: 'Period: all_time, this_quarter'
          default: all_time
          title: Period
        description: 'Period: all_time, this_quarter'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientReferralLeaderboard'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/client-referrals/stats:
    get:
      tags:
      - client-referrals
      summary: Get Client Referral Stats
      description: Get overall program stats (founder only)
      operationId: get_client_referral_stats_api_client_referrals_stats_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientReferralStats'
      security:
      - HTTPBearer: []
  /api/client-referrals/{referral_id}:
    get:
      tags:
      - client-referrals
      summary: Get Client Referral
      description: Get single client referral
      operationId: get_client_referral_api_client_referrals__referral_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: referral_id
        in: path
        required: true
        schema:
          type: string
          title: Referral Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientReferralResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/client-referrals/{referral_id}/status:
    patch:
      tags:
      - client-referrals
      summary: Update Client Referral Status
      description: 'Update client referral status (founder or recruiter).


        When status changes to "Signed" and the referral has a converted_company_id,

        the reward is automatically calculated and applied as a Stripe customer

        balance credit (auto-deducted from the next invoice).'
      operationId: update_client_referral_status_api_client_referrals__referral_id__status_patch
      security:
      - HTTPBearer: []
      parameters:
      - name: referral_id
        in: path
        required: true
        schema:
          type: string
          title: Referral Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClientReferralUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientReferralResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/client-referrals/{referral_id}/convert:
    post:
      tags:
      - client-referrals
      summary: Convert Referral To Company
      description: Convert referral to company (founder only)
      operationId: convert_referral_to_company_api_client_referrals__referral_id__convert_post
      security:
      - HTTPBearer: []
      parameters:
      - name: referral_id
        in: path
        required: true
        schema:
          type: string
          title: Referral Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConvertToCompanyRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConvertToCompanyResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/client-referrals/{referral_id}/reward:
    patch:
      tags:
      - client-referrals
      summary: Process Reward Payout
      description: Process reward payout (founder only)
      operationId: process_reward_payout_api_client_referrals__referral_id__reward_patch
      security:
      - HTTPBearer: []
      parameters:
      - name: referral_id
        in: path
        required: true
        schema:
          type: string
          title: Referral Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RewardPayoutRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RewardPayoutResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/client-referrals/{referral_id}/tranches:
    get:
      tags:
      - client-referrals
      summary: Get Client Referral Tranches
      description: v2 reward tranches for one client referral (founder only).
      operationId: get_client_referral_tranches_api_client_referrals__referral_id__tranches_get
      security:
      - HTTPBearer: []
      parameters:
      - name: referral_id
        in: path
        required: true
        schema:
          type: string
          title: Referral Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/client-referrals/{referral_id}/tranches/{tranche}/mark-paid:
    post:
      tags:
      - client-referrals
      summary: Mark Client Referral Tranche Paid
      description: Record that an Approved tranche was paid MANUALLY. Moves no money.
      operationId: mark_client_referral_tranche_paid_api_client_referrals__referral_id__tranches__tranche__mark_paid_post
      security:
      - HTTPBearer: []
      parameters:
      - name: referral_id
        in: path
        required: true
        schema:
          type: string
          title: Referral Id
      - name: tranche
        in: path
        required: true
        schema:
          type: string
          title: Tranche
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/_MarkPaidBody'
              - type: 'null'
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/client-referrals/{referral_id}/history:
    get:
      tags:
      - client-referrals
      summary: Get Client Referral History
      description: Get status change history for a client referral
      operationId: get_client_referral_history_api_client_referrals__referral_id__history_get
      security:
      - HTTPBearer: []
      parameters:
      - name: referral_id
        in: path
        required: true
        schema:
          type: string
          title: Referral Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ClientReferralListItem:
      properties:
        id:
          type: string
          title: Id
        referred_company_name:
          type: string
          title: Referred Company Name
        status:
          type: string
          title: Status
        qualification_score:
          type: integer
          title: Qualification Score
        estimated_reward:
          type: string
          title: Estimated Reward
        reward_status:
          type: string
          title: Reward Status
        created_at:
          type: string
          format: date-time
          title: Created At
        assigned_to:
          anyOf:
          - type: string
          - type: 'null'
          title: Assigned To
      type: object
      required:
      - id
      - referred_company_name
      - status
      - qualification_score
      - estimated_reward
      - reward_status
      - created_at
      title: ClientReferralListItem
      description: Simplified referral for list view
    MyClientReferralsResponse:
      properties:
        user_name:
          type: string
          title: User Name
        total_referrals:
          type: integer
          title: Total Referrals
        total_conversions:
          type: integer
          title: Total Conversions
          description: Referrals that signed
        total_rewards:
          type: number
          title: Total Rewards
          description: Lifetime earnings
        pending_rewards:
          type: number
          title: Pending Rewards
          description: Pending rewards
        tier:
          type: string
          title: Tier
          description: 'Referrer tier: Bronze, Silver, Gold, Platinum'
        referrals:
          items:
            $ref: '#/components/schemas/ClientReferralListItem'
          type: array
          title: Referrals
        next_tier_progress:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Next Tier Progress
          description: Progress to next tier
      type: object
      required:
      - user_name
      - total_referrals
      - total_conversions
      - total_rewards
      - pending_rewards
      - tier
      - referrals
      title: MyClientReferralsResponse
      description: User's client referral dashboard
    ConvertToCompanyResponse:
      properties:
        referral_id:
          type: string
          title: Referral Id
        company_id:
          type: string
          title: Company Id
        company_name:
          type: string
          title: Company Name
        stripe_customer_id:
          type: string
          title: Stripe Customer Id
        reward_amount:
          type: number
          title: Reward Amount
        reward_tier:
          type: string
          title: Reward Tier
        message:
          type: string
          title: Message
      type: object
      required:
      - referral_id
      - company_id
      - company_name
      - stripe_customer_id
      - reward_amount
      - reward_tier
      - message
      title: ConvertToCompanyResponse
      description: Response after converting referral to company
    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
    RewardPayoutResponse:
      properties:
        referral_id:
          type: string
          title: Referral Id
        reward_amount:
          type: number
          title: Reward Amount
        reward_status:
          type: string
          title: Reward Status
        reward_payment_id:
          type: string
          title: Reward Payment Id
        paid_date:
          type: string
          format: date-time
          title: Paid Date
        payout_method:
          type: string
          title: Payout Method
        message:
          type: string
          title: Message
      type: object
      required:
      - referral_id
      - reward_amount
      - reward_status
      - reward_payment_id
      - paid_date
      - payout_method
      - message
      title: RewardPayoutResponse
      description: Response after processing reward
    ClientReferralUpdate:
      properties:
        status:
          anyOf:
          - type: string
            enum:
            - Submitted
            - Qualified
            - Contacted
            - Demo_Scheduled
            - Proposal_Sent
            - Signed
            - Lost
            - Rejected
          - type: 'null'
          title: Status
        qualification_notes:
          anyOf:
          - type: string
          - type: 'null'
          title: Qualification Notes
          description: Founder notes
        assigned_to:
          anyOf:
          - type: string
          - type: 'null'
          title: Assigned To
          description: User ID of founder handling this
        demo_date:
          anyOf:
          - type: string
          - type: 'null'
          title: Demo Date
          description: Scheduled demo date (ISO format)
        signed_date:
          anyOf:
          - type: string
          - type: 'null'
          title: Signed Date
          description: When deal closed (ISO format)
        lost_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Lost Reason
          description: Why we lost the deal
        converted_company_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Converted Company Id
          description: Created company record ID
      type: object
      title: ClientReferralUpdate
      description: Update client referral (founder only)
    ClientReferralLeaderboard:
      properties:
        leaderboard:
          items:
            $ref: '#/components/schemas/LeaderboardEntry'
          type: array
          title: Leaderboard
        period:
          type: string
          title: Period
          description: e.g., 'all_time', 'this_quarter'
      type: object
      required:
      - leaderboard
      - period
      title: ClientReferralLeaderboard
      description: Referral leaderboard
    ConvertToCompanyRequest:
      properties:
        billing_address:
          type: string
          title: Billing Address
          description: Company billing address
        additional_notes:
          anyOf:
          - type: string
          - type: 'null'
          title: Additional Notes
          description: Additional onboarding notes
      type: object
      required:
      - billing_address
      title: ConvertToCompanyRequest
      description: Request to convert referral to company
    RewardPayoutRequest:
      properties:
        reward_status:
          type: string
          const: Approved
          title: Reward Status
          description: Must be 'Approved'
        payout_method:
          type: string
          enum:
          - stripe_transfer
          - invoice_credit
          title: Payout Method
          description: Payout method
        notes:
          anyOf:
          - type: string
          - type: 'null'
          title: Notes
          description: Admin notes
      type: object
      required:
      - reward_status
      - payout_method
      title: RewardPayoutRequest
      description: Request to process reward payout
    ClientReferralStats:
      properties:
        total_referrals:
          type: integer
          title: Total Referrals
        by_status:
          additionalProperties:
            type: integer
          type: object
          title: By Status
          description: Count by status
        by_referrer_type:
          additionalProperties:
            type: integer
          type: object
          title: By Referrer Type
          description: Client vs Candidate
        conversion_rate:
          type: number
          title: Conversion Rate
          description: Percentage that signed
        avg_time_to_close_days:
          anyOf:
          - type: number
          - type: 'null'
          title: Avg Time To Close Days
        total_rewards_paid:
          type: number
          title: Total Rewards Paid
        avg_reward:
          anyOf:
          - type: number
          - type: 'null'
          title: Avg Reward
        top_tier:
          type: string
          title: Top Tier
          description: Most common tier (Pilot, Growth, Squad)
        roi:
          additionalProperties:
            type: number
          type: object
          title: Roi
          description: 'ROI metrics: total_contract_value, total_rewards_paid, roi_multiple'
      type: object
      required:
      - total_referrals
      - by_status
      - by_referrer_type
      - conversion_rate
      - total_rewards_paid
      - top_tier
      - roi
      title: ClientReferralStats
      description: Overall client referral program stats (founder only)
    LeaderboardEntry:
      properties:
        referrer_name:
          type: string
          title: Referrer Name
        referrer_type:
          type: string
          enum:
          - Client
          - Candidate
          title: Referrer Type
        company:
          anyOf:
          - type: string
          - type: 'null'
          title: Company
        total_referrals:
          type: integer
          title: Total Referrals
        total_conversions:
          type: integer
          title: Total Conversions
        conversion_rate:
          type: number
          title: Conversion Rate
        total_rewards:
          type: number
          title: Total Rewards
        tier:
          type: string
          title: Tier
      type: object
      required:
      - referrer_name
      - referrer_type
      - total_referrals
      - total_conversions
      - conversion_rate
      - total_rewards
      - tier
      title: LeaderboardEntry
      description: Single leaderboard entry
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ClientReferralListResponse:
      properties:
        referrals:
          items:
            $ref: '#/components/schemas/ClientReferralListItem'
          type: array
          title: Referrals
        total:
          type: integer
          title: Total
        page:
          type: integer
          title: Page
        per_page:
          type: integer
          title: Per Page
      type: object
      required:
      - referrals
      - total
      - page
      - per_page
      title: ClientReferralListResponse
      description: Paginated list of client referrals
    ClientReferralResponse:
      properties:
        id:
          type: string
          title: Id
          description: Record ID
        referral_type:
          type: string
          enum:
          - Client
          - Candidate
          title: Referral Type
        referrer_name:
          type: string
          title: Referrer Name
          description: Name of person who referred
        referrer_company:
          anyOf:
          - type: string
          - type: 'null'
          title: Referrer Company
          description: Referrer's company (if client)
        referred_company_name:
          type: string
          title: Referred Company Name
        referred_contact_name:
          type: string
          title: Referred Contact Name
        referred_contact_email:
          type: string
          title: Referred Contact Email
        referred_contact_title:
          anyOf:
          - type: string
          - type: 'null'
          title: Referred Contact Title
        referred_company_domain:
          type: string
          title: Referred Company Domain
        referred_company_size:
          type: string
          title: Referred Company Size
        referred_industry:
          type: string
          title: Referred Industry
        estimated_pricing_tier:
          type: string
          title: Estimated Pricing Tier
        referral_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Referral Reason
        specific_need:
          anyOf:
          - type: string
          - type: 'null'
          title: Specific Need
        status:
          type: string
          title: Status
        qualification_score:
          type: integer
          maximum: 100.0
          minimum: 0.0
          title: Qualification Score
          description: Qualification score 0-100
        qualification_notes:
          anyOf:
          - type: string
          - type: 'null'
          title: Qualification Notes
        assigned_to:
          anyOf:
          - type: string
          - type: 'null'
          title: Assigned To
        demo_date:
          anyOf:
          - type: string
          - type: 'null'
          title: Demo Date
        signed_date:
          anyOf:
          - type: string
          - type: 'null'
          title: Signed Date
        lost_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Lost Reason
        converted_company_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Converted Company Id
        reward_tier:
          anyOf:
          - type: string
          - type: 'null'
          title: Reward Tier
        reward_amount:
          anyOf:
          - type: number
          - type: 'null'
          title: Reward Amount
        reward_status:
          type: string
          title: Reward Status
        reward_paid_date:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Reward Paid Date
        reward_payment_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Reward Payment Id
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Updated At
        estimated_reward:
          type: string
          title: Estimated Reward
          description: Display text like '$2,000'
        status_history:
          items:
            additionalProperties:
              type: string
            type: object
          type: array
          title: Status History
          description: Status change history
        auto_reward:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Auto Reward
          description: Auto-reward result when status changed to Signed
      type: object
      required:
      - id
      - referral_type
      - referrer_name
      - referred_company_name
      - referred_contact_name
      - referred_contact_email
      - referred_company_domain
      - referred_company_size
      - referred_industry
      - estimated_pricing_tier
      - status
      - qualification_score
      - reward_status
      - created_at
      - estimated_reward
      title: ClientReferralResponse
      description: Client referral details
    _MarkPaidBody:
      properties:
        note:
          anyOf:
          - type: string
          - type: 'null'
          title: Note
      type: object
      title: _MarkPaidBody
    ClientReferralCreate:
      properties:
        referred_company_name:
          type: string
          maxLength: 255
          minLength: 2
          title: Referred Company Name
          description: Company name
        referred_contact_name:
          type: string
          maxLength: 255
          minLength: 2
          title: Referred Contact Name
          description: Decision maker name
        referred_contact_email:
          type: string
          format: email
          title: Referred Contact Email
          description: Contact email
        referred_contact_title:
          anyOf:
          - type: string
            maxLength: 255
          - type: 'null'
          title: Referred Contact Title
          description: Job title
        referred_company_domain:
          type: string
          maxLength: 255
          minLength: 2
          title: Referred Company Domain
          description: Company domain (e.g., acme.com)
        referred_company_size:
          type: string
          enum:
          - 1-50
          - 51-200
          - 201-500
          - 500+
          title: Referred Company Size
          description: Estimated company size
        referred_industry:
          type: string
          enum:
          - SaaS
          - FinTech
          - AI/ML
          - E-commerce
          - Other
          title: Referred Industry
          description: Industry
        estimated_pricing_tier:
          type: string
          enum:
          - Pilot
          - Growth
          - Squad
          title: Estimated Pricing Tier
          description: Projected pricing tier
        referral_reason:
          anyOf:
          - type: string
            maxLength: 500
          - type: 'null'
          title: Referral Reason
          description: Why they're a good fit
        specific_need:
          anyOf:
          - type: string
            maxLength: 500
          - type: 'null'
          title: Specific Need
          description: Current hiring pain/need
      type: object
      required:
      - referred_company_name
      - referred_contact_name
      - referred_contact_email
      - referred_company_domain
      - referred_company_size
      - referred_industry
      - estimated_pricing_tier
      title: ClientReferralCreate
      description: Submit a new client/company referral
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer