New: Read-Only API Keys

Release Date: Monday, December 7, 2026
Category: Security & Integrations / Public API
What’s New: Read-Only API Keys
We’re introducing Read-Only API Keys to help organizations enforce the principle of least privilege across external automations, reporting tools, and AI agents.
Previously, accessing Swif data programmatically required your primary organization API key, which carries full read and write access across your account. You can now generate dedicated, scoped tokens that can view organizational data without the ability to modify settings, run commands, or alter device state.
Key Capabilities
Principle of Least Privilege: Read-only tokens start with the
swif_ro_prefix and are strictly restricted to reading data. Any modification request (POST,PUT,PATCH,DELETE) or unapproved route is automatically rejected with a403 READ_ONLY_TOKENerror.14 Supported Read Endpoints: Read-only keys can query data across
/restful/organization, including:Devices & Inventory: Devices list, installed applications, browser extensions, device owners, and extension attributes.
Directory: Employees and teams (list and individual lookups).
Audit & Execution: Tracking events, commands, command runs, and script execution reports.
Self-Serve Token Management: Manage up to 20 active read-only keys at a time under Settings › API Keys:
One-Time Secret Reveal: Keys are displayed only once upon generation and stored as cryptographic one-way hashes.
Masked Display: Keys appear securely in the dashboard as
swif_ro_…last4.Instant Revocation: Revoking a token invalidates it immediately (
401 INVALID_TOKEN) and instantly frees up a quota slot.Safe Renaming: Update key labels (up to 120 characters) anytime without rotating or invalidating active tokens.
API Key Management via REST: Organization admins can also create, list, rename, and revoke read-only keys programmatically using their primary organization API key.
How to Get Started
Go to Settings › API Keys in the Swif admin console.
Scroll to the Read-only API keys section and click Generate Read-Only Key. (Note: Your primary organization API key must be generated first).
Name your key (e.g.,
BI Dashboard,Claude Agent), copy the secret, confirm safe storage, and click Done.Pass the token in your requests via the standard
Authorizationheader:curl -X GET "https://api.swif.ai/restful/organization/api/v1/devices" \ -H "Authorization: swif_ro_your_api_key_here"
For endpoint schemas, status codes, and troubleshooting, view our complete documentation:
👉 Public APIs - Your API key token for Swif.ai