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

REQUIRED SCOPES
TUNNEL_INFO
URL PARAMETERS
workspacerequiredstring
The workspace name.
GET PARAMETERS
project_namestring
The name of the project to get the token for. If not provided, the workspace token is returned.

Last modified on Feb 3, 2026

Request example

CURL
curl -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" }