Organizations
Base path: https://gateway.useyona.com/a/v1/organizations
An organization is your business entity on Yona. It holds your subscription, credit pool, team members, and API keys. B2B2B platforms can create child organizations to manage multiple businesses under one account.
Create organization
POST /a/v1/organizations
Create a new organization or child organization (for B2B2B platforms).
Request body
| Field | Type | Required | Description |
|---|---|---|---|
businessName | string | Yes | Organization name, 2-255 chars |
email | string | Yes | Contact email |
taxNo | string | No | Tax number (format: XXXXXXXX-XXXX) |
phoneNumber | string | No | Contact phone |
website | string | No | Website URL |
country | string | No | ISO 2-letter country code |
Get current organization
GET /a/v1/organizations/me
Update organization
PATCH /a/v1/organizations/me
Verify tax number
POST /a/v1/organizations/me/onboarding/verify-tax-number
Request body
| Field | Type | Required | Description |
|---|---|---|---|
taxNo | string | Yes | Tax number (format: XXXXXXXX-XXXX) |
Send phone verification
POST /a/v1/organizations/me/onboarding/send-phone-verification
Request body
| Field | Type | Required | Description |
|---|---|---|---|
phoneNumber | string | Yes | Phone number to verify |
Verify phone
POST /a/v1/organizations/me/onboarding/verify-phone
Request body
| Field | Type | Required | Description |
|---|---|---|---|
otp | string | Yes | OTP received via SMS |
Update credit pool config
PATCH /a/v1/organizations/me/credit-pool-config
Configure how credits flow to child organizations (B2B2B).
Request body
| Field | Type | Required | Description |
|---|---|---|---|
primaryCoversSecondary | boolean | No | Primary pool pays for all child usage |
fallbackToPrimary | boolean | No | Child uses own pool first, primary covers shortfall |
minimumReserve | number | No | Credits to keep in reserve |
Other organization endpoints
| Method | Path | Description |
|---|---|---|
GET | /a/v1/organizations | List organizations |
GET | /a/v1/organizations/:id | Get organization by ID |
POST | /a/v1/organizations/me/onboarding/complete | Complete onboarding |
POST | /a/v1/organizations/switch | Switch active organization |
GET | /a/v1/organizations/me/children | List child organizations |
GET | /a/v1/organizations/me/credit-pool-config | Get credit pool config |
Last updated on