Skip to content
Last updated

Create a new organization that the current user can manage. Organizations allow you to group users, manage access controls, and organize resources.

POSThttps://api.aitronos.com/v1/organizations

Request Body

name string required

Organization name (e.g., "Aitronos Corp").

type string required

Organization type. Must be one of: "Work", "Personal", or "School".

description string optional

Organization description.

logo_image string optional

Base64-encoded logo image string. Automatically resized to 512x512 and compressed. Max upload size: 50MB.

website string optional

Organization website URL (max 500 characters).

industry string optional

Industry or sector (max 100 characters).

company_size string optional

Company size range (e.g., "1-10", "50-200") (max 50 characters).

use_system_provider_keys boolean optional

Whether to use system-wide AI provider keys. Default: true.

domains array optional

Email domains for automatic member access (e.g., ["aitronos.com", "example.org"]). Users with matching email domains will automatically gain access to the organization.


Returns

An OrganizationResponse object. The current user becomes the organization owner. If domains are provided, the response includes users_added_from_domains indicating how many users were automatically added.

cURL
curl -X POST https://api.aitronos.com/v1/organizations \
  -H "X-API-Key: $FREDDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Aitronos Corp",
    "type": "Work",
    "description": "AI-powered solutions company",
    "email_domains": ["aitronos.com"]
  }'