naftiko: 1.0.0-alpha2 info: label: Core API — business transitions description: 'Core API — business transitions. 3 operations. Lead operation: Creates a business transition. Self-contained Naftiko capability covering one Marqeta business surface.' tags: - Marqeta - business transitions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MARQETA_API_KEY: MARQETA_API_KEY capability: consumes: - type: http namespace: core-business-transitions baseUri: '' description: Core API — business transitions business capability. Self-contained, no shared references. resources: - name: businesstransitions path: /businesstransitions operations: - name: postbusinesstransitions method: POST description: Creates a business transition outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: businesstransitions-business-business_token path: /businesstransitions/business/{business_token} operations: - name: getbusinesstransitionsbusinessbusinesstoken method: GET description: Returns transitions for a given business outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: business_token in: path type: string description: Business token required: true - name: count in: query type: integer description: Number of business transitions to retrieve - name: start_index in: query type: integer description: Start index - name: fields in: query type: string description: Comma-delimited list of fields to return (e.g. field_1,field_2,..). Leave blank to return all fields. - name: sort_by in: query type: string description: Sort order - name: businesstransitions-token path: /businesstransitions/{token} operations: - name: getbusinesstransitionstoken method: GET description: Returns a business transition outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: token in: path type: string description: Transition token required: true - name: fields in: query type: string description: Comma-delimited list of fields to return (e.g. field_1,field_2,..). Leave blank to return all fields. authentication: type: basic username: '{{env.MARQETA_USER}}' password: '{{env.MARQETA_PASS}}' exposes: - type: rest namespace: core-business-transitions-rest port: 8080 description: REST adapter for Core API — business transitions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/businesstransitions name: businesstransitions description: REST surface for businesstransitions. operations: - method: POST name: postbusinesstransitions description: Creates a business transition call: core-business-transitions.postbusinesstransitions with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/businesstransitions/business/{business-token} name: businesstransitions-business-business-token description: REST surface for businesstransitions-business-business_token. operations: - method: GET name: getbusinesstransitionsbusinessbusinesstoken description: Returns transitions for a given business call: core-business-transitions.getbusinesstransitionsbusinessbusinesstoken with: business_token: rest.business_token count: rest.count start_index: rest.start_index fields: rest.fields sort_by: rest.sort_by outputParameters: - type: object mapping: $. - path: /v1/businesstransitions/{token} name: businesstransitions-token description: REST surface for businesstransitions-token. operations: - method: GET name: getbusinesstransitionstoken description: Returns a business transition call: core-business-transitions.getbusinesstransitionstoken with: token: rest.token fields: rest.fields outputParameters: - type: object mapping: $. - type: mcp namespace: core-business-transitions-mcp port: 9090 transport: http description: MCP adapter for Core API — business transitions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: creates-business-transition description: Creates a business transition hints: readOnly: false destructive: false idempotent: false call: core-business-transitions.postbusinesstransitions with: body: tools.body outputParameters: - type: object mapping: $. - name: returns-transitions-given-business description: Returns transitions for a given business hints: readOnly: true destructive: false idempotent: true call: core-business-transitions.getbusinesstransitionsbusinessbusinesstoken with: business_token: tools.business_token count: tools.count start_index: tools.start_index fields: tools.fields sort_by: tools.sort_by outputParameters: - type: object mapping: $. - name: returns-business-transition description: Returns a business transition hints: readOnly: true destructive: false idempotent: true call: core-business-transitions.getbusinesstransitionstoken with: token: tools.token fields: tools.fields outputParameters: - type: object mapping: $.