openapi: 3.0.3
info:
  title: SIB
  description: ''
  version: 1.0.0
servers:
  -
    url: 'https://kyc.rockflow.ai'
paths:
  '/fetch-inquiry/{inq_id}':
    get:
      summary: 获取认证详情
      operationId: ''
      description: "This endpoint allows users to fetch inquiry data from the Persona API\nby passing the inquiry ID as a URL parameter. It sends a GET request\nto the Persona API and returns the corresponding inquiry data."
      parameters: []
      responses:
        200:
          description: ''
          content:
            text/plain:
              schema:
                type: string
                example: "{\n \"success\": true,\n \"data\": {\n    // The actual response data from Persona API\n }\n}"
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  error: 'Unable to fetch data from Persona API'
                  message: 'Request exception message'
                properties:
                  error:
                    type: string
                    example: 'Unable to fetch data from Persona API'
                  message:
                    type: string
                    example: 'Request exception message'
      tags:
        - Endpoints
    parameters:
      -
        in: path
        name: inq_id
        description: 'The ID of the inquiry you want to fetch.'
        example: inq_123456789
        required: true
        schema:
          type: string
  '/report/{inquiry_id}':
    get:
      summary: 下载认证报告
      operationId: ''
      description: 'This endpoint allows authenticated users to download the inquiry report PDF for a given inquiry ID.'
      parameters: []
      responses:
        200:
          description: ''
          content:
            text/plain:
              schema:
                type: string
                example: 'file The PDF file containing the inquiry report.'
        400:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  error: 'Invalid inquiry ID'
                properties:
                  error:
                    type: string
                    example: 'Invalid inquiry ID'
        401:
          description: ''
          content:
            text/plain:
              schema:
                type: string
                example: "{\n  \"error\": \"Unauthenticated.\""
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  error: 'Unable to download report'
                properties:
                  error:
                    type: string
                    example: 'Unable to download report'
      tags:
        - Endpoints
    parameters:
      -
        in: path
        name: inquiry_id
        description: 'The ID of the inquiry.'
        example: inq_Ehc2VLuRXqLirNK8Y1eiQyWxe
        required: true
        schema:
          type: string
tags:
  -
    name: Endpoints
    description: ''
components:
  securitySchemes:
    default:
      type: http
      scheme: bearer
      description: 'You can retrieve your token by visiting your dashboard and clicking <b>Generate API token</b>.'
security:
  -
    default: []
