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

# Resolve a UniProtKB accession to a protein record

> Look up a UniProtKB accession or entry name (e.g. 'P24941', 'P53_HUMAN') and return its protein record: name, gene, organism, function, sequence, and the Atlas `protein_hash`. UniProtKB only — other accession namespaces (UniParc, MGnify, IMG) return 400.



## OpenAPI

````yaml openapi/metagenomic-atlas-openapi.json GET /esm/protein/api/v1alpha1/uniprot/{uniprot_id}
openapi: 3.1.0
info:
  title: ESM Atlas API Reference
  description: Interfaces may change without notice.
  version: 0.1.0
servers:
  - url: https://biohub.ai
security: []
paths:
  /esm/protein/api/v1alpha1/uniprot/{uniprot_id}:
    get:
      tags:
        - Proteins
      summary: Resolve a UniProtKB accession to a protein record
      description: >-
        Look up a UniProtKB accession or entry name (e.g. 'P24941', 'P53_HUMAN')
        and return its protein record: name, gene, organism, function, sequence,
        and the Atlas `protein_hash`. UniProtKB only — other accession
        namespaces (UniParc, MGnify, IMG) return 400.
      operationId: get_uniprot_entry_esm_protein_api_v1alpha1_uniprot__uniprot_id__get
      parameters:
        - name: uniprot_id
          in: path
          required: true
          schema:
            type: string
            description: UniProtKB accession or entry name (e.g. 'P24941')
            title: Uniprot Id
          description: UniProtKB accession or entry name (e.g. 'P24941')
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UniProtLookupResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UniProtLookupResponse:
      properties:
        accession:
          anyOf:
            - type: string
            - type: 'null'
          title: Accession
          description: UniProtKB primary accession
        protein_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Protein Name
          description: Recommended full protein name
        gene:
          anyOf:
            - type: string
            - type: 'null'
          title: Gene
          description: Primary gene name, if any
        organism:
          anyOf:
            - type: string
            - type: 'null'
          title: Organism
          description: Source organism scientific name
        function:
          type: string
          title: Function
          description: Concatenated UniProt FUNCTION comments (may be empty)
          default: ''
        sequence:
          type: string
          title: Sequence
          description: Amino acid sequence
        protein_hash:
          type: string
          title: Protein Hash
          description: >-
            MD5 of the upper-cased sequence — the Atlas content-address key;
            chain into GET /proteins/{protein_hash}/… reads
        sequence_length:
          anyOf:
            - type: integer
            - type: 'null'
          title: Sequence Length
          description: Sequence length in residues
      type: object
      required:
        - sequence
        - protein_hash
      title: UniProtLookupResponse
      description: A UniProtKB protein record resolved from an accession or entry name.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````