# Create and manage API keys

> **How do I create an API key in Simbase?** In the dashboard, go to Integrations → API and click Create New API Key. Give it a name, then set a permission level per resource: None, Read or Write, on All resources at once or on individual ones such as SIM card details or SMS. The key is shown once, so copy it straight away.

Source: https://simbase.com/docs/api-keys (updated 2026-11-26)

An **API key** authenticates your requests to the Simbase API. Each key carries the permissions you choose when you create it. One key can serve several integrations, but a key per integration is safer. Keys are managed in the dashboard under Integrations → API.

## Create an API key

1. Sign in to [dashboard.simbase.com](https://dashboard.simbase.com).
2. Go to Integrations → API.
3. Click Create New API Key.
4. Give the key a name that says what it is for, for example `Billing export`. The name is only a label. It appears in your key list and nowhere else.
5. Under Resources, set the permissions the key needs. See [Permissions](#permissions) below.
6. Click Create API Key, then copy the key.

> **Copy the key now** Simbase shows the key once, in a "Keep your key safe" dialog. Click the key to copy it, then store it in a password manager or your platform's secrets store. If you lose it, there is no way to see it again. Delete the key and create a new one.

Check the demo below for step by step instructions:

## Permissions

In the dashboard you pick a level per resource: **None**, **Read** or **Write**. None is the default. The key stores these as scopes, one per resource and action, such as `simcards.details:read`, and anything not granted is denied. A write scope doesn't include read, but the dashboard adds the matching Read when you select Write.

Some resources are actions rather than data, such as changing SIM state, Reset, Registration and Auto-disable, so they only offer Write. Account and Usage only offer Read.

### The resource tree

| Resource | Levels | Covers |
| --- | --- | --- |
| **All resources** | None, Read, Write | Every row below at once |
| **Account** | None, Read | Your balance and the plans available to your account |
| **Usage** | None, Read | Monthly usage and costs per SIM |
| **SIM cards** | None, Read, Write | Everything in the SIM cards group below, plus reading and changing a SIM's coverage plan |
| ↳ SIM card details | None, Read, Write | Listing SIMs with their details, CDRs and location updates, and changing name, tags, usage limits and IMEI lock |
| ↳ SIM card state | None, Write | Enabling and disabling SIMs |
| ↳ Reset | None, Write | Reset connection, which ends the current data session so a new one can open |
| ↳ SMS | None, Read, Write | Reading the message history and sending messages |
| ↳ Registration | None, Write | Registering new SIMs on the account |
| ↳ Auto-disable | None, Write | Setting and clearing the auto-disable date |
| **Utilities** | None, Read | Everything in the Utilities group below |
| ↳ Geo | None, Read | Carrier lookup by MCC and MNC |
| **Integrations** | None, Read, Write | Everything in the Integrations group below |
| ↳ Webhooks | None, Read, Write | Listing, creating and deleting legacy webhooks |
| ↳ Events | None, Read | Reading events through the API |
| ↳ Destinations | None, Read, Write | Listing, creating and changing Events destinations, including their delivery log |

### Parent and child rows

SIM cards, Utilities and Integrations each have an arrow next to the name. Click it to expand the individual permissions underneath.

- Setting a parent sets every child to the same level, or to the highest level that child offers. Setting All resources to Write gives Account and Usage Read, because Read is the most they support.
- Setting a child on its own leaves the parent showing nothing selected. That is expected. A parent only displays a level when all of its children agree.

### Choosing a level

Grant the least the integration needs. A key that can only read usage cannot disable a SIM if it leaks.

| The integration… | Set |
| --- | --- |
| Reports on data usage | Usage: Read, and SIM card details: Read |
| Disables SIMs at the end of a bundle | SIM card state: Write |
| Turns [Theft protection](/docs/theft-protection) on and off | SIM card details: Write |
| Reads or sends SMS | SMS: Read to read the history, SMS: Write to send |
| Registers new SIMs | Registration: Write |
| Receives events and manages Events destinations | Events: Read, and Destinations: Write |

In the API reference these appear as scope names built from the same tree. For example, SIM card details is `simcards.details:read` and `simcards.details:write`, Events is `integrations.events:read`, and Destinations is `integrations.destinations:read` and `integrations.destinations:write`. A scope on a parent covers its children, so `simcards:write` includes every SIM card write, and `*:*` grants everything.

## Advanced settings

Turn on Show advanced settings for two optional fields. Both can be left blank.

### IP restrictions

Limits the key to a single trusted IP address or a range in CIDR notation. Requests from any other address are rejected. Leave the field blank for no restriction. The key list then shows `0.0.0.0/0` under Allowed IPs, which means any address.

> **Fixed addresses only** Use an IP restriction when the integration runs from a fixed address, such as your own server or a NAT gateway. Hosted automation platforms like Make.com and Zapier call from a rotating pool of addresses, so restricting the key by IP will break them.

### Expires in (number of days)

The number of days from creation until the key stops working. Enter `31` and the key expires 31 days from now. Leave the field blank and the key never expires.

Short-lived keys are worth using for one-off migrations, contractor access, and anything you would otherwise have to remember to revoke.

## Manage your keys

The API list shows every key on the account: its name, a truncated Key ID, the permission level it was created with, when it was last used, and its IP restriction. Last API call is shown in your [account timezone](/docs/account-timezone), and Allowed IPs reads `0.0.0.0/0` where there is no restriction.

The Key ID is only there to tell keys apart. It is truncated and cannot be used to authenticate.

Permissions are fixed at creation and cannot be edited afterward. To change what a key can do, create a new key with the permissions you want, switch your integration over, then delete the old one.

The three-dot menu at the end of each row has a single option: **Delete**. A deleted key stops working within a few seconds, and requests using it then fail authentication. The same goes for a key that expires.

## Using the key

Send the key as a bearer token on every request:

**Request**

```php
GET /v2/simcards HTTP/1.1
Host: api.simbase.com
Authorization: Bearer YOUR_API_KEY
```

Full endpoint documentation lives at [developer.simbase.com](https://developer.simbase.com).

## Common questions

**Can I change a key's permissions after creating it?**

No. Permissions are set at creation and fixed from then on. Create a replacement key with the permissions you need, move your integration across, then delete the old key.

**I lost my key. Can I see it again?**

No. The full key is shown once, when it is created. The list only shows a truncated Key ID, which cannot be used to authenticate. Delete the key and create a new one.

**What does 0.0.0.0/0 mean under Allowed IPs?**

That the key has no IP restriction and will accept requests from any address. It is what you get when you leave the IP restrictions field blank.

**Should each integration get its own key?**

Nothing stops you reusing one key across several integrations, but a key per integration is worth the extra minute. It lets you scope each one to only what it needs, tell from the Last API call column which is still in use, and delete or rotate one without breaking the others. A shared key has to carry the union of everyone's permissions, and revoking it takes down everything at once.

## Related

- [Events](/docs/events): get SIM and SMS activity pushed to a URL you control, and manage destinations through the API
- [Webhooks (legacy)](/docs/webhooks): the older way to receive events
- [Theft protection](/docs/theft-protection): the `simcards.details:write` scope in practice
- [Account timezone](/docs/account-timezone): sets the timezone the Last API call column is displayed in
