You can use API integration to access the data of devices registered in obniz Now from external services.

When you open `Admin` > [`API Keys`](https://now.obniz.com/admin/apikeys) in the sidebar, a list of issued API keys is displayed.

![](../images/apikeys.png)

API-key management requires an owner and a plan with API keys enabled. See [plan and usage](../account/plan-and-usage).

## Creating an API Key

By clicking `Add API Key`, you can issue a token for using the API.

![](../images/add-apikey.png)

:::info
- In `Key Name`, give the key a name to identify it.
- In each item of `Authority`, set the permissions you need.
- Press the `Create` button to issue it.
:::

:::warning Setting Permissions
Each item of `Authority` has three types of permissions: `Read`, `Write`, and `Delete` (some items have two or fewer).

To prevent accidents caused by unintended operations, keep permissions limited to `Read` as much as possible, and grant `Write` or `Delete` permissions only when necessary. Even if you change a permission later, the token remains unchanged.
:::


## Choose authentication for the caller

Use this key for server-to-server integration. Do not include it in HTML or JavaScript sent to users. External Web apps use [User sessions](../integration/browser-apps). See [API authentication](../integration/api-authentication) for selection guidance and an HTTP example.

Changing grants does not change the token. To stop access, delete the key to revoke it and update the caller configuration. If a token may have leaked, revoke the old key and replace it rather than only reducing its grants.
