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

# Create Evidence (Inline)

Create an evidence record while simultaneously creating or referencing categories and subcategories by name or ID. Useful when you want to create everything in a single request.


## OpenAPI

````yaml POST /evidences/{COMPANY_ID}/evidence
openapi: 3.0.0
info:
  title: TimeLockData API
  description: Public API for evidence management and blockchain traceability
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.timelockdata.com/api/v1
    description: Production
security: []
tags: []
paths:
  /evidences/{COMPANY_ID}/evidence:
    post:
      tags:
        - Evidence Management
      summary: Add a evidence with inline category creation
      operationId: DigitalTwinController_addDigitalTwinAndCats
      parameters:
        - name: COMPANY_ID
          required: true
          in: path
          description: Company identifier
          schema:
            type: string
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/AddDigitalTwinWithCatsRequest'
      responses:
        '201':
          description: Evidence created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddDigitalTwinResponse'
      security:
        - APIKeyAuth: []
components:
  schemas:
    AddDigitalTwinWithCatsRequest:
      type: object
      properties:
        categoryName:
          type: string
          description: Name of the category
        categoryId:
          type: string
          description: UUID of the category
        subcategoryName:
          type: string
          description: Name of the subcategory
        subcategoryId:
          type: string
          description: UUID of the subcategory
        externalId:
          type: string
          description: External identifier of the evidence
        name:
          type: string
          description: Name of the evidence
        image:
          type: string
          description: Icon image for the evidence
          format: binary
        images:
          type: array
          description: Additional images
          items:
            type: string
            format: binary
        description:
          type: string
          description: Description of the evidence
        summary:
          type: string
          description: Summary of the evidence
        owner:
          type: string
          description: Initial owner of the evidence
        meta:
          type: object
          description: Additional metadata for the evidence
      required:
        - categoryName
        - categoryId
        - subcategoryName
        - subcategoryId
        - externalId
        - name
        - owner
    AddDigitalTwinResponse:
      type: object
      properties:
        id:
          type: string
          description: ID of the newly created evidence
      required:
        - id
  securitySchemes:
    APIKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````