Create your organization
Send aPOST request to /v1/organizations. Only name and slug are required; all other fields are optional but recommended for KYB and billing purposes.
You are automatically assigned the owner role the moment the organization is created. No separate membership step is needed.
Slug rules
Theslug field becomes a permanent, unique identifier for your organization across the platform. It must be:
- Lowercase letters, numbers, and hyphens only
- Globally unique across all Nyota Imara organizations
409 Conflict.
Make organization-scoped requests
After creating an organization, pass itsid in the X-Organization-Id header on every request that operates within that org’s context — billing, commerce, logistics, team management, and more.
The
X-Organization-Id header tells the server which organization context to enforce for authorization checks. Requests that require an org context will return 403 Forbidden if this header is missing or mismatched.Update your organization
UsePATCH /v1/organizations/:id to update any combination of the following fields: name, logoUrl, kraPin, billingEmail, address, city, country.
Request body reference
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Display name of your organization |
slug | string | Yes | Unique, URL-safe identifier (lowercase, hyphens only) |
kraPin | string | No | Kenya Revenue Authority PIN — required for KYB |
billingEmail | string | No | Email address for billing notifications and invoices |
address | string | No | Street address |
city | string | No | City |
country | string | No | Defaults to "Kenya" |