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

# Get Vector

> Retrieve a single document by its unique ID.

Returns the document's full content, metadata, and optionally its embedding vector. Use this endpoint
for direct lookups when the exact document ID is known. For content similarity search,
use the query endpoint.



## OpenAPI

````yaml https://api.dev-sgp.scale.com/openapi-versions/v5/openapi.json get /v5/vector-stores/{vector_store_name}/vectors/{vector_id}
openapi: 3.1.0
info:
  title: EGP API V5
  description: >-
    This is the parent API for all EGP APIs. If you are looking for the EGP API,
    please go to https://api.egp.scale.com/docs.
  contact:
    name: Scale Generative AI Platform
    url: https://scale.com/genai-platform
  version: 0.1.0
servers:
  - url: https://api.egp.scale.com
security: []
paths:
  /v5/vector-stores/{vector_store_name}/vectors/{vector_id}:
    get:
      tags:
        - Vector Stores
      summary: Get Vector
      description: >-
        Retrieve a single document by its unique ID.


        Returns the document's full content, metadata, and optionally its
        embedding vector. Use this endpoint

        for direct lookups when the exact document ID is known. For content
        similarity search,

        use the query endpoint.
      operationId: GET-V5-/v5/vector-stores/vector_store_name/vectors/vector_id
      parameters:
        - name: vector_store_name
          in: path
          required: true
          schema:
            type: string
            description: The name of the vector store
            title: Vector Store Name
          description: The name of the vector store
        - name: vector_id
          in: path
          required: true
          schema:
            type: string
            description: The ID of the vector to retrieve
            title: Vector Id
          description: The ID of the vector to retrieve
        - name: include_vectors
          in: query
          required: false
          schema:
            type: boolean
            description: Include embedding vectors
            default: false
            title: Include Vectors
          description: Include embedding vectors
        - name: x-selected-account-id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Account ID Header
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VectorDocumentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    VectorDocumentResponse:
      properties:
        id:
          type: string
          title: Id
          description: Document ID
        content:
          title: Content
          description: Document content. None for raw-embedding documents without text.
          oneOf:
            - $ref: '#/components/schemas/TextContent'
          discriminator:
            propertyName: type
            mapping:
              text:
                $ref: '#/components/schemas/TextContent'
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
          description: Key-value metadata
        vector:
          title: Vector
          description: Embedding vector (if requested)
          items:
            type: number
          type: array
      type: object
      required:
        - id
      title: VectorDocumentResponse
      description: A document returned from direct lookups (get/list operations).
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TextContent:
      properties:
        type:
          type: string
          const: text
          title: Type
          description: Content type identifier
          default: text
        text:
          type: string
          title: Text
          description: Text content to be embedded
      type: object
      required:
        - text
      title: TextContent
      description: Text content for documents.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          title: Error Type
          type: string
        input:
          title: Input
        ctx:
          type: object
          title: Context
          additionalProperties: true
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````