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

# API keys

> Create workspace-scoped API keys in Admin and choose exactly which services each key can read or administer.

API keys authenticate requests to the Invopop API. Every key belongs to a single workspace and carries its own set of permissions, so an integration only gets access to the services it actually needs.

Keys are managed in [Admin](https://access.invopop.com). The Console shows the keys of the current workspace under **Configuration → API keys**, and the <kbd>Manage API keys</kbd> button on that page takes you to the **API keys** section of Admin, where keys are created, reviewed and revoked.

## Create an API key

1. Open [Admin](https://access.invopop.com) and select **API keys** in the sidebar, or click <kbd>Manage API keys</kbd> from the Console.

2. Click <kbd>New API key</kbd>.

3. Choose the **workspace** the key will act on. A key never has access to more than one workspace, so sandbox and live environments always use different keys.

4. Give the key a **name** for future reference and, optionally, a **description** of its use case.

5. Tick the permissions the key needs for each service (see [Permissions](#permissions) below).

6. Click <kbd>Create API key</kbd>.

![New API key form in Admin showing the workspace, name, description and per-service Read and Admin checkboxes](https://mintcdn.com/invopop/380gS3yI1XhUygNx/assets/guides/sandbox-to-live-api-key.png?fit=max\&auto=format\&n=380gS3yI1XhUygNx\&q=85\&s=b365c90294903f4f30ba661b0adc5078)

The token is displayed once, immediately after creation. For security reasons Invopop does not store it, so copy it to a safe place now. If it is lost, revoke the key and create a new one.

> [!TIP]
>
> Invopop uses JSON Web Tokens. If you're interested in seeing the contents, head over to [JWT.io](https://jwt.io) and paste your token to see what's
> inside.

## Permissions

Permissions are granted per service and per resource. Each resource has two checkboxes:

* **Read** allows the key to list and fetch the resource.
* **Admin** allows the key to create, update and delete the resource as well as read it.

| Service | Resources | What it covers |
| - | - | - |
| All services | Everything | Blanket access to everything in the workspace, present and future, including services added later. |
| Access | Workspace, Enrollments | The workspace's own record and its enrollments in apps. |
| Transform | Workflows, Jobs | Workflows and the jobs that run documents through them. |
| Silo | Entries | The documents stored in the workspace. |

Give each key only what it needs. A key that only submits invoices needs **Admin** on Silo entries and Transform jobs, and nothing else. A reporting or monitoring integration usually needs **Read** only. Use **All services** only for keys that genuinely need to do everything, such as a full back-office integration.

The Admin list groups every key by workspace, with separate sections for live and sandbox workspaces, and shows the permission level of each key: **admin**, **read**, or **No permissions** for a key with nothing ticked. Review this list periodically and revoke keys that are no longer in use.

## Use the token

Tokens must be included in the `Authorization` HTTP header in all requests as a type `Bearer`.

Test everything is working correctly using the [ping](https://docs.invopop.com/api-ref/utils/ping.md)
endpoint and curl:

```bash theme={"system"}
$ curl -H "Authorization: Bearer [token]" https://api.invopop.com/utils/v1/ping

{"ping":"pong"}
```

A successful ping confirms the token is valid. If a request to another endpoint is rejected with a permission error, check the key's permissions in Admin.

## Related resources

| | |
| - | - |
| API Reference |  [Authentication](https://docs.invopop.com/api-ref/authentication.md)  [Ping](https://docs.invopop.com/api-ref/utils/ping.md) |
| Related Guides |  [Authentication Guide](https://docs.invopop.com/guides/authentication.md) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.