Indox Auth API - OSLLM AI
string · uuid · requiredstring · requiredstring · date-time · requiredstring · date-time · requirednumber · requiredinteger · required boolean · requiredstring · requiredinteger · requirednumber · required
Report task completion and deduct user credits.
POST
/auth/api/v1/billing/tasks/task-completion/
Report task completion and deduct user credits. › Request Body
Request payload for reporting task completion.
task_idUnique identifier for the task (idempotency key).
service_nameName of service reporting the task.
task_start_timeISO timestamp for when task started.
task_finish_timeISO timestamp for when task finished.
processing_time_secondsProcessing duration in seconds.
credit_costCredits consumed by the task.
Optional UUID of the end user. Used for validation but must match the authenticated user.
Categorization for the task (image_processing, etc.).
Optional file size in bytes.
Optional output format shorthand (pdf, jpg, ...).
Optional quality/preset string.
Optional S3 key for the generated output (for storage management).
Optional friendly name for the output file.
Optional content type for the output file.
Report task completion and deduct user credits. › Responses
OK
Success response for task completion reporting.
successmessageremaining_creditsremaining_balance_usdCredit transaction primary key.