---
title: "Reject a pending request. Owner only."
method: POST
path: "/v1/admin/requests/{request_id}/reject"
tags: ["admin"]
---

# Reject a pending request. Owner only.

`POST /v1/admin/requests/{request_id}/reject`

## Request

- Base URL: `https://api.hookdetector.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.hookdetector.com/v1/admin/requests/{request_id}/reject`
- Auth: none declared

Mark a pending access request rejected. Nothing is emailed. A request already
approved or rejected is 409 request_already_decided (revoke an approved request's code
with DELETE /v1/admin/codes/{code_id} instead). Needs the admin scope and an admin
account. MCP: reject_access_request.

## Path parameters

- `request_id` string, required

## Headers

- `authorization` string, nullable: Bearer hd_... from POST /v1/accounts or POST /v1/keys

## Response `200`

Successful Response

- AccessRejectedOut
  - `request_id` string, required
  - `status` 'rejected', required
  - `decided_at` string, required

## Other responses

- `401`: missing, invalid, revoked or expired API key (code key_expired)
- `403`: the key lacks the admin scope (insufficient_scope), or its account is not the owner's (admin_required)
- `404`: not found on this account
- `409`: conflict with the account's state
- `413`: request body over the size cap
- `422`: invalid input
- `500`: our fault; names the request id

---

[API](https://skmtc.dev/hookdetector/apis/hook-detector.md) · [All operations](https://skmtc.dev/hookdetector/apis/hook-detector/llms.txt) · [OpenAPI document](https://skmtc.dev/hookdetector/apis/hook-detector/revisions/b136a2804d2b?raw)
