Cherished Book Contributions API

The Contributions API from Cherished Book — 6 operation(s) for contributions.

GitHub OpenAPI

Operations 6

POST /contributions/{contribution}/approve Publish what someone wrote #
DELETE /contributions/{contribution} Hide what someone wrote #
POST /contributions/{contribution}/reject Reject what someone wrote #
POST /contributions/{contribution}/pin Pin something to the top of their book #
POST /contributions/{contribution}/unpin Unpin something #
POST /contributions/{contribution}/restore Restore something hidden #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cherishedbook-com:cherishedbook-com-contributions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cherishedbook-com-contributions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cherishedbook Com Contributions API
  version: 2.2.0
  description: 'Operations tagged Contributions across 2 of this provider''s published API definitions: public.yaml, cherishedbook-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /api/v1
- url: https://app.cherishedbook.com/api/v1
  description: Absolute base stated in https://www.cherishedbook.com/llms.txt (POST https://app.cherishedbook.com/api/v1/auth/device)
security:
- bearerAuth: []
tags:
- name: Contributions
paths:
  /contributions/{contribution}/approve:
    post:
      summary: Publish what someone wrote
      description: Publish something written on one of your memorials. Refused for anything the safety check flagged, and for those still awaiting the writer's email confirmation — the same two limits that apply on the website.
      operationId: approveContribution
      parameters:
      - in: path
        name: contribution
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Published
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Contribution'
        '404':
          description: Not on a memorial you look after
        '422':
          description: Cannot be published
          content:
            application/json:
              schema:
                type: object
                required:
                - code
                - message
                properties:
                  code:
                    type: string
                    enum:
                    - blocked_by_safety_check
                    - awaiting_verification
                  message:
                    type: string
      tags:
      - Contributions
    servers:
    - url: /api/v1
  /contributions/{contribution}:
    delete:
      summary: Hide what someone wrote
      description: 'Hide something someone wrote from their book. Recoverable: it can be restored. Because this concerns something a grieving person wrote, confirm with the memorial''s owner before doing it.'
      operationId: hideContribution
      parameters:
      - in: path
        name: contribution
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Hidden
          content:
            application/json:
              schema:
                type: object
                required:
                - id
                - hidden
                - message
                properties:
                  id:
                    type: integer
                  hidden:
                    type: boolean
                  message:
                    type: string
        '404':
          description: Not on a memorial you look after
      tags:
      - Contributions
    servers:
    - url: /api/v1
  /contributions/{contribution}/reject:
    post:
      summary: Reject what someone wrote
      description: Mark it as rejected so it stays out of their book, optionally recording why.
      operationId: rejectContribution
      parameters:
      - in: path
        name: contribution
        required: true
        schema:
          type: integer
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                reason:
                  type: string
                  maxLength: 500
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Contribution'
        '404':
          description: Not on a memorial you look after
      tags:
      - Contributions
    servers:
    - url: /api/v1
  /contributions/{contribution}/pin:
    post:
      summary: Pin something to the top of their book
      description: 'Puts it in the pinned band at the top of their book. It must be approved first: pinning something still being safety-checked would place it at the top the moment it passed, without anyone choosing that.'
      operationId: pinContribution
      tags:
      - Contributions
      parameters:
      - name: contribution
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Pinned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PinState'
        '401':
          description: Missing or invalid token
        '422':
          description: Not approved yet.
    servers:
    - url: /api/v1
  /contributions/{contribution}/unpin:
    post:
      summary: Unpin something
      description: Moves it back to its usual place. Nothing is removed.
      operationId: unpinContribution
      tags:
      - Contributions
      parameters:
      - name: contribution
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Unpinned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PinState'
        '401':
          description: Missing or invalid token
    servers:
    - url: /api/v1
  /contributions/{contribution}/restore:
    post:
      summary: Restore something hidden
      description: Put it back in their book.
      operationId: restoreContribution
      parameters:
      - in: path
        name: contribution
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Contribution'
        '404':
          description: Not on a memorial you look after
      tags:
      - Contributions
    servers:
    - url: /api/v1
components:
  schemas:
    Contribution:
      type: object
      additionalProperties: false
      required:
      - id
      - type
      - title
      - body
      - author
      - status
      - is_approved
      - is_private
      - is_pinned
      - is_hidden
      - heart_count
      - moderation
      - can_approve
      - created_at
      properties:
        id:
          type: integer
        type:
          type:
          - string
          - 'null'
        title:
          type:
          - string
          - 'null'
        body:
          type:
          - string
          - 'null'
        author:
          type: object
          additionalProperties: false
          required:
          - name
          - email
          - is_guest
          properties:
            name:
              type:
              - string
              - 'null'
            email:
              type:
              - string
              - 'null'
            is_guest:
              type: boolean
        status:
          type: string
          enum:
          - pending
          - approved
          - rejected
          - hidden
        is_approved:
          type: boolean
        is_private:
          type: boolean
        is_pinned:
          type: boolean
        is_hidden:
          type: boolean
        heart_count:
          type: integer
          minimum: 0
        moderation:
          type: object
          additionalProperties: false
          required:
          - status
          - reason
          properties:
            status:
              type:
              - string
              - 'null'
            reason:
              type:
              - string
              - 'null'
        can_approve:
          type: boolean
        created_at:
          type:
          - string
          - 'null'
    PinState:
      type: object
      required:
      - id
      - pinned
      - message
      properties:
        id:
          type: integer
        pinned:
          type: boolean
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API token, sent as `Authorization: Bearer <token>`.

        A personal token is obtained through the device flow (`POST /auth/device`), or by hand from Connected apps in account settings. Rate limited to 20 requests/minute.

        A business token is created by a Business Admin in Business settings → API tokens, is shown once, and scopes to that organization. Rate limited to 50 requests/minute.

        '
x-refined-from:
- public.yaml
- cherishedbook-com-openapi.yml