GraphQL: Organizations
Read organizations with their customers, properties and jobs, and create, update or delete organizations.
| Operation | Type | Description |
|---|---|---|
organization(id) | Query | Get one organization |
organizations(first, after, filter, sort) | Query | List organizations |
createOrganization(input) | Mutation | Create an organization |
updateOrganization(id, input) | Mutation | Update an organization |
deleteOrganization(id) | Mutation | Delete an organization |
Organization fields
| Field | Type | Description |
|---|---|---|
id | ID! | Organization UID |
organization_name | String! | |
organization_email | String | |
additional_emails | [String!]! | |
organization_description | String | |
organization_address | Address | |
organization_billing_address | Address | |
is_active | Boolean | |
custom_fields | [CustomField!]! | |
external_ids | [ExternalId!]! | { key value } |
no_of_customers | Int | Number of customers. Can be null for some organizations |
customers | CustomerConnection! | Paginated, with first (default 10), after, filter: CustomerFilter and sort: CustomerSort |
properties | PropertyConnection! | Paginated, with PropertyFilter and PropertySort |
jobs | JobConnection! | Paginated, with JobFilter and JobSort |
created_at | DateTime | |
updated_at | DateTime |
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
| Field | Type | Matches |
|---|---|---|
name | String | Organizations whose name starts with this text, ignoring letter case |
email | String | Exact organization_email |
is_active | Boolean | Active or inactive organizations |
created_after / created_before | DateTime | Range on created_at |
updated_after | DateTime | Organizations 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
| Field | Type | Required | Description |
|---|---|---|---|
organization_name | String | Yes | Must be unique |
organization_email | String | No | Must be unique |
additional_emails | [String!] | No | |
organization_description | String | No | |
organization_address | AddressInput | No | |
organization_billing_address | AddressInput | No | |
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>" }Updated about 21 hours ago
