Skip to content
phachon edited this page Jun 6, 2018 · 1 revision

Manager api auth

For request safety, manager api request require auth token

How to pass token?

If manager api [Auth Token] is true, you must set token in the header of the request url

View the configuration file wmqx.toml

[api]
# api server auth token http header token name
tokenHeaderName = "WMQX_API_TOKEN"
# api server auth token http header token value
token = "guest"

Set request header

request.Header.Set("WMQX_API_TOKEN", "guest")
Clone this wiki locally