sentry.auth.validate_token ​
Validate a Sentry authentication token
Validate a Sentry authentication token and return account information.
Inputs: none (token comes from the sentry plugin).
Outputs (terminal state_data):
- orgs: list of {slug, name} — organisations the token has access to
- authenticated: bool — always true on success
Plugin required: context.get_plugin("sentry") must expose:
- .auth_token — Sentry auth token
- .base_url — optional, default: https://sentry.io
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-sentry |
| Version | 1.0 |
Input Schema ​
No input fields required.
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
authenticated | boolean | No | — | — |
orgs | list | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "sentry.auth.validate_token",
"initial_data": { }
}