{
  "openapi": "3.1.0",
  "info": {
    "title": "Linguify Language Detector API",
    "version": "Unversioned",
    "description": "Detect text language, translate between language codes, or auto-detect the source before translating.",
    "x-pricing-model": "payg",
    "x-free-tier-calls": 0,
    "x-docs-url": "",
    "x-dakidarts-contract-status": "published",
    "x-dakidarts-execution-status": "source-only"
  },
  "servers": [
    {
      "url": "https://api.dakidarts.com/linguify",
      "description": "Dakidarts direct gateway"
    }
  ],
  "tags": [
    {
      "name": "Operations",
      "description": "Operations endpoints sourced from the Linguify Language Detector API implementation."
    },
    {
      "name": "Language operations",
      "description": "Language operations endpoints sourced from the Linguify Language Detector API implementation."
    }
  ],
  "paths": {
    "/status": {
      "get": {
        "summary": "Ping",
        "description": "Returns Linguify service health.",
        "operationId": "linguify_get_status",
        "tags": [
          "Operations"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "status": "API is online"
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Client error"
          },
          "5XX": {
            "description": "Upstream or gateway error"
          },
          "503": {
            "description": "No live upstream is configured. Sample responses are preview-only."
          }
        },
        "x-dakidarts-execution-status": "source-only",
        "x-dakidarts-source-contract": true,
        "x-dakidarts-sample-response": {
          "status": "API is online"
        }
      },
      "post": {
        "summary": "Ping",
        "description": "Returns Linguify service health.",
        "operationId": "linguify_post_status",
        "tags": [
          "Operations"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "status": "API is online"
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Client error"
          },
          "5XX": {
            "description": "Upstream or gateway error"
          },
          "503": {
            "description": "No live upstream is configured. Sample responses are preview-only."
          }
        },
        "x-dakidarts-execution-status": "source-only",
        "x-dakidarts-source-contract": true,
        "x-dakidarts-sample-response": {
          "status": "API is online"
        }
      }
    },
    "/detect": {
      "get": {
        "summary": "Detect Language",
        "description": "Detects the language of supplied text.",
        "operationId": "linguify_get_detect",
        "tags": [
          "Language operations"
        ],
        "parameters": [
          {
            "name": "text",
            "in": "query",
            "required": true,
            "description": "Text to detect or translate.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "probability": {
                      "description": "Dynamic value returned by the source language-detection package; its concrete type is not declared in this repository."
                    },
                    "detected_language": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "4XX": {
            "description": "Client error"
          },
          "5XX": {
            "description": "Upstream or gateway error"
          },
          "503": {
            "description": "No live upstream is configured. Sample responses are preview-only."
          }
        },
        "x-dakidarts-execution-status": "source-only",
        "x-dakidarts-source-contract": true
      },
      "post": {
        "summary": "Detect Language",
        "description": "Detects the language of supplied text.",
        "operationId": "linguify_post_detect",
        "tags": [
          "Language operations"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "probability": {
                      "description": "Dynamic value returned by the source language-detection package; its concrete type is not declared in this repository."
                    },
                    "detected_language": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "4XX": {
            "description": "Client error"
          },
          "5XX": {
            "description": "Upstream or gateway error"
          },
          "503": {
            "description": "No live upstream is configured. Sample responses are preview-only."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "example": "This is a sample text."
                  }
                },
                "required": [
                  "text"
                ],
                "example": {
                  "text": "Bonjour tout le monde."
                }
              }
            }
          }
        },
        "x-dakidarts-execution-status": "source-only",
        "x-dakidarts-source-contract": true
      }
    },
    "/translate": {
      "get": {
        "summary": "Translate Text",
        "description": "Translates text from a source language to a target language.",
        "operationId": "linguify_get_translate",
        "tags": [
          "Language operations"
        ],
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": true,
            "description": "Source language code; omit or use the documented auto-detect value when detection is desired.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "description": "Target language code for translation.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "text",
            "in": "query",
            "required": true,
            "description": "Text to detect or translate.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "to": {
                      "description": "Dynamic source value; no concrete response example is published."
                    },
                    "from": {
                      "description": "Dynamic source value; no concrete response example is published."
                    },
                    "original_text": {
                      "description": "Dynamic source value; no concrete response example is published."
                    },
                    "translated_text": {
                      "description": "Dynamic source value; no concrete response example is published."
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "4XX": {
            "description": "Client error"
          },
          "5XX": {
            "description": "Upstream or gateway error"
          },
          "503": {
            "description": "No live upstream is configured. Sample responses are preview-only."
          }
        },
        "x-dakidarts-execution-status": "source-only",
        "x-dakidarts-source-contract": true
      },
      "post": {
        "summary": "Translate Text",
        "description": "Translates text from a source language to a target language.",
        "operationId": "linguify_post_translate",
        "tags": [
          "Language operations"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "to": {
                      "description": "Dynamic source value; no concrete response example is published."
                    },
                    "from": {
                      "description": "Dynamic source value; no concrete response example is published."
                    },
                    "original_text": {
                      "description": "Dynamic source value; no concrete response example is published."
                    },
                    "translated_text": {
                      "description": "Dynamic source value; no concrete response example is published."
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "4XX": {
            "description": "Client error"
          },
          "5XX": {
            "description": "Upstream or gateway error"
          },
          "503": {
            "description": "No live upstream is configured. Sample responses are preview-only."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string"
                  }
                },
                "required": [
                  "from",
                  "text",
                  "to"
                ],
                "example": {
                  "to": "fr",
                  "from": "en",
                  "text": "Hello, world!"
                }
              }
            }
          }
        },
        "x-dakidarts-execution-status": "source-only",
        "x-dakidarts-source-contract": true
      }
    },
    "/auto-translate": {
      "get": {
        "summary": "Auto Translate",
        "description": "Detects source language and translates text to the requested target language.",
        "operationId": "linguify_get_auto-translate",
        "tags": [
          "Language operations"
        ],
        "parameters": [
          {
            "name": "to",
            "in": "query",
            "required": true,
            "description": "Target language code for translation.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "text",
            "in": "query",
            "required": true,
            "description": "Text to detect or translate.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "to": {
                      "description": "Dynamic source value; no concrete response example is published."
                    },
                    "original_text": {
                      "description": "Dynamic source value; no concrete response example is published."
                    },
                    "translated_text": {
                      "description": "Dynamic source value; no concrete response example is published."
                    },
                    "detected_language": {
                      "type": "integer"
                    },
                    "detected_probability": {
                      "type": "integer"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "4XX": {
            "description": "Client error"
          },
          "5XX": {
            "description": "Upstream or gateway error"
          },
          "503": {
            "description": "No live upstream is configured. Sample responses are preview-only."
          }
        },
        "x-dakidarts-execution-status": "source-only",
        "x-dakidarts-source-contract": true
      },
      "post": {
        "summary": "Auto Translate",
        "description": "Detects source language and translates text to the requested target language.",
        "operationId": "linguify_post_auto-translate",
        "tags": [
          "Language operations"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "to": {
                      "description": "Dynamic source value; no concrete response example is published."
                    },
                    "original_text": {
                      "description": "Dynamic source value; no concrete response example is published."
                    },
                    "translated_text": {
                      "description": "Dynamic source value; no concrete response example is published."
                    },
                    "detected_language": {
                      "type": "integer"
                    },
                    "detected_probability": {
                      "type": "integer"
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "4XX": {
            "description": "Client error"
          },
          "5XX": {
            "description": "Upstream or gateway error"
          },
          "503": {
            "description": "No live upstream is configured. Sample responses are preview-only."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "to": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string"
                  }
                },
                "required": [
                  "text",
                  "to"
                ],
                "example": {
                  "to": "fr",
                  "text": "Hello, world!"
                }
              }
            }
          }
        },
        "x-dakidarts-execution-status": "source-only",
        "x-dakidarts-source-contract": true
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}