---
updatedAt: 2026-06-30T11:47:42.000Z
agentTools:
  projectIndex: https://whapi.readme.io/llms.txt
---

# Get contact

This method is responsible for returning all of you contact’s metadata

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "contact": {
      "name": "Whapi Support",
      "email": "care@whapi.cloud",
      "url": "https://whapi.cloud/support"
    },
    "description": "Sending and receiving messages using HTTP requests. Fixed price with no hidden fees, without limits and restrictions. You will be able to send and receive text/media/files/locations/goods/orders/polls messages via WhatsApp in private or group chats. Guides and SDK can be found on our website.",
    "title": "WhatsApp API",
    "version": "1.8.7",
    "termsOfService": "https://whapi.cloud/terms"
  },
  "servers": [
    {
      "url": "https://gate.whapi.cloud"
    },
    {
      "url": "http://localhost:8000"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    },
    {
      "tokenAuth": []
    }
  ],
  "tags": [
    {
      "name": "Contacts",
      "description": "Manage the contacts of the channel"
    }
  ],
  "paths": {
    "/contacts/{ContactID}": {
      "get": {
        "tags": [
          "Contacts"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ContactID"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/Contact"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseError"
                }
              }
            },
            "description": "Wrong request parameters"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseError"
                }
              }
            },
            "description": "Specified contact not found"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          }
        },
        "deprecated": false,
        "operationId": "getContact",
        "summary": "Get contact",
        "description": "This method is responsible for returning all of you contact’s metadata"
      }
    }
  },
  "components": {
    "parameters": {
      "ContactID": {
        "name": "ContactID",
        "style": "simple",
        "explode": false,
        "description": "Contact ID",
        "schema": {
          "$ref": "#/components/schemas/ContactID"
        },
        "in": "path",
        "required": true
      }
    },
    "responses": {
      "Error": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ResponseError"
            }
          }
        },
        "description": "Internal Error"
      },
      "Contact": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Contact"
            }
          }
        },
        "description": "OK"
      }
    },
    "schemas": {
      "ResponseError": {
        "title": "ResponseError",
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/Error"
          }
        },
        "required": [
          "error"
        ]
      },
      "ContactID": {
        "type": "string",
        "description": "Contact ID",
        "pattern": "^([\\d]{7,15})?(@lid|@s.whatsapp.net)?$"
      },
      "Contact": {
        "title": "WA Contact",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "WA ID"
          },
          "phone": {
            "type": "string",
            "description": "Phone number"
          },
          "name": {
            "type": "string",
            "description": "Contact title from contact book"
          },
          "pushname": {
            "type": "string",
            "description": "Account name from WA or WA Business name"
          },
          "username": {
            "type": "string",
            "description": "WhatsApp username without the leading @"
          },
          "is_business": {
            "type": "boolean",
            "description": "Is a business account"
          },
          "profile_pic": {
            "type": "string",
            "description": "Profile picture URL"
          },
          "profile_pic_full": {
            "type": "string",
            "description": "Profile full picture URL"
          },
          "status": {
            "type": "string",
            "description": "Contact status"
          },
          "phonebook": {
            "type": "boolean",
            "description": "If true, the contact is present in the WhatsApp address book on the primary phone"
          },
          "saved": {
            "type": "boolean",
            "deprecated": true,
            "description": "Deprecated alias for phonebook"
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "Error": {
        "title": "Error",
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "format": "int32",
            "description": "See the https://whapi.cloud/docs/whatsapp/api/errors for more information.",
            "type": "integer"
          },
          "message": {
            "description": "error message",
            "type": "string"
          },
          "details": {
            "description": "error detail",
            "type": "string"
          },
          "href": {
            "description": "location for error detail",
            "type": "string"
          },
          "support": {
            "description": "support contact",
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "bearerFormat": "token",
        "type": "http"
      },
      "tokenAuth": {
        "in": "query",
        "name": "token",
        "type": "apiKey"
      }
    }
  }
}
```