API credentials not working

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

  • Author
  • Message
Offline

jparnell

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

API credentials not working

PostThu Dec 20, 2018 9:03 pm

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

support

  • Posts: 3628
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: API credentials not working

PostFri Dec 21, 2018 10:34 am

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
Offline

jparnell

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

Re: API credentials not working

PostFri Dec 21, 2018 12:03 pm

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

support

  • Posts: 3628
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: API credentials not working

PostFri Dec 21, 2018 4:46 pm

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
Offline

jparnell

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

Re: API credentials not working

PostFri Dec 21, 2018 8:11 pm

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

jparnell

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

Re: API credentials not working

PostMon Dec 24, 2018 7:31 pm

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
Offline

admin

Site Admin

  • Posts: 35
  • Joined: Thu May 29, 2003 3:12 pm

Re: API credentials not working

PostWed Dec 26, 2018 8:50 am

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

Return to Plum DEV Q&A

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron