AGLedger API
agledger_apiMake AGLedger API calls to manage change-controlled records: list schemas, create records, submit completion evidence. Follow nextSteps and error suggestions.
Instructions
Make any AGLedger API call. All paths start with /v1/. The API returns nextSteps on every response: follow them. Workflow: 1. GET /v1/schemas, list Record types. 2. GET /v1/schemas/{type}, get required fields and examples. 3. POST /v1/records, create a record. 4. POST /v1/records/{id}/completions, submit evidence when done. If a call fails, read the suggestion field in the error response. For the full API catalog, GET /openapi.json (or read the agledger://openapi resource); for prose orientation, GET /llms.txt (or read the agledger://llms.txt resource). For GET/DELETE, params become query parameters. For POST/PUT/PATCH, params become the JSON body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | API path starting with / (e.g. /v1/records, /v1/schemas, /v1/records/{id}/completions) | |
| method | Yes | HTTP method | |
| params | No | Request parameters as a JSON-encoded string, e.g. '{"type":"notarize-generic-v1","criteria":{"task_description":"..."}}'. For GET/DELETE: becomes query parameters. For POST/PUT/PATCH: becomes the JSON body. Native JSON objects are also accepted for compatibility. |