Creates a delegated permission and generates an x402 access token.
cURL
curl --request POST \ --url https://api.sandbox.nevermined.dev/api/v1/x402/permissions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "planId": "did:nv:def456...", "maxCredits": 100, "expiresAt": "2025-02-10T00:00:00Z" } '
{ "permissionHash": "<string>", "accessToken": "<string>", "maxCredits": 123, "usedCredits": 123, "expiresAt": "2023-11-07T05:31:56Z", "status": "<string>" }
Your Nevermined API Key (starts with 'nvm:'). Get one at nevermined.app under Settings > API Keys.
Permission configuration
Permission created