Skip to content

Get one Agent Enrollment ​

Check the exact one-time Agent Enrollment created for a managed customer and correlate it with the connected Agent.

GET/partner-api/v1/accounts/{relationshipId}/agent-enrollments/{enrollmentId}API version: v1operationId: getPartnerAgentEnrollmentView as Markdown

What this endpoint does ​

Check the exact one-time Agent Enrollment created for a managed customer and correlate it with the connected Agent.

Authentication ​

Send a one-time RS256 Developer Application assertion in Authorization: Bearer <application_assertion>. This assertion is not a Public API access token.

Request ​

Production base URL: https://public-api.cloudprint.me/partner-api/v1/accounts/{relationshipId}/agent-enrollments/{enrollmentId}

Parameters ​

NameLocationTypeRequiredDescriptionConstraints
relationshipIdpathstring (uuid)yesStable UUID of the partner's relationship with the managed customer.—
enrollmentIdpathstring (uuid)yesStable UUID of the Agent Enrollment addressed by the path.—
X-Request-IdheaderstringnoOptional request identifier for tracing; CloudPrint returns a safe value in the response header.maxLength: 128; example: "order-100045-attempt-1"

Request body ​

This endpoint has no request body.

Example requests ​

cURL ​

bash
curl -sS \
  "https://public-api.cloudprint.me/partner-api/v1/accounts/$RELATIONSHIP_ID/agent-enrollments/$ENROLLMENT_ID" \
  -H "Authorization: Bearer $APPLICATION_ASSERTION"

Response ​

HTTP status: 200 — Agent Enrollment

Response fields ​

NameTypeRequiredDescriptionConstraints
agent_enrollment_idstring (uuid)yesStable identifier of the Agent Enrollment.—
namestringyesHuman-readable resource name shown to account operators.—
statusstringyesCurrent resource or workflow state; use the endpoint-specific enum values.enum: pending, claimed, expired, revoked
expires_atstring (date-time)yesISO 8601 timestamp recorded by CloudPrint.—
created_atstring (date-time)yesISO 8601 timestamp recorded by CloudPrint.—
agent_idstring | null (uuid)yesStable UUID of the connected CloudPrint agent.—
claimed_atstring | null (date-time)yesISO 8601 timestamp recorded by CloudPrint.—
revoked_atstring | null (date-time)yesISO 8601 timestamp recorded by CloudPrint.—

Example response ​

json
{
  "agent_enrollment_id": "11111111-1111-4111-8111-111111111111",
  "name": "string",
  "status": "pending",
  "expires_at": "2026-08-06T12:00:00Z",
  "created_at": "2026-08-06T12:00:00Z",
  "agent_id": "11111111-1111-4111-8111-111111111111",
  "claimed_at": "2026-08-06T12:00:00Z",
  "revoked_at": "2026-08-06T12:00:00Z"
}

Errors ​

HTTP statusDescription
401Application assertion is invalid
403Developer Account production access is not active
404Managed Account or Agent Enrollment was not found
422Relationship ID or Agent Enrollment ID is invalid
429Rate limit exceeded
500Unexpected error

Integration guidance ​

  • Persist agent_enrollment_id when creating the link and poll this exact resource; do not infer completion from another Agent already connected to the account.
  • Continue while the status is pending. When it becomes claimed, store the returned agent_id; stop polling on expired or revoked.

Guides for integrating CloudPrint, connecting the local agent and operating print workflows.