AgentSessionCheckpoint
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{org_slug}/repos/{repo_slug}/agent_sessions/{agent_session_id}/checkpoints/{id}/finalize |
create |
Success |
POST |
/api/v1/organizations/{org_slug}/repos/{repo_slug}/agent_sessions/{agent_session_id}/checkpoints/{id}/seal |
create |
The recorded checkpoint source, after required queue admission |
POST |
/api/v1/organizations/{org_slug}/repos/{repo_slug}/agent_sessions/{agent_session_id}/checkpoints |
create |
Success |
GET |
/api/v1/organizations/{org_slug}/repos/{repo_slug}/agent_sessions/{agent_session_id}/checkpoints/{id} |
load |
Success |
GET |
/api/v1/organizations/{org_slug}/repos/{repo_slug}/agent_sessions/{agent_session_id}/checkpoints/{id}/download |
load |
Success |
GET |
/api/v1/organizations/{org_slug}/repos/{repo_slug}/agent_sessions/{agent_session_id}/checkpoints |
load |
Success |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
agent_session_checkpoint, err := client.AgentSessionCheckpoint(nil).Load(map[string]any{"agent_session_id": "example", "organization_id": "example", "repo_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(agent_session_checkpoint)
created, err := client.AgentSessionCheckpoint(nil).Create(map[string]any{"agent_session_id": "example", "organization_id": "example", "repo_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
Lua
Construct client as shown in the Lua setup, then call the operations:
local agent_session_checkpoint, err = client:AgentSessionCheckpoint():load({ agent_session_id = "example", organization_id = "example", repo_id = "example" })
local created, err = client:AgentSessionCheckpoint():create({ agent_session_id = "example", organization_id = "example", repo_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$agent_session_checkpoint = $client->AgentSessionCheckpoint()->load(["agent_session_id" => "example", "organization_id" => "example", "repo_id" => "example"]);
$created = $client->AgentSessionCheckpoint()->create(["agent_session_id" => "example", "organization_id" => "example", "repo_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
agent_session_checkpoint = client.AgentSessionCheckpoint().load({"agent_session_id": "example", "organization_id": "example", "repo_id": "example"})
created = client.AgentSessionCheckpoint().create({ "agent_session_id": "example", "organization_id": "example", "repo_id": "example" })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
agent_session_checkpoint = client.AgentSessionCheckpoint.load({ "agent_session_id" => "example", "organization_id" => "example", "repo_id" => "example" })
created = client.AgentSessionCheckpoint.create({ "agent_session_id" => "example", "organization_id" => "example", "repo_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const agent_session_checkpoint = await client.AgentSessionCheckpoint().load({ agent_session_id: "example", organization_id: "example", repo_id: "example" })
const created = await client.AgentSessionCheckpoint().create({ agent_session_id: "example", organization_id: "example", repo_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
No | Id |
create
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/agent_sessions/{agent_session_id}/checkpoints/{id}/finalize
Operation ID: finalize_api_v1_agent_session_checkpoint.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes | |
repo_slug |
path |
string |
Yes | |
agent_session_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/agent_sessions/{agent_session_id}/checkpoints/{id}/seal
Operation ID: seal_api_v1_agent_session_checkpoint.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes | |
repo_slug |
path |
string |
Yes | |
agent_session_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
git_commit_sha |
string |
Yes | Complete nonzero original Git SHA; normalized to lowercase. |
Responses
200: The recorded checkpoint source, after required queue admission
application/json
| Property | Type | Required | Description |
|---|---|---|---|
agent_checkpoint |
object |
Yes | |
agent_checkpoint.capture_kind |
enum: commit, lifecycle, manual |
Yes | |
agent_checkpoint.captured_at |
string (date-time) |
Yes | |
agent_checkpoint.checksum_sha256 |
string |
Yes | |
agent_checkpoint.compressed_size_bytes |
integer |
Yes | |
agent_checkpoint.compression |
string |
Yes | |
agent_checkpoint.content_type |
string |
Yes | |
agent_checkpoint.created_at |
string (date-time) |
Yes | |
agent_checkpoint.external_checkpoint_id |
string |
Yes | |
agent_checkpoint.git_commit_sha |
string |
Yes | |
agent_checkpoint.id |
string |
Yes | |
agent_checkpoint.metadata |
object |
Yes | |
agent_checkpoint.organization_id |
string |
Yes | |
agent_checkpoint.purge_after |
string (date-time) |
Yes | |
agent_checkpoint.purge_started_at |
string (date-time) |
Yes | |
agent_checkpoint.purged_at |
string (date-time) |
Yes | |
agent_checkpoint.redaction_count |
integer |
Yes | |
agent_checkpoint.repository_id |
string |
Yes | |
agent_checkpoint.scrubber_version |
string |
Yes | |
agent_checkpoint.sequence_number |
integer |
Yes | |
agent_checkpoint.status |
enum: pending, uploaded |
Yes | |
agent_checkpoint.tombstoned_at |
string (date-time) |
Yes | |
agent_checkpoint.uncompressed_checksum_sha256 |
string |
Yes | |
agent_checkpoint.uncompressed_size_bytes |
integer |
Yes | |
agent_checkpoint.updated_at |
string (date-time) |
Yes | |
agent_checkpoint.uploaded_at |
string (date-time) |
Yes | |
agent_checkpoint.user_id |
string |
Yes | |
agent_checkpoint.vcs_agent_session_id |
string |
Yes |
400: Missing or blank Git source
401: Authentication required
403: Only the session owner may seal a checkpoint
404: Missing or inaccessible repository, session or checkpoint
409: Source already differs or checkpoint is no longer available
422: Malformed or all-zero Git source
502: Bad gateway
503: Retry; the source may have committed before PR-link queue admission failed
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/agent_sessions/{agent_session_id}/checkpoints
Operation ID: post_api_v1_organizations_org_slug_repos_repo_slug_agent_sessions_agent_session_id_checkpoints.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes | |
repo_slug |
path |
string |
Yes | |
agent_session_id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
load
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/agent_sessions/{agent_session_id}/checkpoints/{id}
Operation ID: api_v1_agent_session_checkpoint.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes | |
repo_slug |
path |
string |
Yes | |
agent_session_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/agent_sessions/{agent_session_id}/checkpoints/{id}/download
Operation ID: download_api_v1_agent_session_checkpoint.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes | |
repo_slug |
path |
string |
Yes | |
agent_session_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/agent_sessions/{agent_session_id}/checkpoints
Operation ID: api_v1_agent_session_checkpoints.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes | |
repo_slug |
path |
string |
Yes | |
agent_session_id |
path |
string |
Yes |
Responses
200: Success
application/json
The response is object.