GetThe Referral API

GetThe Referral API as documented publicly. Contract generated from the documentation by API Evangelist (2026-12-02); not the provider's own document.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

GET /v2/advocates GET /v2/advocates #
POST /v2/advocates POST /v2/advocates #

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/getthereferral:getthereferral-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

getthereferral-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: GetThe Referral API
  version: '2026-12-02'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-12-02: 2 operation(s) read from 8 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; GetThe Referral has published no machine-readable contract that
    the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 8
    documentation: -6
    pages-with-code: 8
    pages-read: 8
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-12-02'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.getthereferral.com/docs/gtr/a261699b352db-list-advocates
  - https://docs.getthereferral.com/docs/gtr/bc0bf295192e0-create-advocate
  - https://docs.getthereferral.com/docs/gtr/e98b34214499c-get-advocate
  - https://docs.getthereferral.com/docs/gtr/e4dec77e2a623-update-advocate
  - https://docs.getthereferral.com/docs/gtr/40513b7bc993a-list-advocate-leads
  - https://docs.getthereferral.com/docs/gtr/b0b90e1336edd-list-advocate-files
  - https://docs.getthereferral.com/docs/gtr/c8a8f27cb10da-list-advocate-projects
  - https://docs.getthereferral.com/docs/gtr/0ye8lzmvo59p5-add-advocate-to-project
servers:
- url: https://restapi.getthereferral.com
paths:
  /v2/advocates:
    get:
      operationId: get_v2_advocates
      tags:
      - Advocates
      summary: GET /v2/advocates
      x-source: https://docs.getthereferral.com/docs/gtr/a261699b352db-list-advocates
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl\ncurl --request GET  --url https://restapi.getthereferral.com/v2/advocates  --header 'Accept: application/json'  --header\
          \ 'Authorization: Bearer 123'\nResponse Example\n1\n{\n2\n \"advocates\": [\n3\n {\n4\n \"id\": \"string\",\n5\n \"type\": \"string\"\
          ,\n6\n \"attributes\": {\n7\n \"advocate_id\": 54321,\n8\n \"sales_rep_id\": 4567,\n9\n \"company_id\": 98765,\n10\n \"email\": \"e.brafford@gtr.com\"\
          ,\n11\n \"firstname\": \"Edith\",\n12\n \"las"
    post:
      operationId: post_v2_advocates
      tags:
      - Advocates
      summary: POST /v2/advocates
      x-source: https://docs.getthereferral.com/docs/gtr/bc0bf295192e0-create-advocate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV2AdvocatesRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl\ncurl --request POST  --url https://restapi.getthereferral.com/v2/advocates  --header 'Accept: application/json'  --header\
          \ 'Authorization: Bearer 123'  --header 'Content-Type: application/json'  --data '{\n \"sales_rep_id\": 5678,\n \"email\": \"advocate@fakedomain.com\"\
          ,\n \"country_code\": \"+1\",\n \"phone\": \"1234567890\",\n \"firstname\": \"Jim\",\n \"lastname\": \"Smith\",\n \"password\": \"changeme33\"\
          ,\n \"street1\": \"1"
components:
  schemas:
    PostV2AdvocatesRequest:
      type: object
      properties:
        sales_rep_id:
          type: integer
        email:
          type: string
        country_code:
          type: string
        phone:
          type: string
        firstname:
          type: string
        lastname:
          type: string
        password:
          type: string
        street1:
          type: string
        street2:
          type: string
        city:
          type: string
        state:
          type: string
        zip:
          type: string
        refer_code:
          type: string
        parent_advocate_id:
          type: string
        provider:
          type: string
        provider_id:
          type: string
        amb_contact_id:
          type: string
        amb_acc_owner:
          type: string
        ambassador_id:
          type: string
        xtrm_pat_user_id:
          type: string
        lead_share_url:
          type: string
        custom_lead:
          type: string
        advocate_invite_url:
          type: string
        company_cam_project_id:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Advocates