API overview

Authentication, resources and conventions.

The Cogna8 API is a JSON over HTTPS API with four resources. Agents record the facts they rely on, ask the gate before consequential actions, and read the history. Webhooks push events to you.

ResourceEndpointPurpose
StatePOST /v1/state/itemsRecord a fact as governed state
GatePOST /v1/gates/evaluateAsk whether an action may run
HistoryGET /v1/history/eventsQuery state changes and decisions
WebhooksPOST /v1/webhooksSubscribe to events

Authentication

Send your secret key as a bearer token on every request. Keys are issued per workspace.

Authorization: Bearer sk_live_...

Conventions

ConventionDetail
SessionsA session_id groups the state and decisions of one conversation, case or task
IDsPrefixed by type: si_ for state items, gd_ for gate decisions, ev_ for events
TimesISO 8601 in UTC, for example 2026-09-15T04:23:07Z
PagingList endpoints return has_more and a cursor to pass back
Base URLProvided with your workspace credentials
Last reviewed October 2026Suggest a change