agentlyleads docs
Emails API

Errors

StatusMeaning
400 Bad RequestInvalid body or query, a From that is not a sending identity, an attachment with both or neither of contentBase64 and url, or an asUserEmail that is not a workspace member
401 UnauthorizedMissing, malformed, or revoked API key
403 ForbiddenAPI key lacks the scope: read:emails, write:emails, send:emails, read:communications or write:communications
404 Not FoundNo such email, contact or draft in this workspace
409 ConflictThe email is not a DRAFT (delete, send), or the draft has no recipient address (send)
429 Too Many RequestsRate limit exceeded
502 Bad GatewaySend was attempted and the mailbox provider rejected it; see email.error

Every error body is { "error": "<message>" }.