Trabex · Capability

Trabex Trade Compliance API — Companies

Trabex Trade Compliance API — Companies. 2 operations. Lead operation: Get Companies. Self-contained Naftiko capability covering one Trabex business surface.

Run with Naftiko TrabexCompanies

What You Can Do

GET
Getcompanies — Get Companies
/v1/v1/companies
POST
Createcompany — Create Company
/v1/v1/companies

MCP Tools

get-companies

Get Companies

read-only idempotent
create-company

Create Company

Capability Spec

trade-compliance-companies.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Trabex Trade Compliance API — Companies
  description: 'Trabex Trade Compliance API — Companies. 2 operations. Lead operation: Get Companies. Self-contained Naftiko
    capability covering one Trabex business surface.'
  tags:
  - Trabex
  - Companies
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TRABEX_API_KEY: TRABEX_API_KEY
capability:
  consumes:
  - type: http
    namespace: trade-compliance-companies
    baseUri: https://api.trabex.io
    description: Trabex Trade Compliance API — Companies business capability. Self-contained, no shared references.
    resources:
    - name: v1-companies
      path: /v1/companies
      operations:
      - name: getcompanies
        method: GET
        description: Get Companies
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcompany
        method: POST
        description: Create Company
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: X-API-Key
      value: '{{env.TRABEX_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: trade-compliance-companies-rest
    port: 8080
    description: REST adapter for Trabex Trade Compliance API — Companies. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v1/companies
      name: v1-companies
      description: REST surface for v1-companies.
      operations:
      - method: GET
        name: getcompanies
        description: Get Companies
        call: trade-compliance-companies.getcompanies
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcompany
        description: Create Company
        call: trade-compliance-companies.createcompany
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: trade-compliance-companies-mcp
    port: 9090
    transport: http
    description: MCP adapter for Trabex Trade Compliance API — Companies. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-companies
      description: Get Companies
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: trade-compliance-companies.getcompanies
      outputParameters:
      - type: object
        mapping: $.
    - name: create-company
      description: Create Company
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: trade-compliance-companies.createcompany
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.