openapi: 3.0.0 info: title: Fireblocks Blockchains and Assets Approval Requests API description: 'Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) ' version: 1.8.0 contact: email: developers@fireblocks.com servers: - url: https://api.fireblocks.io/v1 description: Fireblocks Production Environment Base URL - url: https://sandbox-api.fireblocks.io/v1 description: Fireblocks Sandbox Environment Base URL security: [] tags: - name: Approval Requests paths: /tags/approval_requests/{id}: get: summary: Get an approval request by id description: Get an approval request by id tags: - Approval Requests x-rate-limit-category: read parameters: - in: path name: id required: true schema: type: string format: numeric example: '12345' responses: '200': description: Approval request fetched successfully headers: X-Request-ID: $ref: '#/components/headers/X-Request-ID' content: application/json: schema: $ref: '#/components/schemas/ApprovalRequest' '401': description: Unauthorized headers: X-Request-ID: $ref: '#/components/headers/X-Request-ID' content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Approval request not found headers: X-Request-ID: $ref: '#/components/headers/X-Request-ID' content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' operationId: getApprovalRequest /tags/approval_requests/{id}/cancel: post: summary: Cancel an approval request by ID description: 'Cancel an approval request by id. - Can only cancel requests in the `PENDING` status. - Returns `202 Accepted` when the cancellation is processed. ' tags: - Approval Requests x-rate-limit-category: write parameters: - $ref: '#/components/parameters/X-Idempotency-Key' - in: path name: id required: true schema: type: string format: numeric example: '12345' responses: '202': description: Approval request cancellation processed headers: X-Request-ID: $ref: '#/components/headers/X-Request-ID' '401': description: Unauthorized headers: X-Request-ID: $ref: '#/components/headers/X-Request-ID' content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Approval request not found headers: X-Request-ID: $ref: '#/components/headers/X-Request-ID' '409': description: Invalid approval request state - cannot cancel request that is not in PENDING status headers: X-Request-ID: $ref: '#/components/headers/X-Request-ID' content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' operationId: cancelApprovalRequest components: parameters: X-Idempotency-Key: name: Idempotency-Key in: header description: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. required: false schema: type: string example: some-unique-id schemas: ErrorResponse: type: object properties: error: type: object properties: type: type: string enum: - INTERNAL - AUTHENTICATION - AUTHORIZATION - VALIDATION - NOT_FOUND - UNPROCESSABLE_ENTITY - FORBIDDEN message: type: string required: - type - message required: - error ApprovalRequest: type: object description: Approval request details properties: id: type: string format: numeric description: The approval request identifier example: '12345' type: type: string description: The approval request type enum: - TAG_UPDATE - TAG_DELETE - TAG_ATTACH_DETACH state: type: string description: The approval request state enum: - PENDING - APPROVED - REJECTED - FAILED - CANCELLED - EXPIRED required: - id - type - state securitySchemes: bearerTokenAuth: type: http scheme: bearer bearerFormat: JWT ApiKeyAuth: type: apiKey in: header name: X-API-Key