Brick Work

0003. API v1 authentication

Context

The API needs a way to identify callers, limit what they may do and record who did what. The contract draft asked these as open questions.

Options considered

  1. Single static token — not recorded as weighed.
  2. Stored, scoped tokens plus an environment bootstrap token — tokens carry read, write or admin scope; the environment token cannot be revoked through the API.

For rate limits and the audit actor, the options considered are not recorded.

Recommendation at the time: not recorded beyond the contract draft.

Decision

Consequences

docs/brickwork/api-v1.md sections 2.9, 10 and 11 (DDL-1, DDL-2). Related: ADR 0004.