set_auth_token
Set or update the authentication token to resolve UniFi controller authentication failures or configure a missing token.
Instructions
Set or update the browser TOKEN cookie for authentication.
Use this when authentication fails or no token is configured. To get the token: log into the UniFi controller in a browser, open DevTools (Cmd+Option+I) > Application > Cookies, and copy the TOKEN value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | TOKEN cookie value from browser (JWT string starting with eyJ...) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||