Skip to main content
GET
/
api
/
v1
/
environments
/
{environment_id}
/
worker-command
Get Worker Registration Command
curl --request GET \
  --url https://control-plane.kubiya.ai/api/v1/environments/{environment_id}/worker-command
{
  "worker_token": "<string>",
  "environment_name": "<string>",
  "command": "<string>",
  "command_parts": {},
  "namespace_status": "<string>",
  "can_register": true,
  "provisioning_workflow_id": "<string>"
}

Path Parameters

environment_id
string
required

Response

Successful Response

Response with worker registration command

worker_token
string
required
environment_name
string
required
command
string
required
command_parts
object
required
namespace_status
string
required
can_register
boolean
required
provisioning_workflow_id
string | null