All URIs are relative to https://api.mailslurp.com

MethodHTTP requestDescription
createTemplatePOST /templatesCreate a Template
deleteTemplateDELETE /templates/{templateId}Delete Template
getAllTemplatesGET /templates/paginatedGet all Templates in paginated format
getTemplateGET /templates/{templateId}Get Template
getTemplatesGET /templatesGet all Templates
updateTemplatePUT /templates/{templateId}Update a Template

TemplateDto createTemplate(CreateTemplateOptions)

Create a Template

Parameters

NameTypeDescriptionNotes
CreateTemplateOptionsCreateTemplateOptions

Return type

TemplateDto

Authorization

API_KEY

HTTP request headers

  • Content-Type: application/json
  • Accept: /

deleteTemplate(templateId)

Delete Template

Parameters

NameTypeDescriptionNotes
templateIdUUID[default to null]

Return type

null (empty response body)

Authorization

API_KEY

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

PageTemplateProjection getAllTemplates(page, size, sort, since, before)

Get all Templates in paginated format

Parameters

NameTypeDescriptionNotes
pageIntegerOptional page in list pagination[optional] [default to 0]
sizeIntegerOptional page size in list pagination[optional] [default to 20]
sortStringOptional createdAt sort direction ASC or DESC[optional] [default to ASC] [enum: ASC, DESC]
sinceDateFilter by created at after the given timestamp[optional] [default to null]
beforeDateFilter by created at before the given timestamp[optional] [default to null]

Return type

PageTemplateProjection

Authorization

API_KEY

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

TemplateDto getTemplate(templateId)

Get Template

Parameters

NameTypeDescriptionNotes
templateIdUUID[default to null]

Return type

TemplateDto

Authorization

API_KEY

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

List getTemplates()

Get all Templates

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

API_KEY

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

TemplateDto updateTemplate(templateId, CreateTemplateOptions)

Update a Template

Parameters

NameTypeDescriptionNotes
templateIdUUID[default to null]
CreateTemplateOptionsCreateTemplateOptions

Return type

TemplateDto

Authorization

API_KEY

HTTP request headers

  • Content-Type: application/json
  • Accept: /