---
title: "Deactivate an API key"
method: PUT
path: "/api/credentials/keys/{heron_id}/deactivate"
tags: ["Credentials"]
---

# Deactivate an API key

`PUT /api/credentials/keys/{heron_id}/deactivate`

Deactivate an API key. The key will stop working immediately but can be re-activated later. Use this instead of deleting to allow rollback.

## Path parameters

- `heron_id` string, required

## Response `200`

Key deactivated

- ApiKeyStatusSchema
  - `heron_id` string
  - `is_active` boolean

## Other responses

- `404` — Key not found

---

[API](https://skmtc.dev/herondata/apis/heron-data-api.md) · [All operations](https://skmtc.dev/herondata/apis/heron-data-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/herondata/heron-data-api/revisions/f2e441edece2/schema)
