Pobierz szablony wiadomości
GET
/api/v3/Templates
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Templates?offset=0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Templates?offset=0' \ --header 'Authorization: Bearer <token>'Zwraca stronicowaną listę szablonów wiadomości e-mail.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”offset
integer format: int32
limit
integer format: int32
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
object
list
Array<object>
object
id
integer format: int64
displayName
string
topic
string
content
string
templateType
string
pageNumber
integer format: int32
total
integer format: int32
object
list
Array<object>
object
id
integer format: int64
displayName
string
topic
string
content
string
templateType
string
pageNumber
integer format: int32
total
integer format: int32
Example
{ "list": [ { "templateType": "CSV" } ]}object
list
Array<object>
object
id
integer format: int64
displayName
string
topic
string
content
string
templateType
string
pageNumber
integer format: int32
total
integer format: int32
Example
{ "list": [ { "templateType": "CSV" } ]}Bad Request
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Server Error

