Skip to Content
Messaging APIAccount Management

Account Management

Check your account status, view usage, and update settings programmatically.

All endpoints in this section require x-access-key and x-user-id headers.

Get Account Status

Returns your current account status including balance, seat usage, and trial information.

Endpoint: POST https://api.warmai.uk/functions/v1/api-account-status

Headers:

HeaderRequiredDescription
x-access-keyYesYour API access key
x-user-idYesYour user ID

Response:

{ "balance": 150.00, "seats_used": 3, "is_trial": false, "trial_ends_at": null }
FieldTypeDescription
balancenumberCurrent credit balance
seats_usednumberNumber of active user seats
is_trialbooleanWhether the account is on a trial plan
trial_ends_atstring | nullISO 8601 timestamp when trial expires, or null if not on trial

Get Usage Summary

Returns a summary of your API usage for a given period.

Endpoint: POST https://api.warmai.uk/functions/v1/api-usage-summary

Headers:

HeaderRequiredDescription
x-access-keyYesYour API access key
x-user-idYesYour user ID

Request Body:

{ "period": "month" }
FieldTypeRequiredDescription
periodstringYesOne of day, week, month, or all

Response:

{ "credits_used": 45.50, "api_calls": 312, "by_operation": { "research": 150, "message": 120, "connect": 42 }, "transactions": [ { "id": "txn_abc123", "type": "debit", "amount": 0.15, "operation": "research", "created_at": "2026-03-18T14:30:00Z" } ] }
FieldTypeDescription
credits_usednumberTotal credits consumed in the period
api_callsnumberTotal API calls made in the period
by_operationobjectBreakdown of calls by operation type
transactionsarrayList of individual transactions

Update Settings

Update your account-level settings such as webhook configuration and allowed domains.

Endpoint: POST https://api.warmai.uk/functions/v1/api-update-settings

Headers:

HeaderRequiredDescription
x-access-keyYesYour API access key
x-user-idYesYour user ID

Request Body:

Only include the fields you want to update.

{ "webhook_url": "https://example.com/webhooks/warmai", "webhook_secret": "whsec_your_secret_here", "auto_reload_enabled": true, "auto_reload_threshold": 10.00, "allowed_domains": ["example.com", "app.example.com"] }
FieldTypeDescription
webhook_urlstringHTTPS URL to receive webhook events
webhook_secretstringSecret used to sign webhook payloads
auto_reload_enabledbooleanWhether to automatically reload credits when balance is low
auto_reload_thresholdnumberCredit balance at which auto-reload triggers
allowed_domainsarrayList of allowed domains (maximum 5)

Response:

{ "success": true, "updated_fields": ["webhook_url", "webhook_secret"] }
Last updated on