Import.io · Capability

Import.io API — User

Import.io API — User. 2 operations. Lead operation: Get current user. Self-contained Naftiko capability covering one Import Io business surface.

Run with Naftiko Import IoUser

What You Can Do

GET
Getcurrentuser — Get current user
/v1/users/current
GET
Getcurrentusersubscription — Get current user subscription
/v1/users/current/subscription

MCP Tools

get-current-user

Get current user

read-only idempotent
get-current-user-subscription

Get current user subscription

read-only idempotent

Capability Spec

import-io-user.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Import.io API — User
  description: 'Import.io API — User. 2 operations. Lead operation: Get current user. Self-contained Naftiko capability covering
    one Import Io business surface.'
  tags:
  - Import Io
  - User
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    IMPORT_IO_API_KEY: IMPORT_IO_API_KEY
capability:
  consumes:
  - type: http
    namespace: import-io-user
    baseUri: https://api.import.io
    description: Import.io API — User business capability. Self-contained, no shared references.
    resources:
    - name: users-current
      path: /users/current
      operations:
      - name: getcurrentuser
        method: GET
        description: Get current user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: users-current-subscription
      path: /users/current/subscription
      operations:
      - name: getcurrentusersubscription
        method: GET
        description: Get current user subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: _apikey
      value: '{{env.IMPORT_IO_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: import-io-user-rest
    port: 8080
    description: REST adapter for Import.io API — User. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/users/current
      name: users-current
      description: REST surface for users-current.
      operations:
      - method: GET
        name: getcurrentuser
        description: Get current user
        call: import-io-user.getcurrentuser
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/current/subscription
      name: users-current-subscription
      description: REST surface for users-current-subscription.
      operations:
      - method: GET
        name: getcurrentusersubscription
        description: Get current user subscription
        call: import-io-user.getcurrentusersubscription
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: import-io-user-mcp
    port: 9090
    transport: http
    description: MCP adapter for Import.io API — User. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-current-user
      description: Get current user
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: import-io-user.getcurrentuser
      outputParameters:
      - type: object
        mapping: $.
    - name: get-current-user-subscription
      description: Get current user subscription
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: import-io-user.getcurrentusersubscription
      outputParameters:
      - type: object
        mapping: $.