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

# Lists Test Distribution pool-specific agent registration keys.

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

## Request

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

Returns a list of all Test Distribution pool-specific agent registration key prefixes.

## Response `200`

The response contains a listing of the requested type of (active or revoked) Test Distribution pool-specific agent registration key.

- TestDistributionAgentPoolRegistrationKeyPrefixPage: A list of Test Distribution pool-specific agent registration key prefixes.
  - `content` TestDistributionAgentPoolRegistrationKeyPrefix[], required
    - `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)
