WhatsMCP Contacts API

The Contacts API from WhatsMCP — 4 operation(s) for contacts.

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

GET /v1/accounts/{account_id}/blocked List blocked contacts #
DELETE /v1/accounts/{account_id}/blocked/{jid} Unblock a contact #
PUT /v1/accounts/{account_id}/blocked/{jid} Block a contact #
GET /v1/accounts/{account_id}/contacts List or search the address book #
GET /v1/accounts/{account_id}/profiles/{phone} Look up a number's WhatsApp profile #

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/whatsmcp-com:whatsmcp-com-contacts-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

whatsmcp-com-contacts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Send and read WhatsApp messages from your own accounts. The same capabilities as the WhatsMCP MCP server, over plain HTTP.
  title: WhatsMCP Contacts API
  version: 0.1.195
servers:
- url: https://api.whatsmcp.com
security:
- bearerAuth: []
- apiKey: []
tags:
- name: Contacts
paths:
  /v1/accounts/{account_id}/blocked:
    get:
      operationId: list-blocked
      parameters:
      - in: path
        name: account_id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlockOutput'
          description: OK
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Bad Request
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Forbidden
        '409':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Conflict
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unprocessable Entity
        '429':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Too Many Requests
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      summary: List blocked contacts
      tags:
      - Contacts
  /v1/accounts/{account_id}/blocked/{jid}:
    delete:
      operationId: unblock-contact
      parameters:
      - in: path
        name: account_id
        required: true
        schema:
          type: string
      - description: the contact — a phone number in international form or a full JID
        in: path
        name: jid
        required: true
        schema:
          description: the contact — a phone number in international form or a full JID
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlockOutput'
          description: OK
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Bad Request
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Forbidden
        '409':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Conflict
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unprocessable Entity
        '429':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Too Many Requests
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      summary: Unblock a contact
      tags:
      - Contacts
    put:
      operationId: block-contact
      parameters:
      - in: path
        name: account_id
        required: true
        schema:
          type: string
      - description: the contact — a phone number in international form or a full JID
        in: path
        name: jid
        required: true
        schema:
          description: the contact — a phone number in international form or a full JID
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlockOutput'
          description: OK
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Bad Request
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Forbidden
        '409':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Conflict
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unprocessable Entity
        '429':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Too Many Requests
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      summary: Block a contact
      tags:
      - Contacts
  /v1/accounts/{account_id}/contacts:
    get:
      operationId: list-contacts
      parameters:
      - in: path
        name: account_id
        required: true
        schema:
          type: string
      - explode: false
        in: query
        name: query
        schema:
          type: string
      - explode: false
        in: query
        name: after_cursor
        schema:
          type: string
      - explode: false
        in: query
        name: limit
        schema:
          format: int64
          maximum: 2000
          minimum: 0
          type: integer
      - explode: false
        in: query
        name: include_pictures
        schema:
          type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListContactsOutput'
          description: OK
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Bad Request
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Forbidden
        '409':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Conflict
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unprocessable Entity
        '429':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Too Many Requests
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      summary: List or search the address book
      tags:
      - Contacts
  /v1/accounts/{account_id}/profiles/{phone}:
    get:
      operationId: get-profile
      parameters:
      - in: path
        name: account_id
        required: true
        schema:
          type: string
      - description: the number to look up, international form
        in: path
        name: phone
        required: true
        schema:
          description: the number to look up, international form
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetProfileOutput'
          description: OK
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Bad Request
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Forbidden
        '409':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Conflict
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unprocessable Entity
        '429':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Too Many Requests
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
      summary: Look up a number's WhatsApp profile
      tags:
      - Contacts
components:
  schemas:
    AccountCandidate:
      additionalProperties: false
      properties:
        account_id:
          description: the id to retry with as account_id
          type: string
        name:
          description: the account's WhatsApp display name
          type: string
        phone:
          description: the account's phone number, E.164
          type: string
        status:
          description: whether the number works right now — live, connecting, or why not, as wa_list_accounts reports it
          type: string
      required:
      - account_id
      type: object
    ListContactsOutput:
      additionalProperties: false
      properties:
        contacts:
          items:
            $ref: '#/components/schemas/ContactView'
          type:
          - array
          - 'null'
        has_more:
          description: true when more contacts remain after this page
          type: boolean
        next_cursor:
          description: pass this as after_cursor to continue; page until has_more is false to read the whole address book
          type: string
        note:
          type: string
        refusal:
          $ref: '#/components/schemas/Refusal'
          description: present only when the request was declined
        total:
          description: how many contacts matched in total, before the limit was applied
          format: int64
          type: integer
        truncated:
          description: true when more contacts exist than were returned
          type: boolean
      required:
      - contacts
      - total
      type: object
    BlockedContact:
      additionalProperties: false
      properties:
        country:
          description: the country the contact's number belongs to; empty when no number is known
          type: string
        jid:
          description: WhatsApp's own identifier for this contact, where the account knows it — otherwise the identifier you named
          type: string
        name:
          description: the best available display name, from this account's own address book
          type: string
        name_source:
          description: saved, business, or push — push names are chosen by the contact themselves
          type: string
        phone:
          description: the contact's number in international form; empty for a LID-form entry whose number this account has never been told
          type: string
      required:
      - jid
      type: object
    ContactView:
      additionalProperties: false
      properties:
        jid:
          description: the network's own identifier for this contact; on a Telegram account pass this as to or chat to every other tool
          type: string
        name:
          description: the best available display name
          type: string
        name_source:
          description: saved, business, or push — push names are chosen by the contact themselves
          type: string
        phone:
          description: the contact's number in international form — on WhatsApp pass this to wa_send_message; on Telegram use jid instead
          type: string
        picture_url:
          description: 'only with include_pictures: a WhatsApp-hosted URL that expires, so fetch it promptly. Empty means not visible to this account or not retrieved this time — see note. A contact without a phone number never has one'
          type: string
        username:
          description: 'Telegram only: the contact''s public username, without the @'
          type: string
      type: object
    BlockOutput:
      additionalProperties: false
      properties:
        blocked:
          description: every contact on the account's blocklist (wa_list_blocked only)
          items:
            $ref: '#/components/schemas/BlockedContact'
          type:
          - array
          - 'null'
        contact:
          $ref: '#/components/schemas/BlockedContact'
          description: the contact that was blocked or unblocked (wa_block_contact only)
        refusal:
          $ref: '#/components/schemas/Refusal'
          description: present only when status is refused
        status:
          description: ok (the operation succeeded) or refused (nothing was done)
          type: string
      required:
      - status
      type: object
    BusinessHoursView:
      additionalProperties: false
      properties:
        close_time:
          type: string
        day_of_week:
          type: string
        mode:
          description: open_24h, appointment_only, specific_hours, or closed
          type: string
        open_time:
          type: string
      type: object
    GetProfileOutput:
      additionalProperties: false
      properties:
        about:
          description: the peer's status text, when they let this account see it
          type: string
        business:
          $ref: '#/components/schemas/BusinessView'
          description: present only for a business account
        is_business:
          description: true or false when known; ABSENT means the lookup could not establish it (see note) — absence is not a no
          type: boolean
        jid:
          type: string
        name:
          description: the best available public name
          type: string
        name_source:
          description: business or none — a verified business name is vouched for by WhatsApp; "none" means nothing public is published
          type: string
        note:
          type: string
        on_whatsapp:
          description: false means the number is not registered on WhatsApp at all
          type: boolean
        phone:
          type: string
        picture_url:
          description: a WhatsApp-hosted URL that expires; fetch it promptly
          type: string
        refusal:
          $ref: '#/components/schemas/Refusal'
          description: present only when the request was declined
      required:
      - on_whatsapp
      type: object
    ErrorModel:
      additionalProperties: false
      properties:
        detail:
          description: A human-readable explanation specific to this occurrence of the problem.
          examples:
          - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
          - array
          - 'null'
        instance:
          description: A URI reference that identifies the specific occurrence of the problem.
          examples:
          - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
          - 400
          format: int64
          type: integer
        title:
          description: A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
          examples:
          - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
          - https://example.com/errors/example
          format: uri
          type: string
      type: object
    Refusal:
      additionalProperties: false
      properties:
        account_status:
          description: 'when the number is not working: its status — starting, not_running, whatsapp_down (telegram_down for a Telegram account), suspended, pairing, unlinked or locked'
          type: string
        account_status_reason:
          description: the detail of account_status, e.g. no_egress, stopped, no_plan
          type: string
        candidates:
          description: 'on an account_ambiguous refusal: the accounts to choose from — retry with one of these as account_id'
          items:
            $ref: '#/components/schemas/AccountCandidate'
          type:
          - array
          - 'null'
        message:
          description: a human-readable explanation
          type: string
        reason:
          description: why the call was declined
          type: string
        refused:
          description: true when the call was declined rather than performed
          type: boolean
        retry_after_seconds:
          description: seconds to wait before retrying; absent or 0 means retrying will not help
          format: int64
          type: integer
        since:
          description: when the number stopped working, RFC3339, when known
          type: string
      required:
      - refused
      - reason
      - message
      type: object
    BusinessView:
      additionalProperties: false
      properties:
        address:
          type: string
        categories:
          items:
            type: string
          type:
          - array
          - 'null'
        email:
          type: string
        hours:
          items:
            $ref: '#/components/schemas/BusinessHoursView'
          type:
          - array
          - 'null'
        hours_timezone:
          type: string
        options:
          additionalProperties:
            type: string
          description: extra published fields such as website or description
          type: object
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    apiKey:
      description: An API key from the console.
      in: header
      name: X-API-Key
      type: apiKey
    bearerAuth:
      description: 'An API key from the console (API keys page), as Authorization: Bearer wamcp_live_…. OAuth access tokens are not accepted here; they are for /mcp.'
      scheme: bearer
      type: http