{
  "issuer": "https://x402.website",
  "token_endpoint": "https://x402.website/api/oauth/token",
  "grant_types_supported": [
    "client_credentials"
  ],
  "token_endpoint_auth_methods_supported": [
    "client_secret_post",
    "client_secret_basic"
  ],
  "scopes_supported": [
    "read",
    "write",
    "copy",
    "create",
    "delete"
  ],
  "response_types_supported": [],
  "service_documentation": "https://x402.website/docs",
  "agent_auth": {
    "skill": "https://x402.website/auth.md",
    "register_uri": "https://x402.website/signup",
    "registration_methods": [
      {
        "type": "owner_provisioned",
        "description": "The account owner signs up in a browser behind Cloudflare Turnstile and mints the credential. There is no unattended registration; an agent must ask its owner for this step.",
        "uri": "https://x402.website/signup",
        "unattended": false,
        "steps": [
          {
            "method": "POST",
            "url": "https://x402.website/api/auth/register",
            "body": {
              "email": "string",
              "password": "string",
              "turnstileToken": "string"
            },
            "note": "turnstileToken comes from the widget on the signup page; a script cannot mint one."
          },
          {
            "method": "POST",
            "url": "https://x402.website/api/auth/verify",
            "body": {
              "email": "string",
              "code": "string"
            }
          },
          {
            "method": "POST",
            "url": "https://x402.website/api/agent-keys",
            "authorization": "Bearer <sessionToken from the verify response>",
            "body": {
              "name": "string",
              "permissions": [
                "read",
                "create"
              ],
              "rateLimitPerMin": 60
            }
          }
        ],
        "issues": {
          "grant_type": "client_credentials",
          "client_id": "the agent key id (response.id)",
          "client_secret": "the agent key token (response.token)",
          "token_endpoint": "https://x402.website/api/oauth/token"
        }
      }
    ]
  }
}