Skip to content

AHDS Store API (1.0)

Animal Health Data Store - V1 API Documentation

Overview
Languages
Servers
Mock server

https://docs.heydonto.com/_mock/apis/animal-health/openapi/

Local Development

http://localhost:8083/

Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations

Request

Creates a new Webhook record. Webhook resource in the Animal Health Data Store

Security
bearer
Path
siteIdnumberrequired

Site identifier

Bodyapplication/jsonrequired
eventTypestringrequired

Type of event that triggers this webhook.

extensionsobject

Vendor- or practice-specific extensions.

fieldsArray of strings

Optional list of field names to include in the webhook payload. If omitted or empty, the default payload for the event type is sent.

isActivebooleanrequired

Whether the webhook is currently active and will receive events.

webhookIdstringrequired

Canonical identifier for the webhook.

Example: "123e4567-e89b-12d3-a456-426614174000"
webhookUrlstringrequired

Destination URL that will receive webhook POST requests.

descriptionstring

Human-readable description of the webhook's purpose or usage, intended to help administrators understand what this webhook is for.

curl -i -X POST \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/webhook' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "eventType": "string",
    "extensions": {},
    "fields": [
      "string"
    ],
    "isActive": true,
    "webhookId": "123e4567-e89b-12d3-a456-426614174000",
    "webhookUrl": "string",
    "description": "string"
  }'

Responses

Webhook created successfully

Bodyapplication/json
createdAtstring(date-time)required

Timestamp when the webhook was created.

Example: "2025-01-01T00:00:00.000Z"
eventTypestringrequired

Type of event that triggers this webhook.

extensionsobjectrequired

Vendor- or practice-specific extensions.

fieldsArray of stringsrequired

Optional list of field names to include in the webhook payload. If omitted or empty, the default payload for the event type is sent.

isActivebooleanrequired

Whether the webhook is currently active and will receive events.

updatedAtstring(date-time)required

Timestamp when the webhook was last updated.

Example: "2025-01-01T00:00:00.000Z"
webhookIdstringrequired

Canonical identifier for the webhook.

Example: "123e4567-e89b-12d3-a456-426614174000"
webhookUrlstringrequired

Destination URL that will receive webhook POST requests.

descriptionstringrequired

Human-readable description of the webhook's purpose or usage, intended to help administrators understand what this webhook is for.

Response
application/json
{ "createdAt": "2025-01-01T00:00:00.000Z", "eventType": "string", "extensions": {}, "fields": [ "string" ], "isActive": true, "updatedAt": "2025-01-01T00:00:00.000Z", "webhookId": "123e4567-e89b-12d3-a456-426614174000", "webhookUrl": "string", "description": "string" }

Request

Returns a paginated list of Webhooks for the specified site. Supports filtering and sorting.

Security
bearer
Path
siteIdnumberrequired

Site identifier

Query
pagenumber>= 0

Page number (0-indexed)

Default 0
pageSizenumber[ 1 .. 100 ]

Number of items per page

Default 10
sortBystring

Field to sort by

Enum"createdAt""updatedAt""eventType""webhookUrl""description"
sortOrderstring

Sort order

Default "asc"
Enum"asc""desc"
eventTypestring

Type of event that triggers this webhook.

isActiveboolean

Whether the webhook is currently active and will receive events.

webhookUrlstring

Destination URL that will receive webhook POST requests.

descriptionstring

Human-readable description of the webhook's purpose or usage, intended to help administrators understand what this webhook is for.

curl -i -X GET \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/webhook?page=0&pageSize=10&sortBy=createdAt&sortOrder=asc&eventType=string&isActive=true&webhookUrl=string&description=string' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Paginated list of Webhooks

Request

Returns a single Webhook by its unique identifier.

Security
bearer
Path
siteIdnumberrequired

Site identifier

webhookIdstringrequired

Webhook unique identifier (UUID)

curl -i -X GET \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/webhook/{webhookId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Webhook found

Bodyapplication/json
createdAtstring(date-time)required

Timestamp when the webhook was created.

Example: "2025-01-01T00:00:00.000Z"
eventTypestringrequired

Type of event that triggers this webhook.

extensionsobjectrequired

Vendor- or practice-specific extensions.

fieldsArray of stringsrequired

Optional list of field names to include in the webhook payload. If omitted or empty, the default payload for the event type is sent.

isActivebooleanrequired

Whether the webhook is currently active and will receive events.

updatedAtstring(date-time)required

Timestamp when the webhook was last updated.

Example: "2025-01-01T00:00:00.000Z"
webhookIdstringrequired

Canonical identifier for the webhook.

Example: "123e4567-e89b-12d3-a456-426614174000"
webhookUrlstringrequired

Destination URL that will receive webhook POST requests.

descriptionstringrequired

Human-readable description of the webhook's purpose or usage, intended to help administrators understand what this webhook is for.

Response
application/json
{ "createdAt": "2025-01-01T00:00:00.000Z", "eventType": "string", "extensions": {}, "fields": [ "string" ], "isActive": true, "updatedAt": "2025-01-01T00:00:00.000Z", "webhookId": "123e4567-e89b-12d3-a456-426614174000", "webhookUrl": "string", "description": "string" }

Request

Partially updates an existing Webhook. Only provided fields will be updated.

Security
bearer
Path
siteIdnumberrequired

Site identifier

webhookIdstringrequired

Webhook unique identifier (UUID)

Bodyapplication/jsonrequired
eventTypestring

Type of event that triggers this webhook.

extensionsobject

Vendor- or practice-specific extensions.

fieldsArray of strings

Optional list of field names to include in the webhook payload. If omitted or empty, the default payload for the event type is sent.

isActiveboolean

Whether the webhook is currently active and will receive events.

webhookUrlstring

Destination URL that will receive webhook POST requests.

descriptionstring

Human-readable description of the webhook's purpose or usage, intended to help administrators understand what this webhook is for.

curl -i -X PATCH \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/webhook/{webhookId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "eventType": "string",
    "extensions": {},
    "fields": [
      "string"
    ],
    "isActive": true,
    "webhookUrl": "string",
    "description": "string"
  }'

Responses

Webhook updated successfully

Bodyapplication/json
createdAtstring(date-time)required

Timestamp when the webhook was created.

Example: "2025-01-01T00:00:00.000Z"
eventTypestringrequired

Type of event that triggers this webhook.

extensionsobjectrequired

Vendor- or practice-specific extensions.

fieldsArray of stringsrequired

Optional list of field names to include in the webhook payload. If omitted or empty, the default payload for the event type is sent.

isActivebooleanrequired

Whether the webhook is currently active and will receive events.

updatedAtstring(date-time)required

Timestamp when the webhook was last updated.

Example: "2025-01-01T00:00:00.000Z"
webhookIdstringrequired

Canonical identifier for the webhook.

Example: "123e4567-e89b-12d3-a456-426614174000"
webhookUrlstringrequired

Destination URL that will receive webhook POST requests.

descriptionstringrequired

Human-readable description of the webhook's purpose or usage, intended to help administrators understand what this webhook is for.

Response
application/json
{ "createdAt": "2025-01-01T00:00:00.000Z", "eventType": "string", "extensions": {}, "fields": [ "string" ], "isActive": true, "updatedAt": "2025-01-01T00:00:00.000Z", "webhookId": "123e4567-e89b-12d3-a456-426614174000", "webhookUrl": "string", "description": "string" }

Request

Fully replaces an existing Webhook. All fields must be provided.

Security
bearer
Path
siteIdnumberrequired

Site identifier

webhookIdstringrequired

Webhook unique identifier (UUID)

Bodyapplication/jsonrequired
eventTypestringrequired

Type of event that triggers this webhook.

extensionsobjectrequired

Vendor- or practice-specific extensions.

fieldsArray of stringsrequired

Optional list of field names to include in the webhook payload. If omitted or empty, the default payload for the event type is sent.

isActivebooleanrequired

Whether the webhook is currently active and will receive events.

webhookUrlstringrequired

Destination URL that will receive webhook POST requests.

descriptionstringrequired

Human-readable description of the webhook's purpose or usage, intended to help administrators understand what this webhook is for.

curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/webhook/{webhookId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "eventType": "string",
    "extensions": {},
    "fields": [
      "string"
    ],
    "isActive": true,
    "webhookUrl": "string",
    "description": "string"
  }'

Responses

Webhook replaced successfully

Bodyapplication/json
createdAtstring(date-time)required

Timestamp when the webhook was created.

Example: "2025-01-01T00:00:00.000Z"
eventTypestringrequired

Type of event that triggers this webhook.

extensionsobjectrequired

Vendor- or practice-specific extensions.

fieldsArray of stringsrequired

Optional list of field names to include in the webhook payload. If omitted or empty, the default payload for the event type is sent.

isActivebooleanrequired

Whether the webhook is currently active and will receive events.

updatedAtstring(date-time)required

Timestamp when the webhook was last updated.

Example: "2025-01-01T00:00:00.000Z"
webhookIdstringrequired

Canonical identifier for the webhook.

Example: "123e4567-e89b-12d3-a456-426614174000"
webhookUrlstringrequired

Destination URL that will receive webhook POST requests.

descriptionstringrequired

Human-readable description of the webhook's purpose or usage, intended to help administrators understand what this webhook is for.

Response
application/json
{ "createdAt": "2025-01-01T00:00:00.000Z", "eventType": "string", "extensions": {}, "fields": [ "string" ], "isActive": true, "updatedAt": "2025-01-01T00:00:00.000Z", "webhookId": "123e4567-e89b-12d3-a456-426614174000", "webhookUrl": "string", "description": "string" }

Request

Permanently deletes a Webhook record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

webhookIdstringrequired

Webhook unique identifier (UUID)

curl -i -X DELETE \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/webhook/{webhookId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Webhook deleted successfully

Operations
Operations
Operations