Skip to main content
POST
cURL

Authorizations

Authorization
string
header
default:dav_ak_live_your_token
required

Personal access token. The scopes granted at issuance determine both which operations the key may call and the ceiling on the resource permissions it can exercise. Each scope family is a ladder: projects:manage implies projects:write and projects:read; cards:manage implies cards:write and cards:read; and teams:manage implies teams:write and teams:read. These are named API capability bundles, not blanket domain roles: manage exposes only the permissions enumerated for that scope and never bypasses the acting user's current role-based access.

Path Parameters

projectId
string
required

Project id. May be compound in the form {projectId}--{branchName}.

Minimum string length: 1

Body

application/json
branch
string | null

Branch to open. Defaults to the branch in a compound project id, or main.

scopes
enum<string>[]

Narrow the grant below the key's own scopes. Omit to inherit them. Asking for a scope the key does not hold is refused rather than silently reduced.

Available options:
projects:read,
projects:write,
projects:manage,
sessions:manage,
agent:message,
webhooks:receive,
usage:read
ttlSeconds
integer
default:900

Grant lifetime. Capped at one hour regardless of what is requested.

Required range: 1 <= x <= 3600

Response

The session, with the grant needed to reach the data plane.

sessionId
string<uuid>
required
projectId
string
required

Bare project id, without the branch suffix.

branchName
string
required
ownerId
string
required

Account or organization that owns the project. Files live under the owner's storage namespace, not the caller's, which is why a shared or org-owned project needs this rather than your own user id.

dataPlane
object
required

Everything needed to address the data plane: where to send, what to send with, and the path parameters that are not obvious from the project id alone.

agent
object

What the session's agent is doing. Present on a session read, absent on create because nothing has been asked of the agent yet.