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

# List giftable stocks

> The catalog of stocks you can give. Use `symbol` from here as `assetSymbol` when giving stock.



## OpenAPI

````yaml /openapi.json get /v1/assets
openapi: 3.1.0
info:
  title: Stockly Partner API
  description: >-
    Create users, give them stock, and read their portfolios. All requests and
    responses are JSON.
  version: 1.0.0
servers:
  - url: https://api.stockly.com
    description: Production (replace with your Stockly API base URL)
security:
  - apiKey: []
tags:
  - name: Users
    description: Your customers.
  - name: Stock awards
    description: Give users stock and read back award status.
  - name: Portfolio
    description: A user's live stock holdings.
  - name: Catalog
    description: Stocks available to give.
paths:
  /v1/assets:
    get:
      tags:
        - Catalog
      summary: List giftable stocks
      description: >-
        The catalog of stocks you can give. Use `symbol` from here as
        `assetSymbol` when giving stock.
      parameters:
        - name: q
          in: query
          schema:
            type: string
          description: Filter by symbol prefix, e.g. `AA`.
      responses:
        '200':
          description: Catalog of giftable stocks
          content:
            application/json:
              schema:
                type: object
                properties:
                  assets:
                    type: array
                    items:
                      $ref: '#/components/schemas/Asset'
              example:
                assets:
                  - symbol: AAPL
                    name: Apple
                  - symbol: NVDA
                    name: NVIDIA
                  - symbol: TSLA
                    name: Tesla
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    Asset:
      type: object
      properties:
        symbol:
          type: string
          description: Ticker to use as assetSymbol, e.g. AAPL.
        name:
          type: string
          description: Company or fund name.
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - bad_request
                - unauthorized
                - forbidden
                - not_found
                - conflict
                - unprocessable_entity
                - internal_error
                - upstream_error
            message:
              type: string
            details:
              description: Optional structured detail (e.g. validation issues).
            requestId:
              type: string
              description: Correlation id, also returned in the x-request-id header.
      example:
        error:
          code: conflict
          message: idempotencyKey was already used with a different payload
          details:
            idempotencyKey: order-1001-reward
          requestId: f0e1d2c3-4b5a-6789-0abc-def012345678
  responses:
    Unauthorized:
      description: Missing or invalid x-api-key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Stockly API key. Identifies your app; you never pass an app id.

````