11 operations. All areas
- POST /v1/documents/{id}/email
- POST /v1/estimates/{id}/email
- GET /v1/email/outbox
- GET /v1/email/outbox/{id}
- POST /v1/email/outbox/{id}/approve
- POST /v1/email/outbox/{id}/reject
- POST /v1/email/outbox/{id}/cancel
- POST /v1/email/outbox/{id}/retry
- GET /v1/email/settings
- POST /v1/email/settings
- GET /v1/email/suppressions
POST/v1/documents/{id}/email
Email an invoice, credit memo or sales receipt to the customer as a PDF (from noreply@evenbead.com with your company's name; Reply-To your address). An agent over its policy creates a proposal instead.
- Operation
emailDocument - Scope: propose
- Write: needs Idempotency-Key (or dry_run)
- Parameters
idpath, string, required
- Request body
tostring Recipient (default: the customer's email on file). Anything else makes an agent's send a proposal.to_namestringccarray of stringmessagestring A short note shown above the document details.dry_runboolean Preview the recipients, subject, attachment and policy verdict without queuing.
- Responses
200Dry run: the preview and the policy verdict (object)201Email queued (or, for an agent over its policy, waiting for approval: status pending_approval) (object)- Errors
400,401,403,404,409,422,429,500(Error:error.type,message)
POST/v1/estimates/{id}/email
Email an estimate to the customer as a PDF. Same governance as emailDocument.
- Operation
emailEstimate - Scope: propose
- Write: needs Idempotency-Key (or dry_run)
- Parameters
idpath, string, required
- Request body
tostring Recipient (default: the customer's email on file). Anything else makes an agent's send a proposal.to_namestringccarray of stringmessagestring A short note shown above the document details.dry_runboolean Preview the recipients, subject, attachment and policy verdict without queuing.
- Responses
200Dry run: the preview and the policy verdict (object)201Email queued (or, for an agent over its policy, waiting for approval: status pending_approval) (object)- Errors
400,401,403,404,409,422,429,500(Error:error.type,message)
GET/v1/email/outbox
This company's emails, newest first (documents, reminders, security notices), with delivery status
- Operation
listEmails - Scope: read
- Read
- Parameters
statusquery, "pending_approval" | "queued" | "sending" | "sent" | "failed" | "suppressed" | "rejected" | "cancelled"limitquery, integer
- Responses
200Emails (object)- Errors
400,401,403,429,500(Error:error.type,message)
GET/v1/email/outbox/{id}
One email with its delivery status
- Operation
getEmail - Scope: read
- Read
- Parameters
idpath, string, required
- Responses
200Email (object)- Errors
400,401,403,404,429,500(Error:error.type,message)
POST/v1/email/outbox/{id}/approve
Approve an agent's email that waits for approval (approve scope; never your own); it is queued for sending
- Operation
approveEmail - Scope: approve
- Write: needs Idempotency-Key (or dry_run)
- Parameters
idpath, string, required
- Request body
reasonstring
- Responses
200Approved and queued (object)- Errors
400,401,403,404,409,422,429,500(Error:error.type,message)
POST/v1/email/outbox/{id}/reject
Reject an agent's email that waits for approval, with a reason (approve scope; never your own)
- Operation
rejectEmail - Scope: approve
- Write: needs Idempotency-Key (or dry_run)
- Parameters
idpath, string, required
- Request body
reasonstring, required
- Responses
200Rejected (object)- Errors
400,401,403,404,409,422,429,500(Error:error.type,message)
POST/v1/email/outbox/{id}/cancel
Cancel an email that has not been sent yet (its requester, or an admin)
- Operation
cancelEmail - Scope: propose
- Write: needs Idempotency-Key (or dry_run)
- Parameters
idpath, string, required
- Request body
reasonstring
- Responses
200Cancelled (object)- Errors
400,401,403,404,409,422,429,500(Error:error.type,message)
POST/v1/email/outbox/{id}/retry
Queue a failed email again (admin scope)
- Operation
retryEmail - Scope: admin
- Write: needs Idempotency-Key (or dry_run)
- Parameters
idpath, string, required
- Request body
reasonstring
- Responses
200Queued again (object)- Errors
400,401,403,404,409,422,429,500(Error:error.type,message)
GET/v1/email/settings
This company's email settings: Reply-To, sender name, security-notice address, payment reminders
- Operation
getEmailSettings - Scope: read
- Read
- Responses
200Settings (object)- Errors
400,401,403,429,500(Error:error.type,message)
POST/v1/email/settings
Set Reply-To, sender name, the security-notice address and payment reminders (off by default; days relative to the due date, e.g. [3, 10, 30]). Admin scope.
- Operation
updateEmailSettings - Scope: admin
- Write: sets a value, no Idempotency-Key needed
- Request body
reply_tostring | null An email address.display_namestring | nullsecurity_notices_tostring | null An email address.reminders_enabledbooleanreminder_daysarray of integer
- Responses
200Settings (object)- Errors
400,401,403,409,422,429,500(Error:error.type,message)
GET/v1/email/suppressions
Addresses this company's emails are not sent to (unsubscribed from reminders, or bounced)
- Operation
listEmailSuppressions - Scope: read
- Read
- Responses
200Suppressions (object)- Errors
400,401,403,429,500(Error:error.type,message)