OpenSocialDocumentation

docs_search

Search articles and operation references in this installation.

REST · POST /api/v1/operations/docs_search · MCP · docs_search

Required scope · read. This operation reads data.

Example request body

{
  "query": "schedule",
  "lang": "en"
}

REST returns the output below directly. In MCP read structuredContent.result. Check the current installation at /api/v1/openapi.json.

For 401 check credential validity. For 403 inspect the role, scopes and selected accounts. For 409 reread the record before retrying.

JSON Schema · Input

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "default": "",
      "type": "string",
      "maxLength": 500
    },
    "lang": {
      "default": "pt-BR",
      "type": "string",
      "enum": [
        "pt-BR",
        "en"
      ]
    },
    "limit": {
      "default": 20,
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    }
  },
  "additionalProperties": false
}

JSON Schema · Output

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string",
        "pattern": "^[a-z][a-z0-9_-]{0,100}$"
      },
      "lang": {
        "type": "string",
        "enum": [
          "pt-BR",
          "en"
        ]
      },
      "title": {
        "type": "string"
      },
      "summary": {
        "type": "string"
      },
      "url": {
        "type": "string"
      },
      "uri": {
        "type": "string"
      }
    },
    "required": [
      "id",
      "lang",
      "title",
      "summary",
      "url",
      "uri"
    ],
    "additionalProperties": false
  }
}