---
title: "Get a Test Distribution pool-specific agent registration keyPrefix information."
method: GET
path: "/api/test-distribution/agent-pools/{poolId}/registration-keys/{keyPrefix}"
tags: ["TestDistribution", "GradleEnterprise", "Develocity"]
---

# Get a Test Distribution pool-specific agent registration keyPrefix information.

`GET /api/test-distribution/agent-pools/{poolId}/registration-keys/{keyPrefix}`

## Request

- Base URL: `https://develocity.example.com`
- URL: `https://develocity.example.com/api/test-distribution/agent-pools/{poolId}/registration-keys/{keyPrefix}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/develocity/apis/develocity-api/docs/api/test-distribution/agent-pools/:poolId/registration-keys/:keyPrefix/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns information about a Test Distribution pool-specific agent registration keyPrefix.

## Response `200`

The response contains information about the requested Test Distribution pool-specific agent registration keyPrefix.

- TestDistributionAgentPoolRegistrationKeyPrefix: A Test Distribution pool-specific agent registration key prefix.
  - `keyPrefix` string, required: The registration key prefix.
  - `description` string: Description of the registration key to help identify it later.
  - `createdAt` string, date-time, required: When the key was created
  - `lastUsedAt` string, date-time, nullable: When the key was last used
  - `lastUsedBy` string, nullable: Who used the key last
  - `revokedAt` string, date-time, nullable: When the key was revoked, a non-null value implies that the key is revoked and can no longer be used to authenticate.

## Other responses

- `403`: The authenticated user has insufficient permissions.
- `404`: No API key was specified in the request, the key has been revoked, or the user bearing the key lacks permissions for this operation.

---

[API](https://skmtc.dev/develocity/apis/develocity-api.md) - [All operations](https://skmtc.dev/develocity/apis/develocity-api/llms.txt) - [OpenAPI document](https://skmtc.dev/develocity/apis/develocity-api/revisions/b49835fbf065?raw)
