---
title: "Regenerate API key"
method: POST
path: "/api/v1/partner-portal/api-keys/regenerate/"
tags: ["Partner Portal"]
---

# Regenerate API key

`POST /api/v1/partner-portal/api-keys/regenerate/`

## Request

- Base URL: `https://docs.thredfi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.thredfi.com/api/v1/partner-portal/api-keys/regenerate/`
- Auth: one of:
  - HTTP bearer
  - HTTP basic
  - HTTP bearer
  - HTTP bearer

Regenerate partner API key. WARNING: This will invalidate the current API key

## Response `200`

- PartnerAPIKeyRegenerate: Serializer for API key regeneration response
  - `api_key` string, required
  - `message` string, required
  - `regenerated_at` string, date-time, required

## Other responses

- `400`: Validation errors in request data
- `401`: Authentication required - missing or invalid API key
- `403`: Permission denied - insufficient privileges
- `404`: Resource not found
- `409`: Conflict - resource already exists or invalid state transition
- `422`: Unprocessable entity - business logic validation failed
- `500`: Internal server error

---

[API](https://skmtc.dev/thredfi/apis/thredfi-accounting-platform-api.md) - [All operations](https://skmtc.dev/thredfi/apis/thredfi-accounting-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/thredfi/apis/thredfi-accounting-platform-api/revisions/0c1918254db3?raw)
