---
title: "Regenerate the authentication token for a client"
method: PUT
path: "/api/v2/clients/{client_id}/token"
tags: ["Clients", "Enterprise"]
---

# Regenerate the authentication token for a client

`PUT /api/v2/clients/{client_id}/token`

Regenerate the authentication token for a client

## Response `200`

OK

- object
  - `data` ModelAuthToken
    - `id` string, uuid — This is the unique identifier for this object.
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `deleted_at` NullTime
      - `time` string, date-time — An RFC-3339 formatted string
      - `valid` boolean — Valid is true if `time` is not `null`.
    - `user_id` NullUuid
      - `uuid` string, uuid
      - `valid` boolean — Valid is true if `uuid` is not `null`.
    - `name` NullString
      - `string` string
      - `valid` boolean — Valid is true if `string` is not `null`
    - `key` string
    - `hmac_method` string
    - `last_access` string, date-time
    - `created_by` NullUuid
      - `uuid` string, uuid
      - `valid` boolean — Valid is true if `uuid` is not `null`.

## Other responses

- `401` — **Unauthorized** This endpoint failed an authentication requirement. Either the client tried to access a protected endpoint without being authenticated, or an auth validation failed (ex- invalid credentials or expired token).
- `403` — **Forbidden** This is most commonly caused by an authenticated client trying to access a resource that it does not have permission for.
- `404` — **Not Found** This error typically comes from operations where a valid ID was passed to the request to look up an entity but the entity could not be found.
- `429` — **Too Many Requests** The client has sent too many requests within a certain time window and tripped the rate limiting middleware.
- `500` — **Internal Server Error** This is usually the result of either an unexpected database or application error. The client may try modifying or resending the request, but the error is likely not related to the client doing something wrong.

---

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