---
title: "Rotate Client Secret"
method: GET
path: "/api/{serviceId}/client/secret/refresh/{clientIdentifier}"
tags: ["Client Management"]
---

# Rotate Client Secret

`GET /api/{serviceId}/client/secret/refresh/{clientIdentifier}`

Refresh the client secret of a client. A new value of the client secret will be generated by the
Authlete server.

If you want to specify a new value, use `/api/client/secret/update` API.

## Path parameters

- `serviceId` string, required
- `clientIdentifier` string, required

## Response `200`

- ClientSecretRefreshResponse
  - `resultCode` string — The code which represents the result of the API call.
  - `resultMessage` string — A short message which explains the result of the API call.
  - `newClientSecret` string — The new client secret.
  - `oldClientSecret` string — The old client secret.

## Other responses

- `400`
- `401`
- `403`
- `429` — The request exceeded the request rate permitted for the endpoint.
- `500`

---

[API](https://skmtc.net/authlete/apis/authlete-api.md) · [All operations](https://skmtc.net/authlete/apis/authlete-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/authlete/authlete-api/versions/7ad74ab64749/schema)
