Loading

DFS Communication services API (latest)

Download OpenAPI specification:Download

Contains functionality around conversations.

For endpoints that support localization the language can be passed either as a query string parameter (using the name 'language') or in the 'accept-language' header.
If no language is passed to such endpoints then the default configured language will be used.

Communication

Get conversation type

Retrieves all conversation types.

Authorizations:
header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal Server Error

get/v2.0/conversation-types
https://example-host/v2.0/conversation-types

Response samples

Content type
application/json
Copy
Expand all Collapse all
[
  • {
    }
]

Count unread conversation threads and messages

Retrieves the number of unread conversation thread and messages.

Authorizations:
query Parameters
includeUnreadMessageCount
boolean

Read receipt unread count parameter

header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Internal Server Error

get/v1.0/read-receipt/unread-count
https://example-host/v1.0/read-receipt/unread-count

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "unreadConversation": 0,
  • "unreadMessageCount":
    [
    ]
}

Create a new conversation

Creates a new conversation. If the person is a member, they should be able to initiate a conversation with a contact if member have hierarchy access to the contact. They can message another member if they are part of same participant. If the person is a contact, they can initiate a conversation with a member if the member is their direct advisor.

Authorizations:
header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Request Body schema:

Request body

senderUId
string <uuid> Nullable

Target persons to start the conversation with

personUIds
Array of strings <uuid> Nullable

Sender of the message in the conversation. Nullable

subject
string Nullable

Subject line of the conversation

body
string Nullable

Content of the initial message

conversationTypeId
integer <int32>

Id representing the message type

customAttributes
string Nullable

Optional metadata filters

attachments
Array of objects (MessageAttachmentRequest) Nullable

The list of the message attachments (file name and content of the file).

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Internal Server Error

post/v1.0/conversations
https://example-host/v1.0/conversations

Request samples

Content type
Copy
Expand all Collapse all
{
  • "senderUId": "ed50f78f-bf6e-4701-bd67-f47f5a165cf1",
  • "personUIds":
    [
    ],
  • "subject": "Lost Credit Card",
  • "body": "Dear Relationship Manager, I lost my credit card today! Can you please block it and order a new one?",
  • "conversationTypeId": 1,
  • "customAttributes": "{\"RecipientClientFilters\" : [19, 20]}",
  • "attachments":
    [
    ]
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "conversationId": 1,
  • "messageId": 1
}

Send a new message in existing conversation thread or reply to specific message in the thread

Sends a new message in existing conversation thread or reply to specific message in the thread. A person should be able to reply to a message if they are part of hierarchy access of at least one person in the conversation.

Authorizations:
path Parameters
conversationId
required
integer <int32>

Id of the conversation

header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Request Body schema:

Request body

senderUId
string <uuid> Nullable

Sender of the message in the conversation (nullable)

replyMessageId
integer <int64> Nullable

Id of the message being replied to (nullable)

body
string Nullable

Content of the message

customAttributes
string Nullable

Optional metadata filters

attachments
Array of objects (MessageAttachmentRequest) Nullable

The list of the message attachments (file name and content of the file).

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Internal Server Error

post/v1.0/conversations/{conversationId}/reply
https://example-host/v1.0/conversations/{conversationId}/reply

Request samples

Content type
Copy
Expand all Collapse all
{
  • "senderUId": "f4610a70-b8a5-4ba1-b698-1d5b97686a7a",
  • "replyMessageId": 1,
  • "body": "Dear Relationship Manager, I lost my credit card today! Can you please block it and order a new one?",
  • "customAttributes": "{\"RecipientClientFilters\" : [19, 20]}",
  • "attachments":
    [
    ]
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "messageId": 1
}

Marks the message as read

Set status of the message in conversation as read

Authorizations:
path Parameters
conversationId
required
integer <int32>

Id of the conversation

header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Request Body schema:

Request body

messageId
integer <int64>

Id of the Message to be marked read

Responses

204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Internal Server Error

post/v1.0/conversations/{conversationId}/read-receipt/mark-read
https://example-host/v1.0/conversations/{conversationId}/read-receipt/mark-read

Request samples

Content type
Copy
Expand all Collapse all
{
  • "messageId": 1
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "code": "BadRequest",
  • "subCode": "NA",
  • "message": "The request was not in the required format",
  • "correlationId": "30d3ebc0b5cb47b0889850bbdfe4aec6"
}