Skip to content

Or: publish your own API

Choose this alternative when no catalogue tool describes what your API does. You define a new tool’s name, inputs and answer, and your endpoint is its only provider. If an existing tool already fits, use List a catalogue tool instead. You do one path, not both.

Open Listings → Your APIs and choose Publish your API. In Name, enter your business’s Public name and choose Claim if you do not already have one. This name becomes the beginning of every tool you publish. Sharing a tool locks it; to change it after that, contact Assay support.

Public name claim form before submission, with the public name field and Claim marked
Choose the business name that will identify your tools.

Fill in Tool name, Topic and What it does, in one line. For example, a weather summary service could use get_weather_summary. Choose a name carefully: it cannot change later. The preview shows the full name agents will call, including your public name. Choose Save and continue to create a private draft.

New API form showing a weather summary tool name, topic and one-line description
Say what your API does and when an agent should use it.
Endpoint helper filled with an example curl command and Save and continue marked
Review the endpoint helper and save the private draft when ready.

In Inputs & outputs, check Summary and Description. Use the field editors under What agents send and What your API returns. Give each field a name, type and description. Mark Required only when every valid request or answer must contain it.

Together, these fields form the tool’s contract: the agreement about what an agent sends and what your API returns. Keep keys and passwords out of the input fields; they belong in the connection’s authentication settings.

For a weather summary, you might describe a required text input called place and a required text answer called summary. Match your actual API. You can use Add a starter example to build an example from your fields, then check that it represents a valid answer.

Inputs and outputs field editors with a required place input and summary answer
Describe the fields your API accepts and returns.

Review the preview and any findings. Choose Save as v1.0.0 (only your team) when the first version is ready. Save draft alone keeps work in progress; it does not make a version available for the next step.

First version controls with Save as v1.0.0 only your team marked
Save the first version for your team.

In Connect & check, choose Connect your endpoint. The listing wizard opens for your new tool.

Connect and check entry with Connect your endpoint marked for the weather summary tool
Open the connection for your new tool.

Enter Your API’s address, then choose how Assay authenticates:

  • Assay signature (recommended): set up the check first with the no-code Cloudflare Worker or the verifier in your code, then choose it and Save connection. No key is stored.
  • API key: choose it, then Save connection. Choose Add headers, enter your API’s header names and values, and choose Save headers. Values are encrypted and never shown again.

List a catalogue tool explains each method.

Weather summary connection form with an API address entered and API key selected, before saving or testing
Enter your address and choose how Assay authenticates.

Keep the suggested connection settings if they match your API. Under Test it, fill in a useful input and choose Save and run test. Check Request built, Your API answered, Output mapped and Checks. Nobody is charged for this test. Fix any failed step and run it again before continuing.

Choose Continue to Go live. Set How agents pay and Price per call. Free + paid gives each agent a daily free allowance before charging; its default allowance is 100 calls. Keep the default failure promise of 2% and leave Advanced closed.

Read the price, your share and stake required in Summary. Choose Publish when the requirements are met. If the button asks you to add stake, connect and prove the stake wallet when asked, then approve the USDG and stake transactions after checking the amount. You need USDG and ETH for network fees. This flow publishes after the stake is confirmed. Free listings need no stake.

You return to Connect & check. Check the requirements again before sharing. A live serving listing and a shared tool are separate parts of this flow: finish both for outside customers to use it.

Open Who can use it. Choose the audience that fits your launch:

Keep Only my team while preparing the tool. People outside your organization cannot use it.

Who can use it card with Only my team selected
Keep the tool private while preparing your launch.

Choose Anyone with the link, then Share with anyone with the link once all checks pass. The tool is available through its link and is marked as not reviewed.

Choose Listed in the catalogue and read What the reviewer checks. Choose Submit for review once the checks pass. Submission starts a review; it does not immediately list the tool. Read the decision in Inbox. If changes are requested, fix the version and resubmit.

In Your APIs, the status matches your chosen audience: Only my team, Anyone with the link, In review or Listed. For an outside launch, confirm the serving listing is also Live and that the checks in Connect & check pass.

The Versions section records the contracts you have published. When you change a listed tool, the new version goes through review while the approved version keeps serving. Treat a changed input or answer as a contract change, and test the endpoint against the version you intend to serve.

Versions section recording the first weather summary contract as v1.0.0
Versions records v1.0.0, the version agents get.
You see Do this
A public name cannot be claimed Check the suggested names. If the account is not eligible yet, resolve provider verification before retrying.
Save and continue is unavailable Claim the public name and complete the tool name, topic and summary.
Steps 3 and 4 are locked Save the first usable version in Inputs & outputs, using Save as v1.0.0 (only your team).
The saved draft has findings Fix the fields or examples named by the screen, save and review again.
Sharing is blocked Use Connect & check to resolve the missing test, live listing, payout wallet or stake.
Changes requested Read the review note, update the contract and resubmit.