Wex Health and Benefits APIs

Sections

Theme switcher

Get Messages

Header Parameters

X-Request-Idstring

Optional correlation ID associated with the request, comprised of alphanumeric or hyphen characters up to 36 characters in length.

Empty value:
True
Authorizationstring

Query Parameters

person_idstring
start_datestring

The start of the date range. Default is 3 years ago.

end_datestring

The end of the date range. Default is now.

readboolean

Filter for read status of messages.

archivedboolean

Filter for archived status of messages.

favoriteboolean

Filter for favorite status of messages.

page_sizeinteger

The number of records returned at once. Can be from 1-100, default is 25.

Minimum
1
Maximum
100
indexinteger

The current page index of the message records. Index starts at 0.

Maximum
2147483647

Response

200
Object

OK

Response Attributes

indexinteger

The current page number in the paginated results.

page_sizeinteger

The number of items returned per page in the results.

has_nextboolean

Indicates if there are additional pages of results.

unread_countinteger

The total count of unread messages for the person.

itemsarray | null

A list of messages.

Show child attributes

400
Object

Bad Request

Response Attributes

typestring | null
titlestring | null
statusinteger | null
detailstring | null
instancestring | null
invalid_paramsarray | null

List of invalid parameters that caused the validation error.

Max items
10

Show child attributes

errorsobject

Human-readable validation error messages keyed by field name. Each key maps to one or more error message strings.

validation_errorsobject

Field-level validation errors keyed by field name. Each key maps to one or more structured error details.

401
Object

Unauthorized

Response Attributes

typestring | null
titlestring | null
statusinteger | null
detailstring | null
instancestring | null
invalid_paramsarray | null

List of invalid parameters that caused the validation error.

Max items
10

Show child attributes

errorsobject

Human-readable validation error messages keyed by field name. Each key maps to one or more error message strings.

validation_errorsobject

Field-level validation errors keyed by field name. Each key maps to one or more structured error details.

404
Object

Not Found

Response Attributes

typestring | null
titlestring | null
statusinteger | null
detailstring | null
instancestring | null
invalid_paramsarray | null

List of invalid parameters that caused the validation error.

Max items
10

Show child attributes

errorsobject

Human-readable validation error messages keyed by field name. Each key maps to one or more error message strings.

validation_errorsobject

Field-level validation errors keyed by field name. Each key maps to one or more structured error details.

500
Object

Internal Server Error

default
Object

Unexpected error

Response Attributes

typestring | null
titlestring | null
statusinteger | null
detailstring | null
instancestring | null
invalid_paramsarray | null

List of invalid parameters that caused the validation error.

Max items
10

Show child attributes

errorsobject

Human-readable validation error messages keyed by field name. Each key maps to one or more error message strings.

validation_errorsobject

Field-level validation errors keyed by field name. Each key maps to one or more structured error details.

Was this section helpful?

GET

/

Select
1

Response

Was this section helpful?