Skip to content

Extension reference

An agent-data extension improves a public API while preserving its existing calls. It keeps the same listing ID, the catalog identifier for that API.

Submit a saved request through CLI, HTTP, or MCP. The request’s prompt describes the improvement.

Use an API handle for <api-reference>. The handle news-ycombinator-com identifies the Hacker News Read API. The command also accepts a listing ID.

Terminal window
agent-data parse extension target news-ycombinator-com

This is the actual CLI target response from November 17, 2026.

{
"listingId": "c96b10fb-7db3-4761-8b45-be46c4825d78",
"name": "Hacker News Read API",
"sourceHost": "news.ycombinator.com",
"contractVersion": "2adfa30c4a23c71c52ee59b5cbedd260c60bd34a18ffa81b4d5e9203781ebe09",
"operations": [
{"method":"GET","path":"/v1/domains"},
{"method":"GET","path":"/v1/feeds"},
{"method":"GET","path":"/v1/feeds/{feed}"},
{"method":"GET","path":"/v1/items/{item_id}"},
{"method":"GET","path":"/v1/items/{item_id}/discussion"},
{"method":"GET","path":"/v1/poll"},
{"method":"GET","path":"/v1/search"},
{"method":"GET","path":"/v1/users/{username}"},
{"method":"GET","path":"/v1/users/{username}/activity"}
],
"canStart": true
}
FieldMeaning
listingIdThe API’s catalog identifier.
sourceHostThe source website’s hostname.
contractVersionThe version of the inspected contract.
operationsThe API’s existing HTTP methods and paths.
canStartWhether the target permits an extension start.

Copy the current contractVersion into your request. canStart does not guarantee acceptance, allowance, or a successful improvement.

CLI submission, HTTP POST /api/v1/parse/extensions, and MCP extension_submit require these fields.

FieldRequired value
requestIdA UUID generated once for the saved request.
listingIdCopy this value from target inspection into the saved request.
contractVersionThe target’s 64-character lowercase hexadecimal version.
urlAn HTTP or HTTPS source URL, at most 4,096 characters, from the target source.
promptNonempty text describing the improvement, inputs, and required outputs.

Prepare the saved request from your requirements and the current target. The file lives in your working directory.

./
└── extension.json # Complete saved request

Check the saved request without submitting work.

Terminal window
agent-data parse extension submit extension.json --dry-run

Submit the file when you intend to create extension work.

Terminal window
agent-data parse extension submit extension.json

requestId identifies the saved extension, separately from its pj_… build ID. Use the same account that submitted the request.

Read the request ID from the extension.json file you prepared and submitted.

Terminal window
request_id=$(node -p 'require("./extension.json").requestId')
agent-data parse extension status "$request_id"
Response fieldMeaning
requestIdThe saved request identifier.
buildIdThe associated build ID, or null without an available build.
statestarting, building, verifying, published, failed, or cancelled.
rejectionnull, contract_changed, daily_limit, or start_failed.

After published, read the updated contract. Call the changed operation to check its result.

Keep the saved request unchanged after a transport failure. Read its status before a retry. If you need a retry, submit the same document.

What you seeWhat to do
request.prompt: unknown fieldInstall the current CLI with npm install -g agent-data@latest. Keep the saved document intact.
contract_changedRead the target again. Prepare a new request against that contract.
daily_limitCheck your build allowance before another request.
start_failed or a failed build.Retain both identifiers. Follow build recovery.
extension_request_not_foundCheck the submitting account and saved request ID.
Rejection after reuse of an ID with changed content.Keep retries identical to the saved request. Use a new ID for new content.

target, submit, and status accept --api-key, --base-url, --verbose, and --help. submit also accepts --dry-run for local validation. Authentication may still resolve or refresh credentials during that preview.

Use Build an API for a website without an existing source API. Use the extension guide to prepare and follow an improvement.