Message Templates

circle-exclamation

List channeltemplates in workspace

get
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
projectIdstringRequired
Query parameters
metricsbooleanOptional

Include metrics in the response

Default: false
limitinteger · min: 1 · max: 100Optional

Limits the project of results to return

Default: 10
pageTokenstring · max: 8000Optional

Pagination token that keeps of track of the current position in the list

reversebooleanOptional

Order in which to retrieve the results

Default: false
Responses
chevron-right
200

OK

application/json
get
/workspaces/{workspaceId}/projects/{projectId}/channel-templates

Create channeltemplate

post
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
projectIdstringRequired
Query parameters
metricsbooleanOptional

Include metrics in the response

Default: false
Body
descriptionstringOptional
defaultLocaleall ofOptional
string · enumOptionalExample: enPossible values:
shortLinksobject · nullableOptional
Other propertiesanyOptional
Responses
post
/workspaces/{workspaceId}/projects/{projectId}/channel-templates

Get ChannelTemplate

get
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
projectIdstringRequired
channelTemplateIdstringRequired
Responses
chevron-right
200

OK

application/json
idstring · uuidRequired
projectIdstring · uuidRequired
statusstring · enumOptionalPossible values:
descriptionstringOptional
defaultLocalestring · enumOptionalExample: enPossible values:
createdAtstring · date-timeRequired
updatedAtstring · date-timeOptional
isCloneablebooleanOptional
editorIdstring · uuidOptional
editorTypestringOptional
publisherIdstring · uuidOptional

The ID of the user that last published this ChannelTemplate.

publisherTypestring · stringOptional
shortLinksobject · nullableOptional
clonedFromstring · uuid · nullableOptional

The ID of the template that this template was cloned from. This field is only present if this template was cloned from another template.

metricsobjectOptional

Metrics for this template.

get
/workspaces/{workspaceId}/projects/{projectId}/channel-templates/{channelTemplateId}

Delete ChannelTemplate

delete
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
projectIdstringRequired
channelTemplateIdstringRequired
Responses
delete
/workspaces/{workspaceId}/projects/{projectId}/channel-templates/{channelTemplateId}

No content

Update ChannelTemplate

patch
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
projectIdstringRequired
channelTemplateIdstringRequired
Body
defaultLocaleall of · nullableOptional
string · enumOptionalExample: enPossible values:
descriptionstringOptional
forceUpdatebooleanOptional

If true and template is already published, a new template will be created with the new parameters and activated.

statusstring · enum · nullableOptionalPossible values:
Other propertiesanyOptional
Responses
chevron-right
200

Updated

application/json
idstring · uuidRequired
projectIdstring · uuidRequired
statusstring · enumOptionalPossible values:
descriptionstringOptional
defaultLocalestring · enumOptionalExample: enPossible values:
createdAtstring · date-timeRequired
updatedAtstring · date-timeOptional
isCloneablebooleanOptional
editorIdstring · uuidOptional
editorTypestringOptional
publisherIdstring · uuidOptional

The ID of the user that last published this ChannelTemplate.

publisherTypestring · stringOptional
shortLinksobject · nullableOptional
clonedFromstring · uuid · nullableOptional

The ID of the template that this template was cloned from. This field is only present if this template was cloned from another template.

metricsobjectOptional

Metrics for this template.

patch
/workspaces/{workspaceId}/projects/{projectId}/channel-templates/{channelTemplateId}

Activate ChannelTemplate

put
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
projectIdstringRequired
channelTemplateIdstringRequired
Responses
chevron-right
200

Activated

No content

put
/workspaces/{workspaceId}/projects/{projectId}/channel-templates/{channelTemplateId}/activate

No content

Deactivate ChannelTemplate

put
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
projectIdstringRequired
channelTemplateIdstringRequired
Responses
chevron-right
200

Deactivated

No content

put
/workspaces/{workspaceId}/projects/{projectId}/channel-templates/{channelTemplateId}/deactivate

No content

Create ChannelTemplate Preview

post
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstringRequired
Body
platformstring · min: 1Optional
shortLinksobject · nullableOptional
contactIdstring · nullableOptional
localestring · locale-bcp47 · nullableOptional
Responses
chevron-right
200

OK

application/json
typestring · enumOptionalPossible values:
post
/workspaces/{workspaceId}/projects/channel-templates/create-preview

Last updated

Was this helpful?