- Overview
- Reference
- API Structure
- Public API
- Introduction
- Loyalty Club
- Member
- Offers
- Rewards
- Games
- CMS Content
- Management API
- Introduction
- Core
- Applications
- Branding
- Privacy Policy
- Cookie Policy
- Terms
- Domains
- Domain Email Configs
- Domain Web Configs
- TLS Certificates
- Links
- Fonts
- Subunits
- Subunits Scopes
- Contacts
- Translations
- Promotions Policy
- Tracker
- Social Logins
- Billing
- SMS Sender Identities
- Member Authentication Configuration
- Members
- Listing Members
- Member Profile
- Public Info
- Person ID
- Cars
- Children
- Groups
- Programs
- Benefits
- Offers
- Rewards
- Export
- Misc
- Create MemberPOST
- Update MemberPUT
- Validate MemberPOST
- Register Member App TokenPOST
- Show MemberGET
- Show Member By MSISDNGET
- Show Member By EmailGET
- Show Member By Encrypted IDGET
- Show Member By User IDGET
- Destroy MemberDELETE
- Imports
- Groups
- Programs
- Benefits
- Cars
- Webhooks
- Misc
- Receipts
- Messages
- Stores
- Offers
- Rewards
- Triggerer
- CMS
- Introduction
- Pages
- Components
- Website
- Website Domains
- Venue Info
- Landing Pages
- Landing Page Templates
- Articles
- Events
- Events Groups
- Job Postings
- Press Releases
- Tags
- Service Messages
- Content Prototypes
- ContentPrototype Model
- List Content Prototypes
- Show Content Prototype
- Create Content Prototype
- Update Content Prototype
- Destroy Content Prototype
- List Organization Content Prototypes
- Show Organization Content Prototype
- Create Organization Content Prototype
- Update Organization Content Prototype
- Destroy Organization Content Prototype
- Mixed Content
- Attachments
- Events
- Games
- Scraper
- Files
- Receipts
- Users API
- Operations API
- Introduction
- Manager API
- Tenant API
- Messaging API
- Data API
- ML API
- Introduction
- Predict Sending KPI v1
- Explain Sending KPI Prediction v1
- Predict Sending KPI In Date Range v1
- Predict Sending Popularity v2
- Predict Sending Text Popularity v2
- Predict Sending Time Series Popularity v2
- Explain Sending Popularity Prediction v2
- Explain Sending Text Popularity Prediction v2
- Explain Sending Time Series Popularity Prediction v2
- Recommend sending time v2
- Detect Receipt Fraud
- Generate Image
- Generate Text
- Generate Sending Text
- (Draft) Reporting API
- Other
Show Member Messages History
Pending
GET
https://api.mpc.dev.placewise.com/v1/members/me/messages_history
API Permit:BL:Api:Members:OAuth:MessagesHistory:List
API Context:Loyalty Club
Authorizations:TokenMember
Message model#
Key | Message type | Description | Required? | Type |
---|---|---|---|---|
id | all | Message ID | yes | string |
sending_id | all | MPC Sending ID | yes | string |
type | all | yes | enum: ["sms", "email", "push"] | |
created_at | all | Time when the message has been sent | yes | ISO 8601 DateTime |
content | all | Message content. Note: HTML is stripped from Email messages. | yes | string |
subject | email, push | Email & push subject/title | no | string |
sender | sms | SMS sender (may be string or MSISDN) | no | string |
msisdn | sms | MSISDN the message has been sent to | no | string |
from_name | Email sender name | no | string | |
from_address | Email sender address | no | string | |
Address the message has been sent to | no | string | ||
url | push | A link contained by the Push message | no | string |
image | push | An image contained by the Push message | no | string |
data | push | Additional data contained by the Push message | no | object |
app_token | push | App token the message has been sent to | no | string |
Query Parameters#
Parameter | Type | Required? | Default | Description |
---|---|---|---|---|
per_page | integer | no | 100 | Number of results to be returned per request (100 is the maximum) |
page_no | integer | no | 1 | Number of results page |
types | String[] | no | null | Message types that should be returned - available values: ["sms", "email", "push"] |
distinct | boolean | no | false | When true, messages will be returned uniquely per sending_id |
Example#
{
"messages": [
{
"id": "cHVzaDo2MDc2",
"sending_id": "4281",
"created_at": "2022-03-03T08:35:53.807Z",
"type": "push",
"content": "Hello world",
"subject": "Hi",
"url": "https://example.com",
"image": "https://example.com/image.png",
"data": { "sending_id": 13 },
"app_token": "f3kqGU3DRlKrccLKsN6d0A:APA91bFa8AMptK5ETnRfx"
},
{
"id": "ZW1haWw6NjY4Nzk=",
"sending_id": "85901",
"created_at": "2022-03-03T08:35:29.664Z",
"type": "email",
"content": "Hello world",
"subject": "Hi",
"from_name": "Placewise NO.",
"from_address": "no_reply@placewise.com",
"email": "member@placewise.com"
},
{
"id": "bXBfc21zOjQ2NjE2MDM5",
"sending_id": "3391",
"created_at": "2022-03-03T09:35:26.114+01:00",
"type": "sms",
"content": "Hello world",
"sender": "Infinity",
"msisdn": "48886645106"
}
],
"pagination_info": {} // Pagination info - see 'Pagination info"
}
Request
Header Params
X-Loyalty-Club-Slug
stringÂ
required
Default:
{{LOYALTY_CLUB_SLUG}}
X-Client-Authorization
stringÂ
optional
Default:
{{API_TOKEN}}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.mpc.dev.placewise.com/v1/members/me/messages_history' \
--header 'X-User-Agent;' \
--header 'X-Product-Name;' \
--header 'X-Loyalty-Club-Slug;' \
--header 'X-Customer;' \
--header 'Authorization;' \
--header 'X-Client-Authorization: '
Responses
🟢200Success
application/json
Body
object {0}
Example
{}