> ## Documentation Index
> Fetch the complete documentation index at: https://conductorone-docs-google-workspace-action-examples.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create

> Create mints an AuthZEN server (and its evaluate/search entitlements)
 for an app. The server starts disabled.



## OpenAPI

````yaml https://spec.speakeasy.com/conductor-one/conductorone/my-source-with-code-samples post /api/v1/apps/{app_id}/authzen_servers
openapi: 3.1.0
info:
  description: The C1 API is a HTTP API for managing C1 resources.
  title: C1 API
  version: 0.1.0-alpha
servers:
  - description: The C1 API server for the current tenant.
    url: https://{tenantDomain}.conductor.one
    variables:
      tenantDomain:
        default: example
        description: The domain of the tenant to use for this request.
security:
  - bearerAuth: []
    oauth: []
paths:
  /api/v1/apps/{app_id}/authzen_servers:
    post:
      tags:
        - AuthZEN Servers
      summary: Create
      description: |-
        Create mints an AuthZEN server (and its evaluate/search entitlements)
         for an app. The server starts disabled.
      operationId: c1.api.authzen.v1.AuthzenServerService.Create
      parameters:
        - in: path
          name: app_id
          required: true
          schema:
            description: App identifier.
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/c1.api.authzen.v1.AuthzenServerServiceCreateRequestInput
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/c1.api.authzen.v1.AuthzenServerServiceCreateResponse
          description: |-
            AuthzenServerServiceCreateResponse returns the newly minted server,
             including its capability entitlement ids.
components:
  schemas:
    c1.api.authzen.v1.AuthzenServerServiceCreateRequestInput:
      description: |-
        AuthzenServerServiceCreateRequest creates an AuthZEN server for an app.
         The new server starts disabled and denies every PDP call until enabled.
      properties:
        displayName:
          description: >-
            Display name for the server. Defaults to "AuthZEN Server" when
            empty.
          type: string
      title: Authzen Server Service Create Request
      type: object
      x-speakeasy-name-override: AuthzenServerServiceCreateRequest
    c1.api.authzen.v1.AuthzenServerServiceCreateResponse:
      description: |-
        AuthzenServerServiceCreateResponse returns the newly minted server,
         including its capability entitlement ids.
      properties:
        authzenServer:
          oneOf:
            - $ref: '#/components/schemas/c1.api.authzen.v1.AuthzenServer'
            - type: 'null'
      title: Authzen Server Service Create Response
      type: object
      x-speakeasy-name-override: AuthzenServerServiceCreateResponse
    c1.api.authzen.v1.AuthzenServer:
      description: AuthzenServer is the customer-facing AuthZEN PDP endpoint for one App.
      properties:
        appId:
          description: App identifier.
          type: string
        createdAt:
          format: date-time
          type:
            - string
            - 'null'
        displayName:
          description: The displayName field.
          type: string
        evaluateEntitlementId:
          description: >-
            The minted "evaluate" entitlement (derived from the server id;
            returned
             for linking) -- grant it to a caller to let it POST the access
             evaluation endpoint.
          type: string
        id:
          description: The id field.
          type: string
        mode:
          description: >-
            Configures the intended evaluation behavior: DISABLED and
            UNSPECIFIED
             deny requests, OBSERVE records policy decisions without enforcing them,
             and ENFORCE applies policy decisions. Evaluation endpoints are not served
             by this control-plane API.
          enum:
            - AUTHZEN_MODE_UNSPECIFIED
            - AUTHZEN_MODE_DISABLED
            - AUTHZEN_MODE_OBSERVE
            - AUTHZEN_MODE_ENFORCE
          type: string
          x-speakeasy-unknown-values: allow
        searchEntitlementId:
          description: >-
            The minted "search" entitlement (derived from the server id;
            returned
             for linking) -- grant it to a caller to let it POST the
             subject/resource/action search endpoints.
          type: string
        updatedAt:
          format: date-time
          type:
            - string
            - 'null'
      title: Authzen Server
      type: object
      x-speakeasy-name-override: AuthzenServer
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http
    oauth:
      description: >-
        This API uses OAuth2 with the Client Credential flow.

        Client Credentials must be sent in the BODY, not the headers.

        For an example of how to implement this, refer to the
        [c1TokenSource.Token()](https://github.com/ConductorOne/conductorone-sdk-go/blob/3375fe7c0126d17e7ec4e711693dee7b791023aa/token_source.go#L101-L187)
        function.
      flows:
        clientCredentials:
          scopes: {}
          tokenUrl: /auth/v1/token
      type: oauth2

````