Regenerate token
- POST
- /workspaces
- /:workspace
- /tunnels
- /token
Regenerates the tunnel token for the specified workspace or project. The previous token will be invalidated.
Warning
After regenerating the token, all agents using the old token will need to be reconfigured with the new token.
Request example
CURLcurl -X POST "https://api.buddy.works/workspaces/:workspace/tunnels/token" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "Content-Type: application/json" \
Response
EXAMPLE RESPONSE{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ3b3Jrc3BhY2VfaWQiOjEyMywidmVyc2lvbiI6MX0.abc123" }