# Get user details

**GET** `/getuserdetails`

Product: [WhatsApp](https://devdocs.pinnacle.in/docs/whatsapp.md)  
Version: [3.0](https://devdocs.pinnacle.in/docs/whatsapp/3-0.md)

This API is used to fetch user details

## Request

URL: `https://partnersv1.pinbot.ai/v3/getuserdetails`

Authentication location: `header`

Authentication name: `apikey`

### Request schema


```json
{
  "type": "object",
  "properties": {}
}
```

### Request example


```json
{}
```

## Response schema


```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "integer"
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "wanumber": {
            "type": "string"
          },
          "phone_number_id": {
            "type": "string"
          },
          "whatsapp_business_account_id": {
            "type": "string"
          }
        }
      }
    },
    "status": {
      "type": "string"
    }
  }
}
```

## Response examples


```json
{
  "200": {
    "code": 200,
    "data": [
      {
        "wanumber": "+919921447944",
        "phone_number_id": "111266881902966",
        "whatsapp_business_account_id": "100249586351323"
      },
      {
        "wanumber": "+919921449959",
        "phone_number_id": "112672835072002",
        "whatsapp_business_account_id": "100249586351323"
      }
    ],
    "status": "SUCCESS"
  }
}
```

## Status codes


```json
[
  {
    "code": 200,
    "description": "The request was successful."
  },
  {
    "code": 400,
    "description": "Bad request or invalid parameters."
  },
  {
    "code": 401,
    "description": "API key is missing or invalid."
  },
  {
    "code": 403,
    "description": "The request is not authorized for this resource."
  },
  {
    "code": 404,
    "description": "The requested resource was not found."
  },
  {
    "code": 500,
    "description": "The server encountered an error."
  }
]
```
