---
updatedAt: 2026-04-21T09:18:29.000Z
agentTools:
  projectIndex: https://docs.esputnik.com/llms.txt
---

# Get script

The method returns the script for your account.<br>The domain must exist for an organization before getting a script.<br>It can be used for plugins that automatically install the script on the site and require the API endpoint for getting the script.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "esputnik.com",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://esputnik.com"
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "tags": [
    {
      "name": "Site"
    }
  ],
  "paths": {
    "/api/v1/site/script": {
      "get": {
        "tags": [
          "Site"
        ],
        "summary": "Get script",
        "description": "The method returns the script for your account.<br>The domain must exist for an organization before getting a script.<br>It can be used for plugins that automatically install the script on the site and require the API endpoint for getting the script.",
        "operationId": "getScript",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
```