Autenticación Beta
Autentica las peticiones a la API con un token Bearer que Veripass emite para tu organización. Los webhooks se autentican con su propio ingress binding.
Cada petición a la API dice quién la hace. Sommatic AI usa esa identidad para limitar lo que ves a tu organización y para registrar quién hizo qué en cada ejecución, tarea y cambio.
Envía un token Bearer
Envía el token en el encabezado Authorization de cada petición:
El token lo emite Veripass, la autoridad de identidad de Sommatic AI, para tu organización. Lleva quién eres, tu organización y tu rol, de modo que cada operación sensible queda ligada a un actor y a una organización.
curl "https://api.sommatic.ai/work-management/task/inbox?user_id=$USER_IDENTITY&page=1&pageSize=25" \
-H "Authorization: Bearer $SOMMATIC_TOKEN"const response = await fetch('https://api.sommatic.ai/platform-infrastructure/credential/organization-id?search=' + organizationId, {
headers: { Authorization: `Bearer ${token}` },
});import { PlatformInfrastructureCredentialService } from '@sommatic/react-sdk';
const credentials = new PlatformInfrastructureCredentialService({ apiKey: token });
const response = await credentials.getByParameters({ queryselector: 'organization-id', search: organizationId });Una petición sin un token válido se rechaza con HTTP 401:
{ "status": 401, "success": false, "message": "Unauthorized", "result": null }Los webhooks se autentican por binding
POST /workflow-orchestration/trigger/webhooks/:mode/:bindingIdentifier es la única ruta que no recibe el token
Bearer: los sistemas externos que llaman tus workflows normalmente no tienen una identidad en Veripass. Cada webhook se
expone a través de un ingress binding, y el binding declara en su bloque authentication cómo se autentican quienes
lo llaman:
authentication.mode | Qué espera el binding |
|---|---|
api-key | Una llave de las allowed_api_keys del binding. |
oauth2 | Un token OAuth 2 con los oauth_scopes del binding. |
veripass-session | Una sesión de Veripass, validada contra la veripass_policy del binding. |
service-token | Un token de servicio. |
custom | Un esquema propio de esa integración. |
none | Nada. Úsalo solo en bindings de prueba que no tocan datos reales. |
{
"slug": "ingress.http.inbound-requests",
"ingress_kind": "http",
"mode": "prod",
"authentication": { "mode": "api-key", "allowed_api_keys": ["replace-with-a-long-random-key"] }
}Crea y edita los bindings con los endpoints de Triggers, que sí reciben el token Bearer.
Cómo llamar un webhook, sus modos test y prod y su payload están en Webhooks.