Get token
- GET
- /workspaces
- /:workspace
- /tunnels
- /token
Returns a tunnel token for the specified workspace or project. If the token does not exist, it will be created.
Request example
CURLcurl -X GET "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" }