---
title: "Access requests, newest first. Owner only."
method: GET
path: "/v1/admin/requests"
tags: ["admin"]
---

# Access requests, newest first. Owner only.

`GET /v1/admin/requests`

## 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`
- Auth: none declared

Every access request, newest first (at most 500): request_id, email, note, status
(pending, approved, rejected), the code_id and code_prefix of the code made when it was
approved, created_at and decided_at. Never the code itself. Needs the admin scope and
an admin account (403 admin_required). MCP: list_access_requests.

## Query parameters

- `status` 'pending' | 'approved' | 'rejected' | 'other', nullable: only requests with this status; all when left out

## Headers

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

## Response `200`

Successful Response

- AccessRequestList
  - `requests` AccessRequestItem[], required: newest first, at most 500
    - `request_id` string, required
    - `email` string, required
    - `note` string, nullable, required
    - `status` 'pending' | 'approved' | 'rejected' | 'other', required
    - `code_id` string, nullable, required: the code made when it was approved
    - `code_prefix` string, nullable, required: the first characters of that code
    - `created_at` string, required
    - `decided_at` string, nullable, 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)
- `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)
