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

# Get a single asset

> Returns a single non-trashed asset. Omit `assetType` for base fields only; provide it for type-specific fields.

Fetch any individual asset by its UUID. By default the response contains only core fields. Pass `assetType` to include type-specific fields.

<Warning>If `assetType` does not match the asset's actual type, the API returns `400`. Use the correct type or omit the parameter entirely.</Warning>


## OpenAPI

````yaml /openapi.yaml get /assets/{assetId}
openapi: 3.1.0
info:
  title: Versuno Public API
  description: >
    The Versuno Public API lets you manage AI assets, projects, and version
    history programmatically.


    All endpoints except key management require a Bearer API key in the
    `Authorization` header.

    API keys are formatted as
    `uk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`.
  version: 1.0.0
  contact:
    email: support@versuno.ai
servers:
  - url: https://versuno.ai/api/public
    description: Production
  - url: http://localhost:3000/api/public
    description: Local development
security:
  - bearerAuth: []
tags:
  - name: Authentication
    description: Verify API key validity and retrieve the caller's identity.
  - name: Teams
    description: Teams the authenticated user owns or is an active member of.
  - name: Assets
    description: AI assets — prompts, personas, contexts, system prompts, and skills.
  - name: Asset Trash
    description: Single-asset soft-delete, restore, and permanent delete lifecycle.
  - name: Bulk Asset Trash
    description: Bulk trash operations across multiple assets at once.
  - name: Projects
    description: Project folders for organising assets and teams.
  - name: Project Trash
    description: Project trash lifecycle — trashing deletes the entire subtree.
  - name: Versioning
    description: Full-snapshot version history with non-destructive revert support.
  - name: Public Brains
    description: >-
      Graph-based knowledge structures composed of containers (folders/groups)
      and nodes (content items). Read the graph, or run semantic RAG queries
      against it.
  - name: Memory
    description: >-
      The universal agent-memory layer. Capture coding-agent memory, recall it
      semantically, and resolve contradictions. Capture-only, scoped to your API
      key's account.
  - name: Key Management
    description: >-
      Create, update, and delete API keys. These endpoints do not require a
      Bearer token.
paths:
  /assets/{assetId}:
    get:
      tags:
        - Assets
      summary: Get a single asset
      description: >-
        Returns a single non-trashed asset. Omit `assetType` for base fields
        only; provide it for type-specific fields.
      operationId: getAsset
      parameters:
        - name: assetId
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: assetType
          in: query
          description: One of the valid asset types — omit for base data only.
          schema:
            type: string
            enum:
              - prompt
              - persona
              - context
              - system_prompt
              - skill
      responses:
        '200':
          description: Asset object.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Asset'
              example:
                id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                assetType: prompt
                title: Customer support assistant
                description: Handles tier-1 support tickets
                content: You are a friendly customer support agent...
                content_blocks:
                  - id: b_11111111-1111-4111-8111-111111111111
                    type: heading
                    meta:
                      level: 2
                    content: Support Workflow
                  - id: b_22222222-2222-4222-8222-222222222222
                    type: paragraph
                    meta: {}
                    content: >-
                      Greet the user, ask clarifying questions, then propose
                      next steps.
                emoji: 🤖
                projectId: null
                teamId: null
                userId: b2c3d4e5-f6a7-8901-bcde-f12345678901
                createdAt: '2026-01-15T10:30:00.000Z'
                updatedAt: '2026-01-20T14:45:00.000Z'
                deletedAt: null
        '400':
          description: Invalid UUID or unrecognised `assetType`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error400'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error401'
        '404':
          description: Asset not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error404'
components:
  schemas:
    Asset:
      type: object
      description: An AI asset — a prompt, persona, context, system prompt, or skill.
      required: []
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the asset.
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        assetType:
          type: string
          enum:
            - prompt
            - persona
            - context
            - system_prompt
            - skill
          description: Type of AI asset. Immutable after creation.
          example: prompt
        title:
          type: string
          description: Display name of the asset.
          example: Customer support assistant
        description:
          anyOf:
            - type: string
            - type: 'null'
          description: Short summary shown in the UI.
          example: Handles tier-1 support tickets
        content:
          type: string
          description: The main content body of the asset.
          example: >-
            You are a friendly customer support agent. Help users resolve their
            issues quickly and professionally.
        content_blocks:
          anyOf:
            - type: array
              items:
                $ref: '#/components/schemas/Block'
            - type: 'null'
          description: Structured block tree resolved from ai_asset_blocks.
          example:
            - id: b_11111111-1111-4111-8111-111111111111
              type: heading
              meta:
                level: 2
              content: Support Workflow
            - id: b_22222222-2222-4222-8222-222222222222
              type: paragraph
              meta: {}
              content: >-
                Greet the user, ask clarifying questions, then propose next
                steps.
            - id: b_33333333-3333-4333-8333-333333333333
              type: todo_list
              meta: {}
              content: null
              children:
                - id: b_44444444-4444-4444-8444-444444444444
                  type: paragraph
                  meta:
                    checked: false
                  content: Confirm account email
                - id: b_55555555-5555-4555-8555-555555555555
                  type: paragraph
                  meta:
                    checked: true
                  content: Acknowledge issue details
        emoji:
          anyOf:
            - type: string
            - type: 'null'
          description: Single emoji icon for the asset.
          example: 🤖
        isPublic:
          type: boolean
          description: Whether the asset is publicly visible.
          example: false
        currentVersion:
          type: integer
          description: Latest version number of this asset (1 if no versions exist yet).
          example: 3
        projectId:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          description: ID of the project this asset belongs to, or null if unassigned.
          example: null
        teamId:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          description: >-
            ID of the team workspace this asset belongs to, or null for
            personal.
          example: null
        userId:
          type: string
          format: uuid
          description: ID of the user who owns this asset.
          example: b2c3d4e5-f6a7-8901-bcde-f12345678901
        createdAt:
          type: string
          format: date-time
          description: ISO 8601 timestamp when the asset was created.
          example: '2026-01-15T10:30:00.000Z'
        updatedAt:
          type: string
          format: date-time
          description: ISO 8601 timestamp of the last update.
          example: '2026-01-20T14:45:00.000Z'
        deletedAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          description: ISO 8601 timestamp when the asset was trashed, or null if active.
          example: null
    Error400:
      type: object
      properties:
        error:
          type: string
          example: 'Wrong data: assetType is required'
    Error401:
      type: object
      properties:
        error:
          type: string
          example: Invalid API key
    Error404:
      type: object
      properties:
        error:
          type: string
          example: Not found
    Block:
      type: object
      description: A single editor block in an asset's structured content tree.
      required:
        - id
        - type
        - meta
      properties:
        id:
          type: string
          description: Stable block identifier.
          example: b_35effee2-0c97-463b-9a0a-8973eca1b4da
        type:
          type: string
          enum:
            - paragraph
            - heading
            - code
            - divider
            - bullet_list
            - ordered_list
            - todo_list
            - toggle
            - quote
            - callout
            - table
            - block_snippet
            - block_ref
            - asset_ref
          example: paragraph
        content:
          anyOf:
            - type: string
            - type: 'null'
          description: Optional block textual content.
          example: This block was updated
        inline:
          type: array
          description: Optional inline span model.
          items:
            type: object
            additionalProperties: true
        meta:
          type: object
          additionalProperties: true
          description: Block metadata for type-specific attributes.
          example: {}
        children:
          type: array
          items:
            $ref: '#/components/schemas/Block'
  securitySchemes:
    bearerAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Versuno API key. Must be prefixed with `Bearer`. Format: `Bearer
        uk_live_...`
      x-default: Bearer uk_live_your_api_key_here

````