spatil | 2023-06-22 17:46:36 UTC | #1
Hi Team,
I am new to using Mypurecloud API, trying to run below API from postman but not success. I am getting 404 http error. Could you please help on this.
Note: Same API I have integrated in JavaScript code also there also getting same error 404.
API type - Post API - https://api.mypurecloud.com/api/v2/conversations/messages/agentless
Payload - { "fromAddress": "+13175555555", "toAddress": "+919922950848", "toAddressMessengerType": "sms", "textBody" :"Test", "useExistingActiveConversation": true }
response - { "message": "No Recipient could be found with an id of +13175555555", "code": "not.found", "status": 404, "messageWithParams": "No {type} could be found with an id of {id}", "messageParams": { "id": "+13175555555", "type": "Recipient" }, "contextId": "ccb1c4f2-e8d8-4078-9737-1510be70e96b", "details": [], "errors": [] }
Jerome.Saint-Marc | 2023-05-29 13:55:54 UTC | #2
Hello,
The number you use in fromAddress must be a provisioned SMS phone number - an SMS long code or short code number that you have purchased in Genesys Cloud. See About SMS messaging and Purchase SMS long code numbers
Regards,
spatil | 2023-05-29 14:04:35 UTC | #3
Jerome.Saint-Marc, post:2, topic:20159
provisioned SMS phone number
Thanks for replay!
Where I can check/validate input fromAddress phone no is provisioned SMS phone number or not. Do we have any sample provisioned SMS phone number that I can use in Postman API testing.
Thanks and Regards, Sunil Patil
Jerome.Saint-Marc | 2023-05-29 14:07:43 UTC | #4
I guess you didn't check the articles I shared with you.
In Purchase SMS long code numbers, it says (to see or purchase numbers):
To purchase an SMS number, perform these steps:
- Click Admin.
- Under Message, click SMS Number Inventory.
spatil | 2023-06-19 13:45:19 UTC | #5
How end user(Agent) will trust that sms is came from dedicated/respective Genesys provisioned SMS phone number or not. Because toAddress(receiver) is receiving sms from 4 or 6 digits number. Could you please clarify on this.
system | 2023-07-20 13:45:39 UTC | #6
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 20159