HTTP API Inspect can not get message detail

Hello
I try to inspect message by get /api/admin/inspect-message/v1

curl -X GET "http://127.0.0.1:8000/api/admin/inspect-message/v1?id=fcb28481150511f09bf1c81f66ee82d3" \
 -H 'accept: application/json' 

in /opt/kumomta/sbin/tailer --tail /var/log/kumomta

message like this

 {"type":"Delivery","id":"fcb28481150511f09bf1c81f66ee82d3","sender":"kumomta-test@mailtest.xxxxx","recipient":"xxxx@xxx.com","queue":"xxxxx","site":"xxxx","size":1235,"response":{"code":250,"enhanced_code":null,"content":"Ok: queued as ","command":".\r\n"},"peer_address":{"name":"mxbiz1.xxx.com.","addr":"1xxxxx"},"timestamp":1744177597,"created":1744177590,"num_attempts":0,"bounce_classification":"Uncategorized","egress_pool":"sockspool","egress_source":"socksproxy-ip1","source_address":{"address":"xxxx:48377","server":"127.0.0.1:6000","protocol":"socks5"},"feedback_report":null,"meta":{},"headers":{"X-WPRef":"eyJfQF8iOiJcXF8vIiwicmVjaXBpZW50IjoiamFjay5saXVAd2VicG93ZXJ4LmNvbSJ9"},"delivery_protocol":"ESMTP","reception_protocol":"ESMTP","nodeid":"d539b997-f277-41f8-bf91-b2 }

{
“error”: “Error: no such key fcb28481150511f09bf1c81f66ee82d3”
}

You can only inspect a message that is in the queue. The log line that you got the ID from is a delivery line which means the server delivered the message and removed it from the queue.

OK . got it

one minor correction here: inspect-message operates on the spool rather than a queue. A message may not be present in the spool if deferred spooling is in use, or if it has reached a terminal state (delivered, bounced). A message may be in spool but not in any queue if it is in between stages of processing (eg: actively attempting delivery)