{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/widewail/json-schema/widewail-post-leads-request-schema.json",
  "title": "PostLeadsRequest",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/widewail-openapi-generated.yml#/components/schemas/PostLeadsRequest",
  "type": "object",
  "properties": {
    "locationId": {
      "type": "string",
      "description": "The ID of the location that wishes to send a review invitation, as it appears in Widewail. Consult the /locations endpoint to retrieve a list of location IDs that you have access to."
    },
    "firstName": {
      "type": "string",
      "description": "The first name of the person to whom the review will be sent."
    },
    "lastName": {
      "type": "string",
      "description": "The last name of the person to whom the review will be sent. Unlike the first name, this may be omitted."
    },
    "email": {
      "type": "string",
      "description": "An email address to send the invitation to. At least one of email or mobile must be provided."
    },
    "mobile": {
      "type": "string",
      "description": "A mobile phone number to send the invitation to. At least one of email or mobile must be provided."
    },
    "thirdpartyId": {
      "type": "string",
      "description": "A unique ID for this review lead. Widewail uses this field to avoid sending duplicate invitations, and considers two review leads with the same third-party ID to be the same."
    },
    "interaction": {
      "type": "object",
      "description": "Details on the interaction between the business and the review lead."
    }
  },
  "required": [
    "locationId",
    "firstName",
    "thirdpartyId",
    "interaction"
  ]
}