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

# Create DID

> Create a unique DID for the requested organization.



## OpenAPI

````yaml /openapi.json post /did
openapi: 3.0.0
info:
  title: Trust Stack API
  description: Programmatic access to the Trust Stack API.
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /did:
    post:
      tags:
        - DID
      summary: Create DID
      description: Create a unique DID for the requested organization.
      operationId: createDid
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDid'
      responses:
        '201':
          description: DID created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Did'
        '400':
          description: Invalid request
components:
  schemas:
    CreateDid:
      type: object
      properties:
        name:
          type: string
          description: The name of the DID.
          example: acme
      required:
        - name
    Did:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the DID.
        did:
          type: string
          description: The DID.
        alias:
          type: string
          description: The DID alias.
        name:
          type: string
          description: The name given to the DID.
      required:
        - id
        - did
        - alias
        - name

````