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

# Integration setup - get the TMY requestId

## OpenAPI

````json POST /tmy-integration/data-request
{
  "openapi": "3.0.3",
  "info": {
    "title": "Solargis API documentation",
    "version": "2.1.1",
    "description": "Explore Solargis API endpoints and learn how to retrieve TimeSeries, TMY, and other data from your Solargis subscriptions."
  },
  "servers": [
    {
      "url": "https://api.solargis.com",
      "description": "TimeSeries and TMY API endpoint"
    }
  ],
  "tags": [
    {
      "name": "Solargis Time Series API",
      "description": "Endpoints for Time Series data requests"
    },
    {
      "name": "Solargis TMY API",
      "description": "Endpoints for TMY data requests"
    },
    {
      "name": "Subscription details API",
      "description": "Get information about your subscription"
    }
  ],
  "paths": {
    "/tmy-integration/data-request": {
      "post": {
        "tags": [
          "Solargis TMY API"
        ],
        "summary": "Integration setup - get the TMY requestId",
        "security": [
          {
            "TMYToken": []
          }
        ],
        "requestBody": {
          "required": "true",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TMYIntegrationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "RequestId retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestIdResponse"
                }
              }
            }
          },
          "401": {
            "description": "Invalid authorization",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvalidToken"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "TMYIntegrationRequest": {
        "type": "object",
        "required": [
          "latitude",
          "longitude",
          "timeStep",
          "tmyScenario",
          "outputFormats",
          "siteName"
        ],
        "properties": {
          "latitude": {
            "type": "number",
            "format": "double",
            "description": "Geographic latitude of the site in decimal degrees (WGS84).",
            "example": "48.61259",
            "multipleOf": "0.0000001"
          },
          "longitude": {
            "type": "number",
            "format": "double",
            "description": "Geographic longitude of the site in decimal degrees (WGS84).",
            "example": "20.827079",
            "multipleOf": "0.0000001"
          },
          "timeStep": {
            "type": "string",
            "enum": [
              "PT60M"
            ],
            "description": "Temporal resolution of the output data; hourly (PT60M) is supported for integration.",
            "example": "PT60M"
          },
          "tmyScenario": {
            "type": "string",
            "enum": [
              "P50"
            ],
            "description": "Statistical exceedance scenario for the TMY dataset; P50 represents the median energy yield.",
            "example": "P50"
          },
          "outputFormats": {
            "type": "array",
            "description": "List of output file formats to generate for the TMY data.",
            "items": {
              "type": "string",
              "enum": [
                "SOLARGIS_JSON",
                "SOLARGIS_CSV",
                "SAM",
                "HELIOSCOPE"
              ]
            },
            "example": [
              "SOLARGIS_CSV",
              "SOLARGIS_JSON",
              "SAM",
              "HELIOSCOPE"
            ]
          },
          "siteName": {
            "type": "string",
            "description": "Human-readable label identifying the site in output files and logs.",
            "example": "Basic example Site"
          },
          "fileLabel": {
            "type": "string",
            "description": "Short identifier prepended to output file names for easy recognition.",
            "example": "basic_01"
          }
        }
      },
      "RequestIdResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Unique identifier used to retrieve the processed data in a subsequent GET request."
          }
        }
      },
      "InvalidToken": {
        "type": "object",
        "description": "Invalid authorization",
        "properties": {
          "error": {
            "type": "string",
            "description": "Machine-readable error code indicating the authentication failure reason.",
            "example": "token.invalid"
          }
        }
      }
    },
    "securitySchemes": {
      "TMYToken": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Enter your Solargis TMY Bearer token.\n"
      }
    }
  }
}
````

