Skip to main content

Release an Agent credit reservation

Releases a not-yet-confirmed reservation and restores the credit.
1 min read
delete/profiles/{studioId}/agent-credits/reservations/{messageId}
Request example
Response
delete/profiles/{studioId}/agent-credits/reservations/{messageId}

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

studioIdstringrequired#
messageIdstringrequired#

Responses

application/json
Reserva liberada.
dataobjectrequired#
Show child attributes
messageIdstringrequired#
stateenum<string>required#
Options:reservedcommittedreleasedexpired
balanceobjectrequired#
Show child attributes
usedintegerrequired#
includedintegerrequired#
extraintegerrequired#
totalintegerrequired#
remainingintegerrequired#
periodStartMsintegerrequired#
periodEndMsintegerrequired#
sourceenum<string>required#
Options:metronome
syncStatusenum<string>required#
Options:pendingsynceddegradederror
entitlementVersioninteger#
billingScopeKindenum<string>#
Options:profilefree_owner
request_idstring#