Organization

Manage organization profile data, API keys, logos, ownership, role notifications, and access approval settings.

Get organization profile

GET/v1/organization

Retrieve organization profile data used to personalize compliance workflows, Trust Center branding, API automation, and audit readiness reporting.

Query parameters

includeOwnershipstring

Include ownership data for transfer UI

Responses

200Organization information retrieved successfully
idstring

The organization ID

namestring

Organization name

slugstring

Organization slug

logostring

Organization logo URL

metadatastring

Additional metadata in JSON format

websitestring

Organization website URL

onboardingCompletedboolean

Whether onboarding is completed

hasAccessboolean

Whether organization has access to the platform

fleetDmLabelIdinteger

FleetDM label ID for device management

isFleetSetupCompletedboolean

Whether FleetDM setup is completed

primaryColorstring

Organization primary color in hex format

createdAtstring

When the organization was created

authTypeenum

How the request was authenticated

One of: api-key session

{
  "id": "org_abc123def456",
  "name": "Acme Corporation",
  "slug": "acme-corp",
  "logo": "https://example.com/logo.png",
  "metadata": "{\"theme\": \"dark\", \"preferences\": {}}",
  "website": "https://acme-corp.com",
  "onboardingCompleted": true,
  "hasAccess": true,
  "fleetDmLabelId": 123,
  "isFleetSetupCompleted": false,
  "primaryColor": "#3B82F6",
  "createdAt": "2026-01-01T00:00:00.000Z",
  "authType": "api-key"
}
401Unauthorized - Invalid authentication or insufficient permissions
messagestring
{
  "message": "Invalid or expired API key"
}
curl --request GET \
  --url https://api.complianz.ai/v1/organization \
  --header 'X-API-Key: <api-key>'

Update organization

PATCH/v1/organization

Partially updates the authenticated organization. Only provided fields will be updated.

Request body

namestring

Organization name

slugstring

Organization slug

logostring

Organization logo URL

metadatastring

Additional metadata in JSON format

websitestring

Organization website URL

onboardingCompletedboolean

Whether onboarding is completed

fleetDmLabelIdinteger

FleetDM label ID for device management

isFleetSetupCompletedboolean

Whether FleetDM setup is completed

primaryColorstring

Organization primary color in hex format

advancedModeEnabledboolean

Whether advanced mode is enabled for the organization

backgroundCheckStepEnabledboolean

Whether the background-check step is required during member onboarding. Set to false to turn off the "Require background checks" setting; true to require it.

evidenceApprovalEnabledboolean

Whether evidence requires approval before it is accepted.

deviceAgentStepEnabledboolean

Whether the device-agent step is enabled during member onboarding.

securityTrainingStepEnabledboolean

Whether the security-training step is enabled during member onboarding.

whistleblowerReportEnabledboolean

Whether the whistleblower reporting feature is enabled.

accessRequestFormEnabledboolean

Whether the trust-portal access request form is enabled.

Responses

200Organization updated successfully
idstring

The organization ID

namestring

Organization name

slugstring

Organization slug

logostring

Organization logo URL

metadatastring

Additional metadata in JSON format

websitestring

Organization website URL

onboardingCompletedboolean

Whether onboarding is completed

hasAccessboolean

Whether organization has access to the platform

fleetDmLabelIdinteger

FleetDM label ID for device management

isFleetSetupCompletedboolean

Whether FleetDM setup is completed

primaryColorstring

Organization primary color in hex format

createdAtstring

When the organization was created

authTypeenum

How the request was authenticated

One of: api-key session

{
  "id": "org_abc123def456",
  "name": "New Acme Corporation",
  "slug": "new-acme-corp",
  "logo": "https://example.com/logo.png",
  "metadata": "{\"theme\": \"dark\", \"preferences\": {}}",
  "website": "https://acme-corp.com",
  "onboardingCompleted": true,
  "hasAccess": true,
  "fleetDmLabelId": 123,
  "isFleetSetupCompleted": false,
  "primaryColor": "#3B82F6",
  "createdAt": "2026-01-01T00:00:00.000Z",
  "authType": "api-key"
}
400Bad Request - Invalid update data
messagestring
{
  "message": "Invalid slug format"
}
401Unauthorized - Invalid authentication or insufficient permissions
messagestring
{
  "message": "Invalid or expired API key"
}
404Organization not found
messagestring
{
  "message": "Organization with ID org_abc123def456 not found"
}
curl --request PATCH \
  --url https://api.complianz.ai/v1/organization \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "New Acme Corporation",
    "slug": "new-acme-corp",
    "logo": "https://example.com/logo.png",
    "metadata": "{\"theme\": \"dark\", \"preferences\": {}}",
    "website": "https://acme-corp.com",
    "onboardingCompleted": true,
    "fleetDmLabelId": 123,
    "isFleetSetupCompleted": false,
    "primaryColor": "#3B82F6",
    "advancedModeEnabled": false,
    "backgroundCheckStepEnabled": true,
    "evidenceApprovalEnabled": false,
    "deviceAgentStepEnabled": true,
    "securityTrainingStepEnabled": true,
    "whistleblowerReportEnabled": true,
    "accessRequestFormEnabled": true
  }'

Delete organization

DELETE/v1/organization

Permanently deletes the authenticated organization. This action cannot be undone.

Responses

200Organization deleted successfully
successboolean

Indicates successful deletion

deletedOrganizationobject
Show child attributes
idstring

The deleted organization ID

namestring

The deleted organization name

authTypeenum

How the request was authenticated

One of: api-key session

{
  "success": true,
  "deletedOrganization": {
    "id": "org_abc123def456",
    "name": "Acme Corporation"
  },
  "authType": "api-key"
}
401Unauthorized - Invalid authentication or insufficient permissions
messagestring
{
  "message": "Invalid or expired API key"
}
404Organization not found
messagestring
{
  "message": "Organization with ID org_abc123def456 not found"
}
curl --request DELETE \
  --url https://api.complianz.ai/v1/organization \
  --header 'X-API-Key: <api-key>'

Get organization onboarding status

GET/v1/organization/onboarding

Get organization onboarding status in Complianz. Manage organization profile data, API keys, logos, ownership, role notifications, and access approval settings.

Responses

200
curl --request GET \
  --url https://api.complianz.ai/v1/organization/onboarding \
  --header 'X-API-Key: <api-key>'

Transfer organization ownership

POST/v1/organization/transfer-ownership

Transfers organization ownership to another member. The current owner will become an admin and keep all other roles. The new owner will receive the owner role while keeping their existing roles. Only the current organization owner can.

Request body

newOwnerIdstringrequired

Member ID of the new owner

userIdstring

User ID of the current owner initiating the transfer (required for API key auth, ignored for JWT auth)

Responses

ResponseOwnership transferred successfully
successboolean
messagestring
currentOwnerobject
Show child attributes
memberIdstring
previousRolesstring[]
newRolesstring[]
newOwnerobject
Show child attributes
memberIdstring
previousRolesstring[]
newRolesstring[]
{
  "success": true,
  "message": "Ownership transferred successfully",
  "currentOwner": {
    "memberId": "mem_abc123",
    "previousRoles": [
      "owner",
      "employee"
    ],
    "newRoles": [
      "admin",
      "employee"
    ]
  },
  "newOwner": {
    "memberId": "mem_xyz789",
    "previousRoles": [
      "admin"
    ],
    "newRoles": [
      "admin",
      "owner"
    ]
  }
}
curl --request POST \
  --url https://api.complianz.ai/v1/organization/transfer-ownership \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "newOwnerId": "mem_xyz789",
    "userId": "usr_abc123def456"
  }'

Get role notification settings

GET/v1/organization/role-notifications

Get role notification settings in Complianz. Manage organization profile data, API keys, logos, ownership, role notifications, and access approval settings.

Responses

200
curl --request GET \
  --url https://api.complianz.ai/v1/organization/role-notifications \
  --header 'X-API-Key: <api-key>'

Update role notification settings

PUT/v1/organization/role-notifications

Update role notification settings in Complianz. Manage organization profile data, API keys, logos, ownership, role notifications, and access approval settings.

Request body

settingsobject[]required
Show child attributes
rolestringrequired
policyNotificationsbooleanrequired
taskRemindersbooleanrequired
taskAssignmentsbooleanrequired
taskMentionsbooleanrequired
weeklyTaskDigestbooleanrequired
findingNotificationsbooleanrequired

Responses

200
curl --request PUT \
  --url https://api.complianz.ai/v1/organization/role-notifications \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "settings": [
      {
        "role": "string",
        "policyNotifications": true,
        "taskReminders": true,
        "taskAssignments": true,
        "taskMentions": true,
        "weeklyTaskDigest": true,
        "findingNotifications": true
      }
    ]
  }'

List API keys

GET/v1/organization/api-keys

List active API keys for an organization so administrators can audit automation access and rotate credentials safely.

Responses

200
curl --request GET \
  --url https://api.complianz.ai/v1/organization/api-keys \
  --header 'X-API-Key: <api-key>'

Create API key

POST/v1/organization/api-keys

Create a scoped API key for server-side compliance automation such as evidence sync, policy workflows, or security questionnaire tooling. Requires a signed-in session (not an API key), and a key can only be given permissions the signed-in creator already has.

Responses

201
curl --request POST \
  --url https://api.complianz.ai/v1/organization/api-keys \
  --header 'X-API-Key: <api-key>'

List API key scopes

GET/v1/organization/api-keys/available-scopes

Retrieve available API key scopes and permissions before creating credentials for a specific compliance automation workflow.

Responses

200
curl --request GET \
  --url https://api.complianz.ai/v1/organization/api-keys/available-scopes \
  --header 'X-API-Key: <api-key>'

Get organization brand color

GET/v1/organization/primary-color

Retrieve the organization primary brand color used for Trust Center theming, portals, and API-driven embedded experiences.

Query parameters

tokenany

Access token for public access (alternative to authentication). When provided, authentication is not required.

Responses

200Organization primary color retrieved successfully
primaryColorstring

The primary color in hex format (e.g., #FF5733)

authTypeenum

How the request was authenticated

One of: api-key session

{
  "primaryColor": "#3B82F6",
  "authType": "api-key"
}
401Unauthorized - Invalid authentication or insufficient permissions
messagestring
{
  "message": "Invalid or expired API key"
}
404Organization not found
messagestring
{
  "message": "Organization with ID org_abc123def456 not found"
}
curl --request GET \
  --url https://api.complianz.ai/v1/organization/primary-color \
  --header 'X-API-Key: <api-key>'

Revoke API key

POST/v1/organization/api-keys/revoke

Revoke an organization API key when an integration is retired, credentials rotate, or access should be removed.

Responses

201
curl --request POST \
  --url https://api.complianz.ai/v1/organization/api-keys/revoke \
  --header 'X-API-Key: <api-key>'

Auto-approve organization access via domain or self-hosted check

POST/v1/organization-access/auto-approve

Grants hasAccess on the active organization if the requesting user is an internal complianz.ai user, the deployment is self-hosted, or the user email domain matches the organization website domain and is an active Stripe customer.

Responses

200
curl --request POST \
  --url https://api.complianz.ai/v1/organization-access/auto-approve \
  --header 'X-API-Key: <api-key>'