{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sinch/main/json-schema/sinch-registration-list-schema.json",
  "title": "RegistrationList",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sinch-registrations-api-openapi.yml#/components/schemas/RegistrationList",
  "type": "object",
  "properties": {
    "registrations": {
      "type": "array",
      "description": "List of registrations",
      "items": {
        "$ref": "#/$defs/Registration"
      }
    },
    "nextPageToken": {
      "type": "string",
      "description": "Pagination token"
    },
    "totalSize": {
      "type": "integer",
      "description": "Total number of registrations"
    }
  },
  "$defs": {
    "Registration": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique registration identifier"
        },
        "projectId": {
          "type": "string",
          "description": "The project ID"
        },
        "marketId": {
          "type": "string",
          "description": "The market identifier"
        },
        "displayName": {
          "type": "string",
          "description": "The display name for the sender"
        },
        "senderId": {
          "type": "string",
          "description": "The sender ID being registered"
        },
        "senderType": {
          "type": "string",
          "description": "The sender type"
        },
        "status": {
          "type": "string",
          "enum": [
            "DRAFT",
            "SUBMITTED",
            "UNDER_REVIEW",
            "APPROVED",
            "REJECTED",
            "REVOKED"
          ],
          "description": "The current registration status"
        },
        "rejectionReason": {
          "type": "string",
          "description": "Reason for rejection if applicable"
        },
        "registrationDetails": {
          "type": "object",
          "description": "Market-specific registration details",
          "additionalProperties": true
        },
        "createTime": {
          "type": "string",
          "format": "date-time",
          "description": "When the registration was created"
        },
        "updateTime": {
          "type": "string",
          "format": "date-time",
          "description": "When the registration was last updated"
        },
        "submitTime": {
          "type": "string",
          "format": "date-time",
          "description": "When the registration was submitted"
        }
      }
    }
  }
}