Replies: 1 comment
-
OAuth2 Authentication To receive an OAuth2 token that lets you actually access the API you need to make a You have to send three fields in the body, grant_type, which is always client_credentials, client_id which is your OAuth2 client id and client_secret which is your OAuth2 client secret In curl it could look something like this: The response to that will hold a token, this token will only be valid for a limited time, after it expires you'll have to get a new token Notes on using the API For any endpoint that starts with /daemon your OAuth2 tokens will not be valid directly, instead prefix those endpoints with /proxy for your tokens to be accepted (this will also take care of routing requests to the correct node for you), for example |
Beta Was this translation helpful? Give feedback.
-
Idk man, the api seems to be good as shown in the documentation made with Swagger. It works when I press "Try it out", but when I copy the cURL command and try to execute. I get 401 unauthorized error. I tried running the one to set users permission. Please help. ❤
Beta Was this translation helpful? Give feedback.
All reactions