---
updatedAt: 2026-09-01T11:27:16.000Z
agentTools:
  projectIndex: https://documentation.nedap-harmony.com/llms.txt
---

# RunHook

<p><b>Required scopes:</b> write:hook:jobs</p>

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "Harmony API - Public",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://nedap-harmony.com"
    }
  ],
  "paths": {
    "/api/{workspaceId}/hooks/v1/{hookReference}/jobs/run": {
      "post": {
        "tags": [
          "Hook"
        ],
        "summary": "RunHook",
        "description": "<p><b>Required scopes:</b> write:hook:jobs</p>",
        "operationId": "RunHook",
        "parameters": [
          {
            "name": "hookReference",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sendResultToReadPointId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspaceId",
            "in": "path",
            "description": "WorkspaceId of the workspace the API call is for.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "WorkspaceId of the workspace the API call is for.",
              "format": "uuid"
            }
          },
          {
            "name": "test",
            "in": "query",
            "description": "Whether this is a request for 'Test' or 'Live' environment. True refers to the 'Test' environment, no value or False refers to the 'Live' environment.",
            "schema": {
              "type": "boolean",
              "description": "Whether this is a request for 'Test' or 'Live' environment. True refers to the 'Test' environment, no value or False refers to the 'Live' environment."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HookJobStatus"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "429": {
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "apiToken": [
              "write:hook:jobs"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "HookJobStatus": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "hookId": {
            "type": "string",
            "nullable": true
          },
          "webHookId": {
            "type": "string",
            "nullable": true
          },
          "jobId": {
            "type": "string",
            "nullable": true
          },
          "sourceId": {
            "type": "string",
            "nullable": true
          },
          "attempt": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "numberOfAttempts": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "locationUri": {
            "type": "string",
            "nullable": true
          },
          "hangfireJobId": {
            "type": "string",
            "nullable": true
          },
          "created": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "enqueued": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "scheduled": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "state": {
            "$ref": "#/components/schemas/JobState"
          },
          "durationInMs": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "test": {
            "type": "boolean",
            "nullable": true,
            "readOnly": true
          },
          "lastModification": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "JobState": {
        "enum": [
          "Enqueued",
          "Processing",
          "Succeeded",
          "Failed",
          "Killed",
          "Scheduled"
        ],
        "type": "string"
      }
    },
    "securitySchemes": {
      "apiToken": {
        "type": "http",
        "description": "Enter the obtained API Token.",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "apiToken": []
    }
  ],
  "x-samples-languages": [
    "curl",
    "javascript",
    "csharp",
    "java",
    "python"
  ]
}
```