naftiko: 1.0.0-alpha2 info: label: Unified Engagement API — Sequence States description: 'Unified Engagement API — Sequence States. 5 operations. Lead operation: Create sequence state. Self-contained Naftiko capability covering one Supaglue business surface.' tags: - Supaglue - Sequence States created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SUPAGLUE_API_KEY: SUPAGLUE_API_KEY capability: consumes: - type: http namespace: engagement-sequence-states baseUri: https://api.supaglue.io/engagement/v2 description: Unified Engagement API — Sequence States business capability. Self-contained, no shared references. resources: - name: sequence_states path: /sequence_states operations: - name: createsequencestate method: POST description: Create sequence state outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: listsequencestates method: GET description: List sequence states outputRawFormat: json outputParameters: - name: result type: object value: $. - name: sequence_states-_batch path: /sequence_states/_batch operations: - name: batchcreatesequencestate method: POST description: Batch create sequence states outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: sequence_states-_search path: /sequence_states/_search operations: - name: searchsequencestates method: POST description: Search sequence states outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: sequence_states-sequence_state_id path: /sequence_states/{sequence_state_id} operations: - name: getsequencestate method: GET description: Get sequence state 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: engagement-sequence-states-rest port: 8080 description: REST adapter for Unified Engagement API — Sequence States. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/sequence-states name: sequence-states description: REST surface for sequence_states. operations: - method: POST name: createsequencestate description: Create sequence state call: engagement-sequence-states.createsequencestate with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: listsequencestates description: List sequence states call: engagement-sequence-states.listsequencestates outputParameters: - type: object mapping: $. - path: /v1/sequence-states/batch name: sequence-states-batch description: REST surface for sequence_states-_batch. operations: - method: POST name: batchcreatesequencestate description: Batch create sequence states call: engagement-sequence-states.batchcreatesequencestate with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/sequence-states/search name: sequence-states-search description: REST surface for sequence_states-_search. operations: - method: POST name: searchsequencestates description: Search sequence states call: engagement-sequence-states.searchsequencestates with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/sequence-states/{sequence-state-id} name: sequence-states-sequence-state-id description: REST surface for sequence_states-sequence_state_id. operations: - method: GET name: getsequencestate description: Get sequence state call: engagement-sequence-states.getsequencestate outputParameters: - type: object mapping: $. - type: mcp namespace: engagement-sequence-states-mcp port: 9090 transport: http description: MCP adapter for Unified Engagement API — Sequence States. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-sequence-state description: Create sequence state hints: readOnly: false destructive: false idempotent: false call: engagement-sequence-states.createsequencestate with: body: tools.body outputParameters: - type: object mapping: $. - name: list-sequence-states description: List sequence states hints: readOnly: true destructive: false idempotent: true call: engagement-sequence-states.listsequencestates outputParameters: - type: object mapping: $. - name: batch-create-sequence-states description: Batch create sequence states hints: readOnly: false destructive: false idempotent: false call: engagement-sequence-states.batchcreatesequencestate with: body: tools.body outputParameters: - type: object mapping: $. - name: search-sequence-states description: Search sequence states hints: readOnly: true destructive: false idempotent: false call: engagement-sequence-states.searchsequencestates with: body: tools.body outputParameters: - type: object mapping: $. - name: get-sequence-state description: Get sequence state hints: readOnly: true destructive: false idempotent: true call: engagement-sequence-states.getsequencestate outputParameters: - type: object mapping: $.