Skip to main content
POST
Create a business
The business starts in test mode and goes live after its own verification. With clientEmail, we email your client an invitation. The invitation expires after 7 days. With sendInvitationEmail: false we send nothing: send inviteUrl yourself, under your own brand.
Webhook: none. account.updated fires later, when the business’s verification changes. See Which action fires which event.
Store the returned business.id on your side, next to your record of the client. There is no metadata on a business: the id is the link between the two.

Build a platform

End to end.

Platform fees

Set your share in the dashboard.

Authorizations

x-api-key
string
header
required

Your secret key, from app.agentaos.ai -> Settings -> Developers -> API Keys. The key's prefix is both its identity and its environment: sk_test_... (sandbox, free, no verification) or sk_live_... (real money, requires business verification). A missing or invalid key returns 401.

Body

application/json
name
string
required

The name buyers see. A brand, not an email.

Maximum string length: 100
country
string
required

Where it is registered, ISO 3166-1 alpha-2, upper case.

Pattern: ^[A-Z]{2}$
clientEmail
string<email>

Invite your client as its admin. Leave it out to run the business yourself. Only an owner of your platform may invite.

true for another app of your own company.

sendInvitationEmail
boolean
default:true

false: we send no email; you send inviteUrl yourself (white-label).

Response

The business was created.

business
object
required

A business you manage: a client's business, or another app of your own company. Every field is camelCase on the wire.

inviteToken
string | null
required

The invitation token, or null without clientEmail.

inviteUrl
string | null
required

The link your client opens to accept, or null without clientEmail. Ready to send.