Skip to content
Start here

Download LOA Document

client.addressing.loaDocuments.get(stringloaDocumentId, LOADocumentGetParams { account_id } params, RequestOptionsoptions?): Response
GET/accounts/{account_id}/addressing/loa_documents/{loa_document_id}/download

Download specified LOA document under the account.

Security

API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example:X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Accepted Permissions (at least one required)
Magic Transit ReadMagic Transit Write
ParametersExpand Collapse
loaDocumentId: string

Identifier for the uploaded LOA document.

maxLength32
params: LOADocumentGetParams { account_id }
account_id: string

Identifier of a Cloudflare account.

maxLength32
ReturnsExpand Collapse
unnamed_schema_2 = Response

Download LOA Document

import Cloudflare from 'cloudflare';

const client = new Cloudflare({
  apiEmail: process.env['CLOUDFLARE_EMAIL'], // This is the default and can be omitted
  apiKey: process.env['CLOUDFLARE_API_KEY'], // This is the default and can be omitted
});

const loaDocument = await client.addressing.loaDocuments.get('d933b1530bc56c9953cf8ce166da8004', {
  account_id: '258def64c72dae45f3e4c8516e2111f2',
});

console.log(loaDocument);

const content = await loaDocument.blob();
console.log(content);
Returns Examples