{ "opencollection": "1.0.0", "info": { "name": "Nationgraph Accounts User API", "version": "0.2.36" }, "items": [ { "info": { "name": "User", "type": "folder" }, "items": [ { "info": { "name": "Bootstrap User", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v3/users", "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Idempotent user bootstrap — call on every login and JWT refresh.\n\nResolves or creates the org row from the JWT BetterAuth org UUID, then\nupserts UserProfile. Returns the current profile including integer org PK." }, { "info": { "name": "Get User Onboarding Progress", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v3/users/onboarding", "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Setup-checklist progress for the authenticated user's active org." }, { "info": { "name": "Get Subscriptions For User", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v3/users/:user_id/subscriptions", "params": [ { "name": "user_id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get Subscriptions For User" }, { "info": { "name": "Get User Integrations", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v3/users/:user_id/integrations", "params": [ { "name": "user_id", "value": "", "type": "path" }, { "name": "provider", "value": "", "type": "query" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get User Integrations" }, { "info": { "name": "Get Subscriptions By Type", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v3/users/:user_id/subscriptions/:subscription_type", "params": [ { "name": "user_id", "value": "", "type": "path" }, { "name": "subscription_type", "value": "", "type": "path" }, { "name": "delivery_method", "value": "", "type": "query" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get Subscriptions By Type" }, { "info": { "name": "Add User Document", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/api/v3/users/:user_id/documents/:document_id", "params": [ { "name": "user_id", "value": "", "type": "path" }, { "name": "document_id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Add User Document" }, { "info": { "name": "Get User Documents", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v3/users/:user_id/documents", "params": [ { "name": "user_id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get User Documents" }, { "info": { "name": "Replace User Documents", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/api/v3/users/:user_id/documents", "params": [ { "name": "user_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Replace User Documents" } ] } ], "bundled": true }