S
Samva
S
Samva
DashboardAPISamva DocumentationQuickstart GuideAuthentication

API Reference

Email Management

Conversation Management

Configuration

Approve TemplateCreate TemplateGet TemplateList TemplatesRemove TemplateRender TemplateUpdate Template

Analytics & Operations

OpenAPI Specification
API ReferenceTemplates

Render Template

POST
/templates/:id/render

Authorization

apiKey
X-API-Key<token>

API key for authentication

In: header

Request Body

application/json

id*string
Formatuuid
data*

Response Body

application/json

curl -X POST "https://samva.app/api/v1/templates/:id/render" \  -H "Content-Type: application/json" \  -d '{    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "data": {      "channel": "sms"    }  }'
{
  "channel": "string",
  "rendered": {
    "subject": "string",
    "html": "string",
    "text": "string"
  },
  "missingVariables": [
    "string"
  ],
  "errors": [
    "string"
  ]
}

Remove Template

Previous Page

Update Template

Next Page

curl -X POST "https://samva.app/api/v1/templates/:id/render" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "data": {
      "channel": "sms"
    }
  }'