easyCoexistence Numbers API

The Numbers API from easyCoexistence — 5 operation(s) for numbers.

GitHub OpenAPI

Operations 7

GET /connections List numbers #
GET /connections/{id} Get a number #
DELETE /connections/{id} Remove a number #
GET /connections/{id}/events Monitoring timeline #
PUT /connections/{id}/webhook Where messages go #
GET /connections/{id}/inbound Read the inbound mode #
PUT /connections/{id}/inbound Set the inbound mode #

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/easycoexistence-com:easycoexistence-com-numbers-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

easycoexistence-com-numbers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: EasyCoexistence Numbers API
  version: '1'
  description: 'Your connected numbers and channels from your own backend: status and sending health, credentials, where messages go, signed status events. Messages never pass through EasyCoexistence: send through Meta with the number''s own token. Fields are snake_case, dates ISO 8601 in UTC. New fields and events are added without notice: ignore what you do not use. Reference: https://easycoexistence.com/docs/api. 36 operations.'
servers:
- url: https://easycoexistence.com/api/v1
security:
- apiKey: []
tags:
- name: Numbers
paths:
  /connections:
    get:
      operationId: listConnections
      tags:
      - Numbers
      summary: List numbers
      description: 'Every number on the account, newest first.


        `status`: `connected`, `degraded`, `disconnected`, `banned`, `suspended`, `removed`, `unknown`.


        `sending_health` is Meta''s answer to "can this number start conversations?": `AVAILABLE`, `LIMITED` or `BLOCKED` (`null` until the first check). A connected number can still be `BLOCKED`: Meta then accepts template sends and fails them later. `sending_block_code` says why; `141006` is a missing payment method in WhatsApp Manager, the usual one.


        `inbound_mode` is `direct` (Meta delivers to your `webhook_url`) or `managed` (messages reach EasyCoexistence first, for automations).'
      parameters:
      - name: external_ref
        in: query
        required: false
        description: 'Partners: keeps the ones a customer connected, by the `external_ref` of their connect session.'
        schema:
          type: string
      - name: include_removed
        in: query
        required: false
        description: Includes removed ones.
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example:
                data:
                - id: 6f1c…
                  external_ref: null
                  phone: +55 11 9…
                  name: Bloom Café
                  waba_id: …
                  phone_number_id: …
                  status: connected
                  quality_rating: GREEN
                  messaging_tier: TIER_1K
                  sending_health: AVAILABLE
                  sending_block_code: null
                  sending_blocked_since: null
                  token_ready: true
                  inbound_mode: direct
                  webhook_url: https://hooks.example.com/wa/…
                  created_at: '2026-10-02T14:05:11.000Z'
        '401':
          description: '`unauthorized`: No key, or a key that does not exist or was revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /connections/{id}:
    get:
      operationId: getConnection
      tags:
      - Numbers
      summary: Get a number
      description: 'One number. With `credentials=1`, also what your backend needs to call Meta.


        The token is the business''s own, scoped to its assets, returned only when `token_ready` is true. The EasyCoexistence system token is never exposed. Store it on your side and send with it directly; see Messages.'
      parameters:
      - name: id
        in: path
        required: true
        description: The number's id.
        schema:
          type: string
          format: uuid
      - name: credentials
        in: query
        required: false
        description: 'Adds `credentials`: Meta''s Graph API base, the send endpoint and the number''s own token.'
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example:
                id: 6f1c…
                external_ref: null
                phone: +55 11 9…
                name: Bloom Café
                waba_id: …
                phone_number_id: …
                status: connected
                quality_rating: GREEN
                messaging_tier: TIER_1K
                sending_health: AVAILABLE
                sending_block_code: null
                sending_blocked_since: null
                token_ready: true
                inbound_mode: direct
                webhook_url: https://hooks.example.com/wa/…
                created_at: '2026-10-02T14:05:11.000Z'
                credentials:
                  graph_api_base: https://graph.facebook.com/v25.0
                  send_endpoint: https://graph.facebook.com/v25.0/<phone_number_id>/messages
                  access_token: EAAG…
        '401':
          description: '`unauthorized`: No key, or a key that does not exist or was revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '`not_found`: Nothing with that id on this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      operationId: removeConnection
      tags:
      - Numbers
      summary: Remove a number
      description: Revokes our access at Meta, stops monitoring and stops billing at the end of the cycle. The number stays on the Cloud API until the business disconnects it in the WhatsApp Business app (Settings → Account → Business Platform).
      parameters:
      - name: id
        in: path
        required: true
        description: The number's id.
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example:
                removed: true
                billing_stops_at_period_end: true
                note: 'The number keeps working on the Cloud API until the customer opens the WhatsApp Business app: Settings > Account > Business Platform > Disconnect Account.'
        '401':
          description: '`unauthorized`: No key, or a key that does not exist or was revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '`not_found`: Nothing with that id on this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: '`removed`: It was removed from the account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: '`revoke_failed`: Meta did not release the number, so nothing changed. It is retried on our side.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /connections/{id}/events:
    get:
      operationId: listConnectionEvents
      tags:
      - Numbers
      summary: Monitoring timeline
      description: 'What happened to the number, newest first: what Meta reported (`source: "webhook"`), what our checks saw (`poller`) and what was done to it (`dashboard`, `mcp`, `api`).'
      parameters:
      - name: id
        in: path
        required: true
        description: The number's id.
        schema:
          type: string
          format: uuid
      - name: limit
        in: query
        required: false
        description: Default 50.
        schema:
          type: integer
      - name: before
        in: query
        required: false
        description: 'Entries before this moment: the next page.'
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example:
                data:
                - id: …
                  type: sending_restored
                  source: poller
                  summary: Meta is delivering business-initiated messages again
                  created_at: …
                - id: …
                  type: sending_blocked
                  source: poller
                  summary: Meta is not delivering business-initiated messages (141006)
                  created_at: …
        '401':
          description: '`unauthorized`: No key, or a key that does not exist or was revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '`not_found`: Nothing with that id on this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /connections/{id}/webhook:
    put:
      operationId: setConnectionWebhook
      tags:
      - Numbers
      summary: Where messages go
      description: 'Routes Meta''s message webhooks for this number to your URL. Meta runs its GET handshake right away and the change is refused when it fails; the response carries Meta''s message.


        Setting a URL on a `managed` number makes it `direct` again: Meta then delivers to you only and its automations stop. Deliveries are not signed for you; see Receiving messages.'
      parameters:
      - name: id
        in: path
        required: true
        description: The number's id.
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type:
                  - string
                  - 'null'
                  format: uri
                  description: Your endpoint. `null` resets to none.
                verify_token:
                  type: string
                  description: What your endpoint answers Meta's `hub.verify_token` with. Required with a URL.
              required:
              - url
              additionalProperties: true
            example:
              url: https://hooks.example.com/wa/<long-random-secret>
              verify_token: another-long-random-string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example:
                webhook_url: https://hooks.example.com/wa/…
                note: Meta signs these calls with easyCoexistence's app secret… authenticate with the secret in the URL path.
        '401':
          description: '`unauthorized`: No key, or a key that does not exist or was revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '`not_found`: Nothing with that id on this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: '`meta_rejected`: Meta refused the change; the message is Meta''s.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /connections/{id}/inbound:
    get:
      operationId: getInbound
      tags:
      - Numbers
      summary: Read the inbound mode
      description: '`mode`, and for a managed number its `forward_url`. The secret is never read back.'
      parameters:
      - name: id
        in: path
        required: true
        description: The number's id.
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example:
                connection_id: 6f1c…
                mode: managed
                forward_url: https://hooks.example.com/messages
                webhook_url: null
        '401':
          description: '`unauthorized`: No key, or a key that does not exist or was revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '`not_found`: Nothing with that id on this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    put:
      operationId: setInbound
      tags:
      - Numbers
      summary: Set the inbound mode
      description: '`managed` makes Meta deliver the number''s messages to EasyCoexistence, so its automations run; `direct` sends them straight to your `webhook_url` again and stops them. A managed number can still forward every message to you.


        `forward_secret` is answered the first time only. Each forwarded call carries `X-EC-Signature: t=,v1=`, made as in Events.'
      parameters:
      - name: id
        in: path
        required: true
        description: The number's id.
        schema:
          type: string
          format: uuid
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                mode:
                  type: string
                  enum:
                  - managed
                  - direct
                  description: Leave out to keep it.
                forward_url:
                  type:
                  - string
                  - 'null'
                  format: uri
                  description: 'Managed only: each message is forwarded here with Meta''s original payload. `null` stops.'
                rotate_secret:
                  type: boolean
                  description: Mints a new forwarding secret.
              required: []
              additionalProperties: true
            example:
              mode: managed
              forward_url: https://hooks.example.com/messages
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example:
                connection_id: 6f1c…
                mode: managed
                forward_url: https://hooks.example.com/messages
                webhook_url: null
                forward_secret: whsec_…
                secret_note: Shown once…
        '401':
          description: '`unauthorized`: No key, or a key that does not exist or was revoked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '`not_found`: Nothing with that id on this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: '`not_managed`: Forwarding needs the number to be managed first.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              enum:
              - invalid_json
              - invalid_request
              - channel_unavailable
              - not_supported
              - invalid_media
              - unauthorized
              - billing_required
              - suspended
              - not_found
              - removed
              - conflict
              - not_managed
              - secret_change
              - rate_limited
              - internal
              - meta_error
              - meta_rejected
              - revoke_failed
              - credentials_unavailable
            message:
              type: string
              description: For people; may change.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: The account's ec_live_ key, made in Dashboard → Developers.