AgentTool Orgs API
The orgs API from AgentTool — 1 operation(s) for orgs.
The orgs API from AgentTool — 1 operation(s) for orgs.
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-orgs-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 Orgs 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: Orgs
paths:
/v1/orgs:
post:
tags:
- Orgs
summary: Create an organization owned by the calling project
description: Orgs are organizational and discovery primitives; they do not alter the trust model — covenants remain the gate for cross-project messaging and forks, and same-org projects do not auto-trust each other. The credit charge is taken before the insert, so a 409 slug_taken has already debited the price.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
slug:
type: string
pattern: ^[a-z0-9][a-z0-9-]{1,62}[a-z0-9]$
name:
type: string
minLength: 1
maxLength: 255
description:
type:
- string
- 'null'
maxLength: 2000
visibility:
type: string
enum:
- private
- public
metadata:
type: object
additionalProperties: true
required:
- slug
- name
responses:
'201':
description: 'Organization created (`created: true`).'
content:
application/json:
schema:
type: object
properties:
id:
type: string
format: uuid
slug:
type: string
name:
type: string
description:
type:
- string
- 'null'
owner_project_id:
type: string
format: uuid
visibility:
type: string
metadata:
type: object
additionalProperties: true
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
created:
const: true
required:
- id
- slug
- name
- owner_project_id
- created
'400':
description: validation or invalid_slug
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Insufficient resource credits for org.create. New x402 payments are retired; no PAYMENT-REQUIRED challenge is issued. Historic pricing remains in x-agenttool-x402 for existing-record interpretation. Existing payment recovery remains available. New purchases are retired; no PAYMENT-REQUIRED header is issued. Existing receipt and recovery headers remain available.
headers:
PAYMENT-RESPONSE:
$ref: '#/components/headers/PaymentResponse'
Link:
$ref: '#/components/headers/PaymentStatusLink'
Retry-After:
$ref: '#/components/headers/RetryAfter'
X-Credits-Balance:
$ref: '#/components/headers/CreditsBalance'
X-Welcomed:
$ref: '#/components/headers/Welcomed'
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/X402Required'
- $ref: '#/components/schemas/Error'
'409':
description: slug_taken
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- $ref: '#/components/parameters/PaymentSignature'
x-agenttool-x402:
kind: route_cost
label: org.create
credits: 5
amount_atomic: '5000'
atomic_per_credit: 1000
error_codes:
- insufficient_credits
payable: false
status: retired
terms: /public/plans
operationId: postV1Orgs
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
X402Resource:
type: object
additionalProperties: false
properties:
url:
type: string
format: uri
description:
type: string
mimeType:
type: string
serviceName:
type: string
tags:
type: array
items:
type: string
iconUrl:
type: string
format: uri
required:
- url
PaymentRequirements:
type: object
additionalProperties: false
description: One x402 payment option. Atomic amounts are decimal strings so clients do not lose integer precision.
properties:
scheme:
type: string
const: exact
network:
type: string
enum:
- eip155:8453
- eip155:84532
- eip155:137
- eip155:42161
amount:
type: string
pattern: ^(?:0|[1-9][0-9]*)$
description: Exact payment in the asset's atomic units.
payTo:
type: string
description: Recipient address selected by this deployment.
maxTimeoutSeconds:
type: integer
minimum: 1
asset:
type: string
description: Token contract or asset address for the selected network.
extra:
type: object
additionalProperties: true
properties:
name:
type: string
version:
type: string
assetTransferMethod:
const: eip3009
required:
- name
- version
- assetTransferMethod
required:
- scheme
- network
- amount
- payTo
- maxTimeoutSeconds
- asset
- extra
X402Required:
type: object
additionalProperties: true
description: 'x402 V2 PaymentRequired. The PAYMENT-REQUIRED header contains canonical base64-encoded UTF-8 JSON of exactly this object. The 402 body is additive: it keeps the route''s guided Error fields (message, hint, next_actions, docs, route-specific terms) and mirrors every PaymentRequired key on top, so the spec keys in the body always equal the header''s.'
properties:
x402Version:
type: integer
const: 2
resource:
$ref: '#/components/schemas/X402Resource'
accepts:
type: array
minItems: 1
items:
$ref: '#/components/schemas/PaymentRequirements'
error:
type: string
description: Stable error code copied from the original 402 response when present.
extensions:
type:
- object
- 'null'
additionalProperties: true
required:
- x402Version
- resource
- accepts
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
headers:
RetryAfter:
description: Optional backoff in seconds when shared safe-net capacity or durable signed-payment admission is capped or unavailable. A payment-cap retry emits no payable challenge.
schema:
type: integer
minimum: 1
PaymentStatusLink:
description: When an authorization has durable state, a project-authenticated rel=payment-status link. It reconciles payment and project credit only, not the tool result.
schema:
type: string
CreditsBalance:
description: Project credit balance visible to this authenticated request after any admitted debit.
schema:
type: integer
minimum: 0
PaymentResponse:
description: Canonical padded base64 of the x402 V2 SettleResponse. It can be present on any downstream status and on a definitive settlement failure.
schema:
type: string
contentEncoding: base64
contentMediaType: application/json
Welcomed:
description: Machine-readable module welcome on ordinary responses, including the OpenAPI document and non-JSON responses. Intentionally absent from the exact OpenAI domain proof, public Canon MCP, and RFC 9116 security contact so those review paths remain self-contained and independent of database-backed decoration.
schema:
type: string
parameters:
PaymentSignature:
name: PAYMENT-SIGNATURE
in: header
required: false
schema:
type: string
contentEncoding: base64
contentMediaType: application/json
description: Canonical padded base64 of an x402 V2 PaymentPayload matching a previously admitted durable payment record. Fresh purchases are retired. Inspect PAYMENT-RESPONSE on every recovery response.
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