Passage Data Certificate API

The Certificate API from Passage Data — 1 operation(s) for certificate.

GitHub OpenAPI

Operations 1

POST /certificate Read a laboratory certificate into its rows, each with its page, and check each… #

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/passage-data-com:passage-data-com-certificate-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

passage-data-com-certificate-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Passage Data — cited environmental limits Certificate API
  version: 1.28.0
  summary: Numeric environmental limits and guidelines read from the regulations themselves, every row cited to its source; a species' status under each species register held, cited; a species file's columns mapped to Darwin Core, and the file built into a Darwin Core archive; and a US NPDES permit's monthly report checked against its limits, or computed from the plant's own rows; a published Darwin Core archive's defects, audited; and whether a file's occurrence records publish a listed species at a precision that exposes it.
  description: 'Discharge limits and water, groundwater and air quality guidelines from US federal effluent guidelines, the rules of 31 US states and DC, Canadian federal and provincial rules, and German, French, Italian and EU instruments; and the status a species holds under the species registers we hold (US ESA, SARA, COSEWIC, provincial acts, IUCN, CITES, CMS, EU and UK schedules). Every row carries a `cite` block: instrument, edition, section or page, the quoted text, source URL and sha256. An answer with nothing to give is a `refused` block naming what was searched; it is a statement about our sources, not about the law of a place. Also served as an MCP server at https://passage-data.com/mcp, which also lists an account''s own sites (list_sites, create_site, add_document, ask_site): a connector signs in by OAuth 2.1 (metadata at /.well-known/oauth-protected-resource/mcp), or a client sends the account''s key as `Authorization: Bearer pdk_…`; those tools have no HTTP route here. Free while in preview; calls may be rate-limited. Pages are free. Without a key a caller has 100 tool calls a UTC day (then 429 allowance.spent). A free key (an email or Google sign-in, no card: https://passage-data.com/?keys) is sent as Authorization: Bearer pdk_... or x-api-key and carries $10 of calls a month, renewed on the 1st UTC (then 402 credit.spent); GET https://passage-data.com/w/credits/balance with the key shows the month. Paid credit is not open yet.'
servers:
- url: https://passage-data.com/api/v1
security:
- {}
- accountKey: []
- apiKeyHeader: []
tags:
- name: Certificate
paths:
  /certificate:
    post:
      operationId: read_certificate
      summary: Read a laboratory certificate into its rows, each with its page, and check each…
      description: 'A PDF certificate, or the laboratory''s own export as XLSX, XLS or CSV / TSV, read by rules (no AI writes a row): each row the certificate prints with the sample, the parameter, the value as printed, its unit, a qualifier (, ND), the detection limit and the page (or sheet) it was read from; a sample''s date, matrix, lab ID and certificate in `samples`. With a `place` (best with a `medium`), every row with a value is checked by check_values itself; `exceedances` lists every row over a limit or under a floor, each limit once in `limits` with its `cite`. A result below detection is not compared (`value.below_detection`). `checked_as` is the printed name without the lab''s decoration (`Cuivre (Cu) a 2` -> `Cuivre`) when check_value holds that name. Rows page by `max_rows` / `offset` (the file is read again). Anything but a PDF, XLSX, XLS or CSV is refused `format.not_handled` before it is read. The file is read and discarded: it is not kept, and nothing is learned from it.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                content_base64:
                  type: string
                  description: The file's bytes, base64-encoded (at most 10 MB). Give this or file_url.
                file_url:
                  type: string
                  description: An https address the file can be fetched from (not loopback or a private network). Give this or content_base64.
                filename:
                  type: string
                place:
                  type: string
                  description: 'ISO 3166 code: US, US-OH, CA, CA-QC, DE, FR, IT, EU. Omit to read the rows without checking them.'
                medium:
                  type: string
                  enum:
                  - water_discharge
                  - surface_water
                  - groundwater
                  - drinking_water
                  - soil
                  - ambient_air
                  - air_emission
                  - sediment
                  - leachate
                statistic:
                  type: string
                max_rows:
                  type: integer
                  minimum: 1
                  maximum: 500
                  default: 100
                  description: Certificate rows on this page; the summary and exceedances cover every row.
                offset:
                  type: integer
                  minimum: 0
                  default: 0
                call_id:
                  type: string
                  description: 'Only after read.pending: collect the reading without sending the file again.'
            example:
              file_url: https://example.org/certificate.pdf
              place: CA-QC
              medium: surface_water
          multipart/form-data:
            schema:
              type: object
              required:
              - file
              properties:
                file:
                  type: string
                  format: binary
                place:
                  type: string
                medium:
                  type: string
                statistic:
                  type: string
                max_rows:
                  type: integer
                offset:
                  type: integer
      responses:
        '200':
          description: The rows read, the summary and, with a place, the exceedances and the limits they name; or a refusal about the file (certificate.no_rows, certificate.not_results, page.missing)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Certificate'
        '202':
          description: 'read.pending: a long file is still being read; call again with its call_id'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '400':
          description: file.missing, file.ambiguous, file.malformed, file.url_refused, call_id.unknown, body.malformed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '413':
          description: file.too_large (over 10 MB), body.too_large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '415':
          description: 'format.not_handled: not a PDF, XLSX, XLS or CSV; nothing read'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '422':
          description: 'file.unreachable: the file_url could not be fetched'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '429':
          description: 'engine.busy: the reading service''s hourly limit'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '503':
          description: 'engine.unreachable, engine.timeout: nothing was read; try again'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
      tags:
      - Certificate
components:
  schemas:
    Cite:
      type: object
      properties:
        instrument:
          type: string
        title:
          type: string
        issuer:
          type:
          - string
          - 'null'
        edition:
          type:
          - string
          - 'null'
        section:
          type:
          - string
          - 'null'
        page:
          type:
          - integer
          - string
          - 'null'
        quote:
          type:
          - string
          - 'null'
        source_url:
          type:
          - string
          - 'null'
        source_sha256:
          type:
          - string
          - 'null'
        source_status:
          type: object
          description: 'What the daily edition watch last saw at the source: status unchanged, changed (with changed_on and says: the rows are as read from the edition named, not yet re-read) or not verified; checked is the day.'
          properties:
            checked:
              type: string
            status:
              type: string
              enum:
              - unchanged
              - changed
              - not verified
            changed_on:
              type: string
            says:
              type: string
        note:
          type: string
          description: What the register prints beside the value (e.g. a later or earlier value and its date).
        table:
          type: string
        column:
          type: string
          description: The register column the value sits in (e.g. mcl, mclg).
    Refused:
      type: object
      properties:
        refused:
          type: object
          properties:
            code:
              type: string
            says:
              type: string
    Row:
      type: object
      properties:
        parameter:
          type: string
        parameter_key:
          type: string
        value:
          type: string
        value_num:
          type:
          - number
          - 'null'
        range:
          type:
          - array
          - 'null'
        unit:
          type:
          - string
          - 'null'
        statistic:
          type:
          - string
          - 'null'
        direction:
          type:
          - string
          - 'null'
        kind:
          type: string
        medium:
          type: string
        place:
          type: array
          items:
            type: string
        conditions:
          type: array
          items:
            type: string
        cite:
          $ref: '#/components/schemas/Cite'
    Certificate:
      type: object
      properties:
        query:
          type: object
        file:
          type: object
          properties:
            name:
              type:
              - string
              - 'null'
            bytes:
              type: integer
            format:
              type: string
              enum:
              - pdf
              - xlsx
              - xls
              - csv
            sha256:
              type: string
            from:
              type: string
        read:
          type: object
          description: lab, certificates, samples, parameters, rows, and the pages (or sheets) rows were read from
        checked:
          type: object
          description: places searched, or the place's own `refused` (the rows are still returned)
        summary:
          type: object
          properties:
            samples:
              type: integer
            rows:
              type: integer
            over:
              type: integer
            under:
              type: integer
            within:
              type: integer
            not_comparable:
              type: integer
            below_detection:
              type: integer
            refused:
              type: integer
            refused_by:
              type: object
              additionalProperties:
                type: integer
            says:
              type: string
        notes:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
              says:
                type: string
        packed_as:
          type: string
        exceedances:
          type: array
          items:
            type: object
            properties:
              i:
                type: integer
              s:
                type: integer
              parameter:
                type: string
              value:
                type: string
              unit:
                type: string
              page:
                type: integer
              tab:
                type: string
              over:
                type: array
                items:
                  type: integer
              under:
                type: array
                items:
                  type: integer
        limits:
          type: array
          items:
            $ref: '#/components/schemas/Row'
        refusals:
          type: object
          additionalProperties:
            type: string
          description: Each refusal code's sentence, once
        sources_searched:
          type: array
          items:
            type: object
        samples:
          type: array
          items:
            type: object
            properties:
              sample:
                type: string
              date:
                type: string
              matrix:
                type: string
              lab_id:
                type: string
              certificate:
                type: string
        total:
          type: integer
        offset:
          type: integer
        returned:
          type: integer
        next_offset:
          type:
          - integer
          - 'null'
        rows:
          type: array
          items:
            type: object
            properties:
              i:
                type: integer
              s:
                type: integer
                description: index into samples
              parameter:
                type: string
                description: as printed
              value:
                type: string
                description: as printed
              unit:
                type: string
              qualifier:
                type: string
                description: <, > or ND
              detection_limit:
                type: string
              rdl:
                type: string
              mdl:
                type: string
              loq:
                type: string
              flag:
                type: string
              lab_flag:
                type: string
              page:
                type: integer
              tab:
                type: string
              checked_as:
                type: string
              outcome:
                type: string
                enum:
                - over
                - under
                - within
                - not_comparable
              counts:
                type: object
              over:
                type: array
                items:
                  type: integer
              under:
                type: array
                items:
                  type: integer
              refused:
                type: object
                properties:
                  code:
                    type: string
                  says:
                    type: string
        refused:
          type: object
  securitySchemes:
    accountKey:
      type: http
      scheme: bearer
      description: An account key (pdk_...) made at https://passage-data.com/?keys, or an app's OAuth access token (pdo_...).
    apiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: The same account key, in its own header.