# Endpoint Actor Inventory

> Build the two lists every authorization review depends on: every operation the API exposes and every kind of actor that can call it. Use when you start an access-control review of an API you own or are authorized to assess and need a complete testing surface

- Skill: `wsh7ash/endpoint-actor-inventory` (Agent Skill)
- Install (CLI): `npx get-skill add wsh7ash/endpoint-actor-inventory`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wsh7ash/endpoint-actor-inventory/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: Wsh7Ash (https://skillmd.com/u/wsh7ash)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/wsh7ash/endpoint-actor-inventory

---


# Endpoint and Actor Inventory

> Build the two lists every authorization review depends on: every operation the API exposes and every kind of actor that can call it

**Use when:** you start an access-control review of an API you own or are authorized to assess and need a complete testing surface

**Avoid when:** the API documents operations and roles completely and your only job is checking one specific permission rule

## Procedure

1. Collect operations from every available source: description documents, client code, gateway routes and your own crawl of a test account.
2. Normalize each operation to method plus path template so `/orders/4821` and `/orders/9903` collapse into one row.
3. List actor kinds as the system actually distinguishes them: anonymous, member, elevated, service and any tenant or organization dimension.
4. For each actor record how the credential is obtained, so a test session for that actor can be reproduced exactly.
5. Mark operations that are administrative, destructive or handle bulk data, since those get the strictest review.
6. Store the inventory as a table your matrix command can consume, and refresh it whenever the API changes.

## Signals

- Operations appear in clients that are absent from the published description document, which means undocumented surface exists.
- Two actors the product treats as different share one credential type, so your tests must distinguish them by claim rather than by token format.
- An operation handles bulk or export behaviour, which makes it a high-value authorization target.
- The actor list from the product team differs from the roles you can actually obtain in a test environment.

## Patterns

**1. Operation row**

```text
GET  /api/orders/{id}   template=/api/orders/{id}  auth=session  object=yes  sensitive=no
```

**2. Actor row**

```text
id=member        role=member  credential=session-cookie  source=self-registration
id=other-member  role=member  credential=session-cookie  source=second-test-account
```

**3. Coverage rule**

```text
every operation x every actor must have an expected status before testing starts
```

## Pitfalls

- Listing endpoints without listing actors, which produces a matrix nobody can execute.
- Treating role names from documentation as authoritative when the running system issues different claims.
- Forgetting service-to-service actors, which often reach endpoints that human roles cannot.

## Done when

- Every operation is normalized to a path template and every actor has a reproducible credential recipe.
- High-risk operations are flagged and the inventory loads cleanly as the spec for the matrix command.

## References

- [OWASP API Security Top 10](https://owasp.org/www-project-api-security/)
- [OWASP Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/)

