I've been trying to follow the docs at MessageBird to test out sending a verification SMS. But when I execute the curl
command, the returned response is as expected here:
{"id":"e41c509641a34324a0e1333a4e87d84d","href":"https://rest.messagebird.com/verify/e41c509641a34324a0e1333a4e87d84d","recipient":447000000000,"originator":"+447000000000","type":"sms","reference":null,"messages":{"href":"https://rest.messagebird.com/messages/d18f22ae466g4c349799404d878c9815","id":"d18f22ae466g4c349799404d878c9815"},"status":"sent","createdDatetime":"2021-11-11T15:19:01+00:00","validUntilDatetime":"2021-11-11T15:19:31+00:00"}
But, if you open up the href
link from the response it gives the following error:
{"errors":[{"code":20,"description":"message not found","parameter":null}]}
This is the curl request that I use:
curl --location --request POST 'https://rest.messagebird.com/verify' --header 'Authorization: AccessKey ACCESS_KEY' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'recipient=+447000000000' --data-urlencode 'originator=07000000000'