Integrating · Published 2026-11-24 · Updated 2026-11-24 · AgentiSend
Send email from WordPress
Install AgentiSend. It posts every WordPress and WooCommerce message to POST /emails, and saving the key checks the From domain.
Download agentisend-wordpress-1.0.0.zip. The same file is agentisend-wordpress.zip. Every message WordPress sends is posted to POST /emails. /docs/guides/wordpress.
Install
- Download the ZIP linked above. Upload it under Plugins, Add New, Upload Plugin, and activate AgentiSend.
- Open Settings, AgentiSend.
- Paste an API key from
POST /api-keys, and a From name and address on a domain you have verified. - Save.
Nothing is sent to AgentiSend until that save. Activating the plugin does not call the API, and the settings screen does not call it while the key is empty. With no key saved, WordPress sends mail the way it did before.
WooCommerce is not required. When it is active, its order mail uses the same path, because WooCommerce sends through WordPress.
What Save checks
Save calls GET /domains with the key. The From domain has to be on that list as verified, or partially verified, with sending enabled. A key that is not allowed to list domains is checked with POST /emails/preflight instead, to domain-check@example.com, and that call does not send. If the key is refused, or the domain is not verified, the values you just typed are not stored. The sentence on the screen is the message and the fix from the response.
invalid_api_key means "API key is invalid or revoked." The fix is "Create a new key with POST /api-keys; deleted keys cannot be restored."
domain_not_verified means "This sending domain is not verified." The fix is "If it is pending, publish the required records from GET /domains/:id; checks continue for 72 hours. Test now by sending to an address ending in @simulator.agentisend.com. If it is not registered, POST /domains first. If it is failed, GET /domains/:id names the record to fix, then POST /domains/:id/verify to reopen the window."
restricted_api_key means "This API key is restricted to sending only." The fix is "Use a full_access key (POST /api-keys with permission=full_access) for management endpoints." A sending-only key can still be saved when the preflight says the domain is verified.
Send a test
Two buttons on the settings screen each post one email to POST /emails.
- Send to simulator addresses
delivered@simulator.agentisend.com. The message is accepted and reaches nobody. The addresses and what each one does are on Test addresses. - Send to the admin address uses the address in Settings, General.
The notice and the recent list show the message id returned by POST /emails, or the code and the fix when the send is refused. GET /emails/{id} reads that message back.
Recent sends and retry
The settings screen lists the latest sends. A success row shows the message id. A failure row shows the code and the fix. Retry on a failure posts that same message again. The plugin drops its lock on any failure, so the failed row can be tried again. A message that already succeeded is not sent a second time: the same Idempotency-Key returns the original id.
"If AgentiSend refuses a message, send it with the site mailer instead" is off until you turn it on. A refusal still stays in the list.
Remove the plugin
Deactivate, then delete. Deleting removes the saved key, the From address, the recent list and the per-message locks. It does not call the API.
Troubleshooting
| What you see | What to do |
|---|---|
invalid_api_key on save | Create a new key with POST /api-keys. A deleted key cannot be restored. |
missing_api_key | Paste the key into Settings, AgentiSend, and save. The plugin does not send without one. |
domain_not_verified | Publish the records from GET /domains/{id}, or send a test to an address ending in @simulator.agentisend.com while the domain is still pending. The domain records are on Domains and DNS. |
domain_sending_disabled | Turn sending back on with PATCH /domains/{id} and {"capabilities": {"sending": "enabled"}}, or send from another domain. |
The recent row has no id and a fix | The fix is the next step. Retry after you have done it. |