Owner Check

Verify whether the supplied X-Owner-Token or X-Manage-Key owns the resource

Changed on

Returns {isOwner, type}, plus format for an html-type resource. 404 or 410 exactly as reading the resource would answer. 200 with isOwner:false when no credential is sent or it does not own the resource.

get/api/{ns}/{id}/owner-check

Request

  • Base URL
    https://brewpage.app
  • Auth
    • none
    • or API key in header X-Owner-Token
    • or API key in header X-Manage-Key

Path parameters

ns, string required
id, string required

Headers

X-Owner-Token, unknown

Owner token to verify

X-Manage-Key, unknown

Management key to verify

Response

OK

OwnerCheckResponse required
type, string required

Resource type (html, kv, json, file, site)

format, 'html' | 'other'

Only for an html-type resource: html for an HTML page, other for any other stored format (Markdown, code or text). Absent for every other type

isOwner, boolean required

Changes

    • warning

      removed the optional property owner from the response with the status

    • info

      the endpoint scheme security ManageKey was added to the API

    • info

      added the new optional header request parameter X-Manage-Key

    2 more changes in this revision