Skip to content
Last updated

🔨 In Development — This section is still being developed and may change.
Create a new organization that the current user can manage. Organizations allow you to group users, manage access controls, and organize resources.
POSThttps://api.freddy.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.

email_domains array optional

Array of allowed email domains for auto-joining (e.g., ["aitronos.com", "example.org"]).


Returns

A CreateOrganizationResponse object containing the API response data.

Bash
curl -X POST https://api.freddy.aitronos.com/v1/organizations \
-H "Authorization: Bearer $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "name": "Aitronos Corp",
  "type": "Work",
  "description": "Leading AI technology company",
  "email_domains": ["aitronos.com"]
}'

Response

{
  "success": true,
  "message": "Organization created successfully",
  "organization": {
    "id": "ORG_797C4DDB256A300C",
    "name": "Aitronos Corp",
    "type": "Work",
    "description": "Leading AI technology company",
    "logo_image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
    "image_url": null,
    "email_domains": ["aitronos.com"],
    "is_active": true,
    "created_at": "2025-01-15T10:30:00Z",
    "updated_at": "2025-01-15T10:30:00Z",
    "departments": [
      {
        "id": "DEPT_1234567890ABCD",
        "name": "Engineering",
        "description": "Software development and engineering"
      },
      {
        "id": "DEPT_1234567890ABCE",
        "name": "Product",
        "description": "Product management and design"
      },
      {
        "id": "DEPT_1234567890ABCF",
        "name": "Sales",
        "description": "Sales and business development"
      },
      {
        "id": "DEPT_1234567890ABCG",
        "name": "Marketing",
        "description": "Marketing and communications"
      },
      {
        "id": "DEPT_1234567890ABCH",
        "name": "Operations",
        "description": "Operations and administration"
      }
    ],
    "providers": {
      "openai": {
        "id": "PRV_1234567890ABCD",
        "name": "OpenAI",
        "is_active": true
      },
      "anthropic": {
        "id": "PRV_1234567890ABCE",
        "name": "Anthropic",
        "is_active": true
      }
    }
  }
}