Skip to main content

Get the latest one-time code for an inbox

GET 

/api/v1/emailInbox/:id/otp

Returns the most recently extracted one-time passcode (OTP) for an email inbox, with the message it came from. Requires API key with email_messages:read scope — this is a read of extracted message content, not inbox metadata. Shares its lookup and arguments with the pibx_email_get_latest_otp MCP tool.

Request

Responses

Successfully retrieved the latest OTP