call
calls

Cleanup Orphaned Token Reservations

Admin endpoint to clean up orphaned token reservations.

Orphaned reservations occur when:

  • A call is initiated and tokens are reserved
  • The call never completes or crashes
  • No finalization happens

This endpoint refunds those stuck tokens back to users.

Args: age_threshold_hours: Minimum age (in hours) for a reservation to be considered orphaned

post/call/admin/tokens/cleanup-orphaned

Query parameters

age_threshold_hoursinteger

Headers

authorizationstring nullable

Response

Successful Response

{"stackTrail":"paths:/call/admin/tokens/cleanup-orphaned:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

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