Always getting Invalid Token, what am I doing wrong?

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

1 Like

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

1 Like

@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: