v4

latestOpenAPI 3.1.02026-08-08349225311.7 KB
store

Claim Oldest Drainable Pending Message

Atomically lease and return the oldest drainable row of kind, or null.

The row is leased, not removed: the caller promotes it into history and then deletes it, so a crash mid-promotion leaves it recoverable.

post/v1/store/chat-sessions/{chat_session_id}/pending-messages/claim-oldest-drainable

Path parameters

chat_session_idstring required

Request body

kindstring
honor_holdboolean

Response

Successful Response

{"stackTrail":"paths:/v1/store/chat-sessions/{chat_session_id}/pending-messages/claim-oldest-drainable:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}