Actions7
- Credits Actions
- Users Actions
- Subscriptions Actions
Credits → Add Credits
AI-generatedSummary
Add credits to a specified user's account in the middleware service.
Inputs
- Authentication — Choose between no authentication or credentials-based authentication for the API request.
- Base URL — The base URL of the middleware service (used only if authentication is 'None'). Defaults to 'https://glb-middleware.xeri.dev'.
- User ID (required) — The unique identifier of the user to whom credits will be added.
- Amount (required) — The number of credits to add to the user's account.
- Source — The origin of the credits added; options include 'Purchase', 'Promo', or 'Manual' (default is 'Manual').
Output shape
a JSON object reflecting the API response for adding credits to the user account
The operation sends a POST request to '/api/credits/add' with userId, amount, and source. The output is an array containing the API response for each item processed.