Core Methods
Register Agent and Plan
Registers a new AI agent along with a payment plan.
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.
Returns the unique identifiers of the newly created agent and the payment plan.
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
Notes
- You must initialize the
Paymentsclient before calling this method. - The plan will immediately be associated with the registered agent.
- All pricing and credit logic is enforced on-chain.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Agent and plan to register
Register Agent and Plan