What can we help you with?

e.g. Gantt chart, Creating tasks, Sharing folders

Beginners Guide: Get Data From Wrike’s API Without Coding via Postman

Pinned

14 comments

  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Jacob Sinacola

    Hi Pavel,

    This is a great tutorial!  I am running into an error message once I get to the step "Get the list of Wrike accounts your user is a member of."

    I created an environment with a key called "access_token" and a value with our specific permanent access token that was obtain through creating our app in Wrike.

    I added a header with a key of "Authorization" and a value of "bearer {{access_token}}"

    I selected the Wrike environment that was created, entered "https://wrike.com/api/v3/accounts" as the GET url and the response is:

    {
    "errorDescription": "Access token is unknown or invalid",
    "error": "not_authorized"
    }

    Any trouble shooting ideas to resolve this error?  

    Thank you in advance!

    Jacob.

  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Pavel M

    Hi Jacob! Thanks for your question! Based on your description everything looks fine to me.

    However, I would again double-check several things here:

    • please make sure your access token is correct (maybe generate a new one)
    • check out the selector for environments https://www.screencast.com/t/BsBZmDCy
    • make sure the syntax for environment key is correct 

    Please let me know if you checked everything, but still have no success.



    Pavel M Community Team at Wrike Part of a Marketing Team? Check out Your Very Own Community Space

  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Gaurav Bhasin

    I received the same unauthorized error. I checked and even generated a new access token.

  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Pavel M

    Hi Gaurav! I've noticed that in some cases this error can be returned if you use https://wrike.com.. instead of https://www.wrike.com... path (although both should be working fine in theory, as there's redirect in place). Could that be your case?

    Pavel M Community Team at Wrike Part of a Marketing Team? Check out Your Very Own Community Space

  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Jacob Sinacola

    I am still having the same unauthorized issue, even when adjusting the settings to use https://www.wrike.com/api/v3/accounts

  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Aonghus Sugrue

    (Edited )

    Hi 

    I am receiving a CORS error on attempting to use POST:

    {
    "errorDescription": "Failed to authorize CORS request",
    "error": "not_authorized"
    }

    I do not receive a similar error on using GET.

    I am experiencing this using Postman and also a PHP based script running on a https domain of mine (Note: I have added this domain in the 'HTTP access control (CORS)' section in my Wrike app configuration settings.

    Any help on this would be most appreciated.

    UPDATE

    I recreated the app within Wrike API console and created new access token. The issue is not happening now for the newly created app!

  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Pavel M

    Hi Aonghus! I am glad you had it resolved! If you are not adding CORS domain in Wrike's Dev Console for your App, no validation will happen on Wrike side, so it's better to leave it blank unless you are really intended to use it. 

    Pavel M Community Team at Wrike Part of a Marketing Team? Check out Your Very Own Community Space

  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Jay Whisonant

    I am total beginner trying to follow this guide, and I am having trouble setting up postman. In your section, "Set Up Postman to Access Wrike Data" I am not sure if I have done the correct thing for step 1, since the linked article has no discrete instructions for creating a new environment. I named a new environment and then saved it. I am now firmly stuck on step 2 of the same section. The linked screenshot will not load and I cannot figure out what you are talking about. Where do I enter this information? I may have found the page by clicking "Params". Is that correct? If so, where do I enter the info? I am also confused by step 4 of the same section, not sure what to ask until I figure out these problems first, though. Please help me get this working so I can figure out what to learn next. Thanks for your time. 

  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Jay Whisonant

    (Edited )

    Hi, can anyone please offer some help? If you could get me up and running, I would be happy to write better setup instructions and provide working links; I am a technical writer by profession.

  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Pavel M

    Hi Jay! Sorry to make you wait, I am ready to help you :)

    It looks like Postman docs have modified links for Environments instructions, the correct new link for Step 1 is: https://www.getpostman.com/docs/postman/environments_and_globals/manage_environments

    The same thing is about the Key Value editor - I could not find any new suitable article.
    Do you see something like this when editing your Environment? https://www.screencast.com/t/vOoq9h5SpQN

    Pavel M Community Team at Wrike Part of a Marketing Team? Check out Your Very Own Community Space

  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Jay Whisonant

    Pavel, many thanks for your help. I contacted postman as well and they emailed about the same time you commented. Their support section is throwing a lot of 404's. Also, I was specifically looking for a menu called "Key Value Editor" based on your wording, which I now realize is simply a part of the "Manage Environment" screen. I have now configured postman and was successful running the test for the account information.

  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Pavel M

    Awesome! I am glad you have figured it out! By the way, the 'Key Value Editor' article is now back, my link should be functioning :)
    Thanks for drawing Postman's attention to the issue.

    Pavel M Community Team at Wrike Part of a Marketing Team? Check out Your Very Own Community Space

  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Dan Hardy

    Hi Pavel-

    I have exported comments from Asana using Postman and would like to import them into Write where task names match.  Do you know of a guide to import multiple records using Postman instead of just one at a time?  Thanks.

  • Spot On! 👍 Innovative Approach 💡 Stellar Advice 💪
    Avatar
    Torsten Mühlhoff

    It might be a helpful note that you have to adjust the url if your account is hosted in the EU data center. In this case you have to use https://app-eu.wrike.com/api/v3/accounts.

Please sign in to leave a comment.

Folllowing List for Post: Beginners Guide: Get Data From Wrike’s API Without Coding via Postman
[this list is visible for admins and agents only]

Community

Welcome 🖖

Hi there! 🙂 Want to become a black belt Wrike Ninja? Here's how to earn a Wrike badge

Welcome 🖖 Have you checked out this week's Release Notes yet?

Hey! 👋 Curious about something? Visit How To to search and ask the Community for answers.

Welcome! 👋 Figured out a good tip or trick? Share it in Best Practices.

Want to connect your existing software to Wrike? Learn and ask how in the API section.