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