---
title: "Decline Enterprise Key"
method: PUT
path: "/api/admin/enterprise/{key_id}/decline"
tags: ["Admin"]
---

# Decline Enterprise Key

`PUT /api/admin/enterprise/{key_id}/decline`

Decline a pending enterprise key with a decline_reason (Admin only).

## Path parameters

- `key_id` string, required

## Request body

- EnterpriseKeyApprovalRequest
  - `action` 'approve' | 'decline', required — Action: 'approve' or 'decline'
  - `credit_limit_usd` number, nullable — Override credit limit for this key (only for approve action)
  - `decline_reason` string, nullable — Reason for declining (only for decline action)

## Response `200`

Successful Response

- EnterpriseKeyApprovalResponse
  - `success` boolean
  - `message` string, required — Result message
  - `key_id` string, required — The key ID that was processed
  - `new_status` 'active' | 'declined', required — New status: 'active' or 'declined'

## Other responses

- `404` — Not Found
- `422` — Validation Error
- `500` — Internal Server Error

---

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