Set Auth Token
swagger_set_authSet or clear the Authorization header for Swagger API calls. Provide the exact header value (e.g., 'Bearer xxx') or set clear=true to remove it.
Instructions
Dynamically set or clear the Authorization header used by swagger_call_api. The token value is used as-is for the Authorization header (no automatic Bearer prefix). Pass clear=true to remove the current token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Set to true to clear the current auth token. | |
| token | No | The full Authorization header value (e.g. 'Bearer xxx', 'Basic xxx'). No prefix is added automatically. |