{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/divvy/json-schema/divvy-list-attachment-response-dto-schema.json",
  "title": "ListAttachmentResponseDto",
  "description": "Get list of attachments response.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/divvy-attachments-api-openapi.yml#/components/schemas/ListAttachmentResponseDto",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/ListResponseDto_AttachmentResponseDto_"
    }
  ],
  "$defs": {
    "AttachmentResponseDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "BILL-generated ID of the attachment. The value begins with `att`."
        },
        "name": {
          "type": "string",
          "description": "Attachment name"
        },
        "createdTime": {
          "type": "string",
          "description": "Created date and time",
          "format": "date-time"
        },
        "downloadLink": {
          "type": "string",
          "description": "URL for downloading the attachment. Use the URL in a GET request to download the attachment."
        }
      },
      "description": "Attachments response."
    },
    "ListResponseDto_AttachmentResponseDto_": {
      "type": "object",
      "properties": {
        "nextPage": {
          "type": "string"
        },
        "prevPage": {
          "type": "string"
        },
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AttachmentResponseDto"
          }
        }
      },
      "description": "Response from a list API request with paging references."
    }
  }
}