We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

API credentials not working

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
jparnell
Posts: 38
Joined: Wed Aug 22, 2018 12:45 pm

API credentials not working

Post 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!

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: API credentials not working

Post 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

jparnell
Posts: 38
Joined: Wed Aug 22, 2018 12:45 pm

Re: API credentials not working

Post 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?

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: API credentials not working

Post 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

jparnell
Posts: 38
Joined: Wed Aug 22, 2018 12:45 pm

Re: API credentials not working

Post 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!

jparnell
Posts: 38
Joined: Wed Aug 22, 2018 12:45 pm

Re: API credentials not working

Post 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

admin
Site Admin
Posts: 35
Joined: Thu May 29, 2003 3:12 pm

Re: API credentials not working

Post 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

Post Reply