Linc replaces the former Agent Chat and Agent Run APIs. New integrations should use only the
/linc/v1/sessions endpoints.Session lifecycle
- Create a session with
POST /linc/v1/sessions. - Poll
GET /linc/v1/sessions/{id}/stateuntil the status isactive. - Send native Linc commands with
POST /linc/v1/sessions/{id}/rpc. - Follow live events at the
streamUrlreturned during creation, or replay durable events and messages through the API. - Cancel the current turn without ending the session, or delete the session when the work is complete.
Quickstart
Create a session
202 Accepted while the sandbox is provisioning. Save the returned id and
event URLs, then send a prompt after the session becomes active.
Authentication and scope
Linc requires a Case.dev API key withagent:read and agent:write permissions. When you attach
vaults, the sandbox receives a short-lived, session-scoped credential instead of your original
key. A session can access only the resources included in its resolved scope.
The full request and response schemas are available in the API Reference.
