I’m new in Kobo, and I need GET data and GET Structure through API endpoints.
I was unable to find a complete documentation with list of endopoints
Im trying with https://kf.kobotoolbox.org/api/v2/assets/[asset_uid]/versions/[version_id]
In postman I got { "detail": "Not found." }
With or without Token
But in the navigator (chrome or edge) I got information about the structure, something like this: [Image]
…
Also I tried a curl
in Ubuntu console (WSL2) and in System’s Symbol (Win11) but I Got same result
@drossi-dg , maybe this post discussed previously should help you with the same:
This is copied from some private correspondence I had a while ago. Perhaps it’s useful to someone in this format, until more official documentation is developed for the new API In writing “new,” I’m contrasting KPI to the old KoBoCAT (/api/v1) API.
KoBo API Examples
I’ve used curl to demonstrate these API calls. You’ll notice that all my curl commands begin with curl --silent --user jnm_api:some-secret-phrase --header 'Accept: application/json' and end by being piped to python -m…
I found the problem and solution
Why it did work in the browser but did not work on postman or curl?
It worked in the browser because I was logged in https://kf.kobotoolbox.org/
When I tried with Postman, I never sent my token (same case with curl). So, adding my token in postman (or corrects headers in curl), I could get information.
1 Like