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

# Create DEK alias

> Create an alias for a data encryption key to enable lookup by friendly name



## OpenAPI

````yaml api-reference/openapi.json post /api/encryption/v1/dek/alias
openapi: 3.1.0
info:
  title: soma
  version: v1
servers: []
security: []
tags:
  - name: task
    description: >-
      Task management endpoints for creating, listing, and managing tasks and
      their messages
  - name: secret
    description: Secret management endpoints for storing and retrieving encrypted secrets
  - name: encryption
    description: >-
      Encryption key management endpoints for envelope keys, data encryption
      keys, and aliases
  - name: bridge
    description: >-
      Bridge endpoints for managing providers, credentials, functions, and MCP
      protocol communication
  - name: _internal
    description: >-
      Internal endpoints for health checks, runtime configuration, and SDK code
      generation
  - name: a2a
    description: >-
      Agent-to-agent communication endpoints for agent cards, definitions, and
      JSON-RPC requests
  - name: v1
    description: API version v1 endpoints
paths:
  /api/encryption/v1/dek/alias:
    post:
      tags:
        - encryption
        - v1
      summary: Create DEK alias
      description: >-
        Create an alias for a data encryption key to enable lookup by friendly
        name
      operationId: create-dek-alias
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDekAliasRequest'
        required: true
      responses:
        '200':
          description: Create DEK alias
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataEncryptionKeyAlias'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CreateDekAliasRequest:
      type: object
      required:
        - dek_id
        - alias
      properties:
        alias:
          type: string
        dek_id:
          type: string
    DataEncryptionKeyAlias:
      type: object
      description: Data encryption key alias struct
      required:
        - alias
        - data_encryption_key_id
        - created_at
      properties:
        alias:
          type: string
        created_at:
          $ref: '#/components/schemas/WrappedChronoDateTime'
        data_encryption_key_id:
          type: string
    Error:
      type: object
      required:
        - message
      properties:
        data: {}
        message:
          type: string
    WrappedChronoDateTime:
      type: string
      format: date-time

````