Nudge Security · Capability

Nudge Security API — Accounts

Nudge Security API — Accounts. 2 operations. Lead operation: Search accounts. Self-contained Naftiko capability covering one Nudge Security business surface.

Run with Naftiko Nudge SecurityAccounts

What You Can Do

GET
Get — Search accounts
/v1/accounts
GET
Get — Get account
/v1/accounts/{account-id}

MCP Tools

search-accounts

Search accounts

read-only idempotent
get-account

Get account

read-only idempotent

Capability Spec

nudge-security-accounts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Nudge Security API — Accounts
  description: 'Nudge Security API — Accounts. 2 operations. Lead operation: Search accounts. Self-contained Naftiko capability
    covering one Nudge Security business surface.'
  tags:
  - Nudge Security
  - Accounts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    NUDGE_SECURITY_API_KEY: NUDGE_SECURITY_API_KEY
capability:
  consumes:
  - type: http
    namespace: nudge-security-accounts
    baseUri: https://api.nudgesecurity.io/api/1.0
    description: Nudge Security API — Accounts business capability. Self-contained, no shared references.
    resources:
    - name: accounts
      path: /accounts
      operations:
      - name: get
        method: GET
        description: Search accounts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: accounts-account_id
      path: /accounts/{account_id}
      operations:
      - name: get
        method: GET
        description: Get account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.NUDGE_SECURITY_API_KEY}}'
  exposes:
  - type: rest
    namespace: nudge-security-accounts-rest
    port: 8080
    description: REST adapter for Nudge Security API — Accounts. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/accounts
      name: accounts
      description: REST surface for accounts.
      operations:
      - method: GET
        name: get
        description: Search accounts
        call: nudge-security-accounts.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}
      name: accounts-account-id
      description: REST surface for accounts-account_id.
      operations:
      - method: GET
        name: get
        description: Get account
        call: nudge-security-accounts.get
        with:
          account_id: rest.account_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: nudge-security-accounts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Nudge Security API — Accounts. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: search-accounts
      description: Search accounts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: nudge-security-accounts.get
      outputParameters:
      - type: object
        mapping: $.
    - name: get-account
      description: Get account
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: nudge-security-accounts.get
      with:
        account_id: tools.account_id
      outputParameters:
      - type: object
        mapping: $.