Developers
StressSense API & webhooks
Connect stress insights to your admin stack, dashboards, and internal tools. Create API keys, listen to webhooks, or embed read-only widgets in your portal.
Authentication
Use API keys from your workspace. Include them in the Authorization header.
curl -X GET \ -H "Authorization: Bearer sk_org_xxx..." \ https://your-app-url.com/api/public/v1/metrics/overview
REST API
Read surveys, employees, and metrics under /api/public/v1.
Webhooks
Subscribe to events like survey.created or survey.response.created.
Embeds
Drop-in JS SDK to render stress metrics on your intranet.
Webhook payload
{
"id": "evt_123",
"type": "survey.response.created",
"createdAt": "2025-01-01T10:00:00Z",
"workspace": { "id": "org_123", "name": "Acme" },
"data": { "surveyId": "surv_123", "responseId": "resp_456" }
}Verify signature header X-StressSense-Signature (HMAC SHA256 of the raw body).