Test an agent's forwarding
Requires scope: manage. For an agent in forwarding mode: sends one test email from mails.ai to the agent's own address. When your mail service forwards it to the agent's forwarding_address, it is dropped there (the agent never sees it) and forwarding_status becomes verified; if it has not arrived 15 minutes after it was sent, failing. Answers the agent at once: poll GET /v1/agents/{id}. While a test is on its way, calling again sends nothing more; at most 10 tests an hour per agent. A test key gets 403 live_mode_required, since this sends a real email. A test the email service does not take changes nothing and answers as a send does: 503 upstream_unavailable with Retry-After when it is not taking more mail, 422 recipient_suppressed when it refused the agent's address, else 502 upstream_error.
Request
- Base URL: https://api.mails.ai
- URL: https://api.mails.ai/v1/agents/{id}/forwarding/verify
- Auth: HTTP bearer
Path parameters
Agent id or name.
Response
The agent, with forwarding_test_sent_at set.
Changes
No recorded changes to this operation across all 1 revision of this API.