Search by

agentisend / agentisend-php

fortuneflick

AgentiSend PHP client: transactional email API for AI agents, with budgets, a free preflight and refusals that name the fix.

v0.1.0 2026-09-27 16:59 UTC

This package is auto-updated.

Last update: 2026-09-27 18:31:05 UTC


README

AgentiSend

AgentiSend

agentisend-php

Generated from openapi.json. Do not edit src/Client.php — run pnpm sdk:generate.

$client = new AgentiSend\Client(); // reads AGENTISEND_API_KEY
$sent = $client->postEmails([
    'from' => 'Acme <hello@acme.com>', 'to' => ['you@example.com'],
    'subject' => 'Hi', 'text' => 'Hello',
]);

Install with Composer:

composer require agentisend/agentisend-php

No dependencies beyond curl and json, which every PHP install has. Laravel users can wrap it; nothing here assumes a framework.

Refusals throw AgentiSend\ApiError with code, fix, docsUrl, requestId and retryAfterSeconds. retryable() is true only for 429 and 5xx.