Organizations

Create an organization

Changed on

Creates a new organization. The authenticated user becomes the organization owner.

post/v1beta/organizations

Request

  • Base URL
    https://api.factify.com
  • URL
    https://api.factify.com/v1beta/organizations
  • Auth
    HTTP bearer

Request body

namestring required

Human-readable organization name.

owner_user_idstring nullable

Owner user ID. If not provided, the authenticated user becomes the owner. Authorization: Specifying a different user requires system maintainer role. Required when the caller is a service account (service accounts cannot own organizations). Pattern: user_[0-9a-hjkmnp-tv-z]{26}

Response

Success

Example response

{
  "organization": {
    "id": "org_01h2xcejqtf2nbrexx3vqjhp41",
    "name": "Acme Corporation"
  }
}

Changes