Backend Developer Guide
Backend Developer Guide (End Users)
This guide is for developers integrating account, organization, and user-management workflows against the Backend API.
Service Endpoint
- Dev endpoint:
https://dev2-admin-api.harden.cloud - Auth header for protected endpoints:
X-Api-Key: <api_key> - JSON content type:
application/json
Typical Flow
- Fetch available plans.
- Register an org admin account.
- Verify email and activate account.
- Login and receive org admin API key.
- Create users and rotate user API keys.
Plan Discovery
cURL
JavaScript
Register an Org Admin
cURL
JavaScript
Verify Email
Use the link from the verification email. If you need to call it manually:
cURL
JavaScript
Login as Org Admin
cURL
JavaScript
Manage Users in Your Org
You need orgId (returned by admin APIs/UI) and an org admin apiKey.
Create user (cURL)
Create user (JavaScript)
List users (cURL)
Rotate a user API key (JavaScript)
Error Handling
400: validation failed (input, plan/country constraints, missing payment info for paid plans).401: missing or invalidX-Api-Key.403: insufficient role/permissions.404: requested org/user/resource not found.
Notes
- Backend account APIs handle org/user lifecycle and billing bootstrap.
- Secret/key/file encryption operations should go through the Proxy API (
https://dev2-api.harden.cloud).