publiq External cards API

The External cards API from publiq — 2 operation(s) for external cards.

Operations 2

GET /external-cards/{type}/{identification} Look up external card #
POST /external-cards/{type}/{identification}/visits Register a museum visit for an external card #

Documentation

Specifications

Schemas & Data

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/publiq:publiq-external-cards-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

publiq-external-cards-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: museumPASSmusées Partner External cards API
  version: '1.0'
  description: With the museumPASSmusées Partner API you can look up the card of a passholder and check if they are allowed to visit your museum and register their visit so your museum gets reimbursed for it.
  contact:
    name: publiq helpdesk
    email: technical-support@publiq.be
    url: https://docs.publiq.be
servers:
- url: https://partner-api-test.museumpassmusees.be
  description: Testing
- url: https://partner-api.museumpassmusees.be
  description: Production
tags:
- name: External cards
paths:
  /external-cards/{type}/{identification}:
    parameters:
    - schema:
        type: string
        enum:
        - uitpas
        - akaart
        - article27
      name: type
      in: path
      required: true
      description: The type of external card
    - schema:
        type: string
      name: identification
      in: path
      required: true
      description: The identification (e.g. card number) of the external card
    get:
      summary: Look up external card
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  visit:
                    type: object
                    description: Visit information for the external card.
                    required:
                    - allowed
                    properties:
                      allowed:
                        type: boolean
                        description: Indicates whether a visit with the external card is allowed or not.
                required:
                - visit
              examples: {}
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: 'Not Found. Possible error types:


            * https://api.publiq.be/probs/url/not-found'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: 'Service Unavailable.


            The `Retry-After` HTTP Header might include a hint when a retry of this request can be attempted.


            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: get-external-cards-type-identification
      description: 'Retrieve visit allowed information related to an external card.


        ## Permissions


        The caller of this request must have the `visit registrar` role.'
      security:
      - CLIENT_ACCESS_TOKEN: []
      parameters: []
      tags:
      - External cards
  /external-cards/{type}/{identification}/visits:
    parameters:
    - schema:
        type: string
        enum:
        - uitpas
        - akaart
        - article27
      name: type
      in: path
      required: true
      description: The type of external card
    - schema:
        type: string
      name: identification
      in: path
      required: true
      description: The identification (e.g. card number) of the external card
    post:
      summary: Register a museum visit for an external card
      operationId: post-external-cards-type-identification-visits
      responses:
        '201':
          description: External card visit registered.
        '400':
          description: 'Bad Request. Possible error types:


            * https://api.publiq.be/probs/museumpass/museum-not-active'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: 'Not Found. Possible error types:


            * https://api.publiq.be/probs/url/not-found'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: 'Service Unavailable.


            The `Retry-After` HTTP Header might include a hint when a retry of this request can be attempted.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Error'
      description: 'Registers a visit of an axternal card at your museum (determined by the client access token used).


        To check if this card is allowed to visit, look up their information using `GET /external-cards/{type}/{identification}`. The response to that request will indicate if the passholder may visit your museum.


        If the external card may not visit your museum and you still try to register a visit for them, the server will return a `403 Forbidden` error response.


        **Note**: A POST body is not required for this endpoint. All information is derived from the path.


        ## Permissions


        The caller of this request must have the `visit registrar` role.'
      security:
      - CLIENT_ACCESS_TOKEN: []
      tags:
      - External cards
components:
  schemas:
    Error:
      $ref: https://raw.githubusercontent.com/cultuurnet/apidocs/main/projects/errors/models/Error.json
      x-internal: true
  responses:
    Forbidden:
      description: 'Forbidden. Your request was successfully authenticated but you do not have permission to perform this particular request.


        * type: https://api.publiq.be/probs/auth/forbidden

        * detail: might contain a developer-readable explanation of the reason'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            Example:
              value:
                type: https://api.publiq.be/probs/auth/forbidden
                title: Forbidden
                status: 403
                detail: user must be admin of organizer abcd1234
    Unauthorized:
      description: 'Unauthorized. Your request is missing the required credentials to authenticate. See the Authentication documentation for more info.


        * type: https://api.publiq.be/probs/auth/unauthorized

        * detail: might contain a developer-readable explanation of the reason'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            Example:
              value:
                type: https://api.publiq.be/probs/auth/unauthorized
                title: Unauthorized
                status: 401
  securitySchemes:
    CLIENT_ACCESS_TOKEN:
      type: oauth2
      flows: {}
      description: A client access token, obtained by exchanging your client id and client secret for a token via an HTTP request to publiq's authorization server using the **Client Credentials OAuth Flow**. See the [authentication docs about client access tokens](https://docs.publiq.be/docs/authentication/methods/client-access-token) for more info.