{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sinch/main/json-schema/sinch-create-service-request-schema.json",
  "title": "CreateServiceRequest",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sinch-projects-api-openapi.yml#/components/schemas/CreateServiceRequest",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "The service name"
    },
    "incomingWebhookUrl": {
      "type": "string",
      "format": "uri",
      "description": "Webhook URL for incoming faxes"
    },
    "defaultForProject": {
      "type": "boolean",
      "description": "Whether this is the default service"
    },
    "imageConversionMethod": {
      "type": "string",
      "enum": [
        "HALFTONE",
        "MONOCHROME"
      ],
      "description": "Image conversion method"
    },
    "saveOutboundFaxDocuments": {
      "type": "boolean",
      "description": "Save outbound documents"
    },
    "saveInboundFaxDocuments": {
      "type": "boolean",
      "description": "Save inbound documents"
    }
  }
}