Skip to main content

List Agents

Retrieve all registered agents in your organization.
X-API-Key
string
required
Your API key (sk_live_...)
curl -H "X-API-Key: sk_live_your_key_here" \
  https://api.turen.dev/api/v1/registered-agents

Query Parameters

ParameterTypeDefaultDescription
limitnumber50Number of agents to return
offsetnumber0Pagination offset

Response

{
  "agents": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "client_id": "a1b2c3d4e5f67890",
      "machine_id": "IOPlatformUUID-xxx",
      "generation": 1,
      "secret_prefix": "as_live_abc",
      "registration_key_id": "key-uuid",
      "registration_key_name": "Engineering Team",
      "status": "active",
      "hostname": "johns-macbook-pro",
      "os": "darwin",
      "arch": "arm64",
      "version": "1.2.0",
      "username": "john",
      "clone_detected": false,
      "registered_at": "2026-01-15T08:00:00Z",
      "last_seen_at": "2026-02-17T10:30:00Z"
    }
  ],
  "pagination": {
    "limit": 50,
    "offset": 0,
    "total": 12,
    "has_more": false
  }
}

Response Fields

FieldTypeDescription
idstringUnique agent identifier
client_idstringMachine fingerprint-derived ID
machine_idstringPlatform-specific machine identifier
generationnumberAgent generation counter
secret_prefixstringPrefix of the agent’s secret (for identification)
registration_key_idstringID of the registration key used
registration_key_namestringName of the registration key used
statusstringactive, suspended, or deleted
hostnamestringMachine hostname
osstringOperating system
archstringCPU architecture
versionstringInstalled agent version
usernamestringOS username running the agent
clone_detectedbooleanWhether clone/VM duplication was detected
clone_reasonstringReason for clone detection (if applicable)
registered_atstringISO 8601 timestamp of registration
last_seen_atstringISO 8601 timestamp of last check-in

Get Agent

Retrieve a single agent by ID.
curl -H "X-API-Key: sk_live_your_key_here" \
  https://api.turen.dev/api/v1/registered-agents/{id}

Update Agent Status

Suspend or reactivate an agent.
curl -X PUT \
  -H "X-API-Key: sk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"status": "suspended", "reason": "Under investigation"}' \
  https://api.turen.dev/api/v1/registered-agents/{id}/status

Request Body

FieldTypeRequiredDescription
statusstringYesactive or suspended
reasonstringNoReason for the status change
Returns 204 No Content on success.

Delete Agent

Remove an agent from your organization.
curl -X DELETE \
  -H "X-API-Key: sk_live_your_key_here" \
  https://api.turen.dev/api/v1/registered-agents/{id}

Query Parameters

ParameterTypeDefaultDescription
hardbooleanfalsePermanently delete (vs soft delete)
reasonstring-Reason for deletion
Hard deletion is permanent. The machine will need a new registration key to rejoin.