{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-create-doc-service-document-request-schema.json", "title": "CreateDocServiceDocumentRequest", "x-generated": "2026-10-08", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/telnyx-documents-api-openapi.yml#/components/schemas/CreateDocServiceDocumentRequest", "properties": { "customer_reference": { "description": "A customer reference string for customer look ups.", "type": "string" }, "file": { "description": "Alternatively, instead of the URL you can provide the Base64 encoded contents of the file you are uploading.", "format": "byte", "type": "string" }, "filename": { "description": "The filename of the document.", "type": "string" }, "url": { "description": "If the file is already hosted publicly, you can provide a URL and have the documents service fetch it for you.", "type": "string" } }, "type": "object" }