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

# Create Cloudflare Dns Record



## OpenAPI

````yaml https://platform.ankra.app/openapi.json post /api/v1/org/cloudflare/domains/{zone_id}/records
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
paths:
  /api/v1/org/cloudflare/domains/{zone_id}/records:
    post:
      tags:
        - Cloudflare
      summary: Create Cloudflare Dns Record
      operationId: >-
        create_cloudflare_dns_record_api_v1_org_cloudflare_domains__zone_id__records_post
      parameters:
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: x-ankra-organisation-id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Ankra-Organisation-Id
        - in: path
          name: zone_id
          required: true
          schema:
            type: string
            title: Zone Id
        - in: query
          name: credential_name
          required: false
          description: >-
            Which connected Cloudflare credential to use. Omit when the
            organisation has exactly one.
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Credential Name
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCloudflareDnsRecordRequest'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudflareDnsRecordResponse'
          description: Successful Response
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '409':
          description: A DNS record with that name, type and content already exists
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
        '503':
          description: Cloudflare is unavailable or rate limited
components:
  schemas:
    CreateCloudflareDnsRecordRequest:
      properties:
        name:
          type: string
          title: Name
          description: >-
            Record name. A bare label is qualified against the domain; '@' means
            the apex.
        record_type:
          type: string
          title: Record Type
          enum:
            - A
            - AAAA
            - CNAME
            - MX
            - NS
            - TXT
        content:
          title: Content
          type: string
        ttl:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ttl
          description: TTL in seconds, or 1 for automatic. Omit for automatic.
        proxied:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Proxied
        priority:
          anyOf:
            - type: integer
            - type: 'null'
          title: Priority
          description: Required for MX records; rejected for every other supported type.
        comment:
          anyOf:
            - type: string
            - type: 'null'
          title: Comment
      required:
        - name
        - record_type
        - content
      title: CreateCloudflareDnsRecordRequest
      type: object
    CloudflareDnsRecordResponse:
      properties:
        id:
          title: Id
          type: string
        zone_id:
          type: string
          title: Zone Id
        zone_name:
          type: string
          title: Zone Name
        name:
          title: Name
          type: string
        record_type:
          title: Record Type
          type: string
        content:
          title: Content
          type: string
        ttl:
          type: integer
          title: Ttl
        is_ttl_automatic:
          type: boolean
          title: Is Ttl Automatic
        proxied:
          type: boolean
          title: Proxied
        proxiable:
          type: boolean
          title: Proxiable
        priority:
          anyOf:
            - type: integer
            - type: 'null'
          title: Priority
        comment:
          type: string
          title: Comment
        tags:
          items:
            type: string
          type: array
          title: Tags
        managed_by:
          type: string
          title: Managed By
          enum:
            - ankra
            - external
        created_on:
          type: string
          title: Created On
        modified_on:
          type: string
          title: Modified On
      required:
        - id
        - zone_id
        - zone_name
        - name
        - record_type
        - content
        - ttl
        - is_ttl_automatic
        - proxied
        - proxiable
        - tags
        - managed_by
      title: CloudflareDnsRecordResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````