v2
chat
chat

Reset Copilot Usage

Changed on

Reset the daily CoPilot rate limit by spending credits.

Allows users who have hit their daily cost limit to spend credits to reset their daily usage counter and continue working. Returns 400 if the feature is disabled or the user is not over the limit. Returns 402 if the user has insufficient credits.

post/api/chat/usage/reset

Request

  • The document declares no server URL.
  • Auth
    HTTP bearer

Response

Successful Response

successboolean required
credits_chargedinteger required

Credits charged (in cents)

remaining_balanceinteger required

Credit balance after charge (in cents)

Changes

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • warning

      added the new TRIAL enum value to the / response property for the response status