Retrieve attachment
Use this method to retrieve the details of an attachment.
To retrieve the details of an attachment you need its attachmentId. Our gateway returned the attachmentId in the response of the method that you used to upload the attachment.
Our gateway returns information about the attachment, including its upload status and the entity that the attachment is linked to. Our gateway doesn't return the file that you uploaded.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
attachmentId
Unique identifier of the attachment
Response
Successful request. Returns the attachment.
attachmentId
Unique identifier that our gateway assigned to the attachment.
type
Type of attachment.
uploadStatus
Upload status of the attachment. The value is one of the following:
- `pending` - We have not yet uploaded the attachment.
- `accepted` - We have uploaded the attachment.
- `rejected` - We rejected the attachment.
Allowed values:
fileName
Name of the file.
contentType
Content type of the file.
entity
Object that contains information about the entity that the attachment is linked to.
createdDate
Date and time that we received your request to upload the attachment.
lastModifiedDate
Date and time the attachment was last modified.
description
Short description of the attachment.
metadata
Object that you can send to include custom metadata in the request.