Fix Kits · Kin Score · 31 check points
Fix Kit: AsyncAPI
Describe your webhooks, streams and queues in an AsyncAPI 3.0 document, with channels, typed messages, bindings and security.
- Effort: A day or two if you already send events.
- Who needs it: of the providers each check applies to (apis.io, scored 2026-11-21, rubric 0.28.1): 92% miss “Publishes an AsyncAPI spec”; 23% fall short on AsyncAPI 3.x; 11% miss “Messages carry payload schemas”; 29% miss “Protocol bindings on servers”.
- You get: the full kit (PDF and Markdown): how to find what your API really does, step-by-step fix, starter schemas, an OpenAPI Overlay that applies it across your contract, a script that checks your work exactly the way the scorer does, and docs-platform notes.
What the check measures
OpenAPI describes the calls a client makes to you. It says little about what you send to them. An agent that has to react to an order being cancelled, or a device going offline, needs to know which events exist, where they arrive, what each payload looks like and how to prove the sender is you. AsyncAPI is the contract for that side.
There are six checks. The first reads your provider record; the other five read each AsyncAPI document on your profile:
| Check | Points | What earns it |
|---|---|---|
Publishes an AsyncAPI spec (asyncapi_present) |
12 | At least one AsyncAPI document is in your catalog repo: a .yml or .yaml file in asyncapi/, or an API in your apis.yml whose AsyncAPI document becomes its spec page |
AsyncAPI 3.x (asyncapi_3_x) |
4 | The document’s asyncapi: value starts with 3. |
Channels defined (channels_defined) |
4 | channels is present and not empty |
Messages carry payload schemas (messages_with_schema) |
5 | At least 80% of the messages found carry a payload or are a $ref (see the warning below) |
Protocol bindings on servers (server_bindings) |
3 | At least one server has a non-empty bindings object |
Server security schemes (security_schemes) |
3 | components.securitySchemes is present and not empty |
How they’re credited:
- The 12 points are always in your denominator. The rubric’s description says the AsyncAPI checks are not applicable to providers with no event surface and leave the denominator entirely. The code disagrees for this one:
asyncapi_presentis a provider check, and it is scored, and missed, for every provider without an AsyncAPI document. Only the five document checks go N/A when you publish no AsyncAPI. - The five document checks are shared per document. Each pays its points times the share of your AsyncAPI documents that pass. Two documents with one at 3.0 earn half of the 3.x check.
- No provenance discount. None of the six is on the provenance list, so each pays in full. (An AsyncAPI document also counts toward the Agent Readiness check Typed Event Surface, which is provenance-graded; see the Typed Event Surface kit.)
security_schemesreads components, not servers. The rubric says “for at least one server”. The code only asks whethercomponents.securitySchemesis non-empty. Reference the scheme from your server anyway (the starter does), because that’s what a client reads.
Warning: the payload check misreads AsyncAPI 3.0 channels today. In 3.0, a channel’s messages is a map (orderCreated: {$ref: ...}). The scorer converts that map into a list of name/value pairs, and a pair doesn’t count as a message with a payload. Every message you list under a channel is counted as a failure, and every message in components.messages as a pass. A correct 3.0 document that lists two messages under its channel and defines them in components scores 2 of 4, 50%, and misses the 5 points. This has been reported. Don’t bend your document to work around it: 3.0 requires operations to point at the channel’s messages, so removing them from the channel makes the document invalid. Publish it correctly and the points arrive when the scorer is fixed. The check script below shows both readings.
The rules are in signals/score.rb (asyncapi_present in the provider checks; asyncapi_3_x, channels_defined, messages_with_schema, server_bindings, security_schemes in the spec checks).
What doesn’t count:
- A JSON AsyncAPI file in
asyncapi/. The catalog build only lists.ymland.yamlfiles from that folder. Publish YAML, or point to the JSON fromapis.yml. - An AsyncAPI on the same
apis.ymlAPI entry as an OpenAPI. The API page takes the OpenAPI first, so the document checks never see the AsyncAPI.asyncapi_presentstill passes from theasyncapi/folder, but give the event surface its own API entry so the other 19 points can be read. - OpenAPI
webhooks. They earn Typed Event Surface, not these checks.
How AsyncAPI and the Typed Event Surface kit fit together
The Typed Event Surface kit has you describe webhooks in your OpenAPI’s webhooks object. That earns an Agent Readiness check and keeps your events next to your calls, in one file your tools already read. It earns none of these 31 points.
An AsyncAPI document earns these 31 points and the same Agent Readiness check. It is the only one of the two that can describe a broker (Kafka topics, MQTT topics, AMQP queues), a WebSocket stream, or the protocol bindings a client needs to connect. If you send webhooks, do both: keep webhooks in the OpenAPI for agents and code generators that only read OpenAPI, and publish an AsyncAPI document that uses the same payload schemas. If you run a broker or a socket, AsyncAPI is the one that fits.
The rule above is the public rubric (rubric page). The kit sells the working method: the steps, starters, overlay and check script.