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

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
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations