curl --request POST \
--url https://api.dairo.app/v1/inboxes/{inbox}/verification-waits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"timeoutSec": 915,
"fromHint": "<string>",
"instruction": "<string>",
"idempotencyKey": "<string>"
}
'import requests
url = "https://api.dairo.app/v1/inboxes/{inbox}/verification-waits"
payload = {
"timeoutSec": 915,
"fromHint": "<string>",
"instruction": "<string>",
"idempotencyKey": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
timeoutSec: 915,
fromHint: '<string>',
instruction: '<string>',
idempotencyKey: '<string>'
})
};
fetch('https://api.dairo.app/v1/inboxes/{inbox}/verification-waits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dairo.app/v1/inboxes/{inbox}/verification-waits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'timeoutSec' => 915,
'fromHint' => '<string>',
'instruction' => '<string>',
'idempotencyKey' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dairo.app/v1/inboxes/{inbox}/verification-waits"
payload := strings.NewReader("{\n \"timeoutSec\": 915,\n \"fromHint\": \"<string>\",\n \"instruction\": \"<string>\",\n \"idempotencyKey\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.dairo.app/v1/inboxes/{inbox}/verification-waits")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"timeoutSec\": 915,\n \"fromHint\": \"<string>\",\n \"instruction\": \"<string>\",\n \"idempotencyKey\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dairo.app/v1/inboxes/{inbox}/verification-waits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"timeoutSec\": 915,\n \"fromHint\": \"<string>\",\n \"instruction\": \"<string>\",\n \"idempotencyKey\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"waitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inboxId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fromHint": "<string>",
"instruction": "<string>",
"result": "<string>",
"code": "<string>",
"from": "<string>",
"messageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"idempotencyKey": "<string>",
"resolvedAt": "2023-11-07T05:31:56Z",
"expiredAt": "2023-11-07T05:31:56Z"
}{
"waitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inboxId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fromHint": "<string>",
"instruction": "<string>",
"result": "<string>",
"code": "<string>",
"from": "<string>",
"messageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"idempotencyKey": "<string>",
"resolvedAt": "2023-11-07T05:31:56Z",
"expiredAt": "2023-11-07T05:31:56Z"
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}Register a durable verification wait on an inbox
Register a durable verification wait on an inbox
curl --request POST \
--url https://api.dairo.app/v1/inboxes/{inbox}/verification-waits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"timeoutSec": 915,
"fromHint": "<string>",
"instruction": "<string>",
"idempotencyKey": "<string>"
}
'import requests
url = "https://api.dairo.app/v1/inboxes/{inbox}/verification-waits"
payload = {
"timeoutSec": 915,
"fromHint": "<string>",
"instruction": "<string>",
"idempotencyKey": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
timeoutSec: 915,
fromHint: '<string>',
instruction: '<string>',
idempotencyKey: '<string>'
})
};
fetch('https://api.dairo.app/v1/inboxes/{inbox}/verification-waits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dairo.app/v1/inboxes/{inbox}/verification-waits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'timeoutSec' => 915,
'fromHint' => '<string>',
'instruction' => '<string>',
'idempotencyKey' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dairo.app/v1/inboxes/{inbox}/verification-waits"
payload := strings.NewReader("{\n \"timeoutSec\": 915,\n \"fromHint\": \"<string>\",\n \"instruction\": \"<string>\",\n \"idempotencyKey\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.dairo.app/v1/inboxes/{inbox}/verification-waits")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"timeoutSec\": 915,\n \"fromHint\": \"<string>\",\n \"instruction\": \"<string>\",\n \"idempotencyKey\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dairo.app/v1/inboxes/{inbox}/verification-waits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"timeoutSec\": 915,\n \"fromHint\": \"<string>\",\n \"instruction\": \"<string>\",\n \"idempotencyKey\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"waitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inboxId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fromHint": "<string>",
"instruction": "<string>",
"result": "<string>",
"code": "<string>",
"from": "<string>",
"messageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"idempotencyKey": "<string>",
"resolvedAt": "2023-11-07T05:31:56Z",
"expiredAt": "2023-11-07T05:31:56Z"
}{
"waitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inboxId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fromHint": "<string>",
"instruction": "<string>",
"result": "<string>",
"code": "<string>",
"from": "<string>",
"messageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"idempotencyKey": "<string>",
"resolvedAt": "2023-11-07T05:31:56Z",
"expiredAt": "2023-11-07T05:31:56Z"
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"type": "<string>",
"param": "<string>"
}
}Authorizations
Dairo API key, e.g. dairo_test_... or dairo_live_...
Path Parameters
Inbox UUID or full address (e.g. agent@dairo.app).
Body
How long the wait stays open, 30..=1800 seconds. expiresAt = now + timeoutSec.
30 <= x <= 1800Optional case-insensitive substring matched against the inbound From address (e.g. 'github.com'). Null/absent matches any sender.
255Natural-language instruction for the AI matcher: which email to wait for and what to extract (e.g. 'wait for the Telnyx password-reset email and return the reset link'). An EU-resident model evaluates each inbound email against it and, on a match, resolves the wait with the extracted value in result. Absent defaults to extracting any verification/OTP/confirmation code.
2000Optional idempotency key; a retried register with the same key returns the same wait.
255Response
Success
A durable await_verification wait. status is pending until it resolves (a code was extracted from an inbound message) or expires (deadline passed / canceled). Resolution outputs (code, from, messageId, resolvedAt) are present only once resolved.
pending, resolved, expired The Agent Passport that registered this wait, when the API key was agent-bound.
The natural-language matcher instruction this wait was registered with.
The value the AI matcher extracted per the instruction (present once resolved) — a code, a link, or a quoted line.
Legacy alias of result, kept for OTP callers (present once resolved).
The From address of the message that resolved the wait.
The inbound message that resolved the wait.