openapi: 3.0.3 info: title: Truto Admin Accounts Departments API description: The Truto Admin API enables programmatic management of the Truto integration platform, including managing integrated accounts, generating link tokens for customer OAuth flows, running post-install actions, and provisioning MCP servers for AI agent access. version: 1.0.0 contact: url: https://truto.one/docs/api-reference/admin servers: - url: https://api.truto.one description: Truto API security: - bearerAuth: [] tags: - name: Departments description: Organizational departments paths: /departments: get: operationId: listDepartments summary: List departments description: List departments from the connected ATS provider. tags: - Departments security: - bearerAuth: [] parameters: - $ref: '#/components/parameters/IntegratedAccountId' - name: cursor in: query required: false schema: type: string - name: limit in: query required: false schema: type: integer default: 20 responses: '200': description: List of departments. content: application/json: schema: $ref: '#/components/schemas/DepartmentListResponse' '401': $ref: '#/components/responses/Unauthorized' components: responses: Unauthorized: description: Authentication failed or token is invalid. content: application/json: schema: $ref: '#/components/schemas/Error' schemas: DepartmentListResponse: type: object properties: data: type: array items: $ref: '#/components/schemas/Department' nextCursor: type: string Department: type: object description: A department from the ATS provider. properties: id: type: string remoteId: type: string name: type: string parentId: type: string createdAt: type: string format: date-time updatedAt: type: string format: date-time Error: type: object properties: error: type: string message: type: string parameters: IntegratedAccountId: name: integrated_account_id in: query required: true description: The ID of the integrated account (connected ATS provider instance) to query. Required for all Unified API requests. schema: type: string securitySchemes: bearerAuth: type: http scheme: bearer description: Tenant Bearer token from the Truto dashboard.