Creating an organization
When you create an organization, Nyota Imara automatically assigns you the owner role. You supply aname and a slug at creation time; the slug is your organization’s unique identifier across the platform and cannot be changed after it is set.
Slugs are lowercased and sanitized automatically — any character that is not a letter, digit, or hyphen is replaced with a hyphen. If the slug you choose is already taken, the API returns
409 Conflict.Personal context vs. organization context
Nyota Imara uses two request contexts:- Personal context — requests made without an
X-Organization-Idheader. Use this to list your organizations (GET /v1/organizations) or accept an invitation. - Organization context — requests that include the
X-Organization-Idheader. The value must be the UUID of an organization you belong to. This header activates your organization-scoped role and its permission set for that request.
Built-in roles
Every organization ships with four protected roles. These roles cannot be renamed or deleted.| Role | What it can do |
|---|---|
| owner | Full access to all organization settings, members, billing, KYB, IAM, and every platform service. Created automatically for the organization’s founder. |
| admin | Manage organization settings, invite and remove members, view and submit KYB, and read billing information. Cannot delete the organization or modify owner accounts. |
| billing | Create and manage payment methods, initiate payments, and view invoices. No access to member management or org settings. |
| member | Basic read access to organization data and shared resources. Cannot change settings, invite others, or access billing. |
Organization owners can create custom roles with any combination of granular permissions. See Permissions for details.
Members and invitations
To invite someone to your organization, send aPOST request with the invitee’s email address and the role you want to assign. Nyota Imara generates a time-limited invite link and emails it automatically.
POST /v1/organizations/invites/accept with the token from the link.
KYB verification requirement
Some platform features — including payment processing and order management — require your organization to be KYB-verified. Until verification is complete, your organization’skybStatus remains pending or none.
Submit your business documents at POST /v1/organizations/:id/kyb. Once your submission is reviewed and approved, kybStatus changes to verified and gated features become available. See Identity Verification for the full document requirements.
Org-scoped API endpoints
All endpoints that act on an organization follow the pattern/v1/organizations/:id/... and require the X-Organization-Id header. The table below lists the primary endpoints.
| Method | Path | Permission required |
|---|---|---|
GET | /v1/organizations | Personal context |
POST | /v1/organizations | platform:org:create |
GET | /v1/organizations/:id | org:organization:read |
PATCH | /v1/organizations/:id | org:organization:update |
GET | /v1/organizations/:id/members | org:member:read |
POST | /v1/organizations/:id/invites | org:member:invite |
GET | /v1/organizations/:id/kyb | org:kyb:read |
POST | /v1/organizations/:id/kyb | org:kyb:submit |
GET | /v1/organizations/iam/roles | org:organization:read |