For the complete documentation index, see llms.txt. This page is also available as Markdown.

Additional AI Integrations

Submit usage data from additional AI tools. This allows AI tools to report their usage metrics to Swarmia for unified tracking.

Submit AI tool usage report

post

Submit daily usage metrics for an external AI tool. Each request can include data for multiple users and dates. Metrics are upserted based on the combination of (aiService, user email, date).

The API token must have the aiUsage scope enabled.

Authorizations
AuthorizationstringRequired

API token passed as Authorization: Bearer <token>. The token must have the entityQuery scope enabled. Tokens can be provisioned at https://app.swarmia.com/settings/api-tokens.

Body
aiServicestringRequired

AI tool identifier (e.g. Kiro). Alphanumeric, preferably PascalCase. Created automatically if new. Visible in reports.

Example: KiroPattern: ^[A-Za-z0-9]+$
Responses
200

Report accepted successfully.

application/json
objectOptional
post/ingest/ai-usage

Last updated

Was this helpful?