Issue a new agent enrollment token (platform-admin only)
POST /sencai-agents/generate-token
POST
/sencai-agents/generate-token
Creates a pending sencai-agent record with a random enrollment token and returns the install command the operator runs on the target host. Optionally links the agent to an organisation or an existing cloud-instance (whose organisation is then inherited).
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
data
object
hostname
string
os
string
capabilities
Array<string>
cloud_instance
Cloud-instance documentId
string
organisation
Organisation documentId
string
Responses
Section titled “ Responses ”Enrollment token issued
object
data
object
agent_id
string
enrollment_token
string
install_command
string
Invalid cloud_instance/organisation reference
Caller is not a platform administrator