Skip to main content

An Introduction to the Public API

Our Public API is a HTTP API that can be used to interact with your organization within the Hark Platform programmatically. The Public API allows you to retrieve contextual information about the Sites, Equipment and Points deployed in your organization, read Point metrics and manage your Equipment Alarms.

NameLink
Public API Endpoint Documentation (Swagger)https://platform.harksys.com/public-api/docs
Public API HTTP Hosthttps://platform.harksys.com/public-api
Authentiction Header Namex-api-key

API Authentication

Authentication with the Public API is performed by sending an API key through a header named x-api-key with each of your requests. API keys can be created under the user settings menu when authenticated with the Hark Platform, and are directly tied to your user.

User Settings Menu

The permissions you have as a user of the Platform will be applied to your API key, and any actions you perform, such as closing an Alarm, will be represented by your user within the organization.

Rate Limits

Requests to the Public API are rate limited to protect the Hark Platform from the service being abused, such as a DDoS attack. Requests are limited to 100 requests per 60 seconds, and when hitting a rate limit, requests will respond with a 429 response code.

Usage Guidance

When using the Public API it is advised to consider your usage of the endpoints that we provide, and how you can achieve what you need in the fewest requests with the most direct access to your data. Where possible, cache responses locally to reduce redundant calls and improve performance. Use pagination when retrieving large datasets, and request only the data you need by using appropriate filters and fields. Get-by-Id endpoints provide direct access to an item, as opposed to requesting a page of items mupltiple times.

It is not recommended to use this API to get a full history of your Point metrics or Alarms. Get in touch if you'd like to talk to us about using our Public API, and please share what you'd like to achieve.

Request Example

The following examples make a request to the Public API to retrieve an Equipment's Point's metrics between 00:00 and 00:30 on the 17th of July 2025 (UTC). You'll need to fill in your Equipment ID, Point ID and API key.

curl -i -X "GET" "https://platform.harksys.com/public-api/v1/equipment/{equipmentId}/points/{pointId}/metrics?fromUtc=2025-06-17T00%3A00%3A00Z&toUtc=2025-06-17T00%3A30%3A00Z" \
-H "accept: application/json" \
-H "x-api-key: {YOUR API KEY}"