Use the Command public API documentation to browse available HTTP endpoints, request parameters, response models and supported operations.
The link opens Swagger UI with Public API v1 selected. You can read the public documentation without signing in.
Browse the API
- Open the public Swagger UI.
- Expand an endpoint group to find the operation you need.
- Open an operation to review its HTTP method, path, parameters, request body and documented responses.
- Expand Schemas to inspect the data models used by the API.
Public documentation includes customer-facing API operations. Operations restricted to SuperAdmin are omitted from the public document.
Create an API token in Command
Use a dedicated API token for integrations and Swagger requests.
- Sign in to Command and open My profile. You can also select your profile avatar to open My profile.
- Scroll to API tokens.
- Enter a descriptive Token name, such as
Reporting integration. Create a separate token for each integration. - Choose Expires after: 90 days (the default), 180 days or 365 days.
- Select Generate token, then Copy token.
- Store the token securely. It is shown only once and cannot be retrieved later. If copying is unavailable, select the token and copy it manually.
- Select I have saved this token securely, then Done.
The API tokens section is on your own profile. Viewing another user through company administration does not let you create or manage their tokens.
API tokens have the same current permissions as their owner, including write operations the account can perform. They do not grant access to additional companies, projects or assets, or provide a separate read-only scope. Use an account with the access your integration needs. API tokens cannot create, list or revoke API tokens; manage them from your signed-in Command profile.
Send the token in this HTTP header:
Authorization: Bearer <your-api-token>
Keep tokens out of source code, shared URLs and logs. Store them in your integration's secret store. Signing out of Command does not revoke an integration token.
Replace or revoke a token
My profile → API tokens lists each token's name, creation time, expiry and status. Command does not display the secret again.
- Before expiry, generate a replacement token, update the integration, verify it works, then select Revoke beside the old token and confirm Revoke token.
- If a token is lost or exposed, revoke it and generate a replacement. Revocation cannot be undone.
- A token expires automatically after its selected lifetime; it does not refresh itself. Expired or revoked tokens are rejected on subsequent authenticated requests and new live-feed connections.
- Token access follows the owner's current permissions. A locked-out, unverified or deleted account cannot authenticate with its tokens.
An already established live-feed connection is not forcibly disconnected by revocation or expiry. Stop that connection and reconnect using the replacement token when rotating credentials.
Try an API request
Reading the documentation does not grant access to your Command data. Protected operations require a valid Command access token and the appropriate permissions for the company, project or asset.
To try an authenticated operation:
- Select Authorize in Swagger UI.
- Enter
Bearerfollowed by the API token you created under My profile → API tokens. - Select Authorize, then close the dialog.
- Open the operation and select Try it out.
- Supply the required parameters or request body, then select Execute.
Execute sends a real request to the Command API. Operations that create, update or delete data act on the selected records.
Use Logout in the Authorize dialog to remove the token from Swagger UI when finished. A 401 response indicates missing or invalid authentication; access also remains subject to the operation's permissions.
Download the OpenAPI definition
Use the public OpenAPI JSON file for API tooling and integration development.
The interactive UI and JSON definition describe the same public HTTP API. Use the definition served by the environment you are integrating with.
Administrator reference
The Swagger UI also offers Admin API v1, which contains the full API reference.
To view it, authorise with a valid Command SuperAdmin access token before selecting Admin API v1. An ordinary user or company administrator token does not grant access to the admin document.
The admin OpenAPI JSON file requires an Authorization: Bearer <token> header. It returns 401 for missing or invalid authentication and 403 for authenticated accounts without the SuperAdmin role. This protection also applies in development.
History queries and live events
For integration examples and field definitions, see:
Swagger documents HTTP operations. Command's SignalR subscriptions and live sensor, breach and zone events are explained in the live-feed and payload articles.