Skip to main content
Infrastructure/Agents

CreateEnrollmentInvitation

Create an installation invitation with agent.deploy permission. The enrollment code is returned only by the first successful creation. Initial host_metrics selection also requires agent.config.write. User Bearer authentication and the stated ZIAM permission checks apply only when auth.require_user=true; with the default false setting, this operation works without user authentication.

POST/api/v1/lifecycle/managed-agent/enrollment-invitations

Operation ID

CreateEnrollmentInvitation

Since

1.3.0

Execution Mode

Synchronous

Auth Context

No auth required

Request Inputs

application/json

Body Fields

  • requestId
    String

    Request id for this resource

    Example: value

  • scope
    Object

    Scope for this resource

    • platformUuid
      String

      Platform uuid for this resource

      Example: value

    • regionUuid
      String

      Region uuid for this resource

      Example: value

  • displayName
    String

    Display name for this resource

    Example: value

  • initialCapabilityId
    String

    Omit for management-only installation. Only host_metrics is supported.

    Example: value

Responses

200 OK

A successful response.

Content-Type: application/json

Response body root type: object

  • invitationId
    String

    Invitation id for this resource

    Example: value

  • taskId
    String

    Task id for this resource

    Example: value

  • enrollmentCode
    String

    Sensitive, returned only on first creation; never log the response body.

    Example: value

  • expiresAt
    String

    Expires at for this resource

    Example: 2026-01-15T08:00:00Z

    {"format":"date-time"}

  • install
    Object

    Install for this resource

    • scriptUrl
      String

      HTTPS download template: /install/{os}/{arch}?invitationId=<this invitation>. The literal placeholders are filled by the target machine's uname values.

      Example: https://example.com/callback

    • sha256
      String

      Legacy immutable-script source only; absent for rendered Depot scripts. A rendered script has no stable execution-before-download digest.

      Example: value