OpenProof Shelf Life API

The shelf-life API from OpenProof — 3 operation(s) for shelf-life.

GitHub OpenAPI

Operations 3

GET /shelf-life List Shelf Life Records #
PATCH /shelf-life/{record_id} Update Shelf Life Record #
POST /shelf-life/{record_id}/attest-deletion Attest Deletion #

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/openproof-io:openproof-io-shelf-life-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

openproof-io-shelf-life-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Openproof Io Shelf Life API
  version: 1.0.0
  description: 'Operations tagged shelf-life across 2 of this provider''s published API definitions: openapi.json, openproof-io-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: shelf-life
paths:
  /shelf-life:
    get:
      tags:
      - shelf-life
      summary: List Shelf Life Records
      description: 'Auto-seeds one row per data category the business''s most recent

        assessment says they collect (Q6), the first time this is opened

        or whenever a later assessment introduces a new category. Seeded

        rows start with everything null -- nothing is assumed about when

        collection started or how long the data should be kept; the

        business fills those in themselves.'
      operationId: list_shelf_life_records_shelf_life_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
  /shelf-life/{record_id}:
    patch:
      tags:
      - shelf-life
      summary: Update Shelf Life Record
      description: 'Sets the business''s own collection-start date and/or retention

        duration for a category. expires_at is recomputed here whenever

        both are present -- if either is cleared, expires_at goes back to

        null rather than showing a stale computed date.'
      operationId: update_shelf_life_record_shelf_life__record_id__patch
      security:
      - HTTPBearer: []
      parameters:
      - name: record_id
        in: path
        required: true
        schema:
          type: string
          title: Record Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ShelfLifeUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /shelf-life/{record_id}/attest-deletion:
    post:
      tags:
      - shelf-life
      summary: Attest Deletion
      description: 'Records the business''s own attestation that this category''s

        data was deleted -- the actual "Deletion Proof." This is a

        self-reported fact, not something OpenProof independently

        verifies, same evidentiary honesty as every other self-reported

        field in the product. collection_started_at/retention_days are

        left untouched -- the row stays a complete historical record of

        what was collected, for how long, and when deletion was attested.'
      operationId: attest_deletion_shelf_life__record_id__attest_deletion_post
      security:
      - HTTPBearer: []
      parameters:
      - name: record_id
        in: path
        required: true
        schema:
          type: string
          title: Record Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeletionAttestation'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    DeletionAttestation:
      properties:
        deletion_note:
          anyOf:
          - type: string
          - type: 'null'
          title: Deletion Note
      type: object
      title: DeletionAttestation
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ShelfLifeUpdate:
      properties:
        collection_started_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Collection Started At
        retention_days:
          anyOf:
          - type: integer
          - type: 'null'
          title: Retention Days
      type: object
      title: ShelfLifeUpdate
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- openapi.json
- openproof-io-openapi.json
x-provenance:
  method: harvested
  publisher: OpenProof
  source: https://api.openproof.io/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)