PassportCraft Categories API

The Categories API from PassportCraft — 2 operation(s) for categories.

GitHub OpenAPI

Operations 2

GET /categories List product categories #
GET /categories/{category}/schema Fetch a category field schema #

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/passportcraft-com:passportcraft-com-categories-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

passportcraft-com-categories-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PassportCraft Categories API
  version: '2026-08-01'
  description: 'Create and publish Digital Product Passports. A credential reaches only the organizations it holds a grant for. The two category endpoints describe the product itself rather than a tenant, and answer without a credential.


    Forward compatibility. This document describes what /v1 sends today, and we add to it without warning — every object schema is deliberately open. To stay compatible:

    - Ignore response fields you do not recognise, rather than rejecting the response.

    - Treat an unrecognised enum value as a default case, not an error.

    - Treat identifiers as opaque strings; never parse or pattern-match them.

    - Do not depend on the ORDER of fields in a JSON object, or on the exact wording of a human-readable error message. Branch on the machine-readable error code instead.

    - Retry on 429, and on any other refusal that carries a Retry-After header, waiting for the time it names. It is not only a 429 header: a 409 resource_busy, a 503 storage_unavailable and a 503 entitlement_unavailable carry one too, because retrying is their remedy.

    - Retry a 5xx with a NEW Idempotency-Key. A key that recorded a server error replays that error for the retention window — deliberately, because the failure may have been a lost response to a write that SUCCEEDED, and reusing the key is what stops one failed write becoming two.

    - Retry a refused conditional write with a NEW Idempotency-Key. A precondition_failed is recorded against the key that received it and replays for the retention window, so re-reading the passport and retrying under the SAME key returns the original refusal — with the version numbers the FIRST attempt saw. The recording is deliberate: it is what makes a retry after a lost response safe. This applies to the 412 only. A 400 for a malformed header is refused before any key is claimed and is never recorded, so correct the header and retry under the SAME key: your original result is still there.

    - Watch for the Deprecation and Sunset response headers, and for the Link: rel="successor-version" they carry. That is how the removal of an endpoint is announced, and it arrives long before the endpoint stops answering.


    Treat every identifier as an opaque string of at most 255 characters. Do not parse them, do not validate their format, and do not assume they are UUIDs — the format may change without notice.


    Deprecation. An endpoint scheduled for removal answers with `Deprecation` (RFC 9745) and `Sunset` (RFC 8594) headers, and a `Link: rel="successor-version"` pointing at its replacement. Watch for them.


    The full compatibility contract, including the enumerated list of changes that would require a new major version, is published at https://passportcraft.com/docs/api/compatibility.'
servers:
- url: https://passportcraft.com/api/v1
security:
- bearerAuth: []
tags:
- name: Categories
paths:
  /categories:
    get:
      operationId: listCategories
      summary: List product categories
      security:
      - {}
      - bearerAuth: []
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/List'
        '400':
          description: 'The request could not be understood. Codes: invalid_request, mode_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: 'Missing or invalid credential. Codes: invalid_key, key_expired, key_revoked, key_rotated.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: 'The request body is larger than this endpoint accepts. Codes: payload_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'Rate limited, or the destructive-transition cap was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: 'Internal error. Codes: configuration_error, internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Categories
  /categories/{category}/schema:
    get:
      operationId: getCategorySchema
      summary: Fetch a category field schema
      security:
      - {}
      - bearerAuth: []
      parameters:
      - name: category
        in: path
        required: true
        schema:
          type: string
          maxLength: 255
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CategorySchema'
        '400':
          description: 'The request could not be understood. Codes: invalid_request, mode_mismatch.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: 'Missing or invalid credential. Codes: invalid_key, key_expired, key_revoked, key_rotated.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: 'No such resource, or it belongs to another tenant, or it is in the other mode. Codes: resource_not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: 'The request body is larger than this endpoint accepts. Codes: payload_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'Rate limited, or the destructive-transition cap was reached. Codes: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: 'Internal error. Codes: configuration_error, internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Categories
components:
  schemas:
    Error:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
              - invalid_key
              - key_revoked
              - key_expired
              - key_rotated
              - mode_mismatch
              - insufficient_scope
              - organization_not_found_or_not_granted
              - resource_not_found
              - wildcard_not_supported
              - validation_failed
              - invalid_request
              - method_not_allowed
              - payload_too_large
              - body_too_deep
              - unsupported_media_type
              - idempotency_conflict
              - already_exists
              - gtin_in_use
              - variant_limit_reached
              - variant_review_required
              - variant_review_changed
              - precondition_failed
              - resource_busy
              - cursor_invalid
              - no_subscription
              - plan_required
              - payment_overdue
              - gtin_required
              - wrong_status
              - not_trashed
              - publish_limit_reached
              - unit_limit_reached
              - document_missing
              - document_feeds_extraction
              - document_feeds_reading
              - invalid_input
              - invalid_observed_on
              - invalid_source
              - invalid_field
              - invalid_note
              - invalid_value
              - invalid_document_id
              - unit_status_required
              - unit_status_transition_forbidden
              - unit_status_history_conflict
              - unit_reading_document_unavailable
              - delegation_required
              - attestation_required
              - test_mode_refused
              - example_passport_not_fileable
              - human_approval_required
              - connector_writes_drafts_only
              - proposal_requires_assistant
              - no_changes
              - unit_status_not_allowed
              - portal_unavailable
              - storage_unavailable
              - entitlement_unavailable
              - scope_exceeds_key
              - france_mandate_required
              - grantor_not_seated
              - key_not_grantable
              - grant_conflict
              - live_key_playground_only
              - rate_limited
              - internal_error
              - configuration_error
            message:
              type: string
            documentation_url:
              type: string
            request_id:
              type: string
            details:
              type: object
              propertyNames:
                type: string
              additionalProperties: {}
          required:
          - code
          - message
          - documentation_url
          - request_id
          additionalProperties: {}
      required:
      - error
      additionalProperties: {}
    CategorySchema:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        object:
          type: string
          const: category_schema
        id:
          type: string
        name:
          type: string
        category:
          type: string
        display_name:
          type: string
        schema_version:
          type: string
        battery_kinds:
          type: object
          properties:
            rule:
              type: string
            kinds:
              type: array
              items:
                type: object
                properties:
                  value:
                    type: string
                  category:
                    type: string
                    enum:
                    - battery
                    - battery-information
                  condition:
                    type: string
                required:
                - value
                - category
                - condition
                additionalProperties: {}
          required:
          - rule
          - kinds
          additionalProperties: {}
        field_groups:
          type: array
          items:
            type: object
            properties:
              object:
                type: string
                const: field_group
              id:
                type: string
              label:
                type: string
              description:
                type: string
            required:
            - object
            - id
            - label
            additionalProperties: {}
        fields:
          type: array
          items:
            type: object
            properties:
              object:
                type: string
                const: field
              name:
                type: string
              type:
                type: string
                enum:
                - text
                - number
                - select
                - multiselect
                - date
                - month
                - url
                - array
                - pictogram
              required:
                type: boolean
              per_battery:
                type: string
                enum:
                - override
                - only
              battery_access_tier:
                type: string
                enum:
                - public
                - restricted
                - authority
              battery_required:
                type: boolean
              required_when:
                type: object
                properties:
                  field:
                    type: string
                  one_of:
                    type: array
                    items:
                      type: string
                required:
                - field
                - one_of
                additionalProperties: {}
              required_unless:
                type: array
                items:
                  type: object
                  properties:
                    field:
                      type: string
                    one_of:
                      type: array
                      items:
                        type: string
                    only_when:
                      type: object
                      properties:
                        field:
                          type: string
                        one_of:
                          type: array
                          items:
                            type: string
                      required:
                      - field
                      - one_of
                      additionalProperties: {}
                  required:
                  - field
                  - one_of
                  additionalProperties: {}
              required_from:
                type: string
              withheld_from_public:
                type: string
              access_tier:
                type: string
                enum:
                - public
                - restricted
                - authority
              group:
                type: string
              label:
                type: string
              description:
                type: string
              placeholder:
                type: string
              hint:
                type: string
              help_url:
                type: string
              unit:
                type: string
              unit_field:
                type: string
              default_unit:
                type: string
              min:
                type: number
              max:
                type: number
              item_type:
                type: string
                const: string
              options:
                type: array
                items:
                  type: object
                  properties:
                    value:
                      type: string
                    label:
                      type: string
                  required:
                  - value
                  - label
                  additionalProperties: {}
              document_types:
                type: array
                items:
                  type: string
                  enum:
                  - certification
                  - image
                  - document
                  - conformity_declaration
              document_id_key:
                type: string
              requirement:
                type: string
                enum:
                - required
                - recommended
                - optional
              functional_basis:
                type: string
              regulatory_basis:
                type: array
                items:
                  type: object
                  properties:
                    regulation:
                      type: string
                    reference:
                      type: string
                    status:
                      type: string
                      enum:
                      - in_force
                      - in_force_conditional
                      - applies_later
                      - anticipated
                      - voluntary
                    jurisdiction:
                      type: string
                    applies_when:
                      type: string
                    note:
                      type: string
                    status_changing:
                      type: boolean
                  required:
                  - regulation
                  - reference
                  - status
                  additionalProperties: {}
            required:
            - object
            - name
            - type
            - required
            - access_tier
            - group
            - label
            - description
            additionalProperties: {}
        per_battery_fields:
          type: array
          items:
            type: object
            properties:
              object:
                type: string
                const: field
              name:
                type: string
              type:
                type: string
                enum:
                - text
                - number
                - select
                - multiselect
                - date
                - month
                - url
                - array
                - pictogram
              required:
                type: boolean
              per_battery:
                type: string
                enum:
                - override
                - only
              battery_access_tier:
                type: string
                enum:
                - public
                - restricted
                - authority
              battery_required:
                type: boolean
              required_when:
                type: object
                properties:
                  field:
                    type: string
                  one_of:
                    type: array
                    items:
                      type: string
                required:
                - field
                - one_of
                additionalProperties: {}
              required_unless:
                type: array
                items:
                  type: object
                  properties:
                    field:
                      type: string
                    one_of:
                      type: array
                      items:
                        type: string
                    only_when:
                      type: object
                      properties:
                        field:
                          type: string
                        one_of:
                          type: array
                          items:
                            type: string
                      required:
                      - field
                      - one_of
                      additionalProperties: {}
                  required:
                  - field
                  - one_of
                  additionalProperties: {}
              required_from:
                type: string
              withheld_from_public:
                type: string
              access_tier:
                type: string
                enum:
                - public
                - restricted
                - authority
              group:
                type: string
              label:
                type: string
              description:
                type: string
              placeholder:
                type: string
              hint:
                type: string
              help_url:
                type: string
              unit:
                type: string
              unit_field:
                type: string
              default_unit:
                type: string
              min:
                type: number
              max:
                type: number
              item_type:
                type: string
                const: string
              options:
                type: array
                items:
                  type: object
                  properties:
                    value:
                      type: string
                    label:
                      type: string
                  required:
                  - value
                  - label
                  additionalProperties: {}
              document_types:
                type: array
                items:
                  type: string
                  enum:
                  - certification
                  - image
                  - document
                  - conformity_declaration
              document_id_key:
                type: string
              requirement:
                type: string
                enum:
                - required
                - recommended
                - optional
              functional_basis:
                type: string
              regulatory_basis:
                type: array
                items:
                  type: object
                  properties:
                    regulation:
                      type: string
                    reference:
                      type: string
                    status:
                      type: string
                      enum:
                      - in_force
                      - in_force_conditional
                      - applies_later
                      - anticipated
                      - voluntary
                    jurisdiction:
                      type: string
                    applies_when:
                      type: string
                    note:
                      type: string
                    status_changing:
                      type: boolean
                  required:
                  - regulation
                  - reference
                  - status
                  additionalProperties: {}
            required:
            - object
            - name
            - type
            - required
            - access_tier
            - group
            - label
            - description
            additionalProperties: {}
      required:
      - object
      - id
      - name
      - category
      - display_name
      - schema_version
      - field_groups
      - fields
      - per_battery_fields
      additionalProperties: {}
    List:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        object:
          type: string
          const: list
        data:
          type: array
          items: {}
        has_more:
          type: boolean
        next_cursor:
          anyOf:
          - type: string
          - type: 'null'
      required:
      - object
      - data
      - has_more
      - next_cursor
      additionalProperties: {}
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A secret key, `pc_sk_live_…` or `pc_sk_test_…`. The mode is bound into the credential itself, so a test key cannot reach live passports.