I am trying to use
POST /api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions
to transger a caller into a diferrent flow. I am get the sourceParticipantId, participantId and userData using
GET /api/v2/analytics/conversations/details?id={conversationId}
and my request is like this:
await axios.post(
`https://api.mypurecloud.com/api/v2/conversations/${callUUID}/participants/${this.participantId}/secureivrsessions`,
{
participantId: this.participantId,
sourceParticipantId: this.sourceParticipantId,
flowId: this.flowId,
userData: this.queueId,
disconnect: true,
},
{
headers: {
Authorization: `Bearer ${this.token}`,
"Content-Type": "application/json",
},
}
);
I get the following error:
This request requires a user context. Client credentials cannot be used for requests to this resource