On this page
Sommatic Docs
Open portal

Authentication Beta

Authenticate API requests with a Bearer token issued by Veripass for your organization. Webhooks authenticate through their own ingress binding instead.

View as Markdown
Open in

Every request to the API says who is making it. Sommatic AI uses that identity to scope what you see to your organization and to record who did what in each run, task and change.

Send a Bearer token

Send the token in the Authorization header of every request:

Authorization: Bearer <token>

The token is issued by Veripass, Sommatic AI’s identity authority, for your organization. It carries who you are, your organization and your role, so every sensitive operation is bound to an actor and an organization.

Shell
curl "https://api.sommatic.ai/work-management/task/inbox?user_id=$USER_IDENTITY&page=1&pageSize=25" \
  -H "Authorization: Bearer $SOMMATIC_TOKEN"
JavaScript
const response = await fetch('https://api.sommatic.ai/platform-infrastructure/credential/organization-id?search=' + organizationId, {
  headers: { Authorization: `Bearer ${token}` },
});
JavaScript
import { PlatformInfrastructureCredentialService } from '@sommatic/react-sdk';

const credentials = new PlatformInfrastructureCredentialService({ apiKey: token });
const response = await credentials.getByParameters({ queryselector: 'organization-id', search: organizationId });

A request without a valid token is rejected with HTTP 401:

JSON
{ "status": 401, "success": false, "message": "Unauthorized", "result": null }

Webhooks authenticate per binding

POST /workflow-orchestration/trigger/webhooks/:mode/:bindingIdentifier is the one route that does not take the Bearer token: external systems that call your workflows usually have no Veripass identity. Each webhook is exposed through an ingress binding, and the binding declares how its callers authenticate in its authentication block:

authentication.modeWhat the binding expects
api-keyA key from the binding’s allowed_api_keys.
oauth2An OAuth 2 token with the binding’s oauth_scopes.
veripass-sessionA Veripass session, checked against the binding’s veripass_policy.
service-tokenA service token.
customA scheme specific to that integration.
noneNothing. Use it only for test bindings that do not touch real data.
JSON
{
  "slug": "ingress.http.inbound-requests",
  "ingress_kind": "http",
  "mode": "prod",
  "authentication": { "mode": "api-key", "allowed_api_keys": ["replace-with-a-long-random-key"] }
}

Create and edit bindings with the Triggers endpoints, which do take the Bearer token. How to call a webhook, its test and prod modes and its payload are in Webhooks.

Next steps

Install agent tools

Give your coding agent the official Sommatic AI docs: skills, the docs MCP server and Markdown pages, so it never has to scrape the site.

Skills only. They do not update by themselves; run it again to refresh.

npx skills add https://docs.sommatic.ai
How agents read these docs