naftiko: 1.0.0-alpha2 info: label: Core API — User Transitions description: 'Core API — User Transitions. 3 operations. Lead operation: Create user transition. Self-contained Naftiko capability covering one Marqeta business surface.' tags: - Marqeta - User 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-user-transitions baseUri: '' description: Core API — User Transitions business capability. Self-contained, no shared references. resources: - name: usertransitions path: /usertransitions operations: - name: postusertransitions method: POST description: Create user transition outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: usertransitions-user-user_token path: /usertransitions/user/{user_token} operations: - name: getusertransitionsuserusertoken method: GET description: List transitions for user outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: user_token in: path type: string description: Unique identifier of the user resource. required: true - name: count in: query type: integer description: Number of user transitions to retrieve. - name: start_index in: query type: integer description: Sort order index of the first resource in the returned array. - name: fields in: query type: string description: Comma-delimited list of fields to return (`field_1,field_2`, and so on). - name: sort_by in: query type: string description: Field on which to sort. - name: usertransitions-token path: /usertransitions/{token} operations: - name: getusertransitionstoken method: GET description: Retrieve user transition outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: token in: path type: string description: Unique identifier of the user transition you want to retrieve. required: true - name: fields in: query type: string description: Comma-delimited list of fields to return (`field_1,field_2`, and so on). authentication: type: basic username: '{{env.MARQETA_USER}}' password: '{{env.MARQETA_PASS}}' exposes: - type: rest namespace: core-user-transitions-rest port: 8080 description: REST adapter for Core API — User Transitions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/usertransitions name: usertransitions description: REST surface for usertransitions. operations: - method: POST name: postusertransitions description: Create user transition call: core-user-transitions.postusertransitions with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/usertransitions/user/{user-token} name: usertransitions-user-user-token description: REST surface for usertransitions-user-user_token. operations: - method: GET name: getusertransitionsuserusertoken description: List transitions for user call: core-user-transitions.getusertransitionsuserusertoken with: user_token: rest.user_token count: rest.count start_index: rest.start_index fields: rest.fields sort_by: rest.sort_by outputParameters: - type: object mapping: $. - path: /v1/usertransitions/{token} name: usertransitions-token description: REST surface for usertransitions-token. operations: - method: GET name: getusertransitionstoken description: Retrieve user transition call: core-user-transitions.getusertransitionstoken with: token: rest.token fields: rest.fields outputParameters: - type: object mapping: $. - type: mcp namespace: core-user-transitions-mcp port: 9090 transport: http description: MCP adapter for Core API — User Transitions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-user-transition description: Create user transition hints: readOnly: false destructive: false idempotent: false call: core-user-transitions.postusertransitions with: body: tools.body outputParameters: - type: object mapping: $. - name: list-transitions-user description: List transitions for user hints: readOnly: true destructive: false idempotent: true call: core-user-transitions.getusertransitionsuserusertoken with: user_token: tools.user_token count: tools.count start_index: tools.start_index fields: tools.fields sort_by: tools.sort_by outputParameters: - type: object mapping: $. - name: retrieve-user-transition description: Retrieve user transition hints: readOnly: true destructive: false idempotent: true call: core-user-transitions.getusertransitionstoken with: token: tools.token fields: tools.fields outputParameters: - type: object mapping: $.