Always getting Invalid Token, what am I doing wrong?


#1

I’m trying to do a simple POST request and I can’t get a valid token response. I’m the request via Postman with the following URL

https://dynalist.io/api/v1/file/list?token=

What am I doing wrong?

Thanks


#2

Rafael, the token does not go in the URL, but rather the JSON body of the request. If you were requesting content for a document, for example, your URL would be:

POST https://dynalist.io/api/v1/doc/read

And your JSON body would be:

{
  "token": "<your api secret token>",
  "file_id": "<document id>"
}

More info here: https://apidocs.dynalist.io/#document-level


#3

@Rafael, sorry for the late reply, what @Craig_Oliver pointed out is 100% correct.

Mind giving that a try and see if that works? :smiley: