x-chatobserver-key header or as a bearer token. Keep credentials on your server or in your integration’s secret store.
The public API is served from https://app.chatobserver.com/api. Version 2 routes begin with /v2.
Validate a visibility API credential
Store your credential in theCHATOBSERVER_API_KEY environment variable, then run:
/v2/projects to retrieve the associated project details.
Bearer authentication is also supported:
x-chatobserver-key takes precedence.
Choose the required scopes
Visibility read operations requireread. Creating or modifying prompts, brands, tags, or personas also requires write. Use a read-only credential for exports that do not need to change the workspace.
The Data API requires a service-account credential and operation-specific metrics:* scopes. A visibility key with write does not automatically grant Data API access.
Keep workspace boundaries explicit
Credentials are workspace-scoped. An optionalx-project-id header selects the matching project; it does not grant access to another workspace. Retrieve the project identifier from the API rather than constructing it from an organisation name.
Never place a secret key in a public website, browser bundle, screenshot, or shared report. Revoke a credential when its integration no longer needs access.