Admin and Support

Endpoints for user support tickets, support-admin triage and Super Admin system management (analytics, user roles, AI model pricing and plan keys). Conventions are on API Reference.

Support tickets

Method

Path

Description

Auth

POST

/api/support/tickets

Create a new support ticket.

Signed in

GET

/api/support/tickets

Get all tickets submitted by the current user with messages.

Signed in

POST

/api/support/tickets/{ticket_id}/reply

Add a user reply to the user’s own ticket.

Signed in

PATCH

/api/support/tickets/{ticket_id}/close

Close the user’s own ticket.

Signed in

DELETE

/api/support/tickets/{ticket_id}

Delete the user’s own ticket and its messages.

Signed in

Support admin

Method

Path

Description

Auth

GET

/api/support-admin/tickets

Fetch all tickets in the system with their messages.

Support admin

PATCH

/api/support-admin/tickets/{ticket_id}/status

Update a ticket’s status.

Support admin

POST

/api/support-admin/tickets/{ticket_id}/reply

Add an admin reply to a ticket.

Support admin

DELETE

/api/support-admin/tickets/{ticket_id}

Delete a ticket.

Support admin

Super Admin

Method

Path

Description

Auth

GET

/api/admin/analytics

Fetch system analytics for the Super Admin dashboard.

Super Admin

GET

/api/admin/users

List all user accounts.

Super Admin

PATCH

/api/admin/users/{user_id}/role

Update a user’s account role.

Super Admin

PATCH

/api/admin/users/{user_id}/status

Suspend or unsuspend a user account.

Super Admin

GET

/api/admin/ai-pricing

List all configured AI model pricing and markup rows.

Super Admin

POST

/api/admin/ai-pricing

Add pricing and markup for an AI model.

Super Admin

PATCH

/api/admin/ai-pricing/{model_name}

Edit cost, markup or active state for an existing model.

Super Admin

DELETE

/api/admin/ai-pricing/{model_name}

Remove a model’s pricing row (falls back to the safety-net rate).

Super Admin

GET

/api/admin/ai-usage/summary

Aggregate AI usage and cost totals overall and per model.

Super Admin

POST

/api/admin/plan-keys

Generate a batch of plan-redemption keys.

Super Admin

GET

/api/admin/plan-keys

List generated plan keys with redemption state.

Super Admin

GET

/api/admin/plan-keys/stats

Headline statistics for generated plan keys.

Super Admin

GET

/api/admin/plan-keys/{key_id}/revoke-preview

Preview which users lose access if a key is revoked with grant clawback.

Super Admin

POST

/api/admin/plan-keys/{key_id}/revoke

Revoke a key (optionally clawing back already-redeemed grants).

Super Admin

See also

Team and Administration for the Support Dashboard and Admin Console UI.