Skip to content

Reserve an upload for a draft post

Publishing
post /v1/publishing/media/reserve

Reserve space for one file on a draft. Supply its MIME type, exact byte count, and lowercase SHA-256. Images allow at most 20 MiB. Videos allow at most 100 MiB. This request contains metadata only. Use a new request ID for each deliberate reservation. This operation uses no credits.

Authentication

  • MemberBearer bearer token

    Send an AuthKit member OAuth access token in the Authorization header. The audience is the existing MCP resource URL.

Request body

  • contentType string required
  • sizeBytes integer required
  • contentId string · uuid required
  • filename string required
  • sha256 string required
  • requestId string · uuid required

Responses

  • 200

    The reserved asset. Use REST or external MCP for uploads. This operation uses no credits.

  • 400

    The request or file metadata is invalid.

  • 401

    The bearer credential is missing or invalid.

  • 403

    The operation requires member access and Posts access.

  • 404

    The resource was not found.

  • 409

    The asset state, reservation, grant intent, quota, or request ID conflicts with the command.

  • 429

    The Cloudflare rate limiter rejected the request.

  • 500

    The request failed without exposing internal diagnostics.

  • 503

    The service or upload configuration is unavailable.