swagger: '2.0'
info:
  version: '1.4.0910'
  title: TProof Forensic API
  description: An API for TProof Service.
host: tproof.twcc.ai
schemes:
  - https
basePath: /api/v1
produces:
  - application/json

paths:
  /tproof/forensics:
    post:
      summary: Retrieve forensic information for a TProof Token
      tags:
        - TProof
      parameters:
        - in: header
          name: accept
          required: true
          type: string
          default: application/json
        - in: header
          name: Content-Type
          required: true
          type: string
          default: application/json
        - in: body
          name: body
          required: true
          schema:
            type: object
            properties:
              apikey:
                type: string
              tokenId:
                type: string
      responses:
        200:
          description: Forensic information retrieved successfully
          schema:
            type: object
            properties:
              error:
                type: string
                description: Should be null if there's no error
              data:
                type: object
                properties:
                  tokenVersion:
                    type: string
                  tokenId:
                    type: string
                  description:
                    type: string
                  identity:
                    type: string
                  appTime:
                    type: string
                  root:
                    type: string
                  proof:
                    type: string
                  blockchainTx:
                    type: string
                  tsaTime:
                    type: string
                  blockchainTime:
                    type: string
        400:
          description: Bad Request
          schema:
            type: string
        401:
          description: Unauthorized
          schema:
            type: string
        403:
          description: Forbidden
          schema:
            type: string
        404:
          description: Not Found
          schema:
            type: object
            properties:
              statusCode:
                type: integer
              error:
                type: string
              message:
                type: string
        422:
          description: Unprocessable Entity
          schema:
            type: string
        429:
          description: Too Many Requests
          schema:
            type: string
        502:
          description: Bad Gateway
          schema:
            type: string
        503:
          description: Service Unavailable
          schema:
            type: string
