Supaglue · Capability

Unified CRM API — AssociationSchemas

Unified CRM API — AssociationSchemas. 2 operations. Lead operation: List association schemas. Self-contained Naftiko capability covering one Supaglue business surface.

Run with Naftiko SupaglueAssociationSchemas

What You Can Do

GET
Listassociationschemas — List association schemas
/v1/metadata/associations
POST
Createassociationschema — Create association schema
/v1/metadata/associations

MCP Tools

list-association-schemas

List association schemas

read-only idempotent
create-association-schema

Create association schema

Capability Spec

crm-associationschemas.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Unified CRM API — AssociationSchemas
  description: 'Unified CRM API — AssociationSchemas. 2 operations. Lead operation: List association schemas. Self-contained
    Naftiko capability covering one Supaglue business surface.'
  tags:
  - Supaglue
  - AssociationSchemas
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SUPAGLUE_API_KEY: SUPAGLUE_API_KEY
capability:
  consumes:
  - type: http
    namespace: crm-associationschemas
    baseUri: https://api.supaglue.io/crm/v2
    description: Unified CRM API — AssociationSchemas business capability. Self-contained, no shared references.
    resources:
    - name: metadata-associations
      path: /metadata/associations
      operations:
      - name: listassociationschemas
        method: GET
        description: List association schemas
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: source_object
          in: query
          type: string
          required: true
        - name: target_object
          in: query
          type: string
          required: true
      - name: createassociationschema
        method: POST
        description: Create association schema
        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.SUPAGLUE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: crm-associationschemas-rest
    port: 8080
    description: REST adapter for Unified CRM API — AssociationSchemas. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/metadata/associations
      name: metadata-associations
      description: REST surface for metadata-associations.
      operations:
      - method: GET
        name: listassociationschemas
        description: List association schemas
        call: crm-associationschemas.listassociationschemas
        with:
          source_object: rest.source_object
          target_object: rest.target_object
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createassociationschema
        description: Create association schema
        call: crm-associationschemas.createassociationschema
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: crm-associationschemas-mcp
    port: 9090
    transport: http
    description: MCP adapter for Unified CRM API — AssociationSchemas. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-association-schemas
      description: List association schemas
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: crm-associationschemas.listassociationschemas
      with:
        source_object: tools.source_object
        target_object: tools.target_object
      outputParameters:
      - type: object
        mapping: $.
    - name: create-association-schema
      description: Create association schema
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: crm-associationschemas.createassociationschema
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.