Deel · Capability

Endpoints — subpackage_organizations

Endpoints — subpackage_organizations. 2 operations. Lead operation: Get Current Organization. Self-contained Naftiko capability covering one Deel business surface.

Run with Naftiko Deelsubpackage_organizations

What You Can Do

GET
Getorganizations — Get Current Organization
/v1/organizations
POST
Createorganizationchild — Create child organization
/v1/organizations/children

MCP Tools

get-current-organization

Get Current Organization

read-only idempotent
create-child-organization

Create child organization

Capability Spec

endpoints-1-subpackage-organizations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Endpoints — subpackage_organizations
  description: 'Endpoints — subpackage_organizations. 2 operations. Lead operation: Get Current Organization. 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: endpoints-1-subpackage-organizations
    baseUri: https://api.letsdeel.com/rest/v2
    description: Endpoints — subpackage_organizations business capability. Self-contained, no shared references.
    resources:
    - 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
    authentication:
      type: bearer
      token: '{{env.DEEL_API_KEY}}'
  exposes:
  - type: rest
    namespace: endpoints-1-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/organizations
      name: organizations
      description: REST surface for organizations.
      operations:
      - method: GET
        name: getorganizations
        description: Get Current Organization
        call: endpoints-1-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: endpoints-1-subpackage-organizations.createorganizationchild
        with:
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: endpoints-1-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: get-current-organization
      description: Get Current Organization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: endpoints-1-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: endpoints-1-subpackage-organizations.createorganizationchild
      with:
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.