Get

  • GET
  • /workspaces
  • /:workspace
  • /targets
  • /:target_id

Returns the details of a single target.

Request

REQUIRED SCOPES
TARGET_INFO
URL PARAMETERS
workspacerequiredstring
The workspace name.
target_idrequiredstring
ID of the desired target.

Last modified on Jan 19, 2026

Request example

CURL
curl -X GET "https://api.buddy.works/workspaces/:workspace/targets/:target_id" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "Content-Type: application/json" \

Response

EXAMPLE RESPONSE
{ "url": "https://api.buddy.works/workspaces/buddy/targets/tg-nd2oxobzr7p2r", "html_url": "https://app.buddy.works/buddy/targets/tg-nd2oxobzr7p2r/edit", "id": "tg-nd2oxobzr7p2r", "identifier": "stage_env", "permissions": { "others": "USE_ONLY", "users": [ { "id": 5, "access_level": "MANAGE" } ] }, "tags": [ "tag1", "staging" ], "name": "Staging environment", "host": "192.168.0.100", "port": "22", "path": "/var/www/stage", "auth": { "method": "PASSWORD", "username": "deploy_user", "password": "!encrypted 3PA3jdHEb0WutNZNaGFXvWMSh0oAD0CxLkUzSq0cKCxPYPxtmIL3dQlFMAjvbcvL.hLyKo3tOxlgpSTieglJTJw==" }, "type": "SSH" }