S
Samva
S
Samva
DashboardAPISamva DocumentationQuickstart GuideAuthentication

API Reference

Email Management

Conversation Management

Configuration

Analytics & Operations

Get Download URLGet AttachmentList AttachmentsRemove AttachmentGet Thumbnail URL
OpenAPI Specification
API ReferenceAttachments

Get Thumbnail URL

GET
/attachments/:id/thumbnail-url

Authorization

apiKey
X-API-Key<token>

API key for authentication

In: header

Query Parameters

id*string
Formatuuid
expiresIn?integer

URL expiration time in seconds (default: 3600 = 1 hour)

Default3600
Range60 <= value <= 3600

Response 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"
  }
}

Remove Attachment

Previous Page

OpenAPI Specification

Complete OpenAPI 3.0 specification for the Samva API

curl -X GET "https://samva.app/api/v1/attachments/:id/thumbnail-url?id=497f6eca-6276-4993-bfeb-53cbbbba6f08"