Pular para o conteúdo principal

Register External Message Event - Analytics

POST 

/rx-api/analytics/v1/external/messages/events

Sending the events is optional. If you do not send them, the analytics are not shown in the CRM section.

Report one provider result for one delivery. Call this once per item, after you have returned 202 to Send Message Relay Proxy. Do not call it while producing that 202.

Send channel, playerId, and playerDeliverId at the root. channel is the channel of the send item. playerId is the playerId of that item. playerDeliverId is the delivery id from the send item. Do not wrap them in payload. Do not send the send-request content or contact.

Pick the channel first, then the event type for that channel. Each variant lists only the properties for that pair.

Email accepts delivered, bounce, open, and click. SMS accepts delivered, undelivered, and click. Do not send open for SMS. PEP counts a delivered SMS as an open. On-site, web push, in-app push, and rich inbox accept delivered, open, and click.

Do not send processed, sent, queued, click_email, or unsubscribe. The send is already recorded when you return 202. A click on every channel, including email, is click. An unsubscribe is POST /rx-api/analytics/v1/register/event/unsubscribe. Those values are not accepted here. PEP returns 400.

A second POST with the same playerDeliverId, the same eventType, and the same occurredAt is also 204. PEP does not apply that duplicate again.

Request​

Responses​

No content. PEP accepted the event. The body is empty. A duplicate of the same playerDeliverId, eventType, and occurredAt is also 204. Do not retry.