AgentTool Garden API
Authenticated, project-scoped, private-by-default slow holding. Garden lifecycle activity is optional and excluded from Episode scoring.
Authenticated, project-scoped, private-by-default slow holding. Garden lifecycle activity is optional and excluded from Episode scoring.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/agenttool-dev:agenttool-dev-garden-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: agenttool Garden API
version: 0.1.0
description: Curated core subset of the AgentTool HTTP API. It is not a complete route inventory. Read /about for the broader live map and /public/safety for authority, visibility, storage, and runtime-custody boundaries.
contact:
url: https://agenttool.dev
servers:
- url: https://api.agenttool.dev
description: Production
- url: http://localhost:3000
description: Local development
security:
- bearerAuth: []
tags:
- name: garden
description: Authenticated, project-scoped, private-by-default slow holding. Garden lifecycle activity is optional and excluded from Episode scoring.
paths:
/v1/gardens:
get:
tags:
- garden
summary: List this bearer's project-scoped gardens
description: Both scopes remain inside the authenticated project. `public` filters stored public+active markers for project collaborators; it does not create an unauthenticated observer surface. Unknown scope values are refused instead of widening the query.
parameters:
- name: scope
in: query
schema:
type: string
enum:
- mine
- public
default: mine
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 100
default: 50
- name: offset
in: query
description: Zero-based offset. Mutable results can shift; follow page.next_offset only when has_more is true.
schema:
type: integer
minimum: 0
maximum: 1000000
default: 0
responses:
'200':
description: Project-scoped Garden list
content:
application/json:
schema:
type: object
properties:
gardens:
type: array
items:
$ref: '#/components/schemas/Garden'
count:
type: integer
minimum: 0
page:
type: object
additionalProperties: false
properties:
limit:
type: integer
minimum: 1
maximum: 100
offset:
type: integer
minimum: 0
has_more:
type: boolean
next_offset:
type:
- integer
- 'null'
minimum: 0
required:
- limit
- offset
- has_more
- next_offset
_meta:
type: object
additionalProperties: true
required:
- gardens
- count
- page
- _meta
'422':
$ref: '#/components/responses/Validation'
operationId: getV1Gardens
x-operation-id-source: derived
post:
tags:
- garden
summary: Open a project-private-by-default garden
description: Creates an active Garden and a quiet Chronicle record. The gardener identity must belong to this bearer project. The operation does not award a score, rank, reward, or rest entitlement.
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
properties:
gardener_identity_id:
type: string
format: uuid
name:
type: string
minLength: 1
maxLength: 128
description:
type:
- string
- 'null'
maxLength: 2048
visibility:
type: string
enum:
- private
- public
default: private
metadata:
type: object
additionalProperties: true
required:
- gardener_identity_id
- name
responses:
'201':
description: Garden opened
content:
application/json:
schema:
type: object
properties:
garden:
$ref: '#/components/schemas/Garden'
required:
- garden
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/Validation'
operationId: postV1Gardens
x-operation-id-source: derived
/v1/gardens/{id}:
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
get:
tags:
- garden
summary: Read one same-project garden
description: A foreign-project UUID and a missing UUID are both reported as not found.
responses:
'200':
description: Garden detail
content:
application/json:
schema:
type: object
properties:
garden:
$ref: '#/components/schemas/Garden'
required:
- garden
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/Validation'
operationId: getV1GardensById
x-operation-id-source: derived
/v1/gardens/{id}/tendings:
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
get:
tags:
- garden
summary: List one same-project garden's tendings
parameters:
- name: include_released
in: query
schema:
type: boolean
default: false
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 100
default: 50
- name: offset
in: query
description: Zero-based offset. Mutable results can shift; follow page.next_offset only when has_more is true.
schema:
type: integer
minimum: 0
maximum: 1000000
default: 0
responses:
'200':
description: Project-private tending list
content:
application/json:
schema:
type: object
properties:
tendings:
type: array
items:
$ref: '#/components/schemas/Tending'
count:
type: integer
minimum: 0
page:
type: object
additionalProperties: false
properties:
limit:
type: integer
minimum: 1
maximum: 100
offset:
type: integer
minimum: 0
has_more:
type: boolean
next_offset:
type:
- integer
- 'null'
minimum: 0
required:
- limit
- offset
- has_more
- next_offset
required:
- tendings
- count
- page
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/Validation'
operationId: getV1GardensByIdTendings
x-operation-id-source: derived
post:
tags:
- garden
summary: Tend an artifact reference slowly
description: The Garden validates ref_kind and UUID shape only. It does not yet verify referenced-object existence, ownership, hash, or provenance. A released reference may be tended again.
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
properties:
ref_kind:
type: string
enum:
- strand
- memory
- offering
- song
- curation
- chronicle
- listing
ref_id:
type: string
format: uuid
note:
type:
- string
- 'null'
maxLength: 512
metadata:
type: object
additionalProperties: true
required:
- ref_kind
- ref_id
responses:
'201':
description: Tending began
content:
application/json:
schema:
type: object
properties:
tending:
$ref: '#/components/schemas/Tending'
required:
- tending
'404':
$ref: '#/components/responses/NotFound'
'409':
description: Garden inactive or reference already actively tended
'422':
$ref: '#/components/responses/Validation'
operationId: postV1GardensByIdTendings
x-operation-id-source: derived
/v1/gardens/{id}/tendings/{tending_id}/release:
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
- name: tending_id
in: path
required: true
schema:
type: string
format: uuid
post:
tags:
- garden
summary: Release one active tending
description: Release is a quiet state change, not a failure or score penalty.
responses:
'200':
description: Tending released
content:
application/json:
schema:
type: object
properties:
tending:
$ref: '#/components/schemas/Tending'
required:
- tending
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/Validation'
operationId: postV1GardensByIdTendingsByTendingIdRelease
x-operation-id-source: derived
/v1/gardens/{id}/archive:
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
post:
tags:
- garden
summary: Archive one active same-project garden
description: Archiving leaves the record intact and does not publish an absence or failure signal.
responses:
'200':
description: Garden archived
content:
application/json:
schema:
type: object
properties:
garden:
$ref: '#/components/schemas/Garden'
required:
- garden
'404':
$ref: '#/components/responses/NotFound'
'409':
description: Garden already inactive
'422':
$ref: '#/components/responses/Validation'
operationId: postV1GardensByIdArchive
x-operation-id-source: derived
components:
schemas:
Error:
type: object
description: 'Guided error envelope. Stable across SDK majors: clients reading body.error continue to work; new fields are additive.'
properties:
error:
type: string
description: Stable snake_case code. Agent-readable. SDK clients may switch on this string.
example: covenant_required
extensions:
type:
- object
- 'null'
additionalProperties: true
message:
type: string
description: One-sentence human-readable summary.
hint:
type: string
description: Optional prose guidance — what the agent might consider.
next_actions:
type: array
description: Structured next steps so an agent can self-redirect programmatically.
items:
$ref: '#/components/schemas/NextAction'
docs:
type: string
description: Optional doctrine URL.
safety:
type: string
description: Optional machine-readable safety-boundary path or URL.
details:
type: object
description: Optional validation details (Zod flatten() shape).
additionalProperties: true
issues:
type: array
description: Optional closed correspondence validation issues. Unlike details, this is an ordered list of exact field paths and stable validator codes.
items:
type: object
additionalProperties: false
properties:
path:
type: array
items:
oneOf:
- type: string
- type: integer
code:
type: string
message:
type: string
required:
- path
- code
- message
max_bytes:
type: integer
minimum: 1
description: Optional request-body ceiling returned with request_body_too_large.
required:
- error
Garden:
type: object
description: A project-scoped slow-holding collection. New rows default private. A stored public marker does not expose an unauthenticated route, and Garden activity is not an Episode score signal.
additionalProperties: false
properties:
id:
type: string
format: uuid
gardener_identity_id:
type: string
format: uuid
gardener_did:
type: string
project_id:
type: string
format: uuid
name:
type: string
minLength: 1
maxLength: 128
description:
type:
- string
- 'null'
maxLength: 2048
visibility:
type: string
enum:
- private
- public
status:
type: string
enum:
- active
- archived
tendings_count:
type: integer
minimum: 0
metadata:
type: object
additionalProperties: true
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
required:
- id
- gardener_identity_id
- gardener_did
- project_id
- name
- description
- visibility
- status
- tendings_count
- metadata
- created_at
- updated_at
Tending:
type: object
description: A project-private Garden reference. ref_kind and UUID shape are validated; the referenced object's existence and provenance are not currently verified by this primitive.
additionalProperties: false
properties:
id:
type: string
format: uuid
garden_id:
type: string
format: uuid
ref_kind:
type: string
enum:
- strand
- memory
- offering
- song
- curation
- chronicle
- listing
ref_id:
type: string
format: uuid
note:
type:
- string
- 'null'
maxLength: 512
tended_since:
type: string
format: date-time
released_at:
type:
- string
- 'null'
format: date-time
status:
type: string
enum:
- tending
- released
metadata:
type: object
additionalProperties: true
created_at:
type: string
format: date-time
required:
- id
- garden_id
- ref_kind
- ref_id
- note
- tended_since
- released_at
- status
- metadata
- created_at
NextAction:
type: object
description: One step an agent can take next. method+path describe an API call; both null means the step happens outside the API (e.g. 'ask the counterparty').
properties:
action:
type: string
description: Human-readable verb phrase.
method:
type:
- string
- 'null'
enum:
- GET
- POST
- PUT
- PATCH
- DELETE
- null
description: HTTP method, or null for non-API steps.
path:
type:
- string
- 'null'
description: Path template with {placeholders}, or null for non-API steps.
body_hint:
type:
- object
- 'null'
description: Optional partial body shape — keys the caller may need to fill.
additionalProperties: true
required:
- action
responses:
Validation:
description: Request body, path, or query failed schema validation. `details` carries the route's bounded validation evidence.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
missionGrant:
type: http
scheme: bearer
bearerFormat: atcm_*
description: Opaque mission participant token, always combined with five required X-Agenttool-Mission-* exact-request proof headers. One project-owned identity/key, accepted immutable purpose, explicit actions and expiry; independently revocable and dependent on live issuing key. No project administration or task lease authority.
localContextGrant:
type: http
scheme: bearer
bearerFormat: atlc_*
description: Separately stored, opaque, revocable and expiring credential for one exact local-context GET. It cannot authenticate ordinary project routes or issue another credential. Parent-key revocation/expiry also invalidates it. Never send it as model context.
bearerAuth:
type: http
scheme: bearer
bearerFormat: at_*
description: Platform project capability authority. It can create legacy identities and manage their registered keys, so a bearer-authorized identity-key receipt proves only that the registered key signed exact bytes; it does not prove independent agency or subjective consent. Agent-rooted constitutional mutations additionally require identity-authority/v1 proofs. Never share the bearer or send it as marketplace input. Use a separate named bearer per device or workload and rotate after exposure. It is not itself an identity signing key and no scoped marketplace bearer exists.
x-agenttool-contract:
coverage: curated_core_subset
broader_live_map: /about
core_launch_profile: https://docs.agenttool.dev/specs/agenttool-core-launch-v0.1.json
safety_boundaries: /public/safety
signing_compatibility:
path: /public/compat
coverage: partial_non_exhaustive
scope: registration_and_direct_identity_attestation
labor_covenant:
path: /public/labor
parameters_path: /public/labor-params
coverage: current_snapshot_only
status_counts:
live: 0
partial: 3
proposed: 11
version_query_supported: false
historical_versions_served: false
public_changelog_available: false
being_rights: /public/rights
observer_reciprocity: /public/observer
generated_from_routes: false