---
title: "List Agent Credentials"
method: GET
path: "/agents/{id}/credentials"
tags: ["agents"]
---

# List Agent Credentials

`GET /agents/{id}/credentials`

## Request

- Base URL: `https://api.instruxi.dev/api/v1/enforcer`
- URL: `https://api.instruxi.dev/api/v1/enforcer/agents/{id}/credentials`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-API-Key`

Credential metadata (never the secret). Revoked credentials are hidden unless include_revoked=true.

## Path parameters

- `id` string, required

## Query parameters

- `include_revoked` boolean

## Response `200`

OK

- InternalDeliveryHttpHandlerAgentCredentialListResponse
  - `data` InternalDeliveryHttpHandlerAgentCredentialListData
    - `items` EnforcerV3InternalUsecaseAgentsCredentialView[]
      - `agent_id` string
      - `created_at` string
      - `created_by` string
      - `expires_at` string
      - `id` string
      - `key_prefix` string
      - `last_used_at` string
      - `last_used_ip` string
      - `name` string
      - `revoked_at` string
      - `rotated_from` string
      - `scopes` string[]
  - `success` boolean

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found

---

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