naftiko: 1.0.0-alpha2 info: label: Unified CRM API — CustomObjects description: 'Unified CRM API — CustomObjects. 4 operations. Lead operation: Create custom object record. Self-contained Naftiko capability covering one Supaglue business surface.' tags: - Supaglue - CustomObjects created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SUPAGLUE_API_KEY: SUPAGLUE_API_KEY capability: consumes: - type: http namespace: crm-customobjects baseUri: https://api.supaglue.io/crm/v2 description: Unified CRM API — CustomObjects business capability. Self-contained, no shared references. resources: - name: custom_objects-object_name-records path: /custom_objects/{object_name}/records operations: - name: createcustomobjectrecord method: POST description: Create custom object record outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: listcustomobjectrecords method: GET description: List custom object records outputRawFormat: json outputParameters: - name: result type: object value: $. - name: custom_objects-object_name-records-record_id path: /custom_objects/{object_name}/records/{record_id} operations: - name: updatecustomobjectrecord method: PATCH description: Update custom object record outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: getcustomobjectrecord method: GET description: Get custom object record outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: x-api-key value: '{{env.SUPAGLUE_API_KEY}}' placement: header exposes: - type: rest namespace: crm-customobjects-rest port: 8080 description: REST adapter for Unified CRM API — CustomObjects. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/custom-objects/{object-name}/records name: custom-objects-object-name-records description: REST surface for custom_objects-object_name-records. operations: - method: POST name: createcustomobjectrecord description: Create custom object record call: crm-customobjects.createcustomobjectrecord with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: listcustomobjectrecords description: List custom object records call: crm-customobjects.listcustomobjectrecords outputParameters: - type: object mapping: $. - path: /v1/custom-objects/{object-name}/records/{record-id} name: custom-objects-object-name-records-record-id description: REST surface for custom_objects-object_name-records-record_id. operations: - method: PATCH name: updatecustomobjectrecord description: Update custom object record call: crm-customobjects.updatecustomobjectrecord with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: getcustomobjectrecord description: Get custom object record call: crm-customobjects.getcustomobjectrecord outputParameters: - type: object mapping: $. - type: mcp namespace: crm-customobjects-mcp port: 9090 transport: http description: MCP adapter for Unified CRM API — CustomObjects. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-custom-object-record description: Create custom object record hints: readOnly: false destructive: false idempotent: false call: crm-customobjects.createcustomobjectrecord with: body: tools.body outputParameters: - type: object mapping: $. - name: list-custom-object-records description: List custom object records hints: readOnly: true destructive: false idempotent: true call: crm-customobjects.listcustomobjectrecords outputParameters: - type: object mapping: $. - name: update-custom-object-record description: Update custom object record hints: readOnly: false destructive: false idempotent: true call: crm-customobjects.updatecustomobjectrecord with: body: tools.body outputParameters: - type: object mapping: $. - name: get-custom-object-record description: Get custom object record hints: readOnly: true destructive: false idempotent: true call: crm-customobjects.getcustomobjectrecord outputParameters: - type: object mapping: $.