Onboard an Organization
This guide walks you through setting up a new Clossir organization from scratch — creating the org, generating API keys, enabling chains, and optionally registering as an issuer.
Prerequisites
- A Clossir account (sign up at app.dev.clossir.com)
- Node.js 18+ or Bun
1. Install the SDK
2. Initialize the client
3. Create the organization
Create your org with a name, email, and type. The org_type field accepts:
organization, institution, fund, bank, broker_dealer, sub_organization, or spv.
The API returns 200 with the full org object, including the id you will use for all
subsequent calls.
4. Set network mode
New organizations default to testnet. When you are ready for production, switch to mainnet:
Switching to mainnet enables real on-chain transactions. Keep your org on testnet until you have validated your integration end-to-end.
5. Create an API key
Generate an API key with the scopes your integration needs. The key value is returned only once — store it securely.
See Authentication for the full list of 16 permission scopes and recommended scope sets.
6. Enable chains
Enable the blockchains your org will operate on. Each chain has a chain_registry_id that
you can look up from the chain registry. This is distinct from the LayerZero Endpoint ID (EID).
The chain_registry_id is the identifier from the Clossir chain registry, not the
LayerZero EID. Use the chain registry list endpoint to look up IDs for your target chains.
7. Register as issuer (optional)
If your org will create and deploy tokenized assets, register as an issuer. This is required before creating assets.
8. Provision server wallets (optional)
Server wallets enable automated signing for on-chain operations like attestation settlement and asset deployment.
9. Invite a team member (optional)
Add colleagues to your org with specific roles. Available roles: admin, operator,
compliance_officer, investor, client (default).
The invited user receives an email with a link to accept the invitation.
What you built
You now have a fully configured Clossir organization with API keys, enabled chains, and optionally an issuer registration and server wallets. Your org is ready to attest users, define compliance policies, and deploy gated assets.
Reference
- API Reference
- Authentication — scopes, keys, and error handling
Next steps
- Attest a User — verify identity and issue on-chain attestations
- Concepts — understand the full data model