> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rebellapp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# my.choosePhoneContact

> Select a contact from the phone's contact list.

Use this API to open the phone's contact picker and select a contact.

## Parameters

| Property | Type     | Required | Description                   |
| -------- | -------- | -------- | ----------------------------- |
| success  | Function | No       | Callback with contact data    |
| fail     | Function | No       | Callback on failure           |
| complete | Function | No       | Callback that always executes |

## Success Callback

| Property | Type   | Description          |
| -------- | ------ | -------------------- |
| name     | String | Contact name         |
| mobile   | String | Contact phone number |

## Error Codes

| Error Code | Description                                                                             |
| ---------- | --------------------------------------------------------------------------------------- |
| 10         | No permission.                                                                          |
| 11         | The user cancels the operation (or the device does not authorize use of the directory). |

## Code Example

```javascript theme={null}
my.choosePhoneContact({
  success: (res) => {
    console.log('Name:', res.name);
    console.log('Phone:', res.mobile);
  }
});
```

## Related APIs

<CardGroup cols={2}>
  <Card title="my.addPhoneContact" icon="user-plus" href="/jsapi/device/add-contact/my.addPhoneContact">
    Add a phone contact
  </Card>
</CardGroup>
