OpenHIM API

OpenHIM API as documented publicly: 4 operations. Contract generated from the documentation by API Evangelist (2026-11-15); not the provider's own document.

GitHub OpenAPI

Operations 4

PUT /clients/clientId PUT /clients/clientId #
POST /test POST /test #
PUT /users/userEmail PUT /users/userEmail #
GET /{path} GET /{path} #

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/openhim:openhim-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

openhim-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: OpenHIM API
  version: '2026-11-15'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-15: 4 operation(s) read from 10 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; OpenHIM has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 9
    documentation: -5
    pages-with-code: 10
    pages-read: 10
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-15'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://openhim.org/docs/api/users/create
  - https://openhim.org/docs/api/users/update
  - https://openhim.org/docs/api/clients/create
  - https://openhim.org/docs/api/clients/update
  - https://openhim.org/docs/api/server-uptime/read
  - https://openhim.org/docs/api/transactions/create
  - https://openhim.org/docs/getting-started/configuration
  - https://openhim.org/docs/getting-started/prerequisites
  - https://openhim.org/docs/tutorial/mediators/basic-scaffold
  - https://openhim.org/docs/configuration/authentication
paths:
  /clients/clientId:
    put:
      operationId: put_clients_clientId
      tags:
      - Clients
      summary: PUT /clients/clientId
      x-source: https://openhim.org/docs/api/clients/update
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PutClientsClientidResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl wrapper that generates the client Password details\" ; echo \"Usage: $0 PASSWORD\" ; exit 0 ; fi pass = $1 ; shift ; shift\
          \ ; \n salt = ` cat /dev/urandom | tr -dc 'abcdef0-9' | fold -w 32 | head -n 1 ` ; passhash = ` echo -n \" $pass $salt \" | shasum -a\
          \ 512 | awk '{print $1 }' ` ; \n echo Password Salt: $salt echo Password Hash: $passhash \n echo \"\" ; Copy and execute the above bash\
          \ script with the "
  /test:
    post:
      operationId: post_test
      tags:
      - Test
      summary: POST /test
      x-source: https://openhim.org/docs/configuration/authentication
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostTestRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl --location --request POST ''https://localhost:5000/test'' \ --header ''Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJVVUlEX3JlcHJlc2VudGluZ19kb3duc3RyZWFtX3NlcnZpY2UiLCJpc3MiOiJVVUlEX3JlcHJlc2VudGluZ19pc3N1ZXIiLCJzdWIiOiJ5b3VyX29wZW5oaW1fY2xpZW50In0.I_2PLl7gmi4D26EZ_OuFOVM3fI4sJxjnZGmKxdSdxKA''
          \ --header ''Content-Type: application/json'' \ --data-raw ''{ "test": "test" }'' C'
  /users/userEmail:
    put:
      operationId: put_users_userEmail
      tags:
      - Users
      summary: PUT /users/userEmail
      x-source: https://openhim.org/docs/api/users/update
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PutUsersUseremailResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl wrapper that generates the user Password details\"; echo \"Usage: $0 PASSWORD\"; exit 0; fi pass=$1; shift; shift; \n salt=`cat\
          \ /dev/urandom | tr -dc 'abcdef0-9' | fold -w 32 | head -n 1`; passhash=`echo -n \"$pass$salt\" | shasum -a 512 | awk '{print $1}'`;\
          \ \n echo Password Salt: $salt echo Password Hash: $passhash \n echo \"\"; Copy Copy and execute the bash script above with the below\
          \ command. Subst"
  /{path}:
    get:
      operationId: get_path
      tags:
      - Api
      summary: GET /{path}
      x-source: https://openhim.org/docs/api/transactions/create
      parameters:
      - name: path
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: curl -k -u <CLIENT_ID>:<CLIENT_PASSWORD> https://localhost:5000/<PATH> Copy The response body will be returned. If the upstream
          server (server being routed to) is down the response status will be 500 and the response body will be An internal server error occurred
          . Previous « Transactions overview Next Read Transaction/s » Create Transaction via the server Example routing Docs Docs API Community
          G
components:
  schemas:
    PutClientsClientidResponse:
      type: object
      properties:
        _id:
          type: string
        roles:
          type: array
          items:
            type: string
        clientID:
          type: string
        name:
          type: string
        passwordAlgorithm:
          type: string
        passwordSalt:
          type: string
        passwordHash:
          type: string
    PostTestRequest:
      type: object
      properties:
        test:
          type: string
    PutUsersUseremailResponse:
      type: object
      properties:
        _id:
          type: string
        settings:
          type: object
          properties:
            list:
              type: object
            filter:
              type: object
              properties:
                limit:
                  type: integer
        groups:
          type: array
          items:
            type: string
        email:
          type: string
        firstname:
          type: string
        surname:
          type: string
        msisdn:
          type: string
        passwordAlgorithm:
          type: string
        passwordSalt:
          type: string
        passwordHash:
          type: string
  securitySchemes:
    basic:
      type: http
      scheme: basic
security:
- basic: []
tags:
- name: Api
- name: Clients
- name: Test
- name: Users