# add_to_device

**Get a link to add Openbook to a phone or Mac**

Every user · read-only

Gives the user a link to open on the iPhone, iPad, Android phone or Mac they’re adding, whose setup steps put their Openbook contacts in its Contacts. Calling it changes nothing: the link’s page asks them to sign in there first, so it only ever adds a device to their own account, and [`my_devices`](https://withopenbook.com/docs/tools/my_devices) lists the ones they added.

## Parameters

| Parameter | Type | Required | Limits | What |
|---|---|---|---|---|
| `platform` | `"iphone" \| "android" \| "mac"` | required |  | iphone for an iPhone or iPad, android for an Android phone, mac for a Mac. |

## Who can use it

Every user has it. A person’s tool list only includes it when they can use it, and clients like ChatGPT see the same list.

Annotated **read-only**, so clients like ChatGPT can call it without asking.

## Errors

Errors carry a stable code and a message written for people. See [errors and their status codes](https://withopenbook.com/docs/api#errors).

HTTP:

```bash
curl https://api.withopenbook.com/v1/actions/add_to_device \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"platform":"iphone"}'
```

MCP:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_to_device",
    "arguments": {
      "platform": "iphone"
    }
  }
}
```

> IDs are made up. Get real ones from `my_access` and `search_contacts`, and send the person’s own OAuth token.
