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

# Create

> Create a new IP policy. It will not apply to any traffic until you associate to a traffic source via an endpoint configuration or IP restriction.




## OpenAPI

````yaml https://raw.githubusercontent.com/ngrok/ngrok-openapi/refs/heads/main/ngrok.yaml post /ip_policies
openapi: 3.0.0
info:
  title: ngrok OpenAPI
  version: 1.0.0
servers:
  - url: https://api.ngrok.com
security:
  - authentication: []
paths:
  /ip_policies:
    post:
      tags:
        - IPPolicies
      summary: Create
      description: >
        Create a new IP policy. It will not apply to any traffic until you
        associate to a traffic source via an endpoint configuration or IP
        restriction.
      operationId: IpPoliciesCreate
      parameters:
        - $ref: '#/components/parameters/ngrokVersion'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IPPolicyCreate'
      responses:
        '201':
          description: >
            Create a new IP policy. It will not apply to any traffic until you
            associate to a traffic source via an endpoint configuration or IP
            restriction.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IPPolicy'
components:
  parameters:
    ngrokVersion:
      name: ngrok-version
      in: header
      required: true
      schema:
        type: integer
        default: 2
  schemas:
    IPPolicyCreate:
      type: object
      properties:
        description:
          description: >
            human-readable description of the source IPs of this IP policy.
            optional, max 255 bytes.
          type: string
        metadata:
          description: >
            arbitrary user-defined machine-readable data of this IP policy.
            optional, max 4096 bytes.
          type: string
    IPPolicy:
      type: object
      properties:
        id:
          description: |
            unique identifier for this IP policy
          type: string
        uri:
          description: |
            URI of the IP Policy API resource
          type: string
        created_at:
          description: |
            timestamp when the IP policy was created, RFC 3339 format
          type: string
        description:
          description: >
            human-readable description of the source IPs of this IP policy.
            optional, max 255 bytes.
          type: string
        metadata:
          description: >
            arbitrary user-defined machine-readable data of this IP policy.
            optional, max 4096 bytes.
          type: string
  securitySchemes:
    authentication:
      type: http
      scheme: bearer

````