GET
/api/public/v1/emails/{emailId}

Get an email

One message. Readable only if one of its two addresses belongs to the token’s employee.

Required scope

The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Settings → Company → API, and to a teammate under Employee → Permissions.

email:messages:read

Path Parameters

NameTypeRequiredDescription
emailIdstringRequiredEmail ID.
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/emails/{emailId}" \
  -H "Authorization: Bearer your_access_token"
200Example response
json
{
  "message": "Email retrieved successfully!",
  "content": {
    "email": {
      "id": "eml_3390",
      "from": "sam@acme.example",
      "to": "ap@northwind.example",
      "subject": "Invoice 1042",
      "text": "Attached is the invoice for phase one.",
      "html": null,
      "direction": "OUTBOUND",
      "threadId": "eml_3390",
      "unread": false,
      "starred": false,
      "folder": null,
      "accountId": "acc_7712",
      "createdAt": "2026-08-22T15:04:00.000Z",
      "updatedAt": "2026-08-22T15:04:00.000Z"
    }
  }
}
403Example response
json
{
  "message": "That email is not in one of your mailboxes."
}

In the console

The same thing done by hand, for anyone comparing the API against the screen they already use.

Email
/email/inbox
  1. Open a message from the list.