> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Attachment Download URL

Retrieve a download URL and a one time valid token for an attachment.

> [!NOTE]
>
> External Documentation
>
> To learn more, visit the [SAP CRM documentation](https://hub.sap.com/api/API_CV_ATTACHMENT_SRV/tryout).

## Parameters

| Parameter | Description |
| - | - |
| Archive Document ID | The ID of the archived document that holds the attachment content. Can be obtained from `Get All Originals` action. |
| Harmonized Document Type | The harmonized document type of the attachment. Can be obtained from `Get All Originals` action. |
| Linked SAPObject Key | The key of the business object the attachment is linked to. |
| Logical Document | The ID of the logical document that holds the attachment. Can be obtained from `Get All Originals` action. |
| SAP Object Type | The SAP object type of the business object the attachment is linked to. |
| Select | Select the fields to return. For more information refer to the [System Query Option](https://help.sap.com/doc/5890d27be418427993fafa6722cdc03b/Cloud/en-US/OdataV2.pdf#page=68). |

## Example Output

```json theme={"dark"}
{
	"d": {
		"DocumentInfoRecordDocType": "str",
		"DocumentInfoRecordDocNumber": "string",
		"DocumentInfoRecordDocVersion": "st",
		"DocumentInfoRecordDocPart": "str",
		"LogicalDocument": "string",
		"ArchiveDocumentID": "string",
		"LinkedSAPObjectKey": "string",
		"BusinessObjectTypeName": "string",
		"FileSize": "string",
		"FileName": "string",
		"MimeType": "string",
		"CheckoutUser": "string",
		"CheckoutUserFullName": "string",
		"CreatedByUser": "string",
		"CreatedByUserFullName": "string",
		"CreationDateTime": "/Date(1492098664000)/",
		"LastChangedByUser": "string",
		"LastChangedByUserFullName": "string",
		"ChangedDateTime": "/Date(1492098664000)/",
		"StorageCategory": "string",
		"ArchiveLinkRepository": "st",
		"SAPObjectType": "string",
		"SAPObjectNodeType": "string",
		"HarmonizedDocumentType": "string",
		"AttachmentDeletionIsAllowed": true,
		"AttachmentRenameIsAllowed": true,
		"URLToUploadAttachment": "string",
		"URLToReadAttachment": "string",
		"OneTimeValidTokenForAttachment": "string"
	}
}
```
