Get a message
GET/v1/members/me/messages/{id}
Returns one message by id. Call it when the guest taps a push with inapp: "1", using the push's message_id. The guest asked for this message, so it's returned even if they already saw a full-screen message today.
Permissions: Member token.
Path parameters#
idstring (uuid)RequiredThemessage_idfrom the push.
The response is a message object, the same as above.
Response fields#
Returns 200 with Message
idstring (uuid)Same asmessage_idin the push that carried it.layoutstringfull_image(the image fills the screen and carries the words) orimage_and_text(image on top, then title, body and buttons).One offull_image,image_and_textimage_urlstring (uri)HTTPS image.titlestringNullableHeading. Forfull_image, use it as the image's accessibility label.bodystringNullableText under the title.primaryMessageButtonThe main button:label,actionandurl.actionisopen_screen(a link in your scheme or on your link domain),open_url(https, open in a browser) orclose(urlisnull).Show attributesMessageButton
labelstringactionstringOne ofopen_screen,open_url,closeurlstringNullable
- Second button, same shape, or
null. offerobjectNullableAn offer to show with the message, ornull.codeis a promo code to show;wallet_item_idis an offer already in the member's wallet;textis one line to show next to it.Show attributesHide attributes
codestringNullablewallet_item_idstring (uuid)Nullabletextstring
displayobjectnever_during: screens where the message must not appear. Always includescheckout.Show attributesHide attributes
never_duringarray of string
created_atstring (date-time)When unPLUG created it.expires_atstring (date-time)NullableDon't show it after this.
Error descriptions#
404Not found
not_found
No such message for this member, or it has expired. Open the push's deep_link instead, or your home screen.
401Unauthorized
token_expired
Get a new member token and retry.
Any endpoint can also return the common errors.