naftiko: 1.0.0-alpha2 info: label: Endpoints — subpackage_organizations description: 'Endpoints — subpackage_organizations. 8 operations. Lead operation: Retrieve Departments. Self-contained Naftiko capability covering one Deel business surface.' tags: - Deel - subpackage_organizations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DEEL_API_KEY: DEEL_API_KEY capability: consumes: - type: http namespace: platform-endpoints-subpackage-organizations baseUri: https://api.letsdeel.com/rest/v2 description: Endpoints — subpackage_organizations business capability. Self-contained, no shared references. resources: - name: departments path: /departments operations: - name: getdepartments method: GET description: Retrieve Departments outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: '## Authentication' required: true - name: organizations path: /organizations operations: - name: getorganizations method: GET description: Get Current Organization outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: '## Authentication' required: true - name: organizations-children path: /organizations/children operations: - name: createorganizationchild method: POST description: Create child organization outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: '## Authentication' required: true - name: body in: body type: object description: Request body (JSON). required: false - name: roles path: /roles operations: - name: createorganizationrole method: POST description: Create organization custom role. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: '## Authentication' required: true - name: body in: body type: object description: Request body (JSON). required: false - name: gettherolesofthecurrentorganizationv20260101 method: GET description: Get the roles of the current organization. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: '## Authentication' required: true - name: roles-roleId path: /roles/{roleId} operations: - name: updateorganizationrole method: PATCH description: Update organization custom role outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: roleId in: path type: string description: ID of the role required: true - name: Authorization in: header type: string description: '## Authentication' required: true - name: body in: body type: object description: Request body (JSON). required: false - name: teams path: /teams operations: - name: getteams method: GET description: Get Team List outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: '## Authentication' required: true - name: working-locations path: /working-locations operations: - name: retrieveworkinglocations method: GET description: Retrieve working locations outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: '## Authentication' required: true authentication: type: bearer token: '{{env.DEEL_API_KEY}}' exposes: - type: rest namespace: platform-endpoints-subpackage-organizations-rest port: 8080 description: REST adapter for Endpoints — subpackage_organizations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/departments name: departments description: REST surface for departments. operations: - method: GET name: getdepartments description: Retrieve Departments call: platform-endpoints-subpackage-organizations.getdepartments with: Authorization: rest.Authorization outputParameters: - type: object mapping: $. - path: /v1/organizations name: organizations description: REST surface for organizations. operations: - method: GET name: getorganizations description: Get Current Organization call: platform-endpoints-subpackage-organizations.getorganizations with: Authorization: rest.Authorization outputParameters: - type: object mapping: $. - path: /v1/organizations/children name: organizations-children description: REST surface for organizations-children. operations: - method: POST name: createorganizationchild description: Create child organization call: platform-endpoints-subpackage-organizations.createorganizationchild with: Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - path: /v1/roles name: roles description: REST surface for roles. operations: - method: POST name: createorganizationrole description: Create organization custom role. call: platform-endpoints-subpackage-organizations.createorganizationrole with: Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - method: GET name: gettherolesofthecurrentorganizationv20260101 description: Get the roles of the current organization. call: platform-endpoints-subpackage-organizations.gettherolesofthecurrentorganizationv20260101 with: Authorization: rest.Authorization outputParameters: - type: object mapping: $. - path: /v1/roles/{roleid} name: roles-roleid description: REST surface for roles-roleId. operations: - method: PATCH name: updateorganizationrole description: Update organization custom role call: platform-endpoints-subpackage-organizations.updateorganizationrole with: roleId: rest.roleId Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - path: /v1/teams name: teams description: REST surface for teams. operations: - method: GET name: getteams description: Get Team List call: platform-endpoints-subpackage-organizations.getteams with: Authorization: rest.Authorization outputParameters: - type: object mapping: $. - path: /v1/working-locations name: working-locations description: REST surface for working-locations. operations: - method: GET name: retrieveworkinglocations description: Retrieve working locations call: platform-endpoints-subpackage-organizations.retrieveworkinglocations with: Authorization: rest.Authorization outputParameters: - type: object mapping: $. - type: mcp namespace: platform-endpoints-subpackage-organizations-mcp port: 9090 transport: http description: MCP adapter for Endpoints — subpackage_organizations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: retrieve-departments description: Retrieve Departments hints: readOnly: true destructive: false idempotent: true call: platform-endpoints-subpackage-organizations.getdepartments with: Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: get-current-organization description: Get Current Organization hints: readOnly: true destructive: false idempotent: true call: platform-endpoints-subpackage-organizations.getorganizations with: Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: create-child-organization description: Create child organization hints: readOnly: false destructive: false idempotent: false call: platform-endpoints-subpackage-organizations.createorganizationchild with: Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: create-organization-custom-role description: Create organization custom role. hints: readOnly: false destructive: false idempotent: false call: platform-endpoints-subpackage-organizations.createorganizationrole with: Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: get-roles-current-organization description: Get the roles of the current organization. hints: readOnly: true destructive: false idempotent: true call: platform-endpoints-subpackage-organizations.gettherolesofthecurrentorganizationv20260101 with: Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: update-organization-custom-role description: Update organization custom role hints: readOnly: false destructive: false idempotent: true call: platform-endpoints-subpackage-organizations.updateorganizationrole with: roleId: tools.roleId Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: get-team-list description: Get Team List hints: readOnly: true destructive: false idempotent: true call: platform-endpoints-subpackage-organizations.getteams with: Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: retrieve-working-locations description: Retrieve working locations hints: readOnly: true destructive: false idempotent: true call: platform-endpoints-subpackage-organizations.retrieveworkinglocations with: Authorization: tools.Authorization outputParameters: - type: object mapping: $.