REST API Authentication
restApi ยท Plan: ๐ Pro Device Plan or higherTo use REST API, you need Device Plan Pro or Ultra. REST API does not work on the free Open Device Plan or Basic Plan without the Add-on.
Introductionโ
Every REST API request is authenticated with a token in the X-Auth header. signageOS has these types of tokens:
| Token | Belongs to | Use it for |
|---|---|---|
| Account token | Your user account | Company-level operations, such as creating Organizations or moving devices between them |
| Service token | An Organization | CI/CD pipelines and other integrations that must keep working when people change |
| Personal token | Your user account, for one Organization | Your own scripts and tools that work with one Organization |
Service tokens and personal tokens are both Organization tokens: they work with devices, applets, tags, policies and other resources of their Organization.
Account tokenโ
The Account token is used for:
- manipulation with Company
- creating new Organizations
- moving devices between Organizations.
An account token has the same access as your user account.
How to create an Account token in Boxโ
- In Box, open your profile and select the API Tokens tab.
- In the Personal tokens list, click Add new token, enter a Token Name and click Generate New Token.
- Copy the Token ID and the Token Secret.
The API Tokens tab is shown when your company has the REST API feature. You can have up to 30 account tokens. Tokens are invalidated if the user is archived.
Organization tokensโ
Each Organization has its own tokens. In Box, open Organizations, select the Organization and open the API tokens tab. The tab has two lists: Service tokens and Personal tokens.
Service tokensโ
A service token is owned by the Organization, not by a person. It keeps working when the member who created it leaves, and everyone who manages the Organization can see and remove it. Use service tokens for CI/CD pipelines and other integrations.
- Owners and Managers of the Organization or of its Company can create, see and remove service tokens. Other members do not see them.
- The list shows who created each token and when.
- An Organization can have up to 30 service tokens.

To create a service token:
- On the API tokens tab, click Add service token.
- Enter a Token Name and click Generate New Token.
- Copy the Token ID and the Token Secret.
Personal tokensโ
A personal token belongs to you and works with one Organization. It stops working when you lose access to the Organization, so use a service token for integrations that other people depend on.
- Creating a personal token for an Organization requires the Manager role in that Organization or higher.
- You can have up to 30 personal tokens per Organization.

To create a personal token:
- On the API tokens tab, click Add new token in the Personal tokens list.
- Enter a Token Name and click Generate New Token.
- Copy the Token ID and the Token Secret.
The Token Secret is shown only once, right after you create the token. Box cannot show it again after you close the drawer. If you lose it, remove the token and create a new one.
Remove a tokenโ
Open the โฎ menu in the token's row and click Remove. Applications and integrations using the token stop working immediately.
Create Organization tokens using REST APIโ
Both requests are authenticated with your Account token in the X-Auth header.
| Token | Request |
|---|---|
| Service token | POST /v1/organization-service-token with organizationUid and an optional name in the JSON body |
| Personal token | POST /v1/organization/{organizationUid}/security-token |
The response contains the token ID and the secret (securityToken). The secret is returned only in this response. Service tokens are listed with GET /v1/organization-service-token and removed with DELETE /v1/organization-service-token/{serviceTokenUid}. See the REST API reference.
Use the X-Auth headerโ
Send the Token ID and the Token Secret, separated by a colon, in the X-Auth header: __TOKEN_ID__:__TOKEN_SECRET__.
# X-Auth = token_id:token_secret
curl -XGET --header 'x-auth: c19aexxx5295:46595b1121xxxxffa73015f3d0e43f1d9' \
https://api.signageos.io/v1/device