> ## 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 a DPP

> Create a DPP



## OpenAPI

````yaml /openapi.json post /dpp
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:
  /dpp:
    post:
      tags:
        - DPP
      summary: Create a DPP
      description: Create a DPP
      operationId: createDpp
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDppDto'
      responses:
        '200':
          description: DPP created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Dpp'
components:
  schemas:
    CreateDppDto:
      type: object
      properties:
        credentialIssuerProfileId:
          type: string
          description: The id of the credential issuer profile in UUID format
          example: 123e4567-e89b-12d3-a456-426614174000
        validFrom:
          type: string
          description: The valid from date of the DPP in ISO 8601 format
          example: '2024-01-01T00:00:00.000Z'
        validUntil:
          type: string
          description: The valid to date of the DPP in ISO 8601 format
          example: '2024-01-01T00:00:00.000Z'
        version:
          type: string
          description: >-
            The version of the DPP, by default the latest published version will
            be used.
          example: 0.5.0
        credentialSubject:
          type: object
          description: The credential subject of the DPP
      required:
        - credentialIssuerProfileId
        - validFrom
        - validUntil
        - version
        - credentialSubject
    Dpp:
      type: object
      properties:
        id:
          type: string
          description: The id of the DPP in UUID format
          example: 123e4567-e89b-12d3-a456-426614174000
      required:
        - id

````