{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/talktohumans-app/json-schema/talktohumans-app-search-posts-request-schema.json",
  "title": "SearchPostsRequest",
  "description": "At least one of `keywords`, `author_linkedin_urls`, `author_company_linkedin_urls`, `author_industries`, `author_keywords` or `mentions`. List filters match any of their values, and posts must match every filter set.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/talktohumans-app-openapi.yml#/components/schemas/SearchPostsRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "account_id": {
      "type": "string",
      "description": "LinkedIn account ID returned by `GET /v1/accounts`. Required when the organization has multiple LinkedIn accounts.",
      "pattern": "^[1-9][0-9]*$"
    },
    "keywords": {
      "type": "string",
      "maxLength": 200,
      "description": "Words to search for in posts. Supports LinkedIn's `AND`, `OR` and `NOT`."
    },
    "author_linkedin_urls": {
      "type": "array",
      "maxItems": 20,
      "description": "LinkedIn profile URLs of the posts' authors. For one contact's recent posts, prefer `POST /v1/contacts/{contact_id}/find-content`.",
      "items": {
        "type": "string"
      }
    },
    "author_company_linkedin_urls": {
      "type": "array",
      "maxItems": 20,
      "description": "LinkedIn company page URLs where the authors work.",
      "items": {
        "type": "string"
      }
    },
    "author_industries": {
      "type": "array",
      "maxItems": 20,
      "description": "Industries of the authors' employers, as LinkedIn company pages name them, such as `Software Development`. An unknown one fails with the closest names.",
      "items": {
        "type": "string"
      }
    },
    "author_keywords": {
      "type": "string",
      "maxLength": 200,
      "description": "Words in the authors' profiles, such as `founder`."
    },
    "mentions": {
      "type": "array",
      "maxItems": 20,
      "description": "LinkedIn profile or company page URLs the posts mention.",
      "items": {
        "type": "string"
      }
    },
    "media_type": {
      "type": "string",
      "description": "Only posts with an image, a video or a document.",
      "enum": [
        "image",
        "video",
        "document"
      ]
    },
    "sort": {
      "type": "string",
      "description": "Most relevant first (default) or newest first.",
      "enum": [
        "relevance",
        "newest"
      ]
    },
    "posted_within": {
      "type": "string",
      "description": "Only posts from the last 24 hours, week or month.",
      "enum": [
        "24h",
        "week",
        "month"
      ]
    },
    "cursor": {
      "type": "string",
      "description": "Cursor returned as `data.pagination.next_cursor` by the previous call. It carries its search, so the filters can be left out; if you pass them, they must be the same."
    }
  }
}