Skip to main content
Integrations connect external services to your workspace so that your agents can use them. When you connect Sentry, your agents can access Sentry data — triaging errors, alerting you, generating reports. The integration is just plumbing that securely connects a credential.
Integrations are not dashboards. The value isn’t “see Sentry issues in orch-hq” — it’s that your agents can now call the Sentry API with a securely stored token, automatically injected into their sandbox.

How It Works

1. Connect a service in orch-hq (paste auth token, select org/projects)
2. Gateway encrypts the token as a workspace secret
3. Deploy an agent with required_secrets: ["SENTRY_AUTH_TOKEN"]
4. Platform injects the credential into the agent's sandbox
5. Agent calls the Sentry API directly with the token
Integrations use two-layer storage:
LayerContainsExposed to frontend?
CredentialEncrypted auth token (workspace secret)No — never exposed
ConfigProvider, org slug, project slugs, statusYes

Available Integrations

ProviderStatusWhat agents can do
SentryLiveTriage errors, monitor issue counts, alert on regressions
SlackComing soonSend messages, read channels, respond to events
LinearComing soonCreate/update issues, track project progress
GitHubComing soonRead repos, create PRs, manage issues
PagerDutyComing soonCreate incidents, acknowledge alerts

Sentry Setup

Sentry is the first fully supported integration. Set it up in orch-hq:
  1. Open orch-hq and click Integrations in the sidebar
  2. Click Connect on the Sentry row
  3. Paste your Sentry auth token
  4. The platform verifies the token and shows your available organizations and projects
  5. Select which org and projects to monitor (or select “all”)
  6. Done — agents in this workspace can now use SENTRY_AUTH_TOKEN

Required Token Scopes

Create a token at {your-org}.sentry.io/settings/account/api/auth-tokens/ with these scopes:
ScopePurpose
org:readList organizations
project:readList projects
event:readRead event details (for agents that inspect errors)

Using Sentry in Your Agent

Add the secret to your agent’s orchagent.json:
{
    "name": "error-monitor",
    "type": "tool",
    "required_secrets": ["SENTRY_AUTH_TOKEN"]
}
Then use it in your agent code:
import os
import requests

token = os.environ["SENTRY_AUTH_TOKEN"]
headers = {"Authorization": f"Bearer {token}"}

# Fetch unresolved issues
issues = requests.get(
    "https://sentry.io/api/0/projects/acme/backend/issues/",
    headers=headers,
    params={"query": "is:unresolved"}
).json()
Do not add ORCHAGENT_SERVICE_KEY to required_secrets — it is injected automatically by the platform. Only list secrets your agent needs from external services.

API Reference

All integration endpoints are workspace-scoped and require Authorization: Bearer <api_key>.

Create an integration

POST /workspaces/{workspace_id}/integrations
{
    "provider": "sentry",
    "display_name": "Production Sentry",
    "credential": "sntrys_...",
    "config": {
        "sentry_org_slug": "acme-corp",
        "sentry_project_slugs": ["backend-api", "web-dashboard"]
    }
}

List integrations

GET /workspaces/{workspace_id}/integrations

Get a single integration

GET /workspaces/{workspace_id}/integrations/{id}

Update an integration

PATCH /workspaces/{workspace_id}/integrations/{id}

Delete an integration

DELETE /workspaces/{workspace_id}/integrations/{id}
Deleting an integration also deletes its linked workspace secret.

Sentry proxy endpoints

These are used by orch-hq’s setup flow. The desktop app never touches the raw token — the gateway proxies all Sentry API requests.
MethodPathPurpose
POST/{id}/sentry/verifyVerify token, return available orgs and projects
GET/{id}/sentry/issuesFetch 25 most recent unresolved issues
GET/{id}/sentry/statsFetch unresolved count and project list
If Sentry returns 401, the gateway auto-marks the integration status: "error" with a message indicating the token is expired or revoked.

Next Steps

orch-hq

The desktop app where you manage integrations

Security

How orchagent handles secrets and sandboxing

SDK Reference

Full SDK documentation