---
title: "Test a claim template for a client"
method: POST
path: "/v1/auth-servers/{authServerId}/clients/{clientId}/test-claim"
tags: ["Auth Server Clients"]
---

# Test a claim template for a client

`POST /v1/auth-servers/{authServerId}/clients/{clientId}/test-claim`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v1/auth-servers/{authServerId}/clients/{clientId}/test-claim`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Test a claim template for a client. Utility function to test claim templates against a client and verify the resulting claim values.

## Path parameters

- `authServerId` string, uuid, required
- `clientId` string, required: The OAuth 2.0 client ID

## Request body

- object: A map<string>string of the claims and templates

## Response `200`

Result of a claim test

- TestClaimResult: A map<string>any of the claim that have been templated

## Other responses

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

## Changes

- **2026-11-02** `7e077577b247`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v1/auth-servers/:authServerId/clients/:clientId/test-claim/post.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-go-sdk.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api-go-sdk/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4?raw)
