SmoothDeploy Docs
API Reference

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

ScopeActions
testsread, create, update, delete, run, cancel
testRunsread
schedulesread, run, pause, resume
projectsread
branchesread
emailInboxread, delete

tests

ScopeActions It Unlocks
tests:readtests.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:createtests.create, tests.duplicate, tests.import, step-files.upload-urls
tests:updatetests.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:deletetests.delete, tests.bulk-delete
tests:runtests.run, tests.run-many, test-runs.rerun
tests:canceltest-runs.cancel

testRuns

ScopeActions It Unlocks
testRuns:readtest-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

ScopeActions It Unlocks
schedules:readschedules.list, schedules.get, schedules.trigger, schedules.enable, schedules.disable
schedules:runschedules.trigger
schedules:pauseschedules.disable
schedules:resumeschedules.enable

Creating, editing and deleting schedules stays session-only.

projects

ScopeActions It Unlocks
projects:readprojects.list, projects.get

branches

ScopeActions It Unlocks
branches:readbranches.list, branches.get

emailInbox

ScopeActions It Unlocks
emailInbox:reademail-inboxes.list, email-messages.list, email-messages.get
emailInbox:deleteemail-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:

ActionScopes
test-runs.canceltestRuns:read, tests:cancel
test-runs.reruntestRuns:read, tests:run
schedules.triggerschedules:read, schedules:run
schedules.enableschedules:read, schedules:resume
schedules.disableschedules:read, schedules:pause
steps.create, steps.update, steps.delete, steps.group, steps.move, steps.share, steps.update-childrentests:read, tests:update
shared-steps.update, shared-steps.deletetests: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