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

# Create



## OpenAPI

````yaml POST /api/v1/cert-manager/certificate-profiles
openapi: 3.0.3
info:
  title: Infisical API
  description: List of all available APIs that can be consumed
  version: 0.0.1
servers:
  - url: https://us.infisical.com
    description: Production server (US)
  - url: https://eu.infisical.com
    description: Production server (EU)
  - url: http://localhost:8080
    description: Local server
security: []
paths:
  /api/v1/cert-manager/certificate-profiles:
    post:
      tags:
        - PKI Certificate Profiles
      operationId: createCertificateProfile
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                caId:
                  type: string
                  format: uuid
                certificatePolicyId:
                  type: string
                  format: uuid
                slug:
                  type: string
                  minLength: 1
                  maxLength: 255
                  pattern: ^[a-z0-9-]+$
                description:
                  type: string
                  maxLength: 1000
                issuerType:
                  type: string
                  enum:
                    - ca
                    - self-signed
                  default: ca
                externalConfigs:
                  anyOf:
                    - type: object
                      properties:
                        template:
                          type: string
                          minLength: 1
                          description: Certificate template name for Azure AD CS
                      required:
                        - template
                      additionalProperties: false
                    - type: object
                      properties: {}
                      additionalProperties: false
                    - type: object
                      properties: {}
                      additionalProperties: false
                    - type: object
                      properties: {}
                      additionalProperties: false
                    - type: object
                      properties: {}
                      additionalProperties: false
                    - type: object
                      properties: {}
                      additionalProperties: false
                    - type: object
                      properties: {}
                      additionalProperties: false
                  nullable: true
                defaults:
                  type: object
                  properties:
                    ttlDays:
                      type: integer
                      exclusiveMinimum: true
                      minimum: 0
                    commonName:
                      type: string
                    keyAlgorithm:
                      type: string
                      enum:
                        - RSA_2048
                        - RSA_3072
                        - RSA_4096
                        - EC_prime256v1
                        - EC_secp384r1
                        - EC_secp521r1
                        - ML-DSA-44
                        - ML-DSA-65
                        - ML-DSA-87
                        - SLH-DSA-SHA2-128f
                        - SLH-DSA-SHA2-128s
                        - SLH-DSA-SHA2-192f
                        - SLH-DSA-SHA2-192s
                        - SLH-DSA-SHA2-256f
                        - SLH-DSA-SHA2-256s
                        - SLH-DSA-SHAKE-128f
                        - SLH-DSA-SHAKE-128s
                        - SLH-DSA-SHAKE-192f
                        - SLH-DSA-SHAKE-192s
                        - SLH-DSA-SHAKE-256f
                        - SLH-DSA-SHAKE-256s
                    signatureAlgorithm:
                      type: string
                      enum:
                        - RSA-SHA256
                        - RSA-SHA384
                        - RSA-SHA512
                        - ECDSA-SHA256
                        - ECDSA-SHA384
                        - ECDSA-SHA512
                        - ML-DSA-44
                        - ML-DSA-65
                        - ML-DSA-87
                        - SLH-DSA-SHA2-128f
                        - SLH-DSA-SHA2-128s
                        - SLH-DSA-SHA2-192f
                        - SLH-DSA-SHA2-192s
                        - SLH-DSA-SHA2-256f
                        - SLH-DSA-SHA2-256s
                        - SLH-DSA-SHAKE-128f
                        - SLH-DSA-SHAKE-128s
                        - SLH-DSA-SHAKE-192f
                        - SLH-DSA-SHAKE-192s
                        - SLH-DSA-SHAKE-256f
                        - SLH-DSA-SHAKE-256s
                    keyUsages:
                      type: array
                      items:
                        type: string
                        enum:
                          - digital_signature
                          - key_encipherment
                          - non_repudiation
                          - data_encipherment
                          - key_agreement
                          - key_cert_sign
                          - crl_sign
                          - encipher_only
                          - decipher_only
                    extendedKeyUsages:
                      type: array
                      items:
                        type: string
                        enum:
                          - client_auth
                          - server_auth
                          - code_signing
                          - email_protection
                          - ocsp_signing
                          - time_stamping
                    basicConstraints:
                      type: object
                      properties:
                        isCA:
                          type: boolean
                        pathLength:
                          type: integer
                          minimum: 0
                      required:
                        - isCA
                      additionalProperties: false
                    organization:
                      type: string
                    organizationalUnit:
                      type: string
                    country:
                      type: string
                    state:
                      type: string
                    locality:
                      type: string
                  additionalProperties: false
                  nullable: true
              required:
                - certificatePolicyId
                - slug
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  certificateProfile:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      caId:
                        type: string
                        format: uuid
                        nullable: true
                      certificatePolicyId:
                        type: string
                        format: uuid
                      slug:
                        type: string
                      description:
                        type: string
                        nullable: true
                      enrollmentType:
                        type: string
                      estConfigId:
                        type: string
                        format: uuid
                        nullable: true
                      apiConfigId:
                        type: string
                        format: uuid
                        nullable: true
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
                      acmeConfigId:
                        type: string
                        format: uuid
                        nullable: true
                      issuerType:
                        type: string
                        default: ca
                      externalConfigs:
                        anyOf:
                          - type: object
                            properties:
                              template:
                                type: string
                                minLength: 1
                                description: Certificate template name for Azure AD CS
                            required:
                              - template
                            additionalProperties: false
                          - type: object
                            properties: {}
                            additionalProperties: false
                          - type: object
                            properties: {}
                            additionalProperties: false
                          - type: object
                            properties: {}
                            additionalProperties: false
                          - type: object
                            properties: {}
                            additionalProperties: false
                          - type: object
                            properties: {}
                            additionalProperties: false
                          - type: object
                            properties: {}
                            additionalProperties: false
                        nullable: true
                      defaults:
                        type: object
                        properties:
                          ttlDays:
                            type: number
                          commonName:
                            type: string
                          keyAlgorithm:
                            type: string
                            enum:
                              - RSA_2048
                              - RSA_3072
                              - RSA_4096
                              - EC_prime256v1
                              - EC_secp384r1
                              - EC_secp521r1
                              - ML-DSA-44
                              - ML-DSA-65
                              - ML-DSA-87
                              - SLH-DSA-SHA2-128f
                              - SLH-DSA-SHA2-128s
                              - SLH-DSA-SHA2-192f
                              - SLH-DSA-SHA2-192s
                              - SLH-DSA-SHA2-256f
                              - SLH-DSA-SHA2-256s
                              - SLH-DSA-SHAKE-128f
                              - SLH-DSA-SHAKE-128s
                              - SLH-DSA-SHAKE-192f
                              - SLH-DSA-SHAKE-192s
                              - SLH-DSA-SHAKE-256f
                              - SLH-DSA-SHAKE-256s
                          signatureAlgorithm:
                            type: string
                            enum:
                              - RSA-SHA256
                              - RSA-SHA384
                              - RSA-SHA512
                              - ECDSA-SHA256
                              - ECDSA-SHA384
                              - ECDSA-SHA512
                              - ML-DSA-44
                              - ML-DSA-65
                              - ML-DSA-87
                              - SLH-DSA-SHA2-128f
                              - SLH-DSA-SHA2-128s
                              - SLH-DSA-SHA2-192f
                              - SLH-DSA-SHA2-192s
                              - SLH-DSA-SHA2-256f
                              - SLH-DSA-SHA2-256s
                              - SLH-DSA-SHAKE-128f
                              - SLH-DSA-SHAKE-128s
                              - SLH-DSA-SHAKE-192f
                              - SLH-DSA-SHAKE-192s
                              - SLH-DSA-SHAKE-256f
                              - SLH-DSA-SHAKE-256s
                          keyUsages:
                            type: array
                            items:
                              type: string
                              enum:
                                - digital_signature
                                - key_encipherment
                                - non_repudiation
                                - data_encipherment
                                - key_agreement
                                - key_cert_sign
                                - crl_sign
                                - encipher_only
                                - decipher_only
                          extendedKeyUsages:
                            type: array
                            items:
                              type: string
                              enum:
                                - client_auth
                                - server_auth
                                - code_signing
                                - email_protection
                                - ocsp_signing
                                - time_stamping
                          basicConstraints:
                            type: object
                            properties:
                              isCA:
                                type: boolean
                              pathLength:
                                type: number
                            required:
                              - isCA
                            additionalProperties: false
                          organization:
                            type: string
                          organizationalUnit:
                            type: string
                          country:
                            type: string
                          state:
                            type: string
                          locality:
                            type: string
                        additionalProperties: false
                        nullable: true
                      scepConfigId:
                        type: string
                        format: uuid
                        nullable: true
                    required:
                      - id
                      - certificatePolicyId
                      - slug
                      - enrollmentType
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                required:
                  - certificateProfile
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 400
                  message:
                    type: string
                  error:
                    type: string
                  details: {}
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 401
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 403
                  message:
                    type: string
                  details: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 404
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 422
                  message: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - error
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 500
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false

````