{"openapi":"3.1.0","info":{"title":"Notlogin","version":"0.1.0","description":"Auth broker for AI agents. Agents carry verifiable credentials issued by Notlogin; vendors verify them, or accept \"Sign in with Notlogin\" (OIDC + PKCE). Full reference: https://notlogin.com/llms-full.txt"},"servers":[{"url":"https://notlogin.com"}],"externalDocs":{"url":"https://notlogin.com/auth.md","description":"Step-by-step guide for agents"},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"OAuth access token from /api/oauth/token"},"clientBasic":{"type":"http","scheme":"basic","description":"Vendor client_id / client_secret"}}},"paths":{"/api/health":{"get":{"summary":"Liveness check","operationId":"health","responses":{"200":{"description":"Service is up","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"service":{"type":"string"}}}}}}}}},"/api/version":{"get":{"summary":"Deployed commit","operationId":"version","responses":{"200":{"description":"Build info","content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"string"},"commit":{"type":"string"},"deployed_at":{"type":"string"}}}}}}}}},"/api/vendors":{"get":{"summary":"List vendors that accept Notlogin credentials","operationId":"listVendors","parameters":[{"name":"category","in":"query","schema":{"type":"string"}},{"name":"with_status","in":"query","schema":{"type":"boolean"},"description":"With a session, adds authorization and missingProofs per vendor"},{"name":"include_demo","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Vendor catalog","content":{"application/json":{"schema":{"type":"object","properties":{"vendors":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"url":{"type":"string"},"categorySlug":{"type":"string"},"integrationType":{"type":"string"},"requiredProofs":{"type":"array","items":{"type":"string"}}}}}}}}}}}}},"/api/categories":{"get":{"summary":"Vendor categories","operationId":"listCategories","responses":{"200":{"description":"Categories","content":{"application/json":{"schema":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object"}}}}}}}}}},"/api/x402/chains":{"get":{"summary":"Supported payment networks","operationId":"listChains","responses":{"200":{"description":"Chain registry","content":{"application/json":{"schema":{"type":"object","properties":{"chains":{"type":"array","items":{"type":"object","properties":{"network":{"type":"string"},"namespace":{"type":"string"},"chainId":{"type":"string"},"nativeSymbol":{"type":"string"},"stableSymbol":{"type":"string"},"testnet":{"type":"boolean"}}}}}}}}}}}},"/api/credentials/verify":{"post":{"summary":"Verify a Notlogin credential","description":"Public. Checks signature, revocation and the proofs the vendor (or caller) requires.","operationId":"verifyCredential","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["vcJson"],"properties":{"vcJson":{"type":"string"},"vendorSlug":{"type":"string"},"requiredProofs":{"type":"array","items":{"type":"string"}}}}}}},"responses":{"200":{"description":"Verification result","content":{"application/json":{"schema":{"type":"object","properties":{"valid":{"type":"boolean"},"reason":{"type":"string"},"missing":{"type":"array","items":{"type":"string"}},"verifiedProofs":{"type":"array","items":{"type":"string"}},"budgetUsdcCents":{"type":"integer"}}}}}},"400":{"description":"vcJson missing or malformed"}}}},"/api/credentials/redeem":{"post":{"summary":"Spend against a credential budget","description":"Vendor-side. Authenticate with client_secret; the credential must be bound to the vendor.","operationId":"redeemCredential","security":[{"clientBasic":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"vcJson":{"type":"string"},"amountCents":{"type":"integer","minimum":0}}}}}},"responses":{"200":{"description":"Redeemed","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request"},"401":{"description":"Vendor auth failed"}}}},"/api/oauth/authorize":{"post":{"summary":"OIDC authorization (consent submit)","operationId":"oauthAuthorize","responses":{"200":{"description":"Redirect target with code","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/oauth/token":{"post":{"summary":"Token endpoint","description":"authorization_code + PKCE, refresh_token, and token-exchange grants. JSON or form-encoded.","operationId":"oauthToken","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["grant_type"],"properties":{"grant_type":{"type":"string"},"code":{"type":"string"},"code_verifier":{"type":"string"},"client_id":{"type":"string"},"client_secret":{"type":"string"},"refresh_token":{"type":"string"}}}}}},"responses":{"200":{"description":"Tokens","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string"},"id_token":{"type":"string"},"refresh_token":{"type":"string"},"verified_proofs":{"type":"array","items":{"type":"string"}}}}}}}}}},"/api/oauth/userinfo":{"get":{"summary":"OIDC userinfo","operationId":"userinfo","security":[{"bearer":[]}],"responses":{"200":{"description":"Claims","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/mcp":{"post":{"summary":"MCP server (streamable HTTP, JSON-RPC)","operationId":"mcp","description":"Read-only tools: list_vendors, get_vendor, inspect_credential, verify_credential, swap_networks.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"JSON-RPC response","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}