Documentation Index
Fetch the complete documentation index at: https://docs.thig.ai/llms.txt
Use this file to discover all available pages before exploring further.
Organization API
Settings
Get Settings
GET /api/organization/settings
Returns organization name, branding, notification preferences, and plan details.
curl https://app.thig.ai/api/organization/settings \
-H "Authorization: Bearer YOUR_API_KEY"
Update Settings
PATCH /api/organization/settings
Requires Admin or Owner role.
curl -X PATCH https://app.thig.ai/api/organization/settings \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Acme Corp", "settings": {"notifications": {"emailDigest": true}}}'
Members
List Members
GET /api/organization/members
Returns all org members with roles and user data.
curl https://app.thig.ai/api/organization/members \
-H "Authorization: Bearer YOUR_API_KEY"
Update Member Role
PATCH /api/organization/members/{memberId}
Requires Admin or Owner role.
Body:
Allowed values: admin, member, viewer.
curl -X PATCH https://app.thig.ai/api/organization/members/mem_456 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"role": "admin"}'
Remove Member
DELETE /api/organization/members/{memberId}
Invitations
List Invitations
Requires Admin or Owner. Returns all pending invitations.
Send Invitation
Body:
| Field | Type | Required | Description |
|---|
email | string | Yes | Invitee email |
role | string | Yes | admin, member, or viewer |
message | string | No | Personal message |
curl -X POST https://app.thig.ai/api/invitations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email": "jane@example.com", "role": "member", "message": "Join our PRD team!"}'
Verify Invitation
GET /api/invitations/verify?token=INVITATION_TOKEN
Public. Check if an invitation token is valid.
Accept Invitation
POST /api/invitations/accept
Body: { "token": "INVITATION_TOKEN" }
Resend Invitation
POST /api/invitations/{invitationId}
Cancel Invitation
DELETE /api/invitations/{invitationId}
Branding
Update Branding
POST /api/organization/branding
Body:
| Field | Type | Description |
|---|
primaryColor | string | Hex color (e.g., “#10B981”) |
logo | string | Logo URL or base64 |
companyName | string | Company name |
Upload Logo
POST /api/organization/branding/logo
Send as multipart/form-data with file field. Max 2MB, images only.
curl -X POST https://app.thig.ai/api/organization/branding/logo \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@./logo.png"
Response:
{ "logoUrl": "https://storage.supabase.co/..." }
Custom Domain
Set Domain
POST /api/organization/domain
Body: { "domain": "prd.yourcompany.com" }
curl -X POST https://app.thig.ai/api/organization/domain \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "prd.yourcompany.com"}'
Verify Domain
POST /api/organization/domain/verify
Checks CNAME and TXT DNS records. Rate-limited.
Response:
{
"verified": true,
"checks": { "cname": true, "txt": true },
"message": "Domain verified successfully"
}
Billing
Get Billing Info
Returns plan details, usage per resource, billing history, and usage trends.
Create Checkout
POST /api/billing/checkout
Body:
| Field | Type | Required | Description |
|---|
planId | string | Yes | Plan to subscribe to |
interval | string | Yes | monthly or annual |
Response:
{ "checkout_url": "https://checkout.dodopayments.com/..." }
Billing Portal
Response:
{ "link": "https://portal.dodopayments.com/..." }
Admin Endpoints
Dashboard Stats
Returns project counts, status breakdown, recent projects, user stats, and activity timeline.
List Org Projects (Admin)
Full filtering support — search, status, template, priority, date range, assignee, sort.
Usage Analytics
GET /api/admin/analytics/usage
Query Parameters:
| Parameter | Type | Description |
|---|
userId | string | Filter by user |
projectId | string | Filter by project |
days | number | Lookback period (7, 30, 90) |
templateMetrics | boolean | Include template stats |
alerts | boolean | Include usage alerts |
Delete All Projects
POST /api/admin/settings/delete-all-projects
Irreversible. Requires Admin or Owner.
Delete Organization
POST /api/admin/settings/delete-organization
Irreversible. Requires Owner.