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

# Obter hash de consulta por id

> Retorna a hash de consulta identificada pelo `id` (o mesmo `id` devolvido na criação). Só retorna hashes da empresa dona da Api-Key. O campo `status` informa a situação dos hashes criados pelo endpoint assíncrono e vem nulo nos demais fluxos.



## OpenAPI

````yaml https://public-usuario-api.autorize.com.br/swagger/v1/swagger.json get /api/hash-consulta/{id}
openapi: 3.0.4
info:
  title: GCC Usuario Public API
  version: dev
servers:
  - url: https://public-usuario-api.autorize.com.br
    description: Produ??o
  - url: https://staging-usuario-public-api.autorize.com.br
    description: Staging
security: []
tags:
  - name: CasosDeUso
  - name: HashConsulta
  - name: SolicitacaoConsentimento
  - name: WebhookUrls
paths:
  /api/hash-consulta/{id}:
    get:
      tags:
        - HashConsulta
      summary: Obter hash de consulta por id
      description: >-
        Retorna a hash de consulta identificada pelo `id` (o mesmo `id`
        devolvido na criação). Só retorna hashes da empresa dona da Api-Key. O
        campo `status` informa a situação dos hashes criados pelo endpoint
        assíncrono e vem nulo nos demais fluxos.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: Api-Key
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/GetHashConsultaByIdResponsePadrao'
            application/json:
              schema:
                $ref: '#/components/schemas/GetHashConsultaByIdResponsePadrao'
            text/json:
              schema:
                $ref: '#/components/schemas/GetHashConsultaByIdResponsePadrao'
components:
  schemas:
    GetHashConsultaByIdResponsePadrao:
      type: object
      properties:
        sucesso:
          type: boolean
        isPgccErro:
          type: boolean
        pgccCodigoErro:
          $ref: '#/components/schemas/HttpStatusCode'
        mensagem:
          type: string
          nullable: true
        data:
          $ref: '#/components/schemas/GetHashConsultaByIdResult'
      additionalProperties: false
    HttpStatusCode:
      enum:
        - Continue
        - SwitchingProtocols
        - Processing
        - EarlyHints
        - OK
        - Created
        - Accepted
        - NonAuthoritativeInformation
        - NoContent
        - ResetContent
        - PartialContent
        - MultiStatus
        - AlreadyReported
        - IMUsed
        - MultipleChoices
        - MovedPermanently
        - Found
        - SeeOther
        - NotModified
        - UseProxy
        - Unused
        - TemporaryRedirect
        - PermanentRedirect
        - BadRequest
        - Unauthorized
        - PaymentRequired
        - Forbidden
        - NotFound
        - MethodNotAllowed
        - NotAcceptable
        - ProxyAuthenticationRequired
        - RequestTimeout
        - Conflict
        - Gone
        - LengthRequired
        - PreconditionFailed
        - RequestEntityTooLarge
        - RequestUriTooLong
        - UnsupportedMediaType
        - RequestedRangeNotSatisfiable
        - ExpectationFailed
        - MisdirectedRequest
        - UnprocessableEntity
        - Locked
        - FailedDependency
        - UpgradeRequired
        - PreconditionRequired
        - TooManyRequests
        - RequestHeaderFieldsTooLarge
        - UnavailableForLegalReasons
        - InternalServerError
        - NotImplemented
        - BadGateway
        - ServiceUnavailable
        - GatewayTimeout
        - HttpVersionNotSupported
        - VariantAlsoNegotiates
        - InsufficientStorage
        - LoopDetected
        - NotExtended
        - NetworkAuthenticationRequired
      type: string
    GetHashConsultaByIdResult:
      type: object
      properties:
        id:
          type: string
          format: uuid
        solicitacaoId:
          type: string
          format: uuid
          nullable: true
        pgccId:
          type: string
          format: uuid
          nullable: true
        empresaId:
          type: string
          format: uuid
          nullable: true
        casoDeUsoId:
          type: string
          format: uuid
          nullable: true
        tokenAssinado:
          type: string
        dataInclusao:
          type: string
          format: date-time
        dataExpiracao:
          type: string
          format: date-time
        excluido:
          type: boolean
          nullable: true
        status:
          $ref: '#/components/schemas/StatusTokenConsentimento'
      additionalProperties: false
      description: Campos do TokenConsentimento, sem as navigation properties.
    StatusTokenConsentimento:
      enum:
        - AguardandoValidacao
        - Invalido
        - AguardandoEnvioPgcc
        - EnviadoPgcc
        - ErroEnvioPgcc
      type: string

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.