Bulk Allocate Credits

Bulk Allocate Credits

This endpoint allows you to allocate credits to multiple organizations in a single request. Use this to efficiently distribute credits by providing an array of organization UUIDs and the corresponding credit amounts. Authentication is required via the user-token variable, and the host variable must be set to your API base URL.


Request Body Parameters

  • credit_allocation (required, array): An array of objects, each containing:
    • organization_uuid (string): The unique identifier of the organization.

    • credits (string or integer): The number of credits to allocate.

Example:

[
  {"organization_uuid": "5c954455-b170-4432-9ad8-7bad9723c594", "credits": "3"}
]

Example Success Response

{
  "status": "success",
  "message": "Credits allocated successfully."
}

Example Error Response

{
  "status": "error",
  "message": "Invalid organization UUID or insufficient credits."
}

Usage Notes

  • Authentication: A valid user-token must be provided in the environment variables.

  • Required Parameters: The credit_allocation field is required and must be a valid JSON array.

  • Content-Type: Set to multipart/form-data.

  • URL Variables: The host variable should be set to your API base URL.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
Response

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!