Machines API — Agentuity Documentation

Machines API

Manage compute nodes and organization authentication enrollment

Manage compute nodes and organization authentication enrollment.

https://catalyst-usw.agentuity.cloud

Authentication

All requests require a Bearer token. Pass your SDK key in the Authorization header.

HeaderValue
AuthorizationBearer YOUR_SDK_KEY

You can find your SDK key in the Agentuity Console under your project settings.


Machine Management

List Machines

List all machines visible to the authenticated user.

GET/machine
https://catalyst-usw.agentuity.cloud/machine

Response

Returns all machines visible to the authenticated user.

StatusDescription
200Machines returned
401Unauthorized — invalid or missing Bearer token

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/machine' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Get Machine

Get details for a specific machine.

GET/machine/{machineId}
https://catalyst-usw.agentuity.cloud/machine/{machineId}

Parameters

path
NameTypeRequiredDescription
machineIdstringYesMachine ID

Response

Returns machine details.

StatusDescription
200Machine returned
401Unauthorized — invalid or missing Bearer token
404Machine not found

Response Fields

FieldTypeDescription
idstringUnique identifier for the machine.
instanceIdstring | nullCloud provider instance ID. (optional)
privateIPv4string | nullPrivate IPv4 address of the machine. (optional)
availabilityZonestring | nullCloud provider availability zone. (optional)
instanceTypestring | nullCloud provider instance type (e.g., n1-standard-2). (optional)
instanceTagsstring[] | nullTags assigned to the cloud instance. (optional)
deploymentCountnumberNumber of active deployments on this machine. (optional)
statusstringCurrent status of the machine (e.g., running, stopped, errored).
providerstringCloud provider (e.g., gcp, aws).
regionstringCloud region where the machine is deployed.
startedAtstring | nullISO 8601 timestamp when the machine was started. (optional)
stoppedAtstring | nullISO 8601 timestamp when the machine was stopped. (optional)
pausedAtstring | nullISO 8601 timestamp when the machine was paused. (optional)
erroredAtstring | nullISO 8601 timestamp when the machine entered error state. (optional)
errorstring | nullError message if the machine is in an error state. (optional)
orgIdstring | nullOrganization ID that owns this machine. (optional)
orgNamestring | nullOrganization name that owns this machine. (optional)
createdAtstringISO 8601 timestamp when the machine was created.
updatedAtstring | nullISO 8601 timestamp when the machine was last updated. (optional)
metadataobject | nullArbitrary metadata associated with the machine. (optional)

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/machine/mch_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Delete Machine

Delete a machine by ID.

DELETE/machine/{machineId}
https://catalyst-usw.agentuity.cloud/machine/{machineId}

Parameters

path
NameTypeRequiredDescription
machineIdstringYesMachine ID

Response

Empty response on success.

StatusDescription
204Machine deleted
401Unauthorized — invalid or missing Bearer token
404Machine not found

Example

curl -X DELETE 'https://catalyst-usw.agentuity.cloud/machine/mch_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

List Machine Deployments

List all deployments currently running on a specific machine.

GET/machine/deployments/{machineId}
https://catalyst-usw.agentuity.cloud/machine/deployments/{machineId}

Parameters

path
NameTypeRequiredDescription
machineIdstringYesMachine ID

Response

Returns all deployments currently running on the specified machine.

StatusDescription
200Deployments returned
401Unauthorized — invalid or missing Bearer token
404Machine not found

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/machine/deployments/mch_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Auth Enrollment

Enroll Organization

Enroll an organization for machine authentication.

POST/cli/auth/org/enroll
https://catalyst-usw.agentuity.cloud/cli/auth/org/enroll

Request Body

Enrollment payload with organization ID and public key.

FieldTypeDescription
orgIdstringOrganization ID
publicKeystringPublic key for machine authentication

Response

Returns the enrolled organization ID.

StatusDescription
200Organization enrolled
401Unauthorized — invalid or missing Bearer token

Response Fields

FieldTypeDescription
orgIdstringThe enrolled organization ID

Example

curl -X POST 'https://catalyst-usw.agentuity.cloud/cli/auth/org/enroll' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "orgId": "org_abc123",
  "publicKey": "ssh-ed25519 AAAA..."
}'

Get Enrollment Status

Get the enrollment status for an organization.

GET/cli/auth/org/status/{orgId}
https://catalyst-usw.agentuity.cloud/cli/auth/org/status/{orgId}

Parameters

path
NameTypeRequiredDescription
orgIdstringYesOrganization ID

Response

Returns the enrollment status. A null publicKey means not enrolled.

StatusDescription
200Enrollment status returned
401Unauthorized — invalid or missing Bearer token
404Organization not found

Response Fields

FieldTypeDescription
publicKeystring | nullPublic key or null if not enrolled

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/cli/auth/org/status/org_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Unenroll Organization

Remove enrollment for an organization.

DELETE/cli/auth/org/unenroll/{orgId}
https://catalyst-usw.agentuity.cloud/cli/auth/org/unenroll/{orgId}

Parameters

path
NameTypeRequiredDescription
orgIdstringYesOrganization ID

Response

Empty response on success.

StatusDescription
204Organization unenrolled
401Unauthorized — invalid or missing Bearer token
404Organization not found

Example

curl -X DELETE 'https://catalyst-usw.agentuity.cloud/cli/auth/org/unenroll/org_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'