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

# Create an asset



## OpenAPI

````yaml Post /assets
openapi: 3.0.1
info:
  title: OpenAPI Matia
  description: Matia API using the OpenAPI specification
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.matia.io/v1
security:
  - ApiKeyAuth: []
paths:
  /assets:
    post:
      summary: Create a new asset
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAssetRequest'
      responses:
        '201':
          description: Asset created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateAssetApiResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CreateAssetRequest:
      type: object
      properties:
        name:
          type: string
          description: Name of the asset
        type:
          type: string
          description: Type of the asset
        description:
          type: string
        connection:
          type: object
          description: Connection details
        connectionType:
          type: string
          enum:
            - source
            - destination
    CreateAssetApiResponse:
      type: object
      properties:
        code:
          type: string
        data:
          type: object
          properties:
            id:
              type: string
            name:
              type: string
            type:
              type: string
    Error:
      required:
        - error
        - message
      type: object
      properties:
        code:
          type: string
        message:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````