Get organization tree by ID
Retrieves a tree of organizations connected by parent ID by starting from the organization ID.
GET
/api/v1/{team_slug}/{app_slug}/organisations/{org_id}/treeAuthorization
AuthorizationBearer token · headerrequiredManagement API token, sent as Authorization: Bearer <token>.
Path parameters
app_slugstringrequiredApp slug
team_slugstringrequiredTeam slug
org_idstringrequiredOrganization ID
Responses
200
Organization details
datainternal_pkg_webserver_v1.OrganisationTreerequiredShow propertiesHide properties
app_idstringchildreninternal_pkg_webserver_v1.OrganisationTree[] | nullShow propertiesHide properties
Array of
internal_pkg_webserver_v1.OrganisationTreeCircular reference to
internal_pkg_webserver_v1.OrganisationTree.commentstringcontact_namestringcreated_atstringcredit_checkbooleancustom_fieldsgithub_com_enadhq_nabbit_internal_pkg_database.CustomFields | nullShow propertiesHide properties
Any of:
github_com_enadhq_nabbit_internal_pkg_database.CustomFields
objectnull
nullemailstringexternal_refstringidstringinvoice_emailstringnamestringorganisation_numberstring | nullparent_idstringphonestringstatusstringtax_id_vat_numberstringupdated_atstring | nulldetailsstring[]Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes
successbooleanrequired400
Invalid request (e.g. bad organization ID format)
detailsstring[]messagestringsuccessbooleanrequired401
Unauthorized access
detailsstring[]messagestringsuccessbooleanrequired404
Organization not found
detailsstring[]messagestringsuccessbooleanrequired500
Internal server error
detailsstring[]messagestringsuccessbooleanrequired