Skip to main content
GoRules APIs support two authentication methods depending on the token type:
Token TypeHeader
Personal Access TokenAuthorization: Bearer <token>
Evaluation TokenX-Access-Token: <token>

Personal Access Tokens

Personal Access Tokens (PAT) authenticate requests to the BRMS API with your user identity. Use PATs for:
  • Managing projects, documents, and releases
  • Administrative operations
  • CI/CD pipelines that need full API access

Creating a PAT

  1. Navigate to your Profile in the BRMS
  2. Find the Personal access token section
  3. Click Generate token
  4. Configure the token:
    • Note: A description to identify the token’s purpose
    • Expiry: Token lifetime (Month, Quarter, Year, or custom)
    • All projects: Toggle to grant access to all projects or select specific ones
    • Permissions: Select the required permissions

PAT Permissions

PermissionDescription
Project ManageMembers, groups, tokens, approvers, configuration
DocumentsAccess to decision documents (Projects v1)
BranchesAccess to branches (Projects v2)
Integrations manageManage integrations (deprecated)
ReleasesCreate and manage releases
EnvironmentsConfigure and deploy to environments
Store your PAT securely. It provides access to your BRMS resources based on the permissions granted.

Evaluation Tokens

Evaluation tokens authenticate requests to evaluate decisions. They are scoped to a specific project and used for:
  • Evaluating decisions via BRMS API
  • Authenticating with the Agent service
  • Production workloads

Creating an Evaluation Token

  1. Open your project in the BRMS
  2. Go to Settings > Access Tokens
  3. Click Generate token
  4. Give the token a name

Using Evaluation Tokens

Evaluation tokens work with both the BRMS evaluation endpoints and the Agent service:
curl -X POST https://your-brms.example.com/api/projects/{project}/evaluate/{key} \
  -H "X-Access-Token: <evaluation-token>" \
  -H "Content-Type: application/json" \
  -d '{"context": {"input": "value"}}'
Evaluation tokens are contained within releases. When you deploy a release to the Agent, the token is used to authenticate evaluation requests.

Token Comparison

FeaturePersonal Access TokenEvaluation Token
Created inProfileProject Settings
ScopeUser-levelProject-level
BRMS management APIYesNo
BRMS evaluation APIYesYes
Agent APINoYes
Configurable permissionsYesNo (evaluation only)