## Upload LOA Document `addressing.loa_documents.create(LOADocumentCreateParams**kwargs) -> LOADocumentCreateResponse` **post** `/accounts/{account_id}/addressing/loa_documents` Submit LOA document (pdf format) under the account. ### Parameters - `account_id: str` Identifier of a Cloudflare account. - `loa_document: str` LOA document to upload. ### Returns - `class LOADocumentCreateResponse: …` - `id: Optional[str]` Identifier for the uploaded LOA document. - `account_id: Optional[str]` Identifier of a Cloudflare account. - `auto_generated: Optional[bool]` Whether the LOA has been auto-generated for the prefix owner by Cloudflare. - `created: Optional[datetime]` - `filename: Optional[str]` Name of LOA document. Max file size 10MB, and supported filetype is pdf. - `size_bytes: Optional[int]` File size of the uploaded LOA document. - `verified: Optional[bool]` Whether the LOA has been verified by Cloudflare staff. - `verified_at: Optional[datetime]` Timestamp of the moment the LOA was marked as validated. ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_email=os.environ.get("CLOUDFLARE_EMAIL"), # This is the default and can be omitted api_key=os.environ.get("CLOUDFLARE_API_KEY"), # This is the default and can be omitted ) loa_document = client.addressing.loa_documents.create( account_id="258def64c72dae45f3e4c8516e2111f2", loa_document="@document.pdf", ) print(loa_document.id) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "success": true, "result": { "id": "d933b1530bc56c9953cf8ce166da8004", "account_id": "258def64c72dae45f3e4c8516e2111f2", "auto_generated": true, "created": "2014-01-01T05:20:00.12345Z", "filename": "site_loa_doc.pdf", "size_bytes": 444, "verified": true, "verified_at": "2019-12-27T18:11:19.117Z" } } ```