Skip to main content

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.

Admin & Enterprise

Enterprise administration endpoints for organization management.

Team Workspaces

List Teams

curl -H "Authorization: Bearer thig_YOUR_KEY" \
  "https://app.thig.ai/api/admin/teams?includeArchived=false"

Create Team

name
string
required
Team name (1–100 characters)
description
string
Team description (max 500 characters)
color
string
Hex color code (e.g., “#10B981”)
curl -X POST https://app.thig.ai/api/admin/teams \
  -H "Authorization: Bearer thig_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Mobile Squad", "description": "iOS and Android team", "color": "#10B981"}'

Update / Delete Team

# Update
curl -X PATCH https://app.thig.ai/api/admin/teams/TEAM_ID \
  -H "Authorization: Bearer thig_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "New Name", "isArchived": false}'

# Delete
curl -X DELETE https://app.thig.ai/api/admin/teams/TEAM_ID \
  -H "Authorization: Bearer thig_YOUR_KEY"

Approval Workflows

Enterprise plan

List Workflows

curl -H "Authorization: Bearer thig_YOUR_KEY" \
  https://app.thig.ai/api/admin/approval-workflows

Create Workflow

name
string
required
Workflow name
triggerType
string
required
One of: prd_publish, prd_export, project_delete, template_publish
requiredApprovals
number
Number of approvals needed (1–10, default: 1)
allowSelfApproval
boolean
Whether requester can approve their own request (default: false)
approverIds
string[]
required
Array of user IDs who can approve
curl -X POST https://app.thig.ai/api/admin/approval-workflows \
  -H "Authorization: Bearer thig_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "PRD Publish Review",
    "triggerType": "prd_publish",
    "requiredApprovals": 2,
    "approverIds": ["user1", "user2", "user3"]
  }'

IP Allowlist

Enterprise plan

List Entries

curl -H "Authorization: Bearer thig_YOUR_KEY" \
  https://app.thig.ai/api/admin/ip-allowlist

Add IP/CIDR

curl -X POST https://app.thig.ai/api/admin/ip-allowlist \
  -H "Authorization: Bearer thig_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cidr": "10.0.0.0/24", "label": "Office VPN"}'

Remove Entry

curl -X DELETE https://app.thig.ai/api/admin/ip-allowlist \
  -H "Authorization: Bearer thig_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id": "ENTRY_ID"}'

Audit Logs

List Logs

action
string
Filter by action type
severity
string
Filter by severity: info, warning, critical
category
string
Filter by category: auth, project, team, billing, etc.
startDate
string
ISO date string for range start
endDate
string
ISO date string for range end
summary
boolean
Set to true to get aggregated summary instead of individual logs
curl -H "Authorization: Bearer thig_YOUR_KEY" \
  "https://app.thig.ai/api/admin/audit-logs?severity=critical&startDate=2026-03-01"

Export Logs

# CSV export
curl -H "Authorization: Bearer thig_YOUR_KEY" \
  "https://app.thig.ai/api/admin/audit-logs/export?format=csv" -o audit.csv

# JSON export
curl -H "Authorization: Bearer thig_YOUR_KEY" \
  "https://app.thig.ai/api/admin/audit-logs/export?format=json" -o audit.json

Template Submissions

Submit Template for Marketplace

curl -X POST https://app.thig.ai/api/template-submissions \
  -H "Authorization: Bearer thig_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "templateId": "TEMPLATE_ID",
    "notes": "Great for SaaS startups"
  }'

List My Submissions

curl -H "Authorization: Bearer thig_YOUR_KEY" \
  https://app.thig.ai/api/template-submissions

Stakeholder Reviews

Get Reviews by Share Token

No authentication required — uses the share token from the project sharing system.
curl "https://app.thig.ai/api/stakeholder-review/by-token?token=SHARE_TOKEN"

Submit Review Decision

curl -X POST https://app.thig.ai/api/stakeholder-review/resolve \
  -H "Content-Type: application/json" \
  -d '{
    "token": "SHARE_TOKEN",
    "reviewId": "REVIEW_ID",
    "status": "approved",
    "feedback": "Looks great, approved for development"
  }'
Status options: approved, rejected