---
title: "Get one Agent Enrollment"
description: "Check the exact one-time Agent Enrollment created for a managed customer and correlate it with the connected Agent."
---
<nav class="docs-breadcrumb" aria-label="Breadcrumb"><a href="/docs/">CloudPrint Documentation</a><span aria-hidden="true">/</span><span>API reference</span></nav>

# Get one Agent Enrollment

<p class="docs-lead">Check the exact one-time Agent Enrollment created for a managed customer and correlate it with the connected Agent.</p>

<div class="api-endpoint-summary"><span class="api-method api-method-get">GET</span><code>/partner-api/v1/accounts/{relationshipId}/agent-enrollments/{enrollmentId}</code><span><strong>API version:</strong> v1</span><span><strong>operationId:</strong> <code>getPartnerAgentEnrollment</code></span><a href="/docs/api/v1/partner/agent-enrollments/get/index.md">View as Markdown</a></div>

## 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

| Name | Location | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- | --- |
| `relationshipId` | path | `string (uuid)` | yes | — | — |
| `enrollmentId` | path | `string (uuid)` | yes | — | — |

### 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

| Name | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `agent_enrollment_id` | `string (uuid)` | yes | Stable identifier of this resource. | — |
| `name` | `string` | yes | — | — |
| `status` | `string` | yes | Current resource or workflow state; use the endpoint-specific enum values. | enum: `pending`, `claimed`, `expired`, `revoked` |
| `expires_at` | `string (date-time)` | yes | ISO 8601 timestamp recorded by CloudPrint. | — |
| `created_at` | `string (date-time)` | yes | ISO 8601 timestamp recorded by CloudPrint. | — |
| `agent_id` | `string \| null (uuid)` | yes | Stable UUID of the connected CloudPrint agent. | — |
| `claimed_at` | `string \| null (date-time)` | yes | ISO 8601 timestamp recorded by CloudPrint. | — |
| `revoked_at` | `string \| null (date-time)` | yes | ISO 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": null,
  "claimed_at": null,
  "revoked_at": null
}
```

## Errors

| HTTP status | Description |
| --- | --- |
| `401` | Application assertion is invalid |
| `403` | Partner capability is not granted |
| `404` | Managed Account or Agent Enrollment was not found |
| `422` | Relationship ID or Agent Enrollment ID is invalid |
| `429` | Rate limit exceeded |
| `500` | Unexpected error |

## Integration guidance

- Persist `enrollment_id` when creating the link and poll this exact resource; do not infer completion from another Agent already connected to the account.
- Treat `ready` as successful completion and store the returned `agent_id`. Stop polling on `expired`, `cancelled` or `failed`.

## Related documentation

<div class="docs-card-grid"><a class="docs-card" href="/docs/api/v1/partner/agent-enrollments/create/"><strong>Create a managed Agent Enrollment</strong><span>Issue an idempotent one-time Enrollment before or after customer onboarding.</span></a>
<a class="docs-card" href="/docs/api/v1/partner/agent-enrollments/revoke/"><strong>Revoke an Agent Enrollment</strong><span>Revoke one unclaimed Enrollment so its secret can no longer connect an Agent.</span></a>
<a class="docs-card" href="/docs/partner-platform/agent-enrollment/"><strong>Enroll an agent for a customer</strong><span>Connect a local CloudPrint Agent to the correct managed customer account without requiring a customer portal login.</span></a></div>

<nav class="docs-resource-links" aria-label="Next steps"><a href="/docs/api/v1/explorer/">OpenAPI</a><a href="https://my.cloudprint.me">Open account</a><a href="/docs/legal/privacy/">Privacy Policy</a><a href="/docs/legal/terms/">Terms</a><a href="/docs/legal/payments-and-refunds/">Payment and refunds</a><a href="/docs/legal/data-processing/">DPA</a></nav>