API calls: "You're not authorized to use..." error

  • Profile Image
    David Nordstedt 
    Asked on January 14, 2021 at 03:48 PM

    Hi, I sent an email to api@jotform.com last Friday and haven't heard anything back yet.

    We just created a read-only and full access APIkey to access the API and try a few things out. I am getting errors when just trying the basic curl commands in the documentation. Can you tell me why it’s not working?

    curl -X GET https://api.jotform.com/user?apiKey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

                                    Dload Upload  Total  Spent   Left Speed

    100  147   0  147   0    0  1185     0 --:--:-- --:--:-- --:--:-- 1185{"responseCode":401,"message":"You're not authorized to use (\/user) ","content":[],"duration":"3ms","info":"https:\/\/api.jotform.com\/docs#user"}

    curl -X GET https://api.jotform.com/user/subusers?apiKey=XXXXXXXXXXXXXXXXXXXXXXX

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

                                    Dload Upload  Total  Spent   Left Speed

    100  166   0  166   0    0  1012     0 --:--:-- --:--:-- --:--:-- 1012{"responseCode":401,"message":"You're not authorized to use (\/user\/subusers) ","content":[],"duration":"5ms","info":"https:\/\/api.jotform.com\/docs#user-subusers"}


    Thanks,

    David Nordstedt

    GRU IT Software Architect


  • Profile Image
    Sonnyfer
    Answered on January 14, 2021 at 08:17 PM

    Hey David - Thanks for reaching out.

    As much as I want to help you, I'm no expert in APIs. Let me escalate this ticket instead to our backend team to tap someone who's an expert in the matter. They shall reply to you here.

  • Profile Image
    nordstedtdr
    Answered on February 02, 2021 at 09:18 AM

    It has been a couple of weeks now. Should I still expect a reply here or create a new ticket?

    I can't use your APIs at all.


    Thanks,

    David


  • Profile Image
    Amjad_A
    Answered on February 02, 2021 at 10:44 AM

    Hi,

    Our developers are currently looking into it, I can't provide you an update as of the moment though, but we'll definitely notify you as soon as we have an update.

    We really appreciate your patience on this.