> ## Documentation Index
> Fetch the complete documentation index at: https://trustos.telefonicatech.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get TrustPoint

> Gets a trustpoint of a certificate registered in a specific timestamp from a Blockchain network.



## OpenAPI

````yaml get /trustpoints/{type}/{id}
openapi: 3.0.1
info:
  title: TrustOS EVM Cert API
  description: >-
    TrustOS EVM Cert API is used to interact with EVM based blockchain networks.
    In case you have some questions or need more about the use of this API,
    don't hesitate to contact B-Team:
  contact:
    name: Blockchain Team
    email: soporte-bteam@telefonica.com
  version: 2.6.0
servers:
  - url: https://lab.trustos.telefonicatech.com/cert/v2
    description: Lab
security: []
tags:
  - name: Certificate Generation
    description: Methods for generating certificates.
  - name: Certificate Management
    description: Basic methods about certificates.
  - name: Qualified Signature
    description: Methods for generating qualified signatures.
  - name: Utils
    description: Methods for specific use cases.
paths:
  /trustpoints/{type}/{id}:
    get:
      tags:
        - Utils
      summary: Get trustpoint by id.
      parameters:
        - name: type
          in: path
          description: Type of the certificate identifier.
          required: true
          schema:
            type: string
            enum:
              - certID
              - externalId
              - fileHash
              - hash
        - name: id
          in: path
          description: Identifier of the certificate.
          required: true
          schema:
            type: string
            example: did:local:certid:123124
        - name: timestamp
          in: query
          description: Timestamp of the trustpoint.
          required: true
          schema:
            type: number
            example: 1234567890
        - name: networkId
          in: query
          description: Network identifier where the trustpoint was registered.
          required: true
          schema:
            type: string
            example: 10004
      responses:
        '200':
          $ref: '#/components/responses/200-TrustPointFound'
        '401':
          $ref: '#/components/responses/401-AuthenticationError'
        '403':
          $ref: '#/components/responses/403-ForbiddenError'
        '404':
          $ref: '#/components/responses/404-NotFoundError'
        '500':
          $ref: '#/components/responses/500-InternalServerError'
      security:
        - bearerAuth: []
components:
  responses:
    200-TrustPointFound:
      description: Successful trustpoint retrieval.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: integer
                description: Request status code.
                example: 200
              message:
                type: string
                description: Message returned by the request.
                example: Trustpoint found
              data:
                type: object
                properties:
                  trustpointHash:
                    type: string
                    description: >-
                      Double hash of the evidence, registered in the Blockchain
                      network.
                    example: >-
                      a2ac9343a3d94e41bbc5c152fb8382c5233a47cee23cf765c7e6d67d9e61a142
                  trustpointType:
                    type: string
                    description: Type of the trustpoint.
                    enum:
                      - Evidence
                      - Revocation
                      - Signature
    401-AuthenticationError:
      description: Authentication error.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 401
              type:
                type: string
                description: Type of the error.
                example: Authentication Error
              message:
                type: string
                description: Message returned by the request.
                enum:
                  - User credentials are wrong
                  - Token is invalid
                  - Token is expired
                  - Token is not provided
    403-ForbiddenError:
      description: Forbidden error.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 403
              type:
                type: string
                description: Type of the error.
                example: Forbidden Error
              message:
                type: string
                description: Message returned by the request.
                enum:
                  - >-
                    User is not qualified, please try again with a qualified
                    user
                  - This certificate requires a PIN, please provide it
                  - >-
                    Provider not available in your plan. Please, contact B-Team
                    to include it
    404-NotFoundError:
      description: Not found error.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: integer
                description: Request status code.
                example: 404
              type:
                type: string
                description: Type of the error.
                example: Not Found Error
              message:
                type: string
                description: Message returned by the request.
                enum:
                  - Certificate with certId {certId} not found
                  - Certificate with externalId {externalId} not found
                  - Certificate with fileHash {fileHash} not found
    500-InternalServerError:
      description: Internal server error.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 500
              type:
                type: string
                description: Type of the error.
                example: Internal Server Error
              message:
                type: string
                description: Message returned by the request.
                example: Oops! Something went wrong, please try again later
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````