---
title: "Reset credentials for a team user"
method: POST
path: "/v1/team-management/users/{id}/reset-keys"
tags: ["Team"]
---

# Reset credentials for a team user

`POST /v1/team-management/users/{id}/reset-keys`

Rotates both the API key and secret for a team user. The old credentials stop working immediately, so any deployed automation using them must be updated.

## Path parameters

- `id` integer, required

## Response `201`

Reset credentials for a team user

- TestingbotEntitiesTeamCredentialReset — Testingbot_Entities_TeamCredentialReset model
  - `success` boolean, required — Whether keys were rotated.
  - `client_key` string, required — The new API client key. Save this — the old key stops working immediately.

## Other responses

- `401` — Authentication required
- `403` — Caller is not admin / not the target user
- `404` — User not found

---

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