Skip to content

Questions · Published 2026-11-28 · Updated 2026-11-28 · AgentiSend

AgentiSend API docs

AgentiSend API docs open on a curl to POST /emails at https://api.agentisend.com, then list every endpoint group in the reference.

The base URL is https://api.agentisend.com. There are 30 groups and 283 operations. Each operation has its own page, linked from the group table and from /docs.

Send with curl

POST /emails creates one message. GET /emails/{id} returns it. GET /emails/{id}/events returns what happened to it. The request and the response the reference generates:

curl -sS -X POST https://api.agentisend.com/emails \
  -H "Authorization: Bearer $AGENTISEND_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"from":"billing@yourdomain.com","to":"delivered@simulator.agentisend.com","subject":"Your receipt","text":"Thanks — the details are attached."}'
201
{
  "id": "9c8f8f0e-3d1a-4d3f-9a1e-2b7c1a0f5e42",
  "simulated": true,
  "warnings": []
}
Response

The key in that header is created with POST /api-keys. A sending key can send and read mail. A full-access key can manage the account. Creating one is on API keys.

Auth, idempotency, lists

Send Authorization: Bearer and the key. Send Idempotency-Key on a mutating call. The same key and the same body replay the first response, and the key is kept 7 days. A list returns object, data, has_more and next_cursor, and asks for at most 100 rows. A new key allows 600 requests in 60 seconds. The longer page for each of those is API conventions.

Every response carries x-request-id. Quote it when you write to hello@agentisend.com about one call.

Endpoint groups

The groups are the tags in /openapi.json, and the counts are the operations under each tag. The link on a row is one call in that group.

Whether inbound mail is offered is the inbound line on the status page.

SDKs

One client, one send. The install lines and a worked file for each language are on SDKs.

LanguageInstallGuide
Nodenpm install agentisendNode.js
Pythonpip install agentisendPython
PHPcomposer require agentisend/agentisend-phpPHP
Gothe module on the Go guideGo

@agentisend/sdk-node is the same code as the agentisend package. The CLI sends with npx @agentisend/sdk-node. The MCP server is https://api.agentisend.com/mcp.

Errors

A refusal carries code, message, fix and docs_url. retryable is true only when sending the same request later can succeed. This is the body for a field error:

{
  "error": {
    "code": "validation_error",
    "message": "Error in one or more fields.",
    "fix": "Correct the fields listed in the error details and retry the request.",
    "docs_url": "https://agentisend.com/docs/errors#validation_error",
    "retryable": false
  }
}

The catalogue lists all 122 codes, each with that fix: Errors.

FAQ

What URL do I curl?

https://api.agentisend.com, then the path. The send is POST /emails. The first code block on this page is a full curl, including the Authorization header.

How do I authenticate?

Create a key, then send Authorization: Bearer and that key. The conventions page is the rest of the header rules, including Idempotency-Key.

Where is every endpoint?

The group table on this page names every tag and links one call in it. The docs index links every operation. The same list is the OpenAPI document at /openapi.json.

Which SDK matches this HTTP API?

Node, Python, PHP and Go, from the table above. Each one calls this HTTP API. The SDK guide has the install and one send per language.

What is in an error?

A code, a message, and a fix that names what to do next. The field-error sample on this page is one of them. The error catalogue is the rest.

Next