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

# Fetch a collection

> Returns a single collection by id.



## OpenAPI

````yaml /openapi.json get /v1/collections/{collection_id}
openapi: 3.1.0
info:
  title: Endstate API
  version: v1
  description: Endstate developer API for chip verification and ownership workflows.
servers:
  - url: https://api2.endstate.io
    description: Production
security: []
paths:
  /v1/collections/{collection_id}:
    get:
      tags:
        - Collections
      summary: Fetch a collection
      description: Returns a single collection by id.
      parameters:
        - schema:
            type: string
            format: uuid
            description: Collection id.
            example: 8e1a7f50-90ab-4cde-8012-3456789abcde
          required: true
          name: collection_id
          in: path
      responses:
        '200':
          description: The collection.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Collection'
              example:
                id: 8e1a7f50-90ab-4cde-8012-3456789abcde
                contract:
                  address: '0x1111111111111111111111111111111111111111'
                  chain_id: 84532
                  status: active
                name: Example Collection
                external_id: collection-001
                redirect_url: null
      security:
        - ApiKeyBearer: []
components:
  schemas:
    Collection:
      type: object
      properties:
        id:
          type: string
          format: uuid
        contract:
          type: object
          properties:
            address:
              type: string
              description: Unique address identifying the collection.
              example: '0x1111111111111111111111111111111111111111'
            chain_id:
              type: integer
              example: 84532
            status:
              type: string
              enum:
                - deploying
                - active
                - failed
              description: >-
                Collection lifecycle status. `deploying` while the collection is
                being provisioned; `active` once it is ready to use.
              example: deploying
          required:
            - address
            - chain_id
            - status
        name:
          type:
            - string
            - 'null'
        external_id:
          type:
            - string
            - 'null'
        redirect_url:
          type:
            - string
            - 'null'
          format: uri
          description: >-
            URL a tap on this collection's units redirects to. Unit- and
            product-level redirects take precedence over this value.
          example: https://brand.example/p
      required:
        - id
        - contract
        - name
        - external_id
        - redirect_url
  securitySchemes:
    ApiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: end_sk
      description: >-
        Use `Authorization: Bearer end_sk_*` for partner API keys (e.g.
        `end_sk_AbCd_example_api_key`).

````