API ReferenceAttachments
Get Thumbnail URL
Authorization
apiKey X-API-Key<token>
API key for authentication
In: header
Query Parameters
id*string
Format
uuidexpiresIn?integer
URL expiration time in seconds (default: 3600 = 1 hour)
Default
3600Range
60 <= value <= 3600Response Body
application/json
curl -X GET "https://samva.app/api/v1/attachments/:id/thumbnail-url?id=497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"url": "http://example.com",
"expiresAt": "2019-08-24T14:15:22Z",
"attachment": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"messageId": "8540d774-4863-4d2b-b788-4ecb19412e85",
"organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
"filename": "string",
"contentType": "string",
"size": -2147483648,
"s3Key": "string",
"s3Bucket": "string",
"thumbnailS3Key": "string",
"contentId": "string",
"isInline": true,
"createdAt": "2019-08-24T14:15:22Z"
}
}