Scopes
Reference for all SmoothDeploy API key scopes and the actions each one unlocks. Covers tests, testRuns, schedules, projects, branches, and emailInbox.
When you create an API key you pick one or more scopes. A key with no scopes is rejected at creation. Each request is then checked against the scopes the action requires. A missing scope returns 403 { "error": "API key lacks scope <scope>" }.
Actions are called at /v1/actions/<name>. Only the actions listed here are callable with an API key; any other action returns 403 { "error": "API keys cannot access this resource" }.
Available Scopes
| Scope | Actions |
|---|---|
tests | read, create, update, delete, run, cancel |
testRuns | read |
schedules | read, run, pause, resume |
projects | read |
branches | read |
emailInbox | read, delete |
tests
| Scope | Actions It Unlocks |
|---|---|
tests:read | tests.list, tests.get, tests.get-code, tests.get-files, tests.export, test-revisions.list, test-revisions.get, steps.list, steps.get, shared-steps.list, shared-steps.get, shared-steps.get-children, shared-steps.get-usage |
tests:create | tests.create, tests.duplicate, tests.import, step-files.upload-urls |
tests:update | tests.update, tests.move, tests.bulk-update-status, tests.bulk-update-tags, test-revisions.create, steps.create, steps.update, steps.delete, steps.group, steps.move, steps.promote-screenshot, steps.remove-baseline, steps.share, steps.update-children, step-files.upload-urls, shared-steps.update, shared-steps.delete |
tests:delete | tests.delete, tests.bulk-delete |
tests:run | tests.run, tests.run-many, test-runs.rerun |
tests:cancel | test-runs.cancel |
testRuns
| Scope | Actions It Unlocks |
|---|---|
testRuns:read | test-runs.list, test-runs.get, test-runs.get-latest, test-runs.get-stats, test-runs.list-tests, test-runs.get-results, test-runs.get-artifacts, test-runs.get-report, test-runs.get-screenshots, test-runs.rerun, test-runs.cancel |
schedules
| Scope | Actions It Unlocks |
|---|---|
schedules:read | schedules.list, schedules.get, schedules.trigger, schedules.enable, schedules.disable |
schedules:run | schedules.trigger |
schedules:pause | schedules.disable |
schedules:resume | schedules.enable |
Creating, editing and deleting schedules stays session-only.
projects
| Scope | Actions It Unlocks |
|---|---|
projects:read | projects.list, projects.get |
branches
| Scope | Actions It Unlocks |
|---|---|
branches:read | branches.list, branches.get |
emailInbox
| Scope | Actions It Unlocks |
|---|---|
emailInbox:read | email-inboxes.list, email-messages.list, email-messages.get |
emailInbox:delete | email-inboxes.delete |
Actions That Need Several Scopes
Each scope is granted on its own, and an action needs every scope listed on its reference entry. The actions that need more than one:
| Action | Scopes |
|---|---|
test-runs.cancel | testRuns:read, tests:cancel |
test-runs.rerun | testRuns:read, tests:run |
schedules.trigger | schedules:read, schedules:run |
schedules.enable | schedules:read, schedules:resume |
schedules.disable | schedules:read, schedules:pause |
steps.create, steps.update, steps.delete, steps.group, steps.move, steps.share, steps.update-children | tests:read, tests:update |
shared-steps.update, shared-steps.delete | tests:read, tests:update |
tests.import (when archive contains shared steps) | tests:create, tests:update |
All other actions need only the single scope shown above.
Steps and Shared Steps
There is no separate steps or sharedSteps scope. Steps and shared steps are authorized through the tests scope. See Steps and Shared Steps.
Resources Not Reachable with an API Key
The following resources require an active console session and cannot be accessed with an API key:
- Secrets, tags, config presets
- Creating, editing or deleting projects or branches
- Creating, editing or deleting schedules
- Billing and audit log
- Webhook management
- API key management itself
- Creating email inboxes
Authentication
Authenticate SmoothDeploy API requests using the x-api-key, x-project-id, and x-branch-id headers. Learn how to create API keys in the console.
OpenAPI and Schemas
Access the SmoothDeploy OpenAPI 3.1 spec and JSON Schema endpoints. Use them to generate typed clients, validate payloads, or import into API tooling.