Clienvy API documentation

The mails the organization sent in the last month (ticket replies, invoices, proposals, invites and the like), one per address, and whether they arrived. Marketing mail keeps its results with its mailing.


List mail deliveries

GET
https://api.clienvy.io/employee/v1
/mail-deliveries

Returns the mails sent in the last month, one per address, newest first.

List mail deliveries › query Parameters

search
​string

Only the mails whose subject, address or name contains this text.

status
​string

Only the mails in this status: queued, sent, delivered or failed.

page
​integer

Page number of the paginated result set.

per_page
​integer

Number of items per page. Defaults to the endpoint's own page size; capped at 500.

List mail deliveries › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

List mail deliveries › Responses

Array of MailDeliveryListResource

​object

Get a mail delivery

GET
https://api.clienvy.io/employee/v1
/mail-deliveries/{mailDelivery}

Returns one mail with its HTML as it went out, its attachments and whether it arrived.

Get a mail delivery › path Parameters

mailDelivery
​string · uuid · required

The mail delivery UUID

Get a mail delivery › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Get a mail delivery › Responses

MailDeliveryResource

id
​string · uuid
email
​string
name
​string | null
role
​string

to, cc or bcc.

subject
​string
status
​string

queued, sent (taken by the provider), delivered (accepted by the receiving server) or failed.

failure_reason
​string | null

Why it did not arrive, as the receiving server or the provider said.

complained_at
​string | null · date-time

When the recipient marked it as spam.

source_type
​string | null

What it was sent for, such as ticket_outbound_mail, invoice, deal, contact, employee, employee_invite, mail_identity (a test mail) or marketing_mailing (a test mail).

source_id
​string | null
created_at
​string · date-time
​MailIdentityReferenceResource | null

The address it was sent from. Empty when that address is gone.

The complete HTML as it went out, as a file to open like an attachment.

The files it had attached, each with a link to open it.

provider_message_id
​string | null

The id the provider gave it, the same for every address of the mail. Empty when it could not be handed over.

sent_at
​string | null · date-time

When the provider took it. Empty when it could not be handed over.

delivered_at
​string | null · date-time
failed_at
​string | null · date-time