---
updatedAt: 2025-06-04T20:42:30.000Z
agentTools:
  projectIndex: https://docs.tomorrow.io/llms.txt
---

# Create an Insight

> 🚧 Note:
>
> Insight endpoint units are in Metric

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "tomorrowio-api",
    "version": "4.0.1"
  },
  "servers": [
    {
      "url": "https://api.tomorrow.io/v4"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "query",
        "name": "apikey"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/insights": {
      "post": {
        "summary": "Create an Insight",
        "description": "",
        "operationId": "post-insights",
        "parameters": [
          {
            "name": "Accept-Encoding",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "gzip"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The name of the insight used when setting alert notifications"
                  },
                  "rules": {
                    "type": "string",
                    "description": "The [rules](https://docs.tomorrow.io/reference/insights-overview#rules-language) for which the linked locations will be checked. **Either rules or conditions is required** i.e (windSpeed > 30)"
                  },
                  "conditions": {
                    "type": "string",
                    "description": "The [conditions](https://docs.tomorrow.io/reference/insights-overview#conditions-language-ast-trees) for which the linked locations will be checked. Either rules or conditions is required",
                    "format": "json"
                  },
                  "tags": {
                    "type": "array",
                    "description": "Any descriptive tags to be used to filter insights",
                    "items": {
                      "type": "string"
                    }
                  },
                  "severity": {
                    "type": "string",
                    "description": "The code denoting the intensity of impact when conditions occur (extreme, severe, moderate, minor, unknown)",
                    "default": "unknown"
                  },
                  "description": {
                    "type": "string",
                    "description": "The description detailing this insight use-case"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"data\": {\n        \"insight\": {\n            \"id\": \"38f689d83c264eb0b084ba095f2ea332\",\n            \"name\": \"Safety Warning\",\n            \"conditions\": {...conditions},\n            \"createdAt\": \"2020-05-10T06:49:34+0000\"\n        }\n    }\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```