Skip to main content
POST
Register Agent and Plan
Registers a new AI agent along with a payment plan in a single transaction using the Nevermined Payments API. This is the most common entrypoint for AI Builders looking to monetize their services immediately after deploying them.

Example Usage

Parameters

  • agentMetadata: Metadata about the AI agent including name, tags, and creation date.
  • agentApi: Defines the query endpoints the agent exposes.
  • price: Configuration object describing cost, token type, and receiver(s).
  • credits: Defines what the subscriber gets (number of credits, expiration, etc.).

Returns

Returns the unique identifiers of the newly created agent and the payment plan.

Notes

  • You must initialize the Payments client before calling this method.
  • The plan will immediately be associated with the registered agent.
  • All pricing and credit logic is enforced on-chain.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Agent and plan to register

agentMetadata
object
agentApi
object
price
object
credits
object

Response

Agent and plan created

agentId
string
planId
string