Agentic Guides · Nov 30, 2026 · 4 min read

How to validate an ACP discovery document

A checklist for testing /.well-known/acp.json: transport, required fields, versions, schema validation, leaked secrets, and whether the API it names answers.

An ACP discovery document can look right in a browser and still be unusable to an agent. This is the checklist we run, in order, with what each failure means. Work down it with curl, or run it in one go.

Accurate as of November 2026, against ACP release 2026-04-17.

1. It is there

curl -i https://shop.example/.well-known/acp.json
Response Meaning
200 with JSON Carry on
404 or 410 Nothing published. Not a fault: the document is optional
401 or 403 Published but locked. A discovery document must need no credentials
301 or 302 See step 2
200 with HTML Your application is answering for a missing file. To an agent this is a broken document, not an absent one
429 or 5xx No conclusion. Try again before deciding anything

2. It does not redirect

A redirect to the same path on your canonical host, bare domain to www, is tolerable and worth removing. A redirect anywhere else is a failure: discovery exists to say who you are, and a document fetched from another place says who somebody else is.

3. It is served correctly

  • HTTPS. Not plain HTTP.
  • Content-Type: application/json. Not text/plain, not text/html.
  • Cache-Control: public, max-age=3600, or close to it. Missing caching is a warning, not a failure, but it means every agent fetches the file on every visit.

4. The required fields are right

{
  "protocol": { "name": "acp", "version": "2026-04-17", "supported_versions": ["2026-04-17"] },
  "api_base_url": "https://shop.example/api/acp",
  "transports": ["rest"],
  "capabilities": { "services": ["checkout"] }
}
  • protocol.name is exactly acp.
  • protocol.version is a date in YYYY-MM-DD form, and one of the published releases: 2025-09-29, 2025-12-12, 2026-01-16, 2026-01-30, 2026-04-17.
  • protocol.supported_versions is a non-empty list, oldest first, and contains version.
  • api_base_url is https:// and resolves to a public host, not an internal one.
  • transports contains rest.
  • capabilities.services is non-empty and uses only checkout, orders, carts and delegate_payment.

The two that fail most are a version missing from supported_versions, and an api_base_url left pointing at a staging host.

5. It validates against the schema

Field checks catch the common mistakes. The schema catches the rest: wrong types, misspelt keys, values outside the allowed set.

The official JSON Schema is published with each release in the ACP repository, under spec/<version>/json-schema/. The discovery document is defined there as DiscoveryResponse, from release 2026-04-17 onwards. Validate against the release your version field names, and if that release predates discovery, against 2026-04-17.

6. Nothing secret is in it

Search the body for anything that looks like a credential:

  • Keys named api_key, secret, token, password, authorization, merchant_id
  • Values beginning sk_live_, sk_test_, rk_live_ or Bearer

This is the one finding that cannot wait. The file is public and cached by others, so a leaked key has to be rotated, not just removed.

7. The API it names answers

A valid document pointing at a dead API is the failure that costs orders. Make one request with no credentials:

curl -i -H "API-Version: 2026-04-17" \
  https://shop.example/api/acp/checkout_sessions/does-not-exist
Response Meaning
401, 403 or 404 Correct. Something is there and it is refusing a stranger
5xx or no answer The API is down, or the address is wrong
2xx It answered a request with no credentials, which deserves a look
3xx The address in the document is not the real one

Only do this for an https:// address on a public host with rest among the transports.

Once is not enough

Every item on this list can pass today and fail next month with no change to your code: a platform update, a tightened firewall rule, a migration that moves the API. Steps 1 and 7 in particular are worth running every day. That is what monitoring does, and it only contacts you when an answer changes.

Share this article:

Can AI agents use your site?

Check it against UCP, ACP, WebMCP and your bot rules. Free, no account needed.

Run a free check