Download OpenAPI specification:Download
Documentation and interface contract for the communication API, the API responsible for sending emails.
Send an email.
| X-Correlation-ID | string Correlation identifier |
| id | string Technical and unique id generated automatically that identifies a mail object. |
| sendingDate | string <date-time> Sending date filled in automatically at the time of sending (Timestamp in ISO 8601 format) |
| receiversId | Array of strings The technical ids of the recipients. |
| publicationId | string Technical id of a listing. |
| reservationId | string Technical id of a booking. |
| productType | string Enum: "TRIP" "HOST" Product type (Trip, host ...). |
| organizationId | string Technical id of an organization. |
| establishmentId | string Technical id of an establishment. |
| category | string Enum: "PROFILE_COMPLETION_REQUEST" "ORGANIZATION_CREATION_REQUEST" "ESTABLISHMENT_CREATION_REQUEST" "ORGANIZATION_INFO_COMPLETION_REQUEST" "ESTABLISHMENT_INFO_COMPLETION_REQUEST" "USER_ACCOUNT_ACTIVATION_CONFIRMATION" "ORGANIZATION_ACTIVATION_CONFIRMATION" "ESTABLISHMENT_ACTIVATION_CONFIRMATION" "TRIP_DRAFT_PUBLICATION_REQUEST" "TRIP_PUBLICATION_NOTIFICATION" "TRIP_RESPONSIBLE_DESIGNATION_NOTIFICATION" "PARTNER_TRIP_BOOKING_NOTIFICATION" "CLIENT_TRIP_BOOKING_NOTIFICATION" "PARTNER_BOOKING_CANCELLATION_NOTIFICATION" "CLIENT_BOOKING_CANCELLATION_NOTIFICATION" "PARTNER_PAYMENT_NOTIFICATION" "CLIENT_PAYMENT_NOTIFICATION" "TRIP_REMINDER_NOTIFICATION" Mail category. |
{- "id": "string",
- "sendingDate": "2019-08-24T14:15:22Z",
- "receiversId": [
- "string"
], - "publicationId": "string",
- "reservationId": "string",
- "productType": "TRIP",
- "organizationId": "string",
- "establishmentId": "string",
- "category": "PROFILE_COMPLETION_REQUEST"
}{- "id": "string",
- "sendingDate": "2019-08-24T14:15:22Z",
- "receiversId": [
- "string"
], - "publicationId": "string",
- "reservationId": "string",
- "productType": "TRIP",
- "organizationId": "string",
- "establishmentId": "string",
- "category": "PROFILE_COMPLETION_REQUEST",
- "links": [
- {
- "href": "string",
- "rel": "string",
- "title": "string",
- "mediaType": "string",
- "method": "string",
- "encType": "application/json"
}
]
}Contact us.
| X-Correlation-ID | string Correlation identifier |
| id | string Technical and unique id generated automatically that identifies a contact object. |
| conversationId | string Technical id assigned to the first message in order to link other messages in case of a reply. |
| sendingDate | string <date-time> Sending date filled in automatically at the time of sending (Timestamp in ISO 8601 format) |
| receiverId | string The technical id of the recipient. |
| transmitterId | string The technical id of the sender if connected. |
| name | string Name of the client who wants to contact us. |
string Client's email address. | |
| object | string The subject of the message. |
| message | string Client's message. |
| required | any |
{- "id": "string",
- "conversationId": "string",
- "sendingDate": "2019-08-24T14:15:22Z",
- "receiverId": "string",
- "transmitterId": "string",
- "name": "string",
- "mail": "string",
- "object": "string",
- "message": "string",
- "required": null
}{- "id": "string",
- "conversationId": "string",
- "sendingDate": "2019-08-24T14:15:22Z",
- "receiverId": "string",
- "transmitterId": "string",
- "name": "string",
- "mail": "string",
- "object": "string",
- "message": "string",
- "required": null,
- "links": [
- {
- "href": "string",
- "rel": "string",
- "title": "string",
- "mediaType": "string",
- "method": "string",
- "encType": "application/json"
}
]
}List contact messages.
| contact_id required | string Technical id of the contact message. |
| currentPage | integer >= 0 Current page number. Do not send this attribute on the first call. |
| sizePage | integer >= 3 Number of elements per page. |
| X-Correlation-ID | string Correlation identifier |
{- "totalElements": 0,
- "totalPages": 0,
- "currentPage": 0,
- "content": [
- {
- "id": "string",
- "conversationId": "string",
- "sendingDate": "2019-08-24T14:15:22Z",
- "receiverId": "string",
- "transmitterId": "string",
- "name": "string",
- "mail": "string",
- "object": "string",
- "message": "string",
- "required": null
}
]
}Get a contact message.
| contact_id required | string Technical id of the contact message. |
| X-Correlation-ID | string Correlation identifier |
{- "id": "string",
- "conversationId": "string",
- "sendingDate": "2019-08-24T14:15:22Z",
- "receiverId": "string",
- "transmitterId": "string",
- "name": "string",
- "mail": "string",
- "object": "string",
- "message": "string",
- "required": null,
- "links": [
- {
- "href": "string",
- "rel": "string",
- "title": "string",
- "mediaType": "string",
- "method": "string",
- "encType": "application/json"
}
]
}Create a conversation.
| X-Correlation-ID | string Correlation identifier |
| id | string <uuid> |
| tripPublicationId required | string |
| tripReference required | string |
| establishmentId required | string |
| customerId required | string |
| assignedAgentId | string or null The id of the agent currently responsible for the conversation. |
| participants | Array of strings List of IDs of users involved (client + agents). |
object (message) Represents a message exchanged in a conversation. | |
| status | string Enum: "OPEN" "CLOSED" "ARCHIVED" Status of the conversation (open, closed, archived) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "tripPublicationId": "string",
- "tripReference": "string",
- "establishmentId": "string",
- "customerId": "string",
- "assignedAgentId": "string",
- "participants": [
- "string"
], - "lastMessage": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "conversationId": "string",
- "sendingDate": "2019-08-24T14:15:22Z",
- "transmitterId": "string",
- "receiverId": "string",
- "transmitterType": "CUSTOMER",
- "content": "string",
- "contentType": "TEXT",
- "status": "SENT",
- "receivedDate": "2019-08-24T14:15:22Z"
}, - "status": "OPEN"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "tripPublicationId": "string",
- "tripReference": "string",
- "establishmentId": "string",
- "customerId": "string",
- "assignedAgentId": "string",
- "participants": [
- "string"
], - "lastMessage": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "conversationId": "string",
- "sendingDate": "2019-08-24T14:15:22Z",
- "transmitterId": "string",
- "receiverId": "string",
- "transmitterType": "CUSTOMER",
- "content": "string",
- "contentType": "TEXT",
- "status": "SENT",
- "receivedDate": "2019-08-24T14:15:22Z"
}, - "status": "OPEN",
- "links": [
- {
- "href": "string",
- "rel": "string",
- "title": "string",
- "mediaType": "string",
- "method": "string",
- "encType": "application/json"
}
]
}List conversations.
| establishmentId | string Technical id of the establishment concerned by the conversation. |
| customerId | string Id of the user who created the conversation. |
| assignedAgentId | string Id of the agent managing the conversation. |
| currentPage | integer >= 0 Current page number. Do not send this attribute on the first call. |
| sizePage | integer >= 3 Number of elements per page. |
| X-Correlation-ID | string Correlation identifier |
{- "totalElements": 0,
- "totalPages": 0,
- "currentPage": 0,
- "content": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "tripPublicationId": "string",
- "tripReference": "string",
- "establishmentId": "string",
- "customerId": "string",
- "assignedAgentId": "string",
- "participants": [
- "string"
], - "lastMessage": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "conversationId": "string",
- "sendingDate": "2019-08-24T14:15:22Z",
- "transmitterId": "string",
- "receiverId": "string",
- "transmitterType": "CUSTOMER",
- "content": "string",
- "contentType": "TEXT",
- "status": "SENT",
- "receivedDate": "2019-08-24T14:15:22Z"
}, - "status": "OPEN"
}
]
}Retrieve a conversation.
| conversation-id required | string Technical id of the conversation. |
| X-Correlation-ID | string Correlation identifier |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "tripPublicationId": "string",
- "tripReference": "string",
- "establishmentId": "string",
- "customerId": "string",
- "assignedAgentId": "string",
- "participants": [
- "string"
], - "lastMessage": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "conversationId": "string",
- "sendingDate": "2019-08-24T14:15:22Z",
- "transmitterId": "string",
- "receiverId": "string",
- "transmitterType": "CUSTOMER",
- "content": "string",
- "contentType": "TEXT",
- "status": "SENT",
- "receivedDate": "2019-08-24T14:15:22Z"
}, - "status": "OPEN",
- "links": [
- {
- "href": "string",
- "rel": "string",
- "title": "string",
- "mediaType": "string",
- "method": "string",
- "encType": "application/json"
}
]
}Update a conversation.
| conversation-id required | string Technical id of the conversation. |
| X-Correlation-ID | string Correlation identifier |
| id | string <uuid> |
| tripPublicationId required | string |
| tripReference required | string |
| establishmentId required | string |
| customerId required | string |
| assignedAgentId | string or null The id of the agent currently responsible for the conversation. |
| participants | Array of strings List of IDs of users involved (client + agents). |
object (message) Represents a message exchanged in a conversation. | |
| status | string Enum: "OPEN" "CLOSED" "ARCHIVED" Status of the conversation (open, closed, archived) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "tripPublicationId": "string",
- "tripReference": "string",
- "establishmentId": "string",
- "customerId": "string",
- "assignedAgentId": "string",
- "participants": [
- "string"
], - "lastMessage": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "conversationId": "string",
- "sendingDate": "2019-08-24T14:15:22Z",
- "transmitterId": "string",
- "receiverId": "string",
- "transmitterType": "CUSTOMER",
- "content": "string",
- "contentType": "TEXT",
- "status": "SENT",
- "receivedDate": "2019-08-24T14:15:22Z"
}, - "status": "OPEN"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "tripPublicationId": "string",
- "tripReference": "string",
- "establishmentId": "string",
- "customerId": "string",
- "assignedAgentId": "string",
- "participants": [
- "string"
], - "lastMessage": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "conversationId": "string",
- "sendingDate": "2019-08-24T14:15:22Z",
- "transmitterId": "string",
- "receiverId": "string",
- "transmitterType": "CUSTOMER",
- "content": "string",
- "contentType": "TEXT",
- "status": "SENT",
- "receivedDate": "2019-08-24T14:15:22Z"
}, - "status": "OPEN",
- "links": [
- {
- "href": "string",
- "rel": "string",
- "title": "string",
- "mediaType": "string",
- "method": "string",
- "encType": "application/json"
}
]
}Update the agent assigned to a conversation.
| conversation-id required | string Technical id of the conversation. |
| assignedAgentId required | string Identifier of the agent assigned to the conversation. |
| X-Correlation-ID | string Correlation identifier |
{- "name": "string",
- "debug_id": "string",
- "message": "string",
- "information_link": "string",
- "details": [
- {
- "field": "string",
- "value": "string",
- "location": "string",
- "issue": "string"
}
], - "links": [
- {
- "href": "string",
- "rel": "string",
- "title": "string",
- "mediaType": "string",
- "method": "string",
- "encType": "application/json"
}
]
}Retrieve the messages of a conversation.
| conversation-id required | string Technical id of the conversation. |
| currentPage | integer >= 0 Current page number. Do not send this attribute on the first call. |
| sizePage | integer >= 3 Number of elements per page. |
| X-Correlation-ID | string Correlation identifier |
{- "totalElements": 0,
- "totalPages": 0,
- "currentPage": 0,
- "content": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "conversationId": "string",
- "sendingDate": "2019-08-24T14:15:22Z",
- "transmitterId": "string",
- "receiverId": "string",
- "transmitterType": "CUSTOMER",
- "content": "string",
- "contentType": "TEXT",
- "status": "SENT",
- "receivedDate": "2019-08-24T14:15:22Z"
}
]
}