Authentication
Last updated
All Viio API requests require authentication via an API key generated from the Viio dashboard.
Generating an API Key
- Log in to the Viio dashboard.
- Open the account menu by clicking your workspace logo in the sidebar, then go to Preferences > API Keys.
- Click New Key.
- Give your key a descriptive name (e.g., "CI/CD Integration" or "Custom Dashboard").
- Select a permission scope — Full Access (Read & Write) or Full Access (Read).
- Click Create Key.
- Copy the generated key — it will only be shown once.
Making Authenticated GraphQL Requests
Include your API key in the Authorization header:
curl -X POST https://api.viio.io/graphql \
-H "Content-Type: application/json" \
-H "Authorization: YOUR_API_KEY" \
-d '{"query": "{ applications { nodes { id name } } }"}'
Header Format
| Header | Value |
|---|---|
Authorization | YOUR_API_KEY |
Content-Type | application/json |
Making Authenticated Sync API Requests
The Sync API uses the same workspace API keys, but its gRPC metadata includes the ApiKey authentication scheme:
Authorization: ApiKey YOUR_API_KEY
Official SDKs attach this metadata to every request:
SyncApiAuthentication.ApiKey(apiKey)
SyncApiAuthentication.api_key(api_key)
The key must have write access and the integration:sync permission. If that permission is not available when you create a key, contact your Viio representative to enable Sync API access for the workspace.
Token Scoping
API keys are scoped to your workspace. All queries return data only for the workspace associated with the key. You cannot access data from other workspaces.
Revoking API Keys
To revoke an API key:
- Open the account menu and go to Preferences > API Keys.
- Find the key you want to revoke and click the ⋮ action menu.
- Click Delete and confirm in the dialog.
Revoked keys immediately stop working. Any integrations using the key will receive 401 Unauthorized responses.