{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telnyx/json-schema/telnyx-create-number-reservation-request-schema.json",
  "title": "CreateNumberReservationRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-phone-number-reservations-api-openapi.yml#/components/schemas/CreateNumberReservationRequest",
  "properties": {
    "created_at": {
      "description": "An ISO 8901 datetime string denoting when the numbers reservation was created.",
      "format": "date-time",
      "readOnly": true,
      "type": "string"
    },
    "customer_reference": {
      "description": "A customer reference string for customer look ups.",
      "type": "string"
    },
    "id": {
      "format": "uuid",
      "readOnly": true,
      "type": "string"
    },
    "phone_numbers": {
      "items": {
        "$ref": "#/$defs/ReservedPhoneNumber"
      },
      "type": "array"
    },
    "record_type": {
      "readOnly": true,
      "type": "string"
    },
    "status": {
      "description": "The status of the entire reservation.",
      "enum": [
        "pending",
        "success",
        "failure"
      ],
      "readOnly": true,
      "type": "string"
    },
    "updated_at": {
      "description": "An ISO 8901 datetime string for when the number reservation was updated.",
      "format": "date-time",
      "readOnly": true,
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "ReservedPhoneNumber": {
      "properties": {
        "created_at": {
          "description": "An ISO 8901 datetime string denoting when the individual number reservation was created.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "errors": {
          "description": "Errors the reservation could happen upon",
          "readOnly": true,
          "type": "string"
        },
        "expired_at": {
          "description": "An ISO 8901 datetime string for when the individual number reservation is going to expire",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "readOnly": true,
          "type": "string"
        },
        "phone_number": {
          "type": "string"
        },
        "record_type": {
          "readOnly": true,
          "type": "string"
        },
        "status": {
          "description": "The status of the phone number's reservation.",
          "enum": [
            "pending",
            "success",
            "failure"
          ],
          "readOnly": true,
          "type": "string"
        },
        "updated_at": {
          "description": "An ISO 8901 datetime string for when the the individual number reservation was updated.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}