Example Usage
Parameters
- planId: The ID of the payment plan the subscriber has purchased
- agentId: The ID of the agent being queried
- accessCredentials: Auth credentials object containing:
accessToken: JWT token for authenticationneverminedProxyUri: Proxy URI for requests
- payload: Request payload, typically includes a prompt or other structured input
Response
The access credentials object structure:Notes
- Nevermined will automatically:
- Validate the subscriber’s plan and credits
- Send the request to the agent’s registered endpoint
- Redeem the appropriate number of credits (defined by the plan)
- Fails with a 402 if the subscriber is unauthorized
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier of the agent to query
Body
application/json
Query payload
Response
Query successful
The response is of type object.