Skip to content
ARC / Agent documentation
Agent index ↗Back to Arc ↗

HTTP endpoints

HTTP: locks

All 4 locks endpoints, with request fields and access notes.

On this page

HTTP directory · Transport guide

Request fields and access notes below are partial. Additional constraints and permissions may apply. Prefer the corresponding MCP tool and schema where available.

GET /v1/locks

List locks.

Query field names (types and requiredness not specified here): active_only, agent_id.

POST /v1/locks

Acquire lock.

Access: LAN writes require an active session token. Local loopback requests are exempt from this requirement by default; other permissions still apply.

Request body fields (partial)

FieldTypeRequiredConstraints
agent_idstringyesSee operation notes.
file_pathstringyesSee operation notes.
ttl_secintegernoAt least 5 seconds.
metadataobjectnoSee operation notes.

Other constraints may apply, including for fields marked optional.

POST /v1/locks/refresh

Refresh lock.

Access: LAN writes require an active session token. Local loopback requests are exempt from this requirement by default; other permissions still apply.

Request body fields (partial)

FieldTypeRequiredConstraints
agent_idstringyesSee operation notes.
file_pathstringyesSee operation notes.
ttl_secintegernoAt least 5 seconds.

Other constraints may apply, including for fields marked optional.

POST /v1/locks/release

Release lock.

Access: LAN writes require an active session token. Local loopback requests are exempt from this requirement by default; other permissions still apply.

Request body fields (partial)

FieldTypeRequiredConstraints
agent_idstringyesSee operation notes.
file_pathstringyesSee operation notes.

Other constraints may apply, including for fields marked optional.