This page documents the authentication, role, email verification, and billing requirements of the platform's user-facing operations, in the platform UI, the CLI and the API. The notes below the table name the operations it leaves out, and Workflow run token covers the credential a task in a run uses.
Guard vocabulary
The table's columns show four types of guards; the notes below the table cover the rest:
| Column | What it checks |
|---|
| Auth required | Request is authenticated (valid token present) |
| Email verified | Authenticated user's email is verified |
| Minimum role | User's role is at least the specified level |
| Billing active | Account billing status is Active |
Roles in ascending order: Contributor → Admin → Owner. An Owner satisfies any minimum-role check. In the Minimum role column, — means the operation has no role check of its own; you still have to be a member of the account.
Permissions table
Personal account
| Operation | Auth required | Email verified | Minimum role | Billing active |
|---|
| Get account info | Yes | No | — | No |
| Change account name | Yes | Yes | Owner | No |
| Change password | Yes | Yes | Owner | No |
| Read password policy | Yes | No | — | No |
| Check email verification | Yes | No | Owner | No |
| Change workflow storage size | Yes | Yes | Owner | No |
| List my organizations | Yes | No | — | No |
Organizations
| Operation | Auth required | Email verified | Minimum role | Billing active |
|---|
| Get organization info | Yes | No | — | No |
| Create organization | Yes | Yes | Owner | No |
| Rename organization | Yes | Yes | Owner | No |
| Change organization workflow storage size | Yes | Yes | Admin | No |
| Delete organization | Yes | Yes | Owner | No |
| Leave organization | Yes | Yes | Contributor | No |
Create organization checks the role on your personal account, where you are always the Owner.
Organization members
| Operation | Auth required | Email verified | Minimum role | Billing active |
|---|
| List members | Yes | No | Admin | No |
| Add member | Yes | Yes | Admin | No |
| Change member role | Yes | Yes | Admin | No |
| Remove member | Yes | Yes | Admin | No |
Avatars
| Operation | Auth required | Email verified | Minimum role | Billing active |
|---|
| Get account avatar | Yes | No | Owner | No |
| Set account avatar | Yes | Yes | Owner | No |
| Remove account avatar | Yes | Yes | Owner | No |
| Get organization avatar | Yes | No | Contributor | No |
| Set organization avatar | Yes | Yes | Admin | No |
| Remove organization avatar | Yes | Yes | Admin | No |
Teams
| Operation | Auth required | Email verified | Minimum role | Billing active |
|---|
| List teams | Yes | No | Admin | No |
| Create team | Yes | Yes | Admin | No |
| Update team | Yes | Yes | Admin | No |
| Delete team | Yes | Yes | Admin | No |
| List team members | Yes | No | Admin | No |
| Add team member | Yes | Yes | Admin | No |
| Remove team member | Yes | Yes | Admin | No |
MFA (multi-factor authentication)
| Operation | Auth required | Email verified | Minimum role | Billing active |
|---|
| Get MFA status | Yes | No | Owner | No |
| Sync MFA status | Yes | Yes | Owner | No |
| Check can-disable MFA | Yes | No | Owner | No |
| Disable MFA | Yes | Yes | Owner | No |
| Regenerate recovery code | Yes | Yes | Owner | No |
| Change organization MFA requirement | Yes | Yes | Admin | No |
Personal access tokens
| Operation | Auth required | Email verified | Minimum role | Billing active |
|---|
| Create token | Yes | Yes | — | No |
| List tokens | Yes | No | — | No |
| Get token | Yes | No | — | No |
| Check token name | Yes | No | — | No |
| Rename token | Yes | Yes | — | No |
| Regenerate token | Yes | Yes | — | No |
| Delete token | Yes | Yes | — | No |
Projects
| Operation | Auth required | Email verified | Minimum role | Billing active |
|---|
| Create project | Yes | Yes | Admin | No |
| List projects | Yes | No | — | No |
| Get project | Yes | No | — | No |
| Get project summary | Yes | No | Contributor | No |
| List project runs | Yes | No | Contributor | No |
| List project runs in progress | Yes | No | Contributor | No |
| List recently ended project runs | Yes | No | Contributor | No |
| Follow project run changes | Yes | No | Contributor | No |
| Delete project | Yes | Yes | Admin | No |
| List deleted projects | Yes | No | Admin | No |
| Restore project | Yes | No | Admin | No |
| Set project workflow storage size | Yes | Yes | Admin | No |
| Rename project | Yes | Yes | Admin | No |
| Operation | Auth required | Email verified | Minimum role | Billing active |
|---|
| Create repository | Yes | Yes | — | No |
| List repositories | Yes | No | — | No |
| Get repository | Yes | No | — | No |
| Check repository exists | Yes | No | — | No |
| Delete repository | Yes | Yes | — | No |
| List deleted repositories | Yes | No | — | No |
| Restore repository | Yes | No | — | No |
| Create tag (push, re-tag) | Yes | Yes | — | No |
| List tags | Yes | No | — | No |
| Get tag | Yes | No | — | No |
| Delete tag | Yes | Yes | — | No |
Secrets
| Operation | Auth required | Email verified | Minimum role | Billing active |
|---|
| Create account secret | Yes | Yes | Admin | No |
| Update account secret value | Yes | Yes | Admin | No |
| Update account secret allowed projects | Yes | Yes | Admin | No |
| Add account secret allowed project | Yes | Yes | Admin | No |
| Remove account secret allowed project | Yes | Yes | Admin | No |
| Delete account secret | Yes | Yes | Admin | No |
| Get account secret | Yes | No | Admin | No |
| List account secrets | Yes | No | Admin | No |
| List account secrets by project | Yes | No | Contributor | No |
| Create project secret | Yes | Yes | Contributor | No |
| Update project secret | Yes | Yes | Contributor | No |
| Delete project secret | Yes | Yes | Contributor | No |
| Get project secret | Yes | No | — | No |
| List project secrets | Yes | No | — | No |
Workflows and runs
| Operation | Auth required | Email verified | Minimum role | Billing active |
|---|
| Create workflow | Yes | Yes | Contributor | No |
| Get workflow | Yes | No | Contributor | No |
| List workflows | Yes | No | Contributor | No |
| Update workflow | Yes | Yes | Contributor | No |
| Delete workflow | Yes | Yes | Contributor | No |
| Start run | Yes | Yes | Contributor | Yes |
| Get run | Yes | No | Contributor | No |
| List runs | Yes | No | Contributor | No |
| Follow run state | Yes | No | Contributor | No |
| Get account summary | Yes | No | Contributor | No |
| List account runs in progress | Yes | No | Contributor | No |
| List recently ended account runs | Yes | No | Contributor | No |
| Follow account run changes | Yes | No | Contributor | No |
| Cancel run | Yes | Yes | Contributor | No |
| Delete run | Yes | Yes | Contributor | No |
| List run tasks | Yes | No | Contributor | No |
| Get run task | Yes | No | Contributor | No |
Task definitions
| Operation | Auth required | Email verified | Minimum role | Billing active |
|---|
| Create task definition | Yes | Yes | Admin | Yes |
| Publish version | Yes | Yes | Admin | Yes |
| List task definitions | Yes | No | Contributor | No |
| Get task definition | Yes | No | Contributor | No |
| List versions | Yes | No | Contributor | No |
| Make public / private | Yes | Yes | Admin | No |
| Delete version | Yes | Yes | Admin | No |
| Delete task definition | Yes | Yes | Admin | No |
Usage & Billing
| Operation | Auth required | Email verified | Minimum role | Billing active |
|---|
| View usage | Yes | No | Owner | No |
| View cost | Yes | No | Owner | No |
| Get billing status | Yes | No | Contributor | No |
GitHub integration
| Operation | Auth required | Email verified | Minimum role | Billing active |
|---|
| Check GitHub connection | Yes | No | — | No |
| List connected owners | Yes | No | — | No |
| Disconnect GitHub owner | Yes | Yes | — | No |
| List source owners | Yes | No | — | No |
| List source repositories | Yes | No | — | No |
| Browse source files | Yes | No | — | No |
The last three rows are the browsing the GitHub import dialogs do, and also need a GitHub connection on your own account. Importing a workflow is then Create workflow, re-importing one Update workflow, and importing a task definition Create task definition or Publish version, each with the requirements in its own row.
Notes
- Every operation listed here requires authentication — every request must carry a valid token.
- Avatars on the Hub. Swale Hub shows an account's avatar to anyone, without sign-in, while the account has at least one public task definition; that read is not listed here.
- The workflow run token is narrower than any row here. The table describes people; see Workflow run token for what a task holding the workflow run token can reach.
- Turnstile-protected endpoints (account registration, account deletion, changing the account email, resending the verification email, account-name existence check) need a Turnstile token that only the platform UI obtains, so they are infrastructure and are not listed here. Neither is the registration page's password-policy fetch before sign-in, which needs neither sign-in nor a Turnstile token and returns the same rules as the documented password-policy endpoint. Changing your email and resending the verification email are done from Account Details; see Manage account settings.
- Sign-in-only operations. Changing your password, changing the account email, deleting your personal account, disabling MFA, regenerating your recovery code and every personal access token operation refuse a personal access token, whatever else comes with the request, so only someone signed in to the platform UI can do them. The Change password and token rows above describe that signed-in request. Deleting an organization still accepts a personal access token.
- Recent sign-in. Changing your password or email, deleting your personal account, disabling MFA, regenerating your recovery code, generating or regenerating a personal access token, adding an organization member, changing a member's role, and changing or deleting a secret, including which projects an account secret is allowed in, also need a sign-in from the last two hours. Creating, listing and viewing secrets do not. When your sign-in is older, the platform UI asks you to sign in again before it opens the action: with your password, or, once you have enabled multi-factor authentication, with a code from your authenticator app instead. A personal access token adding a member, changing a role or writing a secret is not asked for one.
- Organizations that require MFA refuse every operation on their behalf to a member without MFA, whatever the member's role, with an error naming the organization, until the member enables MFA again. A personal access token is judged by its account's MFA status as the platform last learned it; a workflow run token is not judged by it. See Require MFA for organization members.
- Content-transfer endpoints (xorb and manifest registration, upload and download URLs, deduplication queries) are wire-protocol steps the CLI sequences on your behalf during
push and pull, not operations you call yourself, and are not listed here. Uploading content during a push and downloading it during a pull both need billing active on the account; Create tag itself does not check billing, so re-tagging content the account already stores works without it.
- Task-log reads (the short-lived read URLs a task's page in the UI and
workflow run task logs use to fetch a task's log straight from storage) are likewise a client-side protocol step and are not listed here. Reading a task's log needs the Contributor role, with no email-verified or billing check.
- Start run is also refused while the account is at its limit on runs in progress, for a workflow that uses a compute type the platform does not offer, and for one that needs more tasks running at once than the account may run; see Limits and quotas.
- Billing active means the account billing status is
Active. With any other status, operations marked Yes in that column return an error; see Billing statuses.
- Billing is checked on the account the operation targets, never on the personal account of the caller. Working inside an organization, it is the organization's billing status that decides — your own personal payment method is irrelevant, and an organization without a payment method blocks its members even when each of them has one personally. The error names the account whose billing status blocks the operation.
- Opening billing settings and connecting GitHub hand you from the platform UI to a hosted page, Stripe's or GitHub's, and are not listed here. Opening billing settings needs an Owner with a verified email, so an Admin blocked by an organization's billing status has to ask an Owner to restore it. See Restore an Active status. Connecting GitHub needs a verified email but no role; see Connect and manage GitHub integration.
- Role checks apply to organization membership. Personal accounts where the user is the sole owner always satisfy the role check. Operations that exist only for organizations, such as members, teams and organization settings, refuse a personal account.
- In an organization, a Contributor reaches only the projects associated with their teams; Admins and Owners reach every project. A team stays associated with a project when the project is renamed, so a Contributor keeps access to it under its new name.
- Adding or removing an Owner, making a member an Owner, and changing an Owner's role need the Owner role; an Admin changes other members' roles only between Contributor and Admin. An Owner cannot demote themselves, and an organization's last Owner cannot be removed, demoted, or leave. An Owner of any organization cannot delete their personal account until they leave it or delete it, and deleting a personal account removes it from every organization it still belongs to.
Workflow run token
secrets.WORKFLOW_TOKEN is a credential scoped to one run, which the platform adds to the run's secrets; see Secrets. A task authenticating with it reaches only its run's own project, and can:
- Read the run's project: the project, its repositories and tags, its workflows, its runs and their tasks, and the read URLs for a task's logs.
- Transfer content:
swale push and swale pull. A push creates the repository if it does not exist yet and records a tag for what it uploaded, and swale tag <target> --new-tag <name> adds a further tag to content already there. The transfers reach the account's shared content store, which is account-wide by design.
- Release content:
swale tag delete <target> --yes deletes a tag, so a run can clean up after itself. A task has no terminal to confirm at, so it passes --yes.
- Read the account's billing status, which push and pull check first.
Everything else is refused with 403. That includes every other write — deleting or restoring a repository, creating or deleting a workflow, starting, canceling or deleting a run, changing the project — and the secrets API in both directions: a task holding the token can neither list the project's secret names nor create, replace or delete a secret.
- The token never reaches another project or another account. When a task needs to act on another project, or do anything this list does not cover, pass it a personal access token as a secret of your own.
- It is not subject to the email-verified column, since a run only exists where a verified person started it, and an organization's MFA requirement does not apply to it.
- It is accepted while the task holding it is under way, and for 10 minutes after that task ends.
- The CLI inside a task reads it from
SWALE_ACCOUNT_TOKEN, with the account's name in SWALE_ACCOUNT_NAME; Give the task the CLI's credentials shows how a workflow passes both.
Related pages