{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sinch/main/json-schema/sinch-service-list-schema.json",
  "title": "ServiceList",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sinch-projects-api-openapi.yml#/components/schemas/ServiceList",
  "type": "object",
  "properties": {
    "services": {
      "type": "array",
      "description": "List of services",
      "items": {
        "$ref": "#/$defs/Service"
      }
    }
  },
  "$defs": {
    "Service": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique service identifier"
        },
        "name": {
          "type": "string",
          "description": "The service name"
        },
        "projectId": {
          "type": "string",
          "description": "The project ID"
        },
        "incomingWebhookUrl": {
          "type": "string",
          "format": "uri",
          "description": "Webhook URL for incoming fax notifications"
        },
        "webhookContentType": {
          "type": "string",
          "description": "Content type for webhook payloads"
        },
        "defaultForProject": {
          "type": "boolean",
          "description": "Whether this is the default service"
        },
        "numberOfPhoneNumbers": {
          "type": "integer",
          "description": "Number of phone numbers assigned"
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "When the service was created"
        },
        "imageConversionMethod": {
          "type": "string",
          "description": "Default image conversion method"
        },
        "saveOutboundFaxDocuments": {
          "type": "boolean",
          "description": "Whether to save outbound fax documents"
        },
        "saveInboundFaxDocuments": {
          "type": "boolean",
          "description": "Whether to save inbound fax documents"
        }
      }
    }
  }
}