Discussions

Ask a Question
Back to All

SMS API - User not found

Hello,

I am a trial user who is checking SMS API to integrate with my product. I am trying to send a SMS message through the SMS API but it says: "User not found".

It was difficult to find "user_id" in Admin Settings but I think I found "user_id". Actually, it was "target_id" in Admin Settings > Office > Users > EXPORT USERS LIST > Downloaded CSV file.

Would you be able to let me know how to handle this situation to send SMS messages with SMS API?

Regards,


curl --request POST
--url https://dialpad.com/api/v2/sms
--header 'Accept: application/json'
--header 'Authorization: Bearer [My API Key]'
--header 'Content-Type: application/json'
--data '
{
"infer_country_code": false,
"to_numbers": [
"+15620000000"
],
"text": "This is the test message!!!",
"user_id": 5771160305565690
}

{
"error": {
"code": 404,
"errors": [
{
"domain": "global",
"message": "User 5771160305565690 not found",
"reason": "notFound"
}
],
"message": "User 5771160305565690 not found"
}
}