Skip to main content

Emailing

Portal messaging (emailing) API

Version
2.0.0
Status
Coming soon
Incident
No incident

How to use

Base URL

The base URL depends on your environment:

  • DEV: https://dev-api.accor.com/marketing/v1/emailing
  • REC: https://rec-api.accor.com/marketing/v1/emailing
  • PROD: https://api.accor.com/marketing/v1/emailing

Replace {DOMAIN} in the examples below with your environment domain (dev-api.accor.com, rec-api.accor.com, or api.accor.com).

Authentication

All requests require authentication using a valid API key from a product subscribed to APIM_Portal_Message.

Required headers:

  • apikey: Your API key (set via environment variable $API_KEY)
  • x-origin: Origin identifier (typically portal)
  • x-wcc-traceid: Unique trace ID for request tracking (UUID format)

Setup:

export API_KEY="your-api-key-here"
export DOMAIN="rec-api.accor.com"  # Change to your environment

Get message details

HTTP Method: GET

curl -sS \
  -H "apikey: ${API_KEY}" \
  -H "x-origin: portal" \
  -H "x-wcc-traceid: $(uuidgen)" \
  "https://${DOMAIN}/marketing/v1/emailing"

Send a message

HTTP Method: POST

curl -sS -X POST \
  -H "apikey: ${API_KEY}" \
  -H "Content-Type: application/json" \
  -H "x-origin: portal" \
  -H "x-wcc-traceid: $(uuidgen)" \
  -d '{}' \
  "https://${DOMAIN}/marketing/v1/emailing"

About us

We are far more than a worldwide leader. We are 300,000 hospitality experts placing people at the heart of what we do, and nurturing real passion for service and achievement beyond limits. We take care of millions of guests in our 5,000 addresses.