Conversations api cobrowse start returning 400

Can anyone clarify why POST /api/v2/conversations/cobrowse/sessions fails with a 400 bad request? i am sending this payload {“type”: “cobrowse”, “participants”: [{“id”: “agent-id-123”, “role”: “observer”}]} but it keeps rejecting it. the agent is online and logged in. no useful error detail in the response body.

Ah, this is a recognized issue… The payload structure is incorrect. According to the docs, you need a sessionId and initiatorId. Here is the correct C# snippet:

var body = new CobrowseSessionCreateRequest 
{ 
 InitiatorId = "agent-id-123", 
 SessionId = Guid.NewGuid().ToString() 
};
await platformClient.CobrowseApi.PostCobrowseSessionsAsync(body);