Skip to main content

API Reference

The Equa platform exposes a RESTful API through equa-server. This section documents every endpoint group with request/response schemas, authentication requirements, and examples.

Base URL

EnvironmentURL
Productionhttps://api.equa.cc

Authentication

All API endpoints require an authenticated session. The server uses express-session with a database-backed store (TypeORM). After signing in via Google OAuth, the server sets an HTTP session cookie that the browser includes automatically with each request.
Cookie: connect.sid=<session-id>
There are no JWT bearer tokens. Sessions use rolling: true, which extends the expiry on every request.

Overview Documents

DocumentDescriptionStatus
AuthenticationAPI authentication, session cookies, Google OAuthDRAFT
Error CodesStandard error responses and status codesDRAFT
Rate LimitingRequest rate limits and throttlingDRAFT
WebhooksWebhook events and deliveryDRAFT
SDK GuideClient SDK usage and integrationDRAFT

Endpoint Groups (18)

All endpoint definitions are located in equa-server/modules/api/src/endpoints/.
Endpoint GroupSource FileDescriptionStatus
Authauth-endpoints.tsAuthentication and session managementDRAFT
Useruser-endpoints.tsUser profile and preferencesDRAFT
Organizationorganization-endpoints.tsOrganization CRUD and settingsDRAFT
Cap Tablecaptable-endpoints.tsEquity, shares, stakeholdersDRAFT
Billingbilling-endpoints.tsSubscription and payment managementDRAFT
Adminadmin-endpoints.tsPlatform administrationDRAFT
Activityactivity-endpoints.tsActivity feed and audit trailDRAFT
Data Roomdata-room-endpoints.tsSecure document sharingDRAFT
Documentsdocument-endpoints.tsDocument management and DocGenDRAFT
Microsoftmicrosoft-endpoints.tsMicrosoft integrationDRAFT
Google Drivegoogle-drive-endpoints.tsGoogle Drive sync (commented out in registration)DRAFT
Referralreferral-endpoints.tsReferral programDRAFT
Colorscolor-endpoints.tsUI color/theme endpointsDRAFT
Walletwallet-endpoint.tsWallet/payment methodsDRAFT
Profileprofile-endpoints.tsUser profile endpointsDRAFT
File Storagefile-storage-endpoints.tsFile upload/download pipelineDRAFT
Notificationsnotification-endpoints.tsNotification delivery endpointsDRAFT
Agentagent-endpoints.tsEquanaut AI agent endpointsDRAFT

How to Document an Endpoint

  1. Copy templates/api-endpoint.md into api/endpoints/.
  2. Read the source endpoint file and its associated service module.
  3. Document every route, request schema, response schema, and error case.
  4. Update this index and README.md when the status changes.