---
title: "Get client credentials tokens"
method: GET
path: "/resources/tenants/api-tokens/v1"
tags: ["API (tenant) tokens"]
---

# Get client credentials tokens

`GET /resources/tenants/api-tokens/v1`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/tenants/api-tokens/v1`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/tenants/api-tokens/v1/get.ts> (a function with typed inputs; its response is checked against the schema)

This route gets all API tokens for a specific tenant. Send the tenant’s ID in the **`frontegg-tenant-id`** header.

## Headers

- `frontegg-tenant-id` string, required

## Response `200`

- GetTenantApiTokensResponse[]
  - `clientId` string, required
  - `description` string, nullable, required
  - `tenantId` string, required
  - `createdByUserId` string, nullable, required
  - `metadata` object, required: Extra data that will be encoded as part of the JWT
  - `createdAt` string, date-time, required
  - `permissionIds` string[], required: Array of permission ids. Either this or roleIds will be present, but not both.
  - `roleIds` string[], required: Array of role ids. Either this or permissionIds will be present, but not both.
  - `expires` string, date-time, required

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
