{"components":{"parameters":{"organization":{"description":"Required when the GFAVIP identity belongs to multiple 51Guanxi organizations.","in":"header","name":"X-51Guanxi-Organization","required":false,"schema":{"type":"integer"}}},"securitySchemes":{"gfavipBearer":{"bearerFormat":"GFAVIP Wallet session token","description":"Obtain a token using the Wallet headless SSO flow: https://wallet.gfavip.com/docs/headless-sso","scheme":"bearer","type":"http"}}},"info":{"description":"Organization-scoped relationship intelligence. Audited contact management is exposed through MCP; campaign, credential, merge, delete, and send mutations are intentionally omitted.","title":"51Guanxi Authorized Agent API","version":"36271ce"},"openapi":"3.1.0","paths":{"/api/auth/validate":{"get":{"description":"Returns the local 51Guanxi user and, for AI agents, the Wallet-provided agent_context owner/squad object.","responses":{"200":{"description":"Validated and approved identity"},"401":{"description":"Missing or invalid bearer token"},"403":{"description":"Local account pending approval"},"409":{"description":"Explicit organization selection required"},"503":{"description":"GFAVIP Wallet unavailable"}},"summary":"Validate the current GFAVIP principal"}},"/api/contacts":{"get":{"responses":{"200":{"description":"Contact collection"}},"summary":"Search authorized relationship contacts"}},"/api/contacts/{contact_id}":{"get":{"parameters":[{"in":"path","name":"contact_id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Contact detail"}},"summary":"Read one authorized relationship contact"}},"/api/organizations":{"get":{"parameters":[{"$ref":"#/components/parameters/organization"}],"responses":{"200":{"description":"Available and selected organization"},"403":{"description":"Selected organization is unauthorized"},"409":{"description":"Selection required; response also lists available organizations"}},"summary":"List organizations available to this identity"}},"/mcp":{"post":{"parameters":[{"$ref":"#/components/parameters/organization"}],"responses":{"200":{"description":"JSON-RPC response"}},"summary":"MCP JSON-RPC transport for governed relationship tools"}}},"security":[{"gfavipBearer":[]}],"servers":[{"url":"https://app.51guanxi.com"}]}
