Logo
Account Management API Documentation

Add a message

POST {{baseUrl}}/v1/messages

Adds a message into the system.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status Created

{ "id": "123", "to": "john.doe@example.com", "from": "jane.doe@example.com", "subject": "Hello there!", "body": "This is the message", "timestamp": "2023-03-01T10:30:00Z" }



Curl
curl -X POST 'https://852212bf-a52d-4922-a28f-94c54a5faf23.mock.pstmn.io/v1/messages' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"to":"john.doe@example.com","from":"jane.doe@example.com","subject":"Hello there!","body":"This is the message"}'

ENDPOINTS