Passage Data Audit API

The Audit API from Passage Data — 1 operation(s) for audit.

GitHub OpenAPI

Operations 2

GET /audit Audit a published Darwin Core archive #
POST /audit Audit a Darwin Core archive named in JSON or sent as a file #

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-audit-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-audit-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Passage Data — cited environmental limits Audit 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: Audit
paths:
  /audit:
    get:
      operationId: audit_archive
      summary: Audit a published Darwin Core archive
      description: 'A file this tool reads, sent or fetched from the address given, is read as one dropped on our website: what the read finds (column headings, the shape of its rows, the terms they became, refusal codes) is kept so the reader learns, never the file or its values. Names and contacts are dropped or replaced by a code, and protected species'' locations are made coarser. The defects the website''s own audit finds in a published Darwin Core archive, given by its GBIF dataset key or its address: each coded, with the check that found it, the file and lines it stands on and its count over the rows read; and every TDWG BDQ TG2 test, ran with its counts or not run under a code (a test not run is not a test passed). With call_id instead: a pending audit, collected.'
      parameters:
      - name: gbif_dataset
        in: query
        schema:
          type: string
          format: uuid
        description: A GBIF dataset key; the archive is fetched from the endpoint GBIF's registry lists.
      - name: url
        in: query
        schema:
          type: string
          format: uri
        description: The http(s) address of a Darwin Core archive (up to 200 MB).
      - name: annex
        in: query
        schema:
          type: boolean
          default: false
        description: Also return the audit as a markdown document.
      - name: call_id
        in: query
        schema:
          type: string
        description: 'A pending audit''s call_id: collect it (202 while it runs).'
      responses:
        '200':
          description: 'The audit: defects by check with file, lines and count; every BDQ TG2 test ran or not run'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArchiveAudit'
        '202':
          description: 'pending: the audit is still running; collect it with GET /audit?call_id='
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Pending'
        '400':
          description: source.missing, source.several, dataset.malformed, url.malformed, url.refused, call_id.malformed, call_id.unknown, file.malformed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '404':
          description: dataset.not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '413':
          description: archive.too_large, body.too_large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '422':
          description: archive.not_dwca, archive.unreadable, dataset.no_archive
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '502':
          description: archive.unreachable, registry.unreachable, audit.failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '503':
          description: engine.unreachable, engine.timeout
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
      tags:
      - Audit
    post:
      operationId: audit_archive_post
      summary: Audit a Darwin Core archive named in JSON or sent as a file
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                gbif_dataset:
                  type: string
                  format: uuid
                url:
                  type: string
                  format: uri
                content_base64:
                  type: string
                  description: The zip itself, base64 (up to 10 MB of zip).
                filename:
                  type: string
                annex:
                  type: boolean
                  default: false
                call_id:
                  type: string
            example:
              gbif_dataset: ffd67559-7ebe-41cc-9280-74fc40000f01
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: The zip (up to 10 MB).
                annex:
                  type: boolean
      responses:
        '200':
          description: 'The audit: defects by check with file, lines and count; every BDQ TG2 test ran or not run'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArchiveAudit'
        '202':
          description: 'pending: the audit is still running; collect it with GET /audit?call_id='
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Pending'
        '400':
          description: source.missing, source.several, dataset.malformed, url.malformed, url.refused, call_id.malformed, call_id.unknown, file.malformed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '404':
          description: dataset.not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '413':
          description: archive.too_large, body.too_large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '422':
          description: archive.not_dwca, archive.unreadable, dataset.no_archive
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '502':
          description: archive.unreachable, registry.unreachable, audit.failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '503':
          description: engine.unreachable, engine.timeout
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
      tags:
      - Audit
components:
  schemas:
    ArchiveAudit:
      type: object
      properties:
        archive:
          type: object
          description: source (gbif, url, upload), dataset (GBIF's registry entry), url, bytes, sha256, core, extensions, read
        scope:
          type: object
          description: rows_read, rows_in_file, complete, columns_read, columns_unmapped, reads
        summary:
          type: object
          properties:
            checks:
              type: integer
            checks_fired:
              type: integer
            defects:
              type: integer
            defects_shown:
              type: integer
            cells:
              type: integer
            bdq_ran:
              type: integer
            bdq_not_compliant:
              type: integer
            bdq_not_run:
              type: integer
        checks:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
              severity:
                type: string
              proposes_a_fix:
                type: boolean
              findings:
                type: integer
              what:
                type: string
              do:
                type: string
        findings:
          type: array
          items:
            type: object
            properties:
              check:
                type: integer
                description: index into checks
              code:
                type: string
              field:
                type: string
              count:
                type: integer
              of_rows:
                type: integer
              examples:
                type: array
                items:
                  type: string
              file:
                type: string
              lines:
                type: array
                items:
                  type: integer
              lines_matched:
                type:
                - integer
                - 'null'
              by:
                type: string
                enum:
                - value
                - row_position
                - blank_cell
                - bdq_test
                - declaration
              not_located:
                type: string
              proposal:
                type: object
              asks:
                type: string
        bdq:
          type: object
          description: standard, unit, file, records, summary, ran (test, terms, compliant, not_compliant, prerequisites_not_met, file, lines, values), not_run by code
        kept:
          type: object
        annex:
          type: object
          properties:
            format:
              type: string
            chars:
              type: integer
            text:
              type:
              - string
              - 'null'
        says:
          type: string
    Pending:
      type: object
      required:
      - pending
      - call_id
      properties:
        pending:
          type: boolean
        call_id:
          type: string
        retry_after_s:
          type: integer
        says:
          type: string
    Refused:
      type: object
      properties:
        refused:
          type: object
          properties:
            code:
              type: string
            says:
              type: string
  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.