Auth API
Auth endpoints create tenant access and return API keys used on/v1 endpoints.
POST /auth/register
Create a tenant and return an API key.Request body
| Field | Type | Required | Description |
|---|---|---|---|
businessName | string | Yes | Business name. |
accountId | string | Yes | Nomba account/subaccount ID mapped to the tenant. |
Response
Conflict response
POST /auth/login
Return the API key for an existing tenant account ID.Response
Not found response
POST /auth/set-webhook-url
Set the tenant webhook URL and return a webhook secret.Request body
| Field | Type | Required | Description |
|---|---|---|---|
webhookUrl | string | Yes | HTTPS endpoint that receives merchant webhooks. |
