V3 REFERENCE Messages

/messagestate

Message state reference.

List messagestate resources available for this apikey, use a GET request. Alternatively, you may want to add one or more filters.

# list messagestate resources

curl -s -X GET \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/messagestate
Properties
Name Description
ID Unique numerical ID for this object.
  • Read Only
  • [ Type Int64 ]
RelatedTo Reason for this state.
  • [ Type AnsiString ]

Allowed values:
  • recipient
  • domain
  • spam
  • system
  • mailjet
State Description of the message state.
  • Mandatory
  • [ Type AnsiString ]
Filters

No filters are available for this resource.

Access a given messagestate resource, use a GET request, providing the messagestate's ID value.

# access the messagestate resource identified by $ID

curl -s -X GET \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/messagestate/$ID

    
    
Properties
Name Description
ID Unique numerical ID for this object.
  • Read Only
  • [ Type Int64 ]
RelatedTo Reason for this state.
  • [ Type AnsiString ]

Allowed values:
  • recipient
  • domain
  • spam
  • system
  • mailjet
State Description of the message state.
  • Mandatory
  • [ Type AnsiString ]