---
title: "get contact details by ID"
method: POST
path: "/instances/{id}/client/action/get-contact-by-id"
tags: ["contact"]
---

# get contact details by ID

`POST /instances/{id}/client/action/get-contact-by-id`

Retrieves detailed contact information for a specific contact using their ID. Returns contact details including name, number, business status, and various contact flags.

## Path parameters

- `id` integer, required

## Request body

- object
  - `contactId` string, required — The ID of the contact in the format number@c.us

## Response `200`

Contact details retrieved successfully

- object
  - `data` object
    - `id` object
      - `server` string
      - `user` string
      - `_serialized` string
    - `number` string — Contact's phone number
    - `isBusiness` boolean — Whether the contact is a Business account
    - `isEnterprise` boolean — Whether the contact is a Enterprise account
    - `labels` unknown[] — Array of contact labels
      - unknown
    - `name` string — Contact's full name
    - `pushname` string — Contact's display name
    - `shortName` string — Contact's short or first name
    - `type` string — Contact type
    - `isMe` boolean — Whether this contact represents the current user
    - `isUser` boolean — Whether this is a regular user
    - `isGroup` boolean — Whether this is a group chat
    - `isWAContact` boolean — Whether this contact has a account
    - `isMyContact` boolean — Whether this contact is in the user's address book
    - `isBlocked` boolean — Whether this contact is blocked by the user
  - `links` object
    - `self` string
  - `status` 'success' | 'error'

## Other responses

- `401` — Unauthorized — invalid or missing bearer token
- `403` — Forbidden — insufficient permissions or account blocked
- `404` — Not found — instance does not exist or does not belong to you
- `409` — Conflict — instance is not ready
- `422` — Validation error — invalid or missing request parameters
- `429` — Too many requests — rate limit exceeded

---

[API](https://skmtc.net/waapi/apis/waapi-api.md) · [All operations](https://skmtc.net/waapi/apis/waapi-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/waapi/waapi-api/revisions/1e2cc7c12090/schema)
