Wrike Task IDs vs API Ids
I am curious about why the Task IDs you get from a URL Query differs than the ID that is needed for the API.
An example is if I want to pull a Task ID it will have two different IDS:
URL: wrike.com/workspace.htm?path=folder&id=1234
API: {"taskId": "ABCD"}
Is there also a way to find this API TaskID and FolderID more easily? Currently, the best process we came up with was to move a folder/task into a folder that we already know the ID of, then do an API call to the folder pull up the IDs, after we get their IDs we move it out of the initial folder.
Has anyone come up with this? I am having the same issue.
Why separate the IDs?
I can't speak to why the IDs are different, but I constantly need to look up IDs for the API, and I've found the fastest way to do this is using Postman. There's a good pinned article at https://help.wrike.com/hc/en-us/community/posts/115000282125-Beginners-Guide-Get-Data-From-Wrike-s-API-Without-Coding-via-Postman describing how to do this.
My go-to calls are:
I then search the response body within Postman to get the IDs I need based on the folder or task name.
Thanks for the response, Laura Boylan, that is currently one of our team's go-to solution other than pulling this id via the Folder/Task Permalink.
One of the most recent issues we are finding with this, however, is trying to grab the ID for something like spaces. During a direct GET call to the api endpoint GET spaces https://developers.wrike.com/documentation/api/methods/get-spaces
Where the spaces return a 500 error and no permalink is visibly found as grabbing a folder id or task id.
Russell Wilkie - That's odd. I'm not seeing any problem with the response returned by https://www.wrike.com/api/v4/spaces on our account. Wrike Support may need to assist if you're getting 500 errors here.
This is the dumbest way to setup an api 🙄
The Wrike v4 API provides a method for converting legacy IDs (i.e., the IDs shown in the url when accessing data via the Wrike front-end): https://developers.wrike.com/api/v4/ids/
For example, a GET call to the following url would retrieve the v4 ID for a task from its legacy ID 1234:
https://www.wrike.com/api/v4/ids?ids=[1234]&type=ApiV2Task
Per the developer documentation this can be performed for the legacy IDs for:
Garrett McCutcheon Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover
Garrett McCutcheon Wrike Team member Become a Wrike expert with Wrike Discover
Thanks Garrett...Your parameters are NOT a part of the Wrike API documentation (https://developers.wrike.com/api/v4/ids/#legacy-api-v2-ids-converter) It seems like you know something no one else knows :-)
Hi Kyle Peters, it seems that Garrett is referring to additional sub-parameters. Please click the caret icon to open them:
Lisa K. Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover
Lisa K. Wrike Team member Become a Wrike expert with Wrike Discover
Lisa, thank you for your replay. However, this is not helping me. I think I must be missing something - as I look at your screenshots, my screen looks different. I do not see that "Request" section with the URL parameters. I am including a screenshot of what I see.
Lisa, Thanks to my colleague, I actually clicked (not intuitive) the "GET" button, and viola! Now I see everything!
We're glad to hear that, Kyle Peters, and thank you for letting us know your feedback 🙌
Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover
Lisa Wrike Team member Become a Wrike expert with Wrike Discover
hi Lisa - even though this is an old thread, I am also looking to decode the ID puzzle
I have a permalink and even though I follow the syntax in Postman
{{WrikeAPI}}/ids?type=ApiV2Folder&ids=[12345678]
I don't get the resulting legacy ID. It only shows the page from the Documentation - Any ideas on next steps? Thanks!
Hey Jeffrey Veffer, I can see our Support specialist has been able to help 🙂
Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover
Lisa Wrike Team member Become a Wrike expert with Wrike Discover