RingKit Routing API

The routing API from RingKit, for routing.

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 /v1/businesses/{id}/routing Read the routing policy: when the AI answers, transfers or takes a message, and… #
PUT /v1/businesses/{id}/routing Change the routing policy (transfer targets on the business's own team, handoff… #

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/ringkit-com:ringkit-com-routing-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

ringkit-com-routing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: RingKit Routing API
  version: 0.0.1
  description: 'RingKit is a pay-per-minute AI phone receptionist for small businesses, set up entirely by REST or MCP: create a business (no auth, returns an API key once), teach it the business, pick a voice and routing, get a phone number, try it in text, fund the prepaid wallet, place a test call, then hand it to the human owner.


    Lifecycle: 1. Create the business; 2. Teach it the business; 3. Pick a voice; 4. Decide who answers; 5. Try it in text; 6. Fund the wallet; 7. Get a phone number; 8. Place a test call; 9. Watch the calls; 10. Get told about calls; 11. Manage API keys; 12. Hand it to the owner.


    Agent guides: https://api.ringkit.com/llms.txt (short), https://api.ringkit.com/llms-full.txt (full walk-through with curl), MCP server card https://api.ringkit.com/.well-known/mcp.json, human docs https://ringkit.com/docs.html. Errors: https://ringkit.com/docs.html#errors.


    Every POST accepts `Idempotency-Key` (24 h replay; replays carry `Idempotent-Replayed: true`). Errors are `{error: {code, message, hint?, docs, details?}}`; `hint` is the next step to take.'
servers:
- url: https://api.ringkit.com
security:
- apiKey: []
tags:
- name: Routing
paths:
  /v1/businesses/{id}/routing:
    get:
      operationId: getRouting
      summary: 'Read the routing policy: when the AI answers, transfers or takes a message, and…'
      description: 'Read the routing policy: when the AI answers, transfers or takes a message, and the spend cap.


        Lifecycle step: Decide who answers.'
      tags:
      - Routing
      parameters:
      - name: id
        in: path
        required: true
        description: The business id (`biz_…`), as returned by POST /v1/businesses or GET /v1/me.
        schema:
          type: string
          pattern: ^biz_[0-9a-z]{8,32}$
        example: biz_7k2m9q4x8w3n5p1r
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoutingPolicy'
              example:
                mode: ai_first
                schedule: []
                afterHoursMode: ai_only
                humanRingTimeoutS: 8
                maxHumanOffers: 3
                escalateOn:
                - caller_requests_human
                - always_human_intent
                - repeated_failure
                alwaysHumanIntents:
                - complaint
                neverHumanIntents:
                - hours
                - location
                transferTargets:
                - id: front-desk
                  label: Front desk
                  number: '+14155550142'
                  whenToUse: Billing questions and complaints
                dailySpendCapUsd: 25
                recordCalls: true
                discloseAi: true
                announceAi: false
                requiredAgentSkills: []
                vettedAgentsOnly: false
        '401':
          description: '`unauthorized`: missing, invalid or revoked credential.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: '`forbidden`: the credential can''t act on this resource.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: '`not_found`: no such resource (check the id).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: '`rate_limited`: over the per-key (or per-route) limit; wait Retry-After seconds.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          headers:
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        5XX:
          description: '`internal` or a `*_unavailable` code: retry later.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      x-audience: agent
      x-lifecycle-step: Decide who answers
    put:
      operationId: putRouting
      summary: Change the routing policy (transfer targets on the business's own team, handoff…
      description: 'Change the routing policy (transfer targets on the business''s own team, handoff preferences, recording, spend cap, announceAi: say it is an AI in the greeting, off by default; discloseAi stays true, so the receptionist always answers honestly that it is an AI when asked, and false is rejected). Every call is answered by the AI: RingKit''s live-rep pool is not offered, so ai_first/human_first modes act as ai_only.


        Owner only (API keys act as owner; a member session gets 403 owner_required).


        Lifecycle step: Decide who answers.'
      tags:
      - Routing
      parameters:
      - name: id
        in: path
        required: true
        description: The business id (`biz_…`), as returned by POST /v1/businesses or GET /v1/me.
        schema:
          type: string
          pattern: ^biz_[0-9a-z]{8,32}$
        example: biz_7k2m9q4x8w3n5p1r
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                handoff:
                  type: object
                  properties:
                    unsure:
                      type: string
                      enum:
                      - message
                      - transfer
                    requested:
                      type: string
                      enum:
                      - message
                      - transfer
                    urgent:
                      type: string
                      enum:
                      - message
                      - transfer
                    targetId:
                      type: string
                  required:
                  - unsure
                  - requested
                  - urgent
                mode:
                  type: string
                  enum:
                  - ai_only
                  - ai_first
                  - human_first
                schedule:
                  type: array
                  items:
                    type: object
                    properties:
                      days:
                        minItems: 1
                        type: array
                        items:
                          type: string
                          enum:
                          - mon
                          - tue
                          - wed
                          - thu
                          - fri
                          - sat
                          - sun
                      from:
                        type: string
                        pattern: ^([01]\d|2[0-3]):[0-5]\d$
                      to:
                        type: string
                        pattern: ^([01]\d|2[0-3]):[0-5]\d$
                      mode:
                        type: string
                        enum:
                        - ai_only
                        - ai_first
                        - human_first
                    required:
                    - days
                    - from
                    - to
                    - mode
                afterHoursMode:
                  type: string
                  enum:
                  - ai_only
                  - ai_first
                  - human_first
                humanRingTimeoutS:
                  type: integer
                  minimum: 3
                  maximum: 30
                maxHumanOffers:
                  type: integer
                  minimum: 1
                  maximum: 5
                escalateOn:
                  type: array
                  items:
                    type: string
                    enum:
                    - caller_requests_human
                    - always_human_intent
                    - low_confidence
                    - repeated_failure
                alwaysHumanIntents:
                  type: array
                  items:
                    type: string
                neverHumanIntents:
                  type: array
                  items:
                    type: string
                transferTargets:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                      label:
                        type: string
                      number:
                        type: string
                        pattern: ^\+[1-9]\d{6,14}$
                      whenToUse:
                        type: string
                        maxLength: 300
                    required:
                    - id
                    - label
                    - number
                dailySpendCapUsd:
                  type: number
                  exclusiveMinimum: 0
                recordCalls:
                  type: boolean
                discloseAi:
                  type: boolean
                announceAi:
                  type: boolean
                requiredAgentSkills:
                  type: array
                  items:
                    type: string
                vettedAgentsOnly:
                  type: boolean
            example:
              mode: ai_first
              alwaysHumanIntents:
              - complaint
              neverHumanIntents:
              - hours
              - location
              transferTargets:
              - id: front-desk
                label: Front desk
                number: '+14155550142'
                whenToUse: Billing questions and complaints
              dailySpendCapUsd: 25
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoutingPolicy'
              example:
                mode: ai_first
                schedule: []
                afterHoursMode: ai_only
                humanRingTimeoutS: 8
                maxHumanOffers: 3
                escalateOn:
                - caller_requests_human
                - always_human_intent
                - repeated_failure
                alwaysHumanIntents:
                - complaint
                neverHumanIntents:
                - hours
                - location
                transferTargets:
                - id: front-desk
                  label: Front desk
                  number: '+14155550142'
                  whenToUse: Billing questions and complaints
                dailySpendCapUsd: 25
                recordCalls: true
                discloseAi: true
                announceAi: false
                requiredAgentSkills: []
                vettedAgentsOnly: false
        '400':
          description: '`validation_error`: the body, query or path failed the schema; `details` lists the issues.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: '`unauthorized`: missing, invalid or revoked credential.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: '`owner_required`: a member session can''t call this (API keys act as owner); `insufficient_scope`: a read-scope key; `forbidden`: the credential belongs to another business.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: '`not_found`: no such resource (check the id).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: '`rate_limited`: over the per-key (or per-route) limit; wait Retry-After seconds.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          headers:
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        5XX:
          description: '`internal` or a `*_unavailable` code: retry later.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      x-audience: agent
      x-owner-only: true
      x-lifecycle-step: Decide who answers
components:
  headers:
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        minimum: 0
  schemas:
    RoutingPolicy:
      type: object
      properties:
        handoff:
          type: object
          properties:
            unsure:
              type: string
              enum:
              - message
              - transfer
            requested:
              type: string
              enum:
              - message
              - transfer
            urgent:
              type: string
              enum:
              - message
              - transfer
            targetId:
              type: string
          required:
          - unsure
          - requested
          - urgent
          additionalProperties: false
        mode:
          default: ai_only
          type: string
          enum:
          - ai_only
          - ai_first
          - human_first
        schedule:
          default: []
          type: array
          items:
            type: object
            properties:
              days:
                minItems: 1
                type: array
                items:
                  type: string
                  enum:
                  - mon
                  - tue
                  - wed
                  - thu
                  - fri
                  - sat
                  - sun
              from:
                type: string
                pattern: ^([01]\d|2[0-3]):[0-5]\d$
              to:
                type: string
                pattern: ^([01]\d|2[0-3]):[0-5]\d$
              mode:
                type: string
                enum:
                - ai_only
                - ai_first
                - human_first
            required:
            - days
            - from
            - to
            - mode
            additionalProperties: false
        afterHoursMode:
          default: ai_only
          type: string
          enum:
          - ai_only
          - ai_first
          - human_first
        humanRingTimeoutS:
          default: 8
          type: integer
          minimum: 3
          maximum: 30
        maxHumanOffers:
          default: 3
          type: integer
          minimum: 1
          maximum: 5
        escalateOn:
          default:
          - caller_requests_human
          - always_human_intent
          - repeated_failure
          type: array
          items:
            type: string
            enum:
            - caller_requests_human
            - always_human_intent
            - low_confidence
            - repeated_failure
        alwaysHumanIntents:
          default: []
          type: array
          items:
            type: string
        neverHumanIntents:
          default: []
          type: array
          items:
            type: string
        transferTargets:
          default: []
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              label:
                type: string
              number:
                type: string
                pattern: ^\+[1-9]\d{6,14}$
              whenToUse:
                type: string
                maxLength: 300
            required:
            - id
            - label
            - number
            additionalProperties: false
        dailySpendCapUsd:
          type: number
          exclusiveMinimum: 0
        recordCalls:
          default: true
          type: boolean
        discloseAi:
          default: true
          type: boolean
        announceAi:
          default: false
          type: boolean
        requiredAgentSkills:
          default: []
          type: array
          items:
            type: string
        vettedAgentsOnly:
          default: false
          type: boolean
      required:
      - mode
      - schedule
      - afterHoursMode
      - humanRingTimeoutS
      - maxHumanOffers
      - escalateOn
      - alwaysHumanIntents
      - neverHumanIntents
      - transferTargets
      - recordCalls
      - discloseAi
      - announceAi
      - requiredAgentSkills
      - vettedAgentsOnly
      additionalProperties: false
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            hint:
              type: string
            docs:
              type: string
            details: {}
          required:
          - code
          - message
          additionalProperties: false
      required:
      - error
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: rk_live_…
      description: 'The business API key, returned once by POST /v1/businesses (and by POST /v1/businesses/{id}/api-keys). Scopes: `manage` (default; acts as owner) and `read` (GET only: any other method is 403 insufficient_scope). The dashboard''s `rk_session` cookie is accepted on the same routes.'
    businessSession:
      type: apiKey
      in: cookie
      name: rk_session
      description: Dashboard session (set by consumeMagicLink).
    blogPublishToken:
      type: http
      scheme: bearer
      description: Operator-only blog publishing token (BLOG_PUBLISH_TOKEN on the server). Only the Blog (operator) routes accept it.
    agentSession:
      type: apiKey
      in: cookie
      name: rk_agent_session
      description: 'Human-agent console session (outside production, `Authorization: Bearer agent:<id>` also works).'