RingKit Setup Chat API

The setup-chat API from RingKit, for setup-chat.

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 4

GET /v1/businesses/{id}/setup-chat The open setup-agent conversation, or null #
POST /v1/businesses/{id}/setup-chat Start a setup-agent chat that fills knowledge and routing through conversation #
POST /v1/businesses/{id}/setup-chat/{conversationId}/messages Send a message to the setup agent and get its reply #
POST /v1/businesses/{id}/setup-chat/{conversationId}/close Close a setup-agent conversation #

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-setup-chat-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-setup-chat-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: RingKit Setup Chat 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: setup-chat
paths:
  /v1/businesses/{id}/setup-chat:
    get:
      operationId: getSetupChat
      summary: The open setup-agent conversation, or null
      description: 'The open setup-agent conversation, or null.


        Owner only (API keys act as owner; a member session gets 403 owner_required).'
      tags:
      - setup-chat
      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:
                type: object
                properties:
                  conversation:
                    anyOf:
                    - $ref: '#/components/schemas/SetupConversation'
                    - type: 'null'
                required:
                - conversation
                additionalProperties: false
        '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
    post:
      operationId: startSetupChat
      summary: Start a setup-agent chat that fills knowledge and routing through conversation
      description: 'Start a setup-agent chat that fills knowledge and routing through conversation.


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


        Lifecycle step: Teach it the business.'
      tags:
      - setup-chat
      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
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                context:
                  default: onboarding
                  type: string
                  enum:
                  - onboarding
                  - knowledge
                restart:
                  default: false
                  type: boolean
            example:
              context: onboarding
      responses:
        '201':
          description: Created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetupConversation'
              example:
                id: schat_h6j0l4n8p2r5t9v3
                status: open
                context: onboarding
                messages:
                - role: assistant
                  text: Hi! I'll set up your receptionist. What does Harbor Wellness do, and what hours are you open?
                  at: '2026-10-27T16:05:00.000Z'
                  writes: []
                budget:
                  usedCents: 1
                  limitCents: 200
                createdAt: '2026-10-27T16:05:00.000Z'
                updatedAt: '2026-10-27T16:05:00.000Z'
          headers:
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
        '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'
        '409':
          description: '`idempotency_in_progress` / `lost_claim`: another request with this Idempotency-Key is running or won; retry with the same key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: '`setup_budget_exceeded`: Today''s setup-chat budget is spent; continue tomorrow, or edit knowledge and routing directly (PUT .../knowledge, PUT .../routing). `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'
        '503':
          description: '`llm_unavailable`: The AI model isn''t configured on this server; fill the knowledge profile directly with PUT /v1/businesses/:id/knowledge, or retry later. `llm_failed`: The AI model call failed; retry in a few seconds.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        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: Teach it the business
  /v1/businesses/{id}/setup-chat/{conversationId}/messages:
    post:
      operationId: sendSetupChat
      summary: Send a message to the setup agent and get its reply
      description: 'Send a message to the setup agent and get its reply.


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


        Lifecycle step: Teach it the business.'
      tags:
      - setup-chat
      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
      - name: conversationId
        in: path
        required: true
        description: A setup-chat conversation id (`schat_…`) from startSetupChat or getSetupChat.
        schema:
          type: string
          pattern: ^schat_[0-9a-z]{8,32}$
        example: schat_h6j0l4n8p2r5t9v3
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                text:
                  type: string
                  minLength: 1
                  maxLength: 8000
              required:
              - text
            example:
              text: Massage studio. Tuesday to Friday 9 to 7, Saturday 10 to 4, closed Sunday and Monday.
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetupConversation'
              example:
                id: schat_h6j0l4n8p2r5t9v3
                status: open
                context: onboarding
                messages:
                - role: assistant
                  text: Hi! I'll set up your receptionist. What does Harbor Wellness do, and what hours are you open?
                  at: '2026-10-27T16:05:00.000Z'
                  writes: []
                - role: user
                  text: Massage studio. Tuesday to Friday 9 to 7, Saturday 10 to 4, closed Sunday and Monday.
                  at: '2026-10-27T16:05:30.000Z'
                  writes: []
                - role: assistant
                  text: Saved your hours. Which services do you offer, and what do they cost?
                  at: '2026-10-27T16:05:34.000Z'
                  writes:
                  - tool: set_hours
                    summary: 'Hours: Tue–Fri 9:00–19:00, Sat 10:00–16:00; closed Sun, Mon'
                budget:
                  usedCents: 3
                  limitCents: 200
                createdAt: '2026-10-27T16:05:00.000Z'
                updatedAt: '2026-10-27T16:05:34.000Z'
          headers:
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
        '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'
        '409':
          description: '`idempotency_in_progress` / `lost_claim`: another request with this Idempotency-Key is running or won; retry with the same key. `conversation_busy`: The previous setup-chat message is still being answered; wait for it, then send again.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: '`setup_budget_exceeded`: Today''s setup-chat budget is spent; continue tomorrow, or edit knowledge and routing directly (PUT .../knowledge, PUT .../routing). `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'
        '503':
          description: '`llm_unavailable`: The AI model isn''t configured on this server; fill the knowledge profile directly with PUT /v1/businesses/:id/knowledge, or retry later. `llm_failed`: The AI model call failed; retry in a few seconds.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        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: Teach it the business
  /v1/businesses/{id}/setup-chat/{conversationId}/close:
    post:
      operationId: closeSetupChat
      summary: Close a setup-agent conversation
      description: 'Close a setup-agent conversation.


        Owner only (API keys act as owner; a member session gets 403 owner_required).'
      tags:
      - setup-chat
      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
      - name: conversationId
        in: path
        required: true
        description: A setup-chat conversation id (`schat_…`) from startSetupChat or getSetupChat.
        schema:
          type: string
          pattern: ^schat_[0-9a-z]{8,32}$
      - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetupConversation'
          headers:
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
        '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'
        '409':
          description: '`idempotency_in_progress` / `lost_claim`: another request with this Idempotency-Key is running or won; retry with the same key.'
          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
components:
  schemas:
    SetupConversation:
      type: object
      properties:
        id:
          type: string
          pattern: ^schat_[0-9a-z]{8,32}$
        status:
          type: string
          enum:
          - open
          - closed
        context:
          type: string
          enum:
          - onboarding
          - knowledge
        messages:
          type: array
          items:
            type: object
            properties:
              role:
                type: string
                enum:
                - user
                - assistant
              text:
                type: string
              at:
                type: string
                format: date-time
                pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
              writes:
                default: []
                type: array
                items:
                  type: object
                  properties:
                    tool:
                      type: string
                    summary:
                      type: string
                      maxLength: 300
                  required:
                  - tool
                  - summary
                  additionalProperties: false
            required:
            - role
            - text
            - at
            - writes
            additionalProperties: false
        budget:
          type: object
          properties:
            usedCents:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            limitCents:
              type: integer
              minimum: 0
              maximum: 9007199254740991
          required:
          - usedCents
          - limitCents
          additionalProperties: false
        createdAt:
          type: string
          format: date-time
          pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
        updatedAt:
          type: string
          format: date-time
          pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
      required:
      - id
      - status
      - context
      - messages
      - budget
      - createdAt
      - updatedAt
      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
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: 'Any unique string (≤ 255 chars). A retry with the same key within 24 h returns the stored response with `Idempotent-Replayed: true` instead of running again.'
      schema:
        type: string
        maxLength: 255
  headers:
    IdempotentReplayed:
      description: '`true` when this response is a stored replay of an earlier request with the same Idempotency-Key.'
      schema:
        type: string
        enum:
        - 'true'
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        minimum: 0
  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).'