Agent-readable docs index: /docs/llms.txt. Full docs in one file: /docs/llms-full.txt. Download /docs/docs.zip to grep all markdown files locally.

Organizations & Workspaces API

Query and manage multi-tenant organization workspaces programmatically.

1. Retrieve Current Organization

GET /api/v1/organizations/current
Returns metadata, active plan tier, seat counts, and quota utilization for the active authenticated workspace.

Response Example:

{ "code": 0, "data": { "id": "org_789xyz", "name": "Acme Marketing", "plan": "pro", "linkCount": 428, "linkQuota": 50000, "clickCountMonthly": 83920, "clickQuotaMonthly": 500000, "customDomainCount": 2, "customDomainQuota": 5 } }

2. List Organization Members

GET /api/v1/organizations/members
Returns all active users and pending email invitations with their associated role assignments (owner, admin, member).

3. Invite Team Member

POST /api/v1/organizations/members/invite

Request Payload:

{ "email": "analyst@acme.com", "role": "member" }
Dispatches an automated invitation email via Resend and returns the invitation token.