Looking for advice on triggering an outbound call via the CXone Personal Connection API using .NET 6.
- .NET 6
- CXone API v2
- Asia/Seoul
- Beginner
I am trying to initiate a call from a user’s personal number. I have the user ID and target number. I am using the GenesysCloud .NET SDK. I am calling PostUsersPersonalConnectionsCalls with a valid OAuth token (Client Credentials, data scope).
The request returns 403 Forbidden. The response body is empty.
Code snippet:
var client = new GenesysCloudClient("https://api.mypurecloud.com");
client.AuthenticateWithClientCredentials(clientId, clientSecret);
var callRequest = new PostUsersPersonalConnectionsCallsRequest
{
TargetNumber = "+15550100",
CallerId = "+15550200"
};
try
{
var result = await client.Users.PostUsersPersonalConnectionsCalls(userId, callRequest);
}
catch (ApiException ex)
{
Console.WriteLine($"Status: {ex.ErrorCode} Body: {ex.ResponseText}");
}
I verified the user exists and has the Personal Connection feature enabled in the admin console. The token is valid for other endpoints. Is there a specific permission or scope missing? Or is the endpoint path incorrect in the SDK?