/api/testing

POST /api/testing/metabot/seed-ai-usage

Changed on

Insert count messages of AI usage for the given user_id: one ai_usage_log row each, from the chat source and under its own request_id, so a message limit counts each row as one message. Then clear the metabot limit cache so limit checks re-evaluate immediately. Intended only for E2E tests.

post/api/testing/metabot/seed-ai-usage

Request

  • Base URL
    (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    API key in header X-API-Key

Request body

countinteger required

value must be an integer greater than zero.

user_idinteger required

value must be an integer greater than zero.

Response

Successful response

insertedinteger required

Changes