---
title: "Rotate the application event-ingestion key"
method: POST
path: "/organizations/{organizationId}/api-key/regenerate"
tags: ["Customer accounts"]
---

# Rotate the application event-ingestion key

`POST /organizations/{organizationId}/api-key/regenerate`

## Request

- Base URL: `https://api.chatdna.co/agent-push-kit/v1`
- URL: `https://api.chatdna.co/agent-push-kit/v1/organizations/{organizationId}/api-key/regenerate`
- Auth: HTTP bearer

The previous `apk_` key stops working immediately. The replacement is returned only in this response.

## Path parameters

- `organizationId` string, required

## Response `201`

Key regenerated

- OrganizationApiKeyCreated
  - `keyPrefix` string, required
  - `lastFour` string, required
  - `updatedAt` string, date-time, required
  - `apiKey` string, required

## Other responses

- `401`: Missing, invalid, or revoked credentials
- `403`: The operation requires an owner
- `404`: The resource is absent or outside the current user's customer accounts

---

[API](https://skmtc.dev/agentpushkit/apis/agent-push-kit-api.md) · [All operations](https://skmtc.dev/agentpushkit/apis/agent-push-kit-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentpushkit/apis/agent-push-kit-api/revisions/f522c3cf50bf?raw)
