Sorry, you need to enable JavaScript to visit this website.

You are here

Authenticating API

2 posts / 0 new
Last post

adrian_2's picture
by adrian_2

Authenticating API

I am hoping someone can assist please:

We can authenticate with our key/secret, but when trying to send sms there is an error. We used example of request on: https://dev.telstra.com/content/messaging-api#tag/Messaging

 

Here is the output:

 

~> curl -X POST -H "Authorization: Bearer AMTYWGSh37xaAx5yEOBebqnsr5Iq" -H "Content-Type: application/json" -d '{"to":"+61417189341", "body":"Test Message"}' https://tapi.telstra.com/v2/messages/sms

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100   200  100   156  100    44     38     10  0:00:04  0:00:04 --:--:--    49

                          {

                        "status":"404",

                                "code":"RESOURCE-NOT-FOUND",

                                "message":"Invalid resource. Refer to API docs at https://dev.telstra.com"

                          }

Michelle's picture
by Michelle

Resolved: Re-provision your number and check keys

Hi adrian_2,

This error has been addressed in a previous forum post: https://dev.telstra.com/content/error-404-resource-not-found

kindly refer to the steps above, try re-provisioning your subscription and try again. 

Log in or register to post comments