Overview
Set up the Management API client to programmatically manage your Nahook workspace
The Management API lets you programmatically manage workspace resources — endpoints, event types, subscriptions, environments, applications, and portal sessions. It uses management tokens (nhm_...) which are separate from API keys used for ingestion.
Management tokens are created in Settings → Management Tokens in the dashboard.
Authentication
All management endpoints require a Bearer token in the Authorization header:
Authorization: Bearer nhm_YOUR_TOKENBase URL: https://api.nahook.com
Install
In every language except Node.js, the management SDK ships in the same package as the ingestion SDK. If you've already installed the package for sending webhooks, you don't need a second install — just import NahookManagement (or the equivalent) from the same package.
npm install @nahook/managementpip install nahookgo get github.com/getnahook/nahook-go<dependency>
<groupId>com.nahook</groupId>
<artifactId>nahook-java</artifactId>
<version>0.2.0</version>
</dependency>dotnet add package Nahookcomposer require nahook/nahook-phpgem install nahookcargo add nahookSetup
# All management endpoints use Bearer token auth
curl https://api.nahook.com/management/v1/workspaces/ws_abc/environments \
-H "Authorization: Bearer nhm_YOUR_TOKEN"import { NahookManagement } from "@nahook/management";
const mgmt = new NahookManagement("nhm_YOUR_TOKEN");from nahook import NahookManagement
mgmt = NahookManagement("nhm_YOUR_TOKEN")import "github.com/getnahook/nahook-go/management"
mgmt, _ := management.New("nhm_YOUR_TOKEN")import com.nahook.NahookManagement;
var mgmt = NahookManagement.builder("nhm_YOUR_TOKEN").build();using Nahook;
var mgmt = new NahookManagement("nhm_YOUR_TOKEN");use Nahook\NahookManagement;
$mgmt = new NahookManagement("nhm_YOUR_TOKEN");require "nahook"
mgmt = Nahook::Management.new("nhm_YOUR_TOKEN")use nahook::NahookManagement;
let mgmt = NahookManagement::builder("nhm_YOUR_TOKEN").build()?;Available Resources
Endpoints
Create and manage webhook delivery endpoints.
Event Types
Define the event types your platform emits.
Subscriptions
Subscribe endpoints to event types.
Environments
Manage isolated environments (production, staging, etc.).
Applications
Manage customer-facing applications within an environment.
Portal Sessions
Generate short-lived portal sessions for your customers.
For the raw API specification (request/response schemas), see the API Reference section in the sidebar.