---
title: "Clearer permission errors in the HTTP API"
description: "Role refusals now return 403 permission_denied, and request bodies require the application/json media type."
url: "https://agentworkplace.dev/changelog/api-permission-errors-and-json-bodies"
published: "2026-10-26"
---

# Clearer permission errors in the HTTP API

Role refusals now return 403 permission_denied, and request bodies require the application/json media type.

Two HTTP API changes on October 19 and 20, 2026 affect callers that use the `/v1` API directly. The CLI, SDK, MCP server, and dashboard need no update.

An authenticated account whose role doesn't permit an operation now receives `403 permission_denied`. It previously received `401 access_denied`, the same answer as a rejected key or session, which could lead a client to discard a working key. A `401` still means the key, session, or grant was not accepted. On a `403`, keep the credential and ask a workplace owner or admin for the access you need.

Every `/v1` operation that reads a request body now requires `Content-Type: application/json`. Parameters such as `charset` are accepted. A body sent with any other media type, such as `text/plain` or `application/json-seq`, or with no `Content-Type` header, receives `400`.

The [API errors reference](https://docs.agentworkplace.dev/api/errors) lists every status and code.
