Create IM

Creates a new instant message conversation or returns an existing IM between the specified users and the calling user.

Important: This endpoint also allows the creation of Multi-party Instant Messages (MIM), which are not supported anymore. If you need to create a chat with several participants, please create a room instead.

Create a new single or multi party instant message conversation between the caller and specified users.

post

At least one user ID must be provided or an error response will be sent.

The caller is implicitly included in the members of the created chat.

Duplicate users will be included in the membership of the chat but the duplication will be silently ignored.

If there is an existing IM conversation with the same set of participants then the id of that existing stream will be returned.

This method was incorrectly specified to take a query parameter in version 1.0 of this specification but now expects a JSON array of user IDs in the body of the request.

Header parameters
sessionTokenstringRequired

Session authentication token.

Bodyinteger · int64[]
integer · int64[]OptionalExample: [7215545058313,7215545078461]
Responses
200
OK
application/json
post
POST /pod/v1/im/create HTTP/1.1
Host: yourpodURL.symphony.com
sessionToken: text
Content-Type: application/json
Accept: */*
Content-Length: 29

[
  7215545058313,
  7215545078461
]
{
  "id": "xhGxbTcvTDK6EIMMrwdOrX___quztr2HdA"
}
  • The calling user is implicitly included as a member of the instant message conversation.

  • One other participant must be specified.

  • If a user ID appears in the list multiple times, duplicates will be ignored.

  • If there is an existing IM conversation with the specified participant, then the id of the existing stream will be returned.

  • Use Create IM non-inclusive to exclude the calling user.

When calling this as an OBO-enabled endpoint, use the OBO User Authenticate token for sessionToken.

A user needs to have the entitlement isExternalIMEnabled if he wants to create a crosspod IM (User entitlements are set on Admin Portal).

External users must be connected with the caller before adding them.

📘 Overview of streams

A stream is like a container for messages exchanged between two or more users via a given instant message (IM) or chat room. For more information, refer to Overview of streams.

Last updated

Was this helpful?