Skip to content

Developers

This section is for developers who want to connect Defthand to their own systems (an ERP, a BI tool, your own app, your scripts). There are four ways:

Way What for Identity
REST API Reading inspections, findings, corrective actions, reports, locations and visitor feedback; managing corrective actions. API key (Authorization: ApiKey …)
Webhooks Hearing at once in your system when an inspection is published, a corrective action is opened or becomes overdue. Signed HTTP POST
MCP Connecting an AI client or your own agent with a person’s permissions. OAuth 2.1
AI Workspace bots A script writing tables, files and documents in the AI Workspace. Bot key → short-lived token
  • Module: for REST API keys and webhooks, your organization’s subscription must include the Integrations module. MCP needs AI assistant, bots need AI Workspace.
  • Permission: API keys are generated by an administrator with the “Manage API Keys” permission (by default the organization’s administrator).
  • API address: the API runs at a different address from the panel. You can learn it from the connection address on the AI assistant → How to connect page (without the /mcp at the end) or from the examples on the AI Workspace → Administration → Developers page. On the Defthand cloud it is https://api.gokhanpolat.com. In this section it is written as https://<api-address>.
  • API keys: generating keys, permissions, revoking.
  • REST API: authentication, versions, paging, errors, limits, replay protection.
  • API reference: every public endpoint, its parameters and examples.
  • Webhooks: subscriptions, events, signature verification, retries.
  • Webhook events: the fields and sample bodies of the eleven events.
  • MCP and bots: the MCP server, OAuth, bot tokens, sample calls.