---
title: "Create a System API token"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/integrations/create-a-system-api-token/
type: task
application: platform_integration
last_updated: 2026-12-03
commit: 5179586f69bd
---


Create a System API token when an external system needs to call Servicely without a user's password. You end with a token, and a shared secret for HMAC validation, that the external system sends with each request.

<Callout type="info">
  **Changed in 2027.1.** Once you select any **Allowed Scopes**, every other entry point is refused. **URL Allowed Paths** accepts wildcards. A new **Administrator privileges** field controls the `administrator` role under escalation. Only an administrator can save a token that acts as an administrator.
</Callout>

## Before you begin

- You need the `api_token_administrator` role, or `administrator`.
- Create the user the token will run as, with only the roles the integration needs. If that user holds `administrator`, only an administrator can save the token.
- Choose a validation type. [Authentication methods for inbound integrations](page:integrations/inbound-authentication) compares them.
- Know which entry points and paths the external system calls.

## Steps

<Steps>
  <Step>
    Go to **Integrations → API access → System API tokens** and select **New**.

    <Image src="asset:screenshots/admin/integrations-create-a-system-api-token/nav-system-api-tokens.png">The System API tokens item in the API access menu of Integrations.</Image>

    <Image src="asset:screenshots/admin/integrations-create-a-system-api-token/new-system-api-token.png">A new System API token, showing Name, Validation type, Impersonate user, URL Allowed Paths and Allowed Scopes.</Image>
  </Step>
  <Step>
    Enter a **Name** that identifies the external system.
  </Step>
  <Step>
    Set **Validation type**. The table below lists the values.
  </Step>
  <Step>
    For an HMAC validation type, check **Hash method**. It defaults to **SHA256**. For **HMAC header validation**, enter the headers to hash in **Header key**, separated by commas. It defaults to `Date`.
  </Step>
  <Step>
    Select the **Impersonate user**. Every request made with the token runs as this user. The field is required.
  </Step>
  <Step>
    In **Allowed Scopes**, select the entry points the token may use, for example **REST API (v1)** or **MCP Server**. Once you select any, Servicely refuses requests to every other entry point. Leave it empty to allow every entry point.
  </Step>
  <Step>
    In **URL Allowed Paths**, enter the paths the token may call, separated by commas. For example, enter `/controller/ControllerName` to allow one controller. Leave it empty to allow every path the scopes and the user permit. The path table below shows the patterns.
  </Step>
  <Step>
    Leave **Administrator privileges** at **Follow system setting** unless the token needs a different rule. The table below lists the values.
  </Step>
  <Step>
    Select **Generate Token**. Servicely shows the token and the shared secret.
  </Step>
  <Step>
    Copy both values and store them in the external system's secret store. Servicely does not show them again.
  </Step>
</Steps>

<!-- source: platform_integration/data/AvailableValue?Table=SystemApiToken&Field=ValidationType -->
| Validation type | Use when |
| --- | --- |
| None (Bearer token in Header) | The caller can send headers and needs only a token |
| HMAC header validation | The caller can hash headers with a shared secret |
| HMAC body validation | The caller can sign the method, body, content type, date and path |
| None (Bearer token in URL) | The caller cannot set headers. Inactive until you enable it. |

<!-- source: platform_integration/data/LocalizedMessage?Key=systemapitoken.urlallowedpaths.tooltip -->
| Path pattern | Matches |
| --- | --- |
| `/v1/incident` | That path only |
| `/_mcp/` | Every path under `/_mcp/`. A lone `/` matches only the root. |
| `/_webhook/v2/*` | One path segment after `/_webhook/v2/` |
| `/v1/**` | Any number of segments after `/v1/` |

<!-- source: platform_integration/data/AvailableValue?Table=SystemApiToken&Field=AdministratorPrivileges -->
| Administrator privileges | Effect while administrator escalation is enabled |
| --- | --- |
| Follow system setting | Follows the system setting for token logins |
| Always grant administrator | Requests keep the `administrator` role |
| Always withhold administrator | Requests lose the `administrator` role |

Only an administrator can change **Administrator privileges**.

<Callout type="warning">
  Choosing **None (Bearer token in URL)** shows a warning. A token in a URL is easy to leak through logs. Restrict it with **URL Allowed Paths**.
</Callout>

## Result

The token is active and its record shows the **Token prefix**. Each request updates **Last authentication** and **Last authentication address**, so you can see when and from where the token was last used. To stop the integration, clear **Active**. If the token or secret is lost, create a new token and update the external system.

## Related

- [Authentication methods for inbound integrations](page:integrations/inbound-authentication)
- [Integration methods](page:integrations/integration-methods)
- [Export records to a reporting database](page:integrations/export-to-a-reporting-database)
