{
  "opencollection": "1.0.0",
  "info": {
    "name": "Lingo.dev Engine API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "X-API-Key",
      "value": "{{apiKey}}",
      "in": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Synchronous",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Localize key-value content",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.lingo.dev/process/localize",
            "body": {
              "type": "json",
              "data": "{\n  \"sourceLocale\": \"en\",\n  \"targetLocale\": \"es\",\n  \"data\": { \"greeting\": \"Hello, world!\" }\n}"
            }
          },
          "docs": "Translates a record of key-value strings to a single target locale, preserving structure, glossary, and brand voice. Backs the SDK localizeText, localizeObject, localizeChat, localizeHtml, localizeStringArray, and batchLocalizeText methods."
        },
        {
          "info": {
            "name": "Recognize the locale of text",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.lingo.dev/process/recognize",
            "body": {
              "type": "json",
              "data": "{\n  \"text\": \"Bonjour le monde\"\n}"
            }
          },
          "docs": "Detects the language / locale of a text string and returns a structured locale code. Backs the SDK recognizeLocale method."
        },
        {
          "info": {
            "name": "Estimate localization cost",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.lingo.dev/process/estimate",
            "body": {
              "type": "json",
              "data": "{\n  \"targetLocale\": \"de\",\n  \"data\": { \"greeting\": \"Hello, world!\" }\n}"
            }
          },
          "docs": "Estimates the word / token cost of localizing the provided content before processing. Backs the SDK estimate method."
        }
      ]
    },
    {
      "info": {
        "name": "Account",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get the authenticated account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.lingo.dev/users/me"
          },
          "docs": "Returns information about the account associated with the supplied API key. Backs the SDK whoami method."
        }
      ]
    },
    {
      "info": {
        "name": "Asynchronous",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a localization job group",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.lingo.dev/jobs/localization",
            "body": {
              "type": "json",
              "data": "{\n  \"sourceLocale\": \"en\",\n  \"targetLocales\": [\"es\", \"fr\", \"de\"],\n  \"data\": { \"greeting\": \"Hello, world!\" }\n}"
            }
          },
          "docs": "Submits content and a list of target locales. Creates a job group with one background job per locale and returns 202 with the group ID and per-locale job summaries. Results are delivered via polling, webhook, or WebSocket."
        },
        {
          "info": {
            "name": "List localization jobs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.lingo.dev/jobs/localization"
          },
          "docs": "Lists localization jobs with pagination and filtering."
        },
        {
          "info": {
            "name": "Get a localization job group",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.lingo.dev/jobs/localization/:groupId",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path",
                "description": "The ID of the job group to retrieve."
              }
            ]
          },
          "docs": "Retrieves the status of a localization job group and its per-locale jobs."
        }
      ]
    }
  ],
  "bundled": true
}
