RingKit Auth API

The auth API from RingKit, for auth.

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 5

POST /v1/auth/password Sign in an operator-designated account (shared reviewer logins) with email and… #
POST /v1/auth/logout End the browser session and clear its cookies #
GET /v1/auth/session Who the session cookie belongs to, which businesses they can open, and whether… #

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-auth-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-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: RingKit Auth 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: Auth
paths:
  /v1/auth/magic-link:
    post:
      operationId: requestMagicLink
      summary: Email a sign-in link to a business user or enrolled agent; always answers ok
      description: Email a sign-in link to a business user or enrolled agent; always answers ok.
      tags:
      - Auth
      security: []
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  format: email
                  pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
                kind:
                  default: business
                  type: string
                  enum:
                  - business
                  - agent
                next:
                  type: string
                  pattern: ^\/(?!\/)[A-Za-z0-9\-._~/?=&]{0,200}$
              required:
              - email
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: true
                required:
                - ok
                additionalProperties: false
          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'
        '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`: too many unauthenticated requests from this IP; 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: dashboard
  /v1/auth/magic-link/consume:
    post:
      operationId: consumeMagicLink
      summary: Exchange a single-use sign-in token for a session cookie
      description: Exchange a single-use sign-in token for a session cookie.
      tags:
      - Auth
      security: []
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
                  minLength: 16
                  maxLength: 200
              required:
              - token
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  kind:
                    type: string
                    enum:
                    - business
                    - agent
                  businessId:
                    anyOf:
                    - type: string
                      pattern: ^biz_[0-9a-z]{8,32}$
                    - type: 'null'
                  agentId:
                    type: string
                    pattern: ^agt_[0-9a-z]{8,32}$
                required:
                - kind
                - businessId
                additionalProperties: false
          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'
        '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`: too many unauthenticated requests from this IP; 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: dashboard
  /v1/auth/password:
    post:
      operationId: passwordLogin
      summary: Sign in an operator-designated account (shared reviewer logins) with email and…
      description: Sign in an operator-designated account (shared reviewer logins) with email and password; sets the same session cookie as a sign-in link.
      tags:
      - Auth
      security: []
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  maxLength: 320
                  format: email
                  pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
                password:
                  type: string
                  minLength: 1
                  maxLength: 200
              required:
              - email
              - password
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: true
                  email:
                    type: string
                required:
                - ok
                - email
                additionalProperties: false
          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: '`invalid_credentials`: Check the email and password; password sign-in exists only for operator-designated accounts, everyone else signs in with an emailed link (POST /v1/auth/magic-link).'
          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`: too many unauthenticated requests from this IP; 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: dashboard
  /v1/auth/logout:
    post:
      operationId: logout
      summary: End the browser session and clear its cookies
      description: End the browser session and clear its cookies.
      tags:
      - Auth
      security:
      - businessSession: []
      - agentSession: []
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: true
                required:
                - ok
                additionalProperties: false
          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: '`forbidden`: the credential can''t act on this resource.'
          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'
        5XX:
          description: '`internal` or a `*_unavailable` code: retry later.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      x-audience: dashboard
  /v1/auth/session:
    get:
      operationId: authSession
      summary: Who the session cookie belongs to, which businesses they can open, and whether…
      description: Who the session cookie belongs to, which businesses they can open, and whether the email is verified (false until the emailed link is opened).
      tags:
      - Auth
      security:
      - businessSession: []
      - agentSession: []
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  kind:
                    type: string
                    enum:
                    - business
                    - agent
                  email:
                    type: string
                  businesses:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          pattern: ^biz_[0-9a-z]{8,32}$
                        name:
                          type: string
                        role:
                          type: string
                          enum:
                          - owner
                          - member
                      required:
                      - id
                      - name
                      - role
                      additionalProperties: false
                  agentId:
                    type: string
                    pattern: ^agt_[0-9a-z]{8,32}$
                  emailVerified:
                    default: true
                    type: boolean
                required:
                - kind
                - email
                - businesses
                - emailVerified
                additionalProperties: 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'
        5XX:
          description: '`internal` or a `*_unavailable` code: retry later.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      x-audience: dashboard
components:
  headers:
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        minimum: 0
    IdempotentReplayed:
      description: '`true` when this response is a stored replay of an earlier request with the same Idempotency-Key.'
      schema:
        type: string
        enum:
        - 'true'
  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
  schemas:
    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).'