/tokens endpoint stating I haven't authenticated

Simply put, anytime I try to POST/GET the /tokens endpoint, it states I haven’t authenticated when obviously I need to hit this endpoint for authentication (i.e. getting my JSON web token).

Is this because of maintenance that I did not know about?

link: https://my.farm.bot/api/tokens

"error": "You failed to authenticate with the API. Ensure that you  provide a JSON Web Token in the `Authorization:` header."



What language / HTTP client are you using to perform the request? I would be happy to show you an example request in whatever language/tool you are using. You can find examples in Python, Bash and Javascript here. You can find example request/response data here.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.