InfraNotes Core · v2
Welcome
Select a document from the sidebar to read it.
InfraNotes - API Endpoints Documentation
Authentication and User Management
POST /api/auth/register- User registrationPOST /api/auth/login- User loginPOST /api/auth/login/mfa- Login with MFAGET /api/auth/profile- Get user profilePUT /api/auth/profile- Update user profileGET /api/auth/users- Get all users (admin only)GET /api/auth/verify-email- Verify email with tokenPOST /api/auth/resend-verification- Resend verification emailPOST /api/auth/forgot-password- Request password resetGET /api/auth/verify-reset-token- Verify password reset tokenPOST /api/auth/reset-password- Reset password with tokenPOST /api/auth/refresh- Refresh authentication token
MFA (Multi-Factor Authentication)
POST /api/auth/mfa/setup- Generate MFA setupPOST /api/auth/mfa/enable- Verify and enable MFAPOST /api/auth/mfa/disable- Disable MFA
Session Management
GET /api/sessions- Get active sessionsPOST /api/sessions/revoke- Revoke specific sessionPOST /api/sessions/revoke-all- Revoke all sessions
Security
GET /api/security/audit-logs- Get security audit logs (admin only)GET /api/security/status- Get security status (admin only)GET /api/security/login-history- Get login historyGET /api/security/lockout-status- Get user lockout statusPOST /api/security/unlock-user- Unlock user account (admin only)POST /api/security/reset-rate-limit- Reset rate limit (admin only)
Security Dashboard
GET /api/security/dashboard/overview- Get security overviewGET /api/security/dashboard/timeline- Get security timelineGET /api/security/dashboard/anomalies- Get security anomalies
Platform Backoffice
GET /api/admin/platform/summary- Read-only admin summary of core-service modules, route candidates, backing table availability, and estimated aggregate record counts. Counts use short-lived cached PostgreSQL table statistics. Tenant registration approvals, package subscriptions, seats, and entitlements remain IAM-owned.
Geolocation Security
GET /api/security/location-history- Get login location historyGET /api/security/suspicious-logins- Get suspicious logins (admin only)POST /api/security/test-geolocation- Test geolocation (admin only)
Expenses
GET /api/expenses- Get all expensesPOST /api/expenses- Create a new expenseGET /api/expenses/{id}- Get expense by IDPUT /api/expenses/{id}- Update expenseDELETE /api/expenses/{id}- Delete expenseGET /api/expenses/summary- Get expense summary
Projects
GET /api/projects- Get all projectsPOST /api/projects- Create a new projectGET /api/projects/{id}- Get project by IDPUT /api/projects/{id}- Update projectDELETE /api/projects/{id}- Delete projectGET /api/projects/{id}/expenses- Get project expensesGET /api/projects/{id}/summary- Get project summary
Categories
GET /api/categories- List all categoriesPOST /api/categories- Create a new categoryGET /api/categories/{id}- Get category by IDPUT /api/categories/{id}- Update categoryDELETE /api/categories/{id}- Delete category
Tags
GET /api/tags- List all tagsPOST /api/tags- Create a new tagGET /api/tags/{id}- Get tag by IDPUT /api/tags/{id}- Update tagDELETE /api/tags/{id}- Delete tagGET /api/expenses/{id}/tags- Get tags for an expensePOST /api/expenses/{id}/tags- Add tag to expenseDELETE /api/expenses/{expenseId}/tags/{tagId}- Remove tag from expense
Receipts
POST /api/expenses/{id}/receipt- Upload receiptGET /api/expenses/{id}/receipt- Get receiptDELETE /api/expenses/{id}/receipt- Delete receipt
Export
GET /api/export/expenses- Export expensesGET /api/export/projects- Export projectsGET /api/export/invoices- Export invoicesGET /api/export/invoices/{id}/items- Export invoice items
Summary Reports
GET /api/summary/daily- Get daily summaryGET /api/summary/weekly- Get weekly summaryGET /api/summary/monthly- Get monthly summaryGET /api/summary/yearly- Get yearly summaryGET /api/summary/custom- Get custom period summary
Currencies
GET /api/currencies- List all currenciesPOST /api/currencies- Create a new currencyGET /api/currencies/{id}- Get currency by IDGET /api/currencies/code/{code}- Get currency by codePUT /api/currencies/{id}- Update currencyDELETE /api/currencies/{id}- Delete currencyGET /api/currencies/base- Get base currencyPUT /api/currencies/{id}/base- Set base currencyPOST /api/currencies/exchange-rates- Update exchange rates
Teams
GET /api/teams- Get user teamsPOST /api/teams- Create a new teamGET /api/teams/{id}- Get team by IDPUT /api/teams/{id}- Update teamDELETE /api/teams/{id}- Delete team
Team Members
GET /api/teams/{id}/members- Get team membersPOST /api/teams/{id}/members- Add member to teamDELETE /api/teams/{id}/members/{userId}- Remove member from teamPUT /api/teams/{id}/members/{userId}/role- Update member role
Team Expenses
GET /api/teams/{id}/expenses- Get team expensesGET /api/teams/{id}/expenses/summary- Get team expense summaryPOST /api/expenses/{expenseId}/share- Share expense with teamPOST /api/expenses/{expenseId}/unshare- Unshare expense from team
Roles and Permissions
GET /api/roles/{role}/permissions- Get role permissionsGET /api/roles- Get all roles and permissionsGET /api/teams/{id}/permissions- Get team permissions
Activity Logs
GET /api/activity- Get user activityGET /api/activity/recent- Get recent user activityGET /api/teams/{id}/activity- Get team activityGET /api/teams/{id}/activity/recent- Get recent team activityGET /api/activity/{entity_type}/{entity_id}- Get entity activity
Budget Management
POST /api/budgets- Create a new budgetGET /api/budgets/{id}- Get budget by IDPUT /api/budgets/{id}- Update budgetDELETE /api/budgets/{id}- Delete budgetGET /api/budgets- List budgets with filtersGET /api/budgets/{id}/usage- Get budget usage reportGET /api/budgets/{id}/vs-actual- Get budget vs actual reportGET /api/budgets/{id}/alerts- Get budget alertsPOST /api/budgets/{id}/allocations- Add budget allocationPUT /api/budgets/{id}/allocations/{allocationId}- Update budget allocationDELETE /api/budgets/{id}/allocations/{allocationId}- Delete budget allocation
Invoice Management
POST /api/invoices- Create a new invoiceGET /api/invoices/{id}- Get invoice by IDPUT /api/invoices/{id}- Update invoiceDELETE /api/invoices/{id}- Delete invoiceGET /api/invoices- List invoices with filtersPUT /api/invoices/{id}/status- Update invoice statusGET /api/invoices/overdue- Get overdue invoices
Invoice Comments
GET /api/invoices/{id}/comments- List comments for invoicePOST /api/invoices/{id}/comments- Create commentGET /api/invoices/{id}/comments/threads- Get comment threadsGET /api/invoices/{id}/comments/stats- Get comment statisticsGET /api/comments/{id}- Get comment by IDPUT /api/comments/{id}- Update commentDELETE /api/comments/{id}- Delete commentGET /api/comments/search- Search comments
Comment Attachments
POST /api/comments/{id}/attachments- Upload attachmentGET /api/comments/{id}/attachments- List attachmentsGET /api/attachments/{id}- Get attachmentDELETE /api/attachments/{id}- Delete attachment
Comment Reactions
POST /api/comments/{id}/reactions- Add reactionDELETE /api/comments/{id}/reactions- Remove reactionGET /api/comments/{id}/reactions- List reactions
Comment Notifications & Mentions
POST /api/comment-notifications/process- Process pending notificationsGET /api/users/{id}/comment-notifications- List user notificationsPOST /api/comment-notifications/{id}/read- Mark notification as readGET /api/users/{id}/mentions- Get user mentionsPOST /api/mentions/{id}/resolve- Resolve mention
Invoice Items
POST /api/invoices/{id}/items- Add invoice itemPUT /api/invoices/{id}/items/{itemId}- Update invoice itemDELETE /api/invoices/{id}/items/{itemId}- Delete invoice item
Invoice Payments
POST /api/invoices/{id}/payments- Add payment to invoiceGET /api/invoices/{id}/payments- Get invoice paymentsDELETE /api/invoices/{id}/payments/{paymentId}- Delete invoice payment
Invoice Operations
GET /api/invoices/{id}/pdf- Generate PDF for invoicePOST /api/invoices/{id}/send- Send invoice via emailPOST /api/invoices/generate-from-expenses- Generate invoice from expenses
Client/Vendor Management
POST /api/clients- Create a new clientGET /api/clients/{id}- Get client by IDPUT /api/clients/{id}- Update clientDELETE /api/clients/{id}- Delete clientGET /api/clients- List clients with filtersGET /api/clients/{id}/invoices- Get client invoices
Payment Terms
POST /api/payment-terms- Create payment termsGET /api/payment-terms/{id}- Get payment terms by IDPUT /api/payment-terms/{id}- Update payment termsDELETE /api/payment-terms/{id}- Delete payment termsGET /api/payment-terms- List payment terms
Payment Gateway Integration
POST /api/payment-gateways- Create payment gateway configurationGET /api/payment-gateways/{id}- Get payment gateway configurationPUT /api/payment-gateways/{id}- Update payment gateway configurationDELETE /api/payment-gateways/{id}- Delete payment gateway configurationGET /api/payment-gateways- List payment gateway configurationsPOST /api/payment-intents- Create payment intentGET /api/payment-intents/{id}- Get payment intentPOST /api/payment-intents/{id}/cancel- Cancel payment intentPOST /api/webhook/stripe- Webhook handler for Stripe events
Bank Reconciliation
POST /api/reconciliation/accounts- Create bank accountGET /api/reconciliation/accounts/{id}- Get bank accountPUT /api/reconciliation/accounts/{id}- Update bank accountDELETE /api/reconciliation/accounts/{id}- Delete bank accountGET /api/reconciliation/accounts- List bank accountsPOST /api/reconciliation/import- Import bank statementGET /api/reconciliation/transactions- List transactionsPOST /api/reconciliation/match- Match transaction with paymentsPOST /api/reconciliation/unmatch- Unmatch transactionPOST /api/reconciliation/exclude- Exclude transaction from matchingPOST /api/reconciliation/batch-match- Batch match transactions
Approval Workflows
POST /api/approval/workflows- Create approval workflowGET /api/approval/workflows/{id}- Get approval workflowPUT /api/approval/workflows/{id}- Update approval workflowDELETE /api/approval/workflows/{id}- Delete approval workflowGET /api/approval/workflows- List approval workflowsPOST /api/approval/workflows/{id}/steps- Add workflow stepPUT /api/approval/workflows/{id}/steps/{stepId}- Update workflow stepDELETE /api/approval/workflows/{id}/steps/{stepId}- Delete workflow stepPOST /api/approval/workflows/{id}/steps/reorder- Reorder workflow stepsPOST /api/approval/instances/{id}/approve- Approve requestPOST /api/approval/instances/{id}/reject- Reject requestPOST /api/approval/instances/{id}/delegate- Delegate requestPOST /api/approval/instances/{id}/cancel- Cancel requestGET /api/approval/pending- Get pending approvalsPOST /api/approval/delegates- Add approval delegateGET /api/approval/delegates- List approval delegatesDELETE /api/approval/delegates/{id}- Remove approval delegate
Batch Operations
POST /api/batch/operations- Create batch operationGET /api/batch/operations/{id}- Get batch operationGET /api/batch/operations- List batch operationsPOST /api/batch/operations/{id}/run- Run batch operationPOST /api/batch/operations/{id}/cancel- Cancel batch operationGET /api/batch/operations/{id}/results- Get batch operation results
PDF Templates
POST /api/pdf-templates- Create PDF templateGET /api/pdf-templates/{id}- Get PDF templatePUT /api/pdf-templates/{id}- Update PDF templateDELETE /api/pdf-templates/{id}- Delete PDF templateGET /api/pdf-templates- List PDF templatesPOST /api/pdf-templates/{id}/clone- Clone PDF templatePOST /api/pdf-templates/{id}/share- Share PDF template
Recurring Invoices
POST /api/recurring-invoices- Create recurring invoiceGET /api/recurring-invoices/{id}- Get recurring invoicePUT /api/recurring-invoices/{id}- Update recurring invoiceDELETE /api/recurring-invoices/{id}- Delete recurring invoiceGET /api/recurring-invoices- List recurring invoicesPOST /api/recurring-invoices/{id}/generate- Generate invoice from templateGET /api/recurring-invoices/scheduler/status- Get scheduler statusPOST /api/recurring-invoices/scheduler/run- Run scheduler manually
Payment Analytics
GET /api/payment-analytics/trends- Get payment trendsGET /api/payment-analytics/forecast- Get payment forecastGET /api/payment-analytics/methods- Get payment method breakdownGET /api/payment-analytics/aging- Get payment aging reportGET /api/payment-analytics/client/{clientId}- Get client payment historyGET /api/payment-analytics/overdue- Get overdue payment analysis
Reports
GET /api/reports/financial- Get financial reportsGET /api/reports/security- Get security reportsGET /api/reports/budget- Get budget reportsGET /api/reports/invoice- Get invoice reportsGET /api/reports/expense- Get expense reportsPOST /api/reports/generate- Generate custom reportGET /api/reports/scheduled- List scheduled reportsPOST /api/reports/schedule- Schedule report generation
Notifications
GET /api/notifications- Get user notificationsPUT /api/notifications/{id}/read- Mark notification as readPUT /api/notifications/read-all- Mark all notifications as readGET /api/notifications/preferences- Get notification preferencesPUT /api/notifications/preferences- Update notification preferences
System Endpoints
GET /health- Simple health checkGET /health/details- Detailed health status
Documentation
GET /api/docs/swagger.yaml- Get Swagger YAMLGET /api/docs- API documentation UI