Skip to content

API Tokens

API tokens provide programmatic access to the gateway for CI/CD pipelines and automation.

Navigate to API Tokens in the sidebar to see your tokens (admins see every token):

ColumnDescription
Token IDPublic UUID for the token
NameDescriptive name
StatusActive or expired (tokens created with an expiry time)
Created ByUser who created the token
Last UsedMost recent API call using this token
CreatedWhen the token was created
  1. Click Create Token
  2. Enter a descriptive name
  3. Choose permissions (or use a role shortcut like Viewer, Ops, Deployer, CI/CD, Admin). You can only choose permissions your own role has.
  4. Click Create Token and complete the MFA prompt
  5. Copy the token secret immediately, then click Done

Tokens created in the web UI don’t expire. To set an expiry, create the token with rack-gateway api-token create --expires-at <RFC3339 time>.

Tokens are prefixed with rgw_:

  • rgw_xxxxxxxxxxxxxxxxxxxxx

The token string does not encode the role; permissions are stored server-side. The gateway stores only a hash of the secret.

Terminal window
export RACK_GATEWAY_API_TOKEN="rgw_..."
export RACK_GATEWAY_URL="https://gateway.example.com"
rack-gateway apps
rack-gateway deploy -a myapp
Terminal window
curl -H "Authorization: Bearer rgw_..." \
https://gateway.example.com/api/v1/rack-proxy/apps
  • Edit lets the token’s owner (if they are a deployer) or an admin update the name and permissions. New permissions must still be within the owner’s role.
  • Delete Token permanently removes the token.

Both need a fresh MFA check.

  • Use CI/CD role shortcuts for automation tokens
  • Rotate tokens regularly
  • Delete unused tokens