Authenticatie
Stuur een API-sleutel mee als bearer token. Dit eindpunt vermeldt geen specifieke toestemming in de specificatie, dus geef uw sleutel de minimale rechten die nodig zijn en controleer het antwoord in plaats van zomaar wat aan te nemen.
Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.
Probeer het
Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.
curl -X POST https://api.zinndigital.com/v1/orgs \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "type": <OrgType>, "name": <string> }'Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console
Details
Creates a child organization under the caller's org (reseller creating a client, etc.). Send an `Idempotency-Key` so retries never create duplicates (docs/09 §2).
Parameters
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
Idempotency-Key (header) | string | Nee | Client-generated key that makes an unsafe request replay-safe: the server stores the first response and returns it verbatim for repeats. |
Aanvraaglichaam
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
type | OrgType | Ja | Organization type in the tenancy tree. |
parent_org_id | Uuid | null | Nee | Defaults to the caller's org when omitted. |
name | string | Ja | — |
default_currency | CurrencyCode | Nee | — |
Reactie
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
id | Uuid | Ja | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
type | OrgType | Ja | Organization type in the tenancy tree. |
parent_org_id | Uuid | null | Nee | Parent in the tenancy tree; null for a top-level org. |
name | string | Ja | — |
brand_id | object | Nee | White-label brand applied to this org's surfaces. |
default_currency | CurrencyCode | Ja | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
status | string<active, suspended, closed> | Ja | — |
created_at | string | Ja | — |
Fouten die dit eindpunt kan retourneren
401 · 403 · 409 · 422 · 429