Communications & Content
Access user communications, documents, and forms. Communications & Content enables developers to retrieve and manage user-facing communications and supporting content, including messages, documents, and forms. It provides access to key artifacts that support user engagement, compliance, and workflow completion across WEX platforms. Use this resource to surface important communications, retrieve required documents, and present forms needed for user interaction and benefit administration.
Core Communication Services
Communications API (Messages)
The Communications API provides a robust framework for managing secure, high-stakes interactions with consumers, acting as the primary engine for claim notifications, account alerts, and tax communications.
-
Inbox Lifecycle Management: Build a full-service messaging center with capabilities to list messages, view detailed body text, and track real-time
unread_countmetrics. -
State Tracking: Support user-driven status updates, including marking communications as read, archiving them to historical views, or favoriting important items.
-
Compliance & Auditing: Record exact
acknowledged_datetimestamps for legal disclosures and plan-specific requirements. -
Historical Access: The system provides a default lookback of three years, which can be refined using specific
start_dateandend_dateparameters.
Document & Form Integration
The platform integrates messaging with vital benefit artifacts to ensure users have the necessary documentation for workflow completion.
Attachment Support: Messages include a documents array containing metadata for linked files. Document Referencing: The API returns unique document_id references. To download the actual file, these IDs must be passed to the dedicated Document or Reporting service. Unified Requirements: All identification fields, including person_id, message_id, and document_id, must follow the UUID v4 standard.
Integration Standards
Scopes & Permissions
Interaction with the Communications & Content suite requires specific OAuth authorizations:
| Scope | Description | Required For |
| read:messages | View message lists and full message content | GET operations |
| write:messages | Update message status (read, favorite, archive) | PUT operations |
Operational Logic
-
Pagination Model: The list endpoint uses an index-based model with a default
page_sizeof 25 (max 100). Use thehas_nextboolean to determine if additional pages are available. -
Idempotency:
PUTrequests are idempotent by design; for example, updating a message toread: truemultiple times consistently results in the same server state. -
Correlation: Including a 36-character
X-Request-Idheader is highly recommended for all write operations to assist in troubleshooting across the ecosystem. -
Time Standards: All timestamps are returned in ISO 8601 format (for example,
2026-04-23T12:00:00Z).
Global Error Reference
| Status Code | Meaning | Common Causes |
| 400 | Bad Request | Invalid UUID format or ID mismatch between Path and Body in PUT requests. |
| 401 | Unauthorized | Missing or expired Bearer token. |
| 404 | Not Found | The message_id or person_id provided does not exist. |
| 500 | Server Error | Internal failure during message processing. |
Endpoints
v2/messages?person_id=person_id&start_date=start_date&end_date=end_date&read=read&archived...
v2/messages/{message_id}
v2/messages/{message_id}