Credits

Allocate credits to a client

Allocates credits from the workspace to a specific client. Requires client ownership verification.

post/v1/ai/credits/client/allocate

Request

  • Base URL: https://api.lindo.ai
  • URL: https://api.lindo.ai/v1/ai/credits/client/allocate
  • Auth: HTTP bearer

Request body

client_idstring required

The ID of the client to allocate credits to

credit_type'monthly' | 'purchased' | 'daily' required

Type of credits to allocate

amountnumber required

Number of credits to allocate (must be positive)

sourcestring

Source of the allocation (e.g. bonus, purchase)

notesstring

Optional notes for the allocation

Example request

{
  "client_id": "client_abc123",
  "credit_type": "purchased",
  "amount": 100,
  "source": "bonus",
  "notes": "Monthly credit top-up"
}

Response

Credits allocated successfully

successtrue required

Changes

No recorded changes to this operation across all 1 revision of this API.