Page 1 of 1

API credentials not working

Posted: Thu Dec 20, 2018 9:03 pm
by jparnell
Hello,

I'm testing out the SMS API features of PlumDev. I'm encountering an issue where my API requests are resulting in a 401 error:

"error": "The supplied email and developer_pin combination was not valid."

I am using Basic Auth, and the same username and password that allow me to access the PlumDEV account console. Does something need to be enabled for my requests to succeed? Thanks!

Re: API credentials not working

Posted: Fri Dec 21, 2018 10:34 am
by support
Hi,

We apologize, it looks like the SMS number assigned to your account was previously assigned to a different user and the old credentials had not been reset. This has been corrected and your account credentials should now be properly linked to the number. Please try again and let us know if you are still experiencing any authentication issues.

Regards,
Plum Support

Re: API credentials not working

Posted: Fri Dec 21, 2018 12:03 pm
by jparnell
Good morning, thanks for looking into this. I just tried again, using the same credentials and the same SMS outbound number. I'm still receiving the same 401 response and error message. Can you take another look?

Re: API credentials not working

Posted: Fri Dec 21, 2018 4:46 pm
by support
Hi,

We tried to reproduce this issue from your account but our message was sent successfully. Could you provide an example of how you are calling the API so we can investigate further?

Regards,
Plum Support

Re: API credentials not working

Posted: Fri Dec 21, 2018 8:11 pm
by jparnell
Hello! I am using Postman to send my requests. Here is the CURL export code (I'm hiding the authorization token, email me if you need it):

Code: Select all

curl -X POST \
  https://fuse.plumvoice.com/api/sms/queue.json \
  -H 'Authorization: Basic [redacted]' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Postman-Token: 3b9e67d1-04f4-4d2c-af8b-5b251eaf217c' \
  -H 'cache-control: no-cache' \
  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  -F to=[redacted]\
  -F from=6175536862 \
  -F 'body=hello world' \
  -F result_url=http://ptsv2.com/t/a/post
Thanks again for your help!

Re: API credentials not working

Posted: Mon Dec 24, 2018 7:31 pm
by jparnell
I think I figured it out. The error was on my side, I had set some global environmental variables that were messing with my request. I've received my first text message - thanks! Happy holidays :D

Re: API credentials not working

Posted: Wed Dec 26, 2018 8:50 am
by admin
Hi,

Great! Thanks for updating, glad you were able to figure that out. Please let us know if we can assist with anything else.

Regards,
Plum Support