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

> Create a Zabbix Connection.

<Note>
  Check out the configuration docs for [Zabbix Connections](/integrations/app-connections/zabbix) to learn how to obtain the required credentials.
</Note>


## OpenAPI

````yaml POST /api/v1/app-connections/zabbix
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/app-connections/zabbix:
    post:
      tags:
        - App Connections
      description: Create a Zabbix Connection.
      operationId: createZabbixAppConnection
      requestBody:
        required: true
        content:
          application/json:
            schema:
              allOf:
                - anyOf:
                    - type: object
                      properties:
                        method:
                          type: string
                          enum:
                            - api-token
                          description: The method used to authenticate with Zabbix.
                        credentials:
                          type: object
                          properties:
                            apiToken:
                              type: string
                              minLength: 1
                              maxLength: 1000
                              description: The API Token used to access Zabbix.
                            instanceUrl:
                              type: string
                              format: uri
                              description: The Zabbix instance URL to connect with.
                          required:
                            - apiToken
                            - instanceUrl
                          additionalProperties: false
                          description: The credentials used to connect with Zabbix.
                      required:
                        - method
                        - credentials
                      additionalProperties: false
                - type: object
                  properties:
                    name:
                      type: string
                      minLength: 1
                      maxLength: 64
                      description: >-
                        The name of the Zabbix Connection to create. Must be
                        slug-friendly.
                    description:
                      type: string
                      maxLength: 256
                      nullable: true
                      description: An optional description for the Zabbix Connection.
                    projectId:
                      type: string
                      description: >-
                        The ID of the project to create the Zabbix Connection
                        in.
                    isPlatformManagedCredentials:
                      type: boolean
                      enum:
                        - false
                      description: Not supported for Zabbix Connections.
                    gatewayId:
                      anyOf:
                        - not: {}
                        - enum:
                            - 'null'
                          nullable: true
                      description: Not supported for Zabbix Connections.
                    gatewayPoolId:
                      anyOf:
                        - not: {}
                        - enum:
                            - 'null'
                          nullable: true
                      description: Not supported for Zabbix Connections.
                    isAutoRotationEnabled:
                      type: boolean
                      enum:
                        - false
                      description: Not supported for Zabbix Connections.
                    rotation:
                      anyOf:
                        - not: {}
                        - enum:
                            - 'null'
                          nullable: true
                      description: Not supported for Zabbix Connections.
                  required:
                    - name
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  appConnection:
                    anyOf:
                      - type: object
                        properties:
                          id:
                            type: string
                            format: uuid
                          name:
                            type: string
                          description:
                            type: string
                            nullable: true
                          version:
                            type: number
                            default: 1
                          orgId:
                            type: string
                            format: uuid
                          createdAt:
                            type: string
                            format: date-time
                          updatedAt:
                            type: string
                            format: date-time
                          isPlatformManagedCredentials:
                            type: boolean
                            default: false
                            nullable: true
                          gatewayId:
                            type: string
                            format: uuid
                            nullable: true
                          projectId:
                            type: string
                            nullable: true
                          isAutoRotationEnabled:
                            type: boolean
                            default: false
                          gatewayPoolId:
                            type: string
                            format: uuid
                            nullable: true
                          rotation:
                            type: object
                            properties:
                              lastRotationMessage:
                                type: string
                                nullable: true
                                description: The message from the last rotation attempt.
                              rotationInterval:
                                type: number
                                description: >-
                                  The interval in days between credential
                                  rotations.
                              nextRotationAt:
                                type: string
                                format: date-time
                                nullable: true
                                description: The next scheduled rotation time.
                              rotationStatus:
                                type: string
                                enum:
                                  - success
                                  - failed
                                description: The status of the last rotation attempt.
                              rotateAtUtc:
                                type: object
                                properties:
                                  hours:
                                    type: number
                                    description: The hour (0-23) at which to rotate.
                                  minutes:
                                    type: number
                                    description: The minute (0-59) at which to rotate.
                                required:
                                  - hours
                                  - minutes
                                additionalProperties: false
                                description: >-
                                  The UTC time of day at which rotation should
                                  occur.
                            required:
                              - rotationInterval
                              - rotationStatus
                              - rotateAtUtc
                            additionalProperties: false
                            description: >-
                              The credential rotation configuration, if
                              configured.
                          credentialsHash:
                            type: string
                          project:
                            type: object
                            properties:
                              name:
                                type: string
                              id:
                                type: string
                              type:
                                type: string
                              slug:
                                type: string
                            required:
                              - name
                              - id
                              - type
                              - slug
                            additionalProperties: false
                            nullable: true
                          app:
                            type: string
                            enum:
                              - zabbix
                          method:
                            type: string
                            enum:
                              - api-token
                          credentials:
                            type: object
                            properties:
                              instanceUrl:
                                type: string
                                format: uri
                                description: The Zabbix instance URL to connect with.
                            required:
                              - instanceUrl
                            additionalProperties: false
                        required:
                          - id
                          - name
                          - orgId
                          - createdAt
                          - updatedAt
                          - app
                          - method
                          - credentials
                        additionalProperties: false
                        title: Zabbix (API Token)
                required:
                  - appConnection
                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

````