Port · Capability

Port API — Organization

Port API — Organization. 8 operations. Lead operation: Get organization details. Self-contained Naftiko capability covering one Port business surface.

Run with Naftiko PortOrganization

What You Can Do

GET
Get — Get organization details
/v1/v1/organization
PUT
Put — Change organization details
/v1/v1/organization
PATCH
Patch — Update organization details
/v1/v1/organization
GET
Get — Get all organization secrets' metadata
/v1/v1/organization/secrets
POST
Post — Create an organization secret
/v1/v1/organization/secrets
GET
Get — Get an organization secret's metadata
/v1/v1/organization/secrets/{secret-name}
PATCH
Patch — Update an organization secret
/v1/v1/organization/secrets/{secret-name}
DELETE
Delete — Delete an organization secret
/v1/v1/organization/secrets/{secret-name}

MCP Tools

get-organization-details

Get organization details

read-only idempotent
change-organization-details

Change organization details

idempotent
update-organization-details

Update organization details

idempotent
get-all-organization-secrets-metadata

Get all organization secrets' metadata

read-only idempotent
create-organization-secret

Create an organization secret

get-organization-secret-s-metadata

Get an organization secret's metadata

read-only idempotent
update-organization-secret

Update an organization secret

idempotent
delete-organization-secret

Delete an organization secret

idempotent

Capability Spec

port-organization.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Port API — Organization
  description: 'Port API — Organization. 8 operations. Lead operation: Get organization details. Self-contained Naftiko capability
    covering one Port business surface.'
  tags:
  - Port
  - Organization
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PORT_API_KEY: PORT_API_KEY
capability:
  consumes:
  - type: http
    namespace: port-organization
    baseUri: ''
    description: Port API — Organization business capability. Self-contained, no shared references.
    resources:
    - name: v1-organization
      path: /v1/organization
      operations:
      - name: get
        method: GET
        description: Get organization details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: put
        method: PUT
        description: Change organization details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: patch
        method: PATCH
        description: Update organization details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v1-organization-secrets
      path: /v1/organization/secrets
      operations:
      - name: get
        method: GET
        description: Get all organization secrets' metadata
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: post
        method: POST
        description: Create an organization secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v1-organization-secrets-secret_name
      path: /v1/organization/secrets/{secret_name}
      operations:
      - name: get
        method: GET
        description: Get an organization secret's metadata
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: secret_name
          in: path
          type: string
          description: The name of the secret you want to operate on.
          required: true
      - name: patch
        method: PATCH
        description: Update an organization secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: secret_name
          in: path
          type: string
          description: The name of the secret you want to operate on.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: delete
        method: DELETE
        description: Delete an organization secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: secret_name
          in: path
          type: string
          description: The name of the secret you want to operate on.
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.PORT_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: port-organization-rest
    port: 8080
    description: REST adapter for Port API — Organization. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/organization
      name: v1-organization
      description: REST surface for v1-organization.
      operations:
      - method: GET
        name: get
        description: Get organization details
        call: port-organization.get
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: put
        description: Change organization details
        call: port-organization.put
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patch
        description: Update organization details
        call: port-organization.patch
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/organization/secrets
      name: v1-organization-secrets
      description: REST surface for v1-organization-secrets.
      operations:
      - method: GET
        name: get
        description: Get all organization secrets' metadata
        call: port-organization.get
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Create an organization secret
        call: port-organization.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/organization/secrets/{secret-name}
      name: v1-organization-secrets-secret-name
      description: REST surface for v1-organization-secrets-secret_name.
      operations:
      - method: GET
        name: get
        description: Get an organization secret's metadata
        call: port-organization.get
        with:
          secret_name: rest.secret_name
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patch
        description: Update an organization secret
        call: port-organization.patch
        with:
          secret_name: rest.secret_name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete an organization secret
        call: port-organization.delete
        with:
          secret_name: rest.secret_name
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: port-organization-mcp
    port: 9090
    transport: http
    description: MCP adapter for Port API — Organization. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-organization-details
      description: Get organization details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: port-organization.get
      outputParameters:
      - type: object
        mapping: $.
    - name: change-organization-details
      description: Change organization details
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: port-organization.put
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-organization-details
      description: Update organization details
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: port-organization.patch
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-all-organization-secrets-metadata
      description: Get all organization secrets' metadata
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: port-organization.get
      outputParameters:
      - type: object
        mapping: $.
    - name: create-organization-secret
      description: Create an organization secret
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: port-organization.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-organization-secret-s-metadata
      description: Get an organization secret's metadata
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: port-organization.get
      with:
        secret_name: tools.secret_name
      outputParameters:
      - type: object
        mapping: $.
    - name: update-organization-secret
      description: Update an organization secret
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: port-organization.patch
      with:
        secret_name: tools.secret_name
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-organization-secret
      description: Delete an organization secret
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: port-organization.delete
      with:
        secret_name: tools.secret_name
      outputParameters:
      - type: object
        mapping: $.