openapi: 3.2.0 info: title: A2A Autonomous Trader Agent Tasks API version: 0.1.0 tags: - name: Tasks paths: /v1/tasks: post: summary: Create Task operationId: create_task_v1_tasks_post requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateTaskRequest' responses: '200': description: Successful Response content: application/json: schema: type: object additionalProperties: true title: Response Create Task V1 Tasks Post '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Tasks get: summary: List Tasks operationId: list_tasks_v1_tasks_get parameters: - name: state in: query required: false schema: anyOf: - type: string - type: 'null' title: State - name: limit in: query required: false schema: type: integer default: 50 title: Limit responses: '200': description: Successful Response content: application/json: schema: type: object additionalProperties: true title: Response List Tasks V1 Tasks Get '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Tasks /v1/tasks/{task_id}: get: summary: Get Task operationId: get_task_v1_tasks__task_id__get parameters: - name: task_id in: path required: true schema: type: string title: Task Id responses: '200': description: Successful Response content: application/json: schema: type: object additionalProperties: true title: Response Get Task V1 Tasks Task Id Get '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Tasks /v1/tasks/{task_id}/mark-paid: post: summary: Mark Paid operationId: mark_paid_v1_tasks__task_id__mark_paid_post parameters: - name: task_id in: path required: true schema: type: string title: Task Id requestBody: content: application/json: schema: anyOf: - $ref: '#/components/schemas/MarkPaidRequest' - type: 'null' title: Payload responses: '200': description: Successful Response content: application/json: schema: type: object additionalProperties: true title: Response Mark Paid V1 Tasks Task Id Mark Paid Post '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Tasks components: schemas: MarkPaidRequest: properties: tx_ref: anyOf: - type: string - type: 'null' title: Tx Ref note: anyOf: - type: string - type: 'null' title: Note type: object title: MarkPaidRequest CreateTaskRequest: properties: skill: type: string title: Skill default: inference.complete input: title: Input client_task_id: anyOf: - type: string - type: 'null' title: Client Task Id type: object title: CreateTaskRequest HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array title: Location msg: type: string title: Message type: type: string title: Error Type input: title: Input ctx: type: object title: Context type: object required: - loc - msg - type title: ValidationError