GraphQL: Organizations

Read organizations with their customers, properties and jobs, and create, update or delete organizations.

OperationTypeDescription
organization(id)QueryGet one organization
organizations(first, after, filter, sort)QueryList organizations
createOrganization(input)MutationCreate an organization
updateOrganization(id, input)MutationUpdate an organization
deleteOrganization(id)MutationDelete an organization

Organization fields

FieldTypeDescription
idID!Organization UID
organization_nameString!
organization_emailString
additional_emails[String!]!
organization_descriptionString
organization_addressAddress
organization_billing_addressAddress
is_activeBoolean
custom_fields[CustomField!]!
external_ids[ExternalId!]!{ key value }
no_of_customersIntNumber of customers. Can be null for some organizations
customersCustomerConnection!Paginated, with first (default 10), after, filter: CustomerFilter and sort: CustomerSort
propertiesPropertyConnection!Paginated, with PropertyFilter and PropertySort
jobsJobConnection!Paginated, with JobFilter and JobSort
created_atDateTime
updated_atDateTime

Get an organization

organization(id: ID!) returns one organization, or null if the UID doesn't exist in your account.

query OrganizationDetails($id: ID!) {
  organization(id: $id) {
    id
    organization_name
    organization_email
    additional_emails
    organization_description
    organization_address { street city state country zip_code }
    organization_billing_address { street city state country zip_code }
    custom_fields { label value }
    external_ids { key value }
    no_of_customers
    is_active
    customers(first: 10, filter: { is_active: true }) {
      nodes { id customer_full_name customer_email }
      page_info { has_next_page end_cursor }
    }
    properties(first: 10, sort: { field: UPDATED_AT, direction: DESC }) {
      nodes { id property_name property_address { city } }
      page_info { has_next_page end_cursor }
    }
    jobs(first: 5, filter: { status_type_in: ["NEW", "SCHEDULED"] }) {
      nodes { work_order_number job_title current_status { status_name } }
    }
  }
}
{ "id": "<organization_uid>" }

List organizations

organizations(first, after, filter, sort) returns a paginated list.

OrganizationFilter

FieldTypeMatches
nameStringOrganizations whose name starts with this text, ignoring letter case
emailStringExact organization_email
is_activeBooleanActive or inactive organizations
created_after / created_beforeDateTimeRange on created_at
updated_afterDateTimeOrganizations changed at or after this time
custom_field[CustomFieldFilter!]{ label, value } exact matches

OrganizationSortField: CREATED_AT, UPDATED_AT

Example: search by name

query SearchOrganizations($name: String, $after: String) {
  organizations(
    first: 25
    after: $after
    filter: { name: $name, is_active: true }
    sort: { field: CREATED_AT, direction: DESC }
  ) {
    nodes { id organization_name organization_email no_of_customers }
    page_info { has_next_page end_cursor }
  }
}
{ "name": "acme", "after": null }

"acme" matches every organization whose name starts with "acme" in any letter case, such as "Acme Facilities" and "ACME Holdings".

Example: find by email, or by custom field and change date

query OrganizationLookups($email: String, $cf: [CustomFieldFilter!], $since: DateTime) {
  by_email: organizations(first: 1, filter: { email: $email }) {
    nodes { id organization_name }
  }
  managed: organizations(
    first: 50
    filter: { custom_field: $cf, updated_after: $since }
    sort: { field: UPDATED_AT, direction: ASC }
  ) {
    nodes { id organization_name custom_fields { label value } updated_at }
    page_info { has_next_page end_cursor }
  }
}
{
  "email": "[email protected]",
  "cf": [{ "label": "Account Manager", "value": "Alex Morgan" }],
  "since": "2026-11-01T00:00:00Z"
}

Create an organization

createOrganization(input: OrganizationCreateInput!)

OrganizationCreateInput

FieldTypeRequiredDescription
organization_nameStringYesMust be unique
organization_emailStringNoMust be unique
additional_emails[String!]No
organization_descriptionStringNo
organization_addressAddressInputNo
organization_billing_addressAddressInputNo
custom_fields[CustomFieldInput!]No{ label value }
mutation CreateOrganization($input: OrganizationCreateInput!) {
  createOrganization(input: $input) {
    organization { id organization_name organization_email organization_address { city } }
    user_errors { field message code }
  }
}
{
  "input": {
    "organization_name": "Acme Facilities",
    "organization_email": "[email protected]",
    "additional_emails": ["[email protected]"],
    "organization_description": "Facility management",
    "organization_address": { "street": "500 Howard St", "city": "San Francisco", "state": "California", "country": "United States", "zip_code": "94105" },
    "organization_billing_address": { "street": "500 Howard St", "city": "San Francisco", "state": "California", "country": "United States", "zip_code": "94105" },
    "custom_fields": [{ "label": "Account Manager", "value": "Alex Morgan" }]
  }
}

Update an organization

updateOrganization(id: ID!, input: OrganizationUpdateInput!) changes only the fields you send. OrganizationUpdateInput has the same fields as OrganizationCreateInput, all optional.

mutation UpdateOrganization($id: ID!, $input: OrganizationUpdateInput!) {
  updateOrganization(id: $id, input: $input) {
    organization { id organization_name organization_description }
    user_errors { field message code }
  }
}
{
  "id": "<organization_uid>",
  "input": { "organization_description": "Facility management, West region" }
}

Delete an organization

deleteOrganization(id: ID!)

mutation DeleteOrganization($id: ID!) {
  deleteOrganization(id: $id) {
    deleted_id
    user_errors { field message code }
  }
}
{ "id": "<organization_uid>" }

Did this page help you?