Use Bearer tokens for public integrations, create a single Developer Portal token per workspace, and set required scopes for AI endpoints.
/v1/enrich and /v1/score also support Sanka internal requests authenticated with X-Workspace-Code.Authorization: Bearer <access_token>
Use this header for all public Data Management requests and for OAuth calls to the AI endpoints.GET /v1/public/auth/whoami to verify the active token:curl "https://api.sanka.com/v1/public/auth/whoami" \
-H "Authorization: Bearer <access_token>"
POST /v1/enrich requires companies:writePOST /v1/score with object_type=company requires companies:readPOST /v1/score with object_type=deal requires cases:readX-Workspace-Code: <workspace_code>
Use Bearer auth for external integrations and partner applications.