> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ringee.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Inbound events

> Push contacts and companies from your CRM into Ringee

Send everything your CRM knows about a contact or company to a single Ringee endpoint. Ringee upserts the record, links it to your `externalId`, and makes it callable.

Pick the event you are sending in the request body above — each one has its own `data` shape.

## The envelope

Every request uses the same four top-level fields:

| Field | Type | Required | Description |
| - | - | - | - |
| `event` | string | Yes | One of the four inbound event names below |
| `eventId` | string | Yes | Stable unique id for this logical event |
| `occurredAt` | string | Yes | ISO-8601 timestamp from your system |
| `data` | object | Yes | Event-specific payload |

## Reading the response

The endpoint returns **202 Accepted** for any authenticated request with a complete envelope. The real result is in the JSON body.

| Status | Meaning | What to do |
| - | - | - |
| processed | The event was applied. | Mark the sync as successful. |
| skipped | Ringee already recorded this `eventId`. | Do not process it again. Preserve the original result; retry a corrected failure with a new id. |
| failed | The event was accepted but could not be applied. | Show `message`, mark as a sync failure, fix and resend with a **new** `eventId`. |

> [!WARNING]
>
> A `202` status code only means the transport was accepted. Do not treat it as
> a successful sync without checking `status` in the body.

### Warnings

A `processed` response can also carry a `warnings` array. The event applied, but something you sent had no effect:

```json theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
{
  "status": "processed",
  "eventId": "crm_9f1c2a7e",
  "warnings": [
    "Unknown contact.upserted fields were ignored: campagnId. Check them for typos.",
    "data.ownerEmail \"rep@example.com\" does not match a member of this workspace; the contact was left unassigned."
  ]
}
```

Warnings are how you find the bugs that do not fail: a misspelled field name, a number without a country code, an owner nobody in Ringee matches. Log them while you build and surface them on your settings screen — a field Ringee dropped silently is the most expensive kind of sync bug to find later.

## What the endpoint guarantees

> [accordion] An event applies completely or not at all
>
> Ringee validates the whole payload — field shapes, the phone number, the campaign you named — before it writes anything. A `failed` response means nothing was created or updated, so you can correct the payload and send it again knowing Ringee holds no half-synced record.

> [accordion] One request tells you everything that is wrong
>
> Problems are reported together, not one per round trip. A missing `externalId` **and** a missing `phoneNumber` come back in the same message:
>
> ```json theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
> {
>   "status": "failed",
>   "eventId": "crm_9f1c2a7e",
>   "message": "data.externalId is required; data.phoneNumber is required"
> }
> ```

> [accordion] The same eventId is never applied twice
>
> `eventId` is the idempotency key, scoped to your integration. A transport retry is free: the second delivery returns `skipped` and changes nothing. That also means a **corrected** payload needs a new id — the old one is already recorded.

> [accordion] Omitting a field never clears it
>
> Ringee patches, it does not replace. Send only what changed: `null`, `undefined` and empty strings leave the stored value alone. To blank a field, clear it in Ringee.

## Event examples

> [tab] contact.upserted
>
> Create or update a contact from your CRM's current state.
>
> ```json theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
> {
>   "event": "contact.upserted",
>   "eventId": "crm_01HX5Z7K8MZP1Q4V0G9YJ2RH3T",
>   "occurredAt": "2026-05-23T14:30:00.000Z",
>   "data": {
>     "externalId": "ext_contact_42",
>     "phoneNumber": "+14155550123",
>     "firstName": "Ada",
>     "lastName": "Lovelace",
>     "email": "ada@example.com",
>     "companyExternalId": "ext_company_7",
>     "jobTitle": "Founder",
>     "ownerEmail": "rep@example.com",
>     "customFields": { "tier": "vip" }
>   }
> }
> ```
>
> **data.externalId** `string` *required*
>
> Stable contact id in your system. The primary deduplication key.
>
> **data.phoneNumber** `string` *required*
>
> Dialable number. Required because the point of a synced contact is that
> somebody can call it — see [Phone numbers](#phone-numbers).
>
> **data.name** `string`
>
> Display name.
>
> **data.firstName** `string`
>
> Given name.
>
> **data.lastName** `string`
>
> Family name.
>
> **data.fullName** `string`
>
> Pre-composed full name.
>
> **data.email** `string`
>
> Primary email.
>
> **data.companyExternalId** `string`
>
> External company id to link. Ringee creates the company when no link exists
> yet and `companyName` is present.
>
> **data.companyName** `string`
>
> Fallback company name when a linked company is unavailable.
>
> **data.jobTitle** `string`
>
> Contact position or title.
>
> **data.campaignId** `string (UUID)`
>
> Ringee campaign to add this contact to as a lead — see [Adding a contact to a
> campaign](#adding-a-contact-to-a-campaign).
>
> **data.ownerEmail** `string`
>
> Resolves a Ringee member in an organization workspace. An email nobody matches
> leaves the contact unassigned and returns a warning.
>
> **data.ownerExternalId** `string`
>
> Accepted and kept in the stored snapshot, but not currently used for owner
> resolution.
>
> **data.source** `string`
>
> Lead source label.
>
> **data.customFields** `object`
>
> Arbitrary contact fields.
>
> **data.crmMetadata** `object`
>
> Provider-specific metadata.
>
> > [!NOTE]
> >
> > **Deduplication order:** `externalId` first, then the normalized `phoneNumber`
> > within the same workspace.
>
> > [!NOTE]
> >
> > In a personal workspace the integration owner owns every synced contact, and
> > `ownerEmail` is not used.

> [tab] company.upserted
>
> ```json theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
> {
>   "event": "company.upserted",
>   "eventId": "crm_01HX5Z8FYBKD7QY5W3JN9NF2EA",
>   "occurredAt": "2026-05-23T14:30:05.000Z",
>   "data": {
>     "externalId": "ext_company_7",
>     "name": "Babbage Engines Ltd.",
>     "domain": "babbage.example.com",
>     "industry": "Hardware",
>     "size": "11-50"
>   }
> }
> ```
>
> **data.externalId** `string` *required*
>
> Stable company id in your system.
>
> **data.name** `string` *required*
>
> Display name.
>
> **data.legalName** `string`
>
> Registered legal name.
>
> **data.domain** `string`
>
> Primary domain, used as a secondary deduplication signal.
>
> **data.industry** `string`
>
> Industry label.
>
> **data.size** `string`
>
> Headcount band, such as `11-50`.
>
> **data.phone** `string`
>
> Main phone.
>
> **data.website** `string`
>
> Homepage URL.
>
> **data.source** `string`
>
> Source label.
>
> **data.customFields** `object`
>
> Arbitrary company fields.
>
> **data.crmMetadata** `object`
>
> Provider-specific metadata.
>
> > [!NOTE]
> >
> > **Deduplication order:** `externalId`, then `domain` within the same
> > workspace.

> [tab] contact.deleted
>
> Marks the contact as archived in Ringee.
>
> ```json theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
> {
>   "event": "contact.deleted",
>   "eventId": "crm_01HX5Z9MQ7G3T2DR0NXJW1B8VC",
>   "occurredAt": "2026-05-23T14:35:00.000Z",
>   "data": { "externalId": "ext_contact_42" }
> }
> ```
>
> **data.externalId** `string` *required*
>
> External contact id previously sent in `contact.upserted`.
>
> > [!NOTE]
> >
> > Ringee never deletes the underlying contact. Call history, notes, callbacks
> > and meetings are preserved — only the integration's link is archived.
> > Re-sending `contact.upserted` with the same `externalId` un-archives it. If no
> > link exists, the delete is a successful no-op.

> [tab] company.deleted
>
> ```json theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
> {
>   "event": "company.deleted",
>   "eventId": "crm_01HX5ZA1H4T6N2DR9CB7YP6F0K",
>   "occurredAt": "2026-05-23T14:35:30.000Z",
>   "data": { "externalId": "ext_company_7" }
> }
> ```
>
> **data.externalId** `string` *required*
>
> External company id previously sent in `company.upserted`.
>
> This archives only the link created by this integration. Historical company relationships remain available in Ringee. If no link exists, the delete is a successful no-op.

## Phone numbers

Ringee normalizes `data.phoneNumber` to E.164 against real numbering plans. That normalized value is what agents dial and what deduplication matches on.

| You send | Ringee stores | Response |
| - | - | - |
| `+14155550123` | `+14155550123` | Clean. |
| `+34 911 23 45 67` | `+34911234567` | Clean — punctuation is not a problem. |
| `(415) 555-0123` | `+14155550123` | A warning: no country code was sent. |
| `n/a` | nothing | `failed` — `not a dialable number`. |

A number with no leading `+` is read with **United States** as the assumed country, and the response tells you so. That assumption is wrong for most of the world, so send E.164.

> [!WARNING]
>
> Deduplication matches on the normalized number, so a contact stored under a
> differently normalized value will not match and a second contact is created.
> Your `externalId` link is immune to this: it resolves the same contact
> regardless of phone formatting.

## Adding a contact to a campaign

Include `data.campaignId` on `contact.upserted` and the contact joins that outbound campaign as a lead, in the same request that syncs it.

```json theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
{
  "event": "contact.upserted",
  "eventId": "crm_01HX6B2P4WQF8ND3ZR7KT5YVMA",
  "occurredAt": "2026-05-23T14:31:00.000Z",
  "data": {
    "externalId": "ext_contact_42",
    "phoneNumber": "+14155550123",
    "firstName": "Ada",
    "campaignId": "3f8a1c54-9d2b-4e7a-b1c6-5a0d9e8f7c21"
  }
}
```

The campaign id is the last segment of the campaign URL in the dashboard, under **Campaigns**.

What it does:

* The contact is added as a **pending** lead. If the campaign is already running, the lead is queued for dialing immediately.
* A contact that is **already a lead** of that campaign is left untouched. Its attempts, status and disposition history survive every re-sync, so a CRM that replays `contact.upserted` on each edit never resets a lead's progress.
* Membership is only ever added. Dropping `campaignId` from a later event does **not** remove the lead — remove it in Ringee.

> [!NOTE]
>
> Campaigns exist only in organization workspaces, and the campaign must belong
> to the same workspace as your integration. A `campaignId` that is not a UUID,
> matches no campaign, or belongs to another workspace fails the event — and
> because validation runs before any write, the contact is not synced either.
> Correct it and resend with a new `eventId`.

## Sending events well

> [accordion] Do not send on every render or save
>
> Sync only when a field Ringee cares about actually changes: name, phone, email, company, job title, owner. Sending an event on every UI update wastes quota and makes your logs unreadable.

> [accordion] Use E.164 phone numbers
>
> `+14155550123` always wins over `(415) 555-0123`. See [Phone numbers](#phone-numbers) for what Ringee does with the difference.

> [accordion] Treat warnings as bugs
>
> An ignored field and an unmatched owner are invisible in production and obvious in the response. Fail your integration tests on any unexpected `warnings` entry.

> [accordion] Never re-send what Ringee wrote
>
> If your CRM record was created or updated by a Ringee webhook, do not send it back. Store a `sync_origin` marker on those rows and skip them. See [Build an integration](https://docs.ringee.io/api/build-an-integration.md#prevent-sync-loops).

> [accordion] Queue before you send
>
> Write the event to a local outbox table first, then attempt delivery. A contact save in your CRM should never fail because Ringee is momentarily unreachable.

## Next steps

> [card] [Click-to-call](https://docs.ringee.io/api/click-to-call.md)
>
> Open a secure dialer for a synced contact

> [card] [Outbound webhooks](https://docs.ringee.io/api/outbound-webhooks.md)
>
> Receive call activity back in your CRM

> [card] [Logs and errors](https://docs.ringee.io/api/logs-and-errors.md)
>
> Every inbound error message and how to fix it

> [card] [Build an integration](https://docs.ringee.io/api/build-an-integration.md)
>
> The full two-way sync, end to end


## OpenAPI

````yaml POST /api/integrations/custom/webhook
openapi: 3.1.0
info:
  title: Ringee Public API
  version: 1.0.0
  description: >-
    The Ringee Public API. Sync contacts and companies, open a secure human
    dialer, list, start and inspect AI Voice Agent calls, and receive signed
    outbound events.


    Authenticate server-to-server requests with the `cik_live_` secret key of an
    active Custom Integration. The key identifies the integration and workspace
    and must never reach a browser. AI Voice Agent routes require an
    organization-scoped integration. Verify Ringee outbound webhooks with the
    separate `whsec_` signing secret.
  contact:
    name: Ringee
    url: https://ringee.io
servers:
  - url: https://api.ringee.io
    description: Ringee Cloud
  - url: '{backendUrl}'
    description: Self-hosted — your BACKEND_URL
    variables:
      backendUrl:
        default: https://ringee.example.com
        description: The BACKEND_URL of your deployment
security:
  - ApiKeyAuth: []
paths:
  /api/integrations/custom/webhook:
    post:
      tags:
        - CRM to Ringee
      summary: Send an inbound event
      description: >-
        Upsert or archive a contact or company from your CRM.


        Returns **202 Accepted** for any authenticated request with a complete
        envelope. The real result is in the `status` field of the response body
        — always read it, and read `warnings` when it carries them.


        The whole payload is validated before any record is written, so a
        `failed` event changed nothing.
      operationId: receiveInboundEvent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - $ref: '#/components/schemas/ContactUpserted'
                - $ref: '#/components/schemas/CompanyUpserted'
                - $ref: '#/components/schemas/ContactDeleted'
                - $ref: '#/components/schemas/CompanyDeleted'
              discriminator:
                propertyName: event
                mapping:
                  contact.upserted: '#/components/schemas/ContactUpserted'
                  company.upserted: '#/components/schemas/CompanyUpserted'
                  contact.deleted: '#/components/schemas/ContactDeleted'
                  company.deleted: '#/components/schemas/CompanyDeleted'
            examples:
              contact.upserted:
                summary: Create or update a contact
                value:
                  event: contact.upserted
                  eventId: crm_01HX5Z7K8MZP1Q4V0G9YJ2RH3T
                  occurredAt: '2026-05-23T14:30:00.000Z'
                  data:
                    externalId: ext_contact_42
                    phoneNumber: '+14155550123'
                    firstName: Ada
                    lastName: Lovelace
                    email: ada@example.com
                    companyExternalId: ext_company_7
                    jobTitle: Founder
                    campaignId: 3f8a1c54-9d2b-4e7a-b1c6-5a0d9e8f7c21
                    ownerEmail: rep@example.com
                    customFields:
                      tier: vip
              company.upserted:
                summary: Create or update a company
                value:
                  event: company.upserted
                  eventId: crm_01HX5Z8FYBKD7QY5W3JN9NF2EA
                  occurredAt: '2026-05-23T14:30:05.000Z'
                  data:
                    externalId: ext_company_7
                    name: Babbage Engines Ltd.
                    domain: babbage.example.com
                    industry: Hardware
                    size: 11-50
              contact.deleted:
                summary: Archive a contact link
                value:
                  event: contact.deleted
                  eventId: crm_01HX5Z9MQ7G3T2DR0NXJW1B8VC
                  occurredAt: '2026-05-23T14:35:00.000Z'
                  data:
                    externalId: ext_contact_42
              company.deleted:
                summary: Archive a company link
                value:
                  event: company.deleted
                  eventId: crm_01HX5ZA1H4T6N2DR9CB7YP6F0K
                  occurredAt: '2026-05-23T14:35:30.000Z'
                  data:
                    externalId: ext_company_7
      responses:
        '202':
          description: >-
            Accepted. Check `status` in the body to know whether the event was
            applied.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InboundResult'
              examples:
                processed:
                  summary: Applied
                  value:
                    status: processed
                    eventId: crm_9f1c2a7e
                skipped:
                  summary: Duplicate eventId — already received
                  value:
                    status: skipped
                    eventId: crm_9f1c2a7e
                    message: duplicate eventId
                processed with warnings:
                  summary: Applied, with something ignored
                  value:
                    status: processed
                    eventId: crm_9f1c2a7e
                    warnings:
                      - >-
                        Unknown contact.upserted fields were ignored: campagnId.
                        Check them for typos.
                failed:
                  summary: Accepted, nothing applied
                  value:
                    status: failed
                    eventId: crm_9f1c2a7e
                    message: data.externalId is required; data.phoneNumber is required
        '400':
          description: >-
            The body is not a JSON object, or the envelope is incomplete. Every
            envelope problem is listed in one message.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or unrecognised `X-Ringee-Api-Key`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ContactUpserted:
      type: object
      title: contact.upserted
      description: Create or update a contact from your CRM's current state.
      required:
        - event
        - eventId
        - occurredAt
        - data
      properties:
        event:
          type: string
          const: contact.upserted
          description: The event type.
        eventId:
          type: string
          description: Unique, stable id for this event. Ringee deduplicates on it.
          examples:
            - crm_01HX5Z7K8MZP1Q4V0G9YJ2RH3T
          example: crm_01HX5Z7K8MZP1Q4V0G9YJ2RH3T
        occurredAt:
          type: string
          format: date-time
          description: When the change happened in your system.
          examples:
            - '2026-05-23T14:30:00.000Z'
          example: '2026-05-23T14:30:00.000Z'
        data:
          type: object
          required:
            - externalId
            - phoneNumber
          description: >-
            Omit a field to leave it untouched. Sending `null`, `undefined` or
            an empty string does not overwrite an existing value. The whole
            payload is validated before anything is written, so a rejected event
            leaves no partial contact behind.
          properties:
            externalId:
              type: string
              description: >-
                Stable id of the contact in your system. This is the join key
                for every later event.
              examples:
                - ext_contact_42
              example: ext_contact_42
            phoneNumber:
              type: string
              description: >-
                Phone in any format; normalized to E.164 when possible. Required
                because Ringee must be able to dial the contact.
              examples:
                - '+14155550123'
              example: '+14155550123'
            firstName:
              type: string
              description: Given name.
              examples:
                - Ada
              example: Ada
            lastName:
              type: string
              description: Family name.
              examples:
                - Lovelace
              example: Lovelace
            fullName:
              type: string
              description: Pre-composed full name.
            name:
              type: string
              description: Display name.
            email:
              type: string
              description: Primary email.
              examples:
                - ada@example.com
              example: ada@example.com
            companyExternalId:
              type: string
              description: External company id to link this contact to.
              examples:
                - ext_company_7
              example: ext_company_7
            companyName:
              type: string
              description: Fallback company name when no `companyExternalId` is provided.
            jobTitle:
              type: string
              description: Position or title.
              examples:
                - Founder
              example: Founder
            campaignId:
              type: string
              format: uuid
              description: >-
                Ringee campaign to add this contact to as a lead. The contact
                joins as a pending lead, and is queued immediately when the
                campaign is already running; a contact that is already a lead of
                that campaign is left untouched. Campaigns exist only in
                organization workspaces, and the campaign must belong to the
                same workspace as the integration.
              examples:
                - 3f8a1c54-9d2b-4e7a-b1c6-5a0d9e8f7c21
              example: 3f8a1c54-9d2b-4e7a-b1c6-5a0d9e8f7c21
            ownerExternalId:
              type: string
              description: >-
                External owner id accepted in the stored snapshot. It is not
                currently used for Ringee owner resolution; use `ownerEmail`.
            ownerEmail:
              type: string
              description: >-
                Owner email — resolves to a Ringee user when the integration is
                organization-scoped.
              examples:
                - rep@example.com
              example: rep@example.com
            source:
              type: string
              description: Lead source label.
            customFields:
              type: object
              additionalProperties: true
              description: Arbitrary key/value pairs stored on the contact.
            crmMetadata:
              type: object
              additionalProperties: true
              description: Provider-specific metadata stored on the contact.
    CompanyUpserted:
      type: object
      title: company.upserted
      description: Create or update a company. Deduplicated on `externalId`, then `domain`.
      required:
        - event
        - eventId
        - occurredAt
        - data
      properties:
        event:
          type: string
          const: company.upserted
          description: The event type.
        eventId:
          type: string
          description: Unique, stable id for this event.
          examples:
            - crm_01HX5Z8FYBKD7QY5W3JN9NF2EA
          example: crm_01HX5Z8FYBKD7QY5W3JN9NF2EA
        occurredAt:
          type: string
          format: date-time
          examples:
            - '2026-05-23T14:30:05.000Z'
          example: '2026-05-23T14:30:05.000Z'
        data:
          type: object
          required:
            - externalId
            - name
          properties:
            externalId:
              type: string
              description: Stable id of the company in your system.
              examples:
                - ext_company_7
              example: ext_company_7
            name:
              type: string
              description: Display name.
              examples:
                - Babbage Engines Ltd.
              example: Babbage Engines Ltd.
            legalName:
              type: string
              description: Registered legal name.
            domain:
              type: string
              description: Primary web domain — used as a secondary dedup signal.
              examples:
                - babbage.example.com
              example: babbage.example.com
            industry:
              type: string
              description: Industry label.
              examples:
                - Hardware
              example: Hardware
            size:
              type: string
              description: Headcount band.
              examples:
                - 11-50
              example: 11-50
            phone:
              type: string
              description: Main phone.
            website:
              type: string
              description: Homepage URL.
            source:
              type: string
              description: Source label.
            customFields:
              type: object
              additionalProperties: true
              description: Arbitrary key/value pairs.
            crmMetadata:
              type: object
              additionalProperties: true
              description: Provider-specific metadata.
    ContactDeleted:
      type: object
      title: contact.deleted
      description: >-
        Archives the integration's link to the contact. Ringee never deletes the
        underlying contact — call history, notes, callbacks and meetings are
        preserved.
      required:
        - event
        - eventId
        - occurredAt
        - data
      properties:
        event:
          type: string
          const: contact.deleted
          description: The event type.
        eventId:
          type: string
          examples:
            - crm_01HX5Z9MQ7G3T2DR0NXJW1B8VC
          example: crm_01HX5Z9MQ7G3T2DR0NXJW1B8VC
        occurredAt:
          type: string
          format: date-time
          examples:
            - '2026-05-23T14:35:00.000Z'
          example: '2026-05-23T14:35:00.000Z'
        data:
          type: object
          required:
            - externalId
          properties:
            externalId:
              type: string
              description: >-
                The external contact id you previously sent in
                `contact.upserted`.
              examples:
                - ext_contact_42
              example: ext_contact_42
    CompanyDeleted:
      type: object
      title: company.deleted
      description: Archives the integration's link to the company.
      required:
        - event
        - eventId
        - occurredAt
        - data
      properties:
        event:
          type: string
          const: company.deleted
          description: The event type.
        eventId:
          type: string
          examples:
            - crm_01HX5ZA1H4T6N2DR9CB7YP6F0K
          example: crm_01HX5ZA1H4T6N2DR9CB7YP6F0K
        occurredAt:
          type: string
          format: date-time
          examples:
            - '2026-05-23T14:35:30.000Z'
          example: '2026-05-23T14:35:30.000Z'
        data:
          type: object
          required:
            - externalId
          properties:
            externalId:
              type: string
              description: >-
                The external company id you previously sent in
                `company.upserted`.
              examples:
                - ext_company_7
              example: ext_company_7
    InboundResult:
      type: object
      required:
        - status
        - eventId
      properties:
        status:
          type: string
          enum:
            - processed
            - skipped
            - failed
          description: >-
            `processed` — applied. `skipped` — duplicate `eventId`, already
            applied earlier; treat as success. `failed` — accepted but could not
            be applied; fix and resend with a **new** `eventId`.
        eventId:
          type: string
          description: Echoes the `eventId` you sent.
        message:
          type: string
          description: >-
            Present on `skipped` and `failed`. On `failed` it lists every
            problem found, separated by `; `, so one request is enough to learn
            what to fix.
        warnings:
          type: array
          items:
            type: string
          description: >-
            Non-fatal remarks about a payload that was applied anyway: an
            unknown or mistyped field that was ignored, a phone number read with
            an assumed country, an `ownerEmail` matching nobody in the
            workspace. Absent when there is nothing to report.
    Error:
      type: object
      properties:
        statusCode:
          type: integer
          examples:
            - 400
          example: 400
        message:
          type: string
          description: What went wrong.
          examples:
            - >-
              Must provide either contactExternalId (linked to a contact) or
              phoneNumber
          example: >-
            Must provide either contactExternalId (linked to a contact) or
            phoneNumber
        error:
          type: string
          examples:
            - Bad Request
          example: Bad Request
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Ringee-Api-Key
      description: >-
        The `cik_live_` secret key of a Custom Integration. Shown once at
        creation. Server-side only.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.