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
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
defaultLocalestring · 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
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
defaultLocalestring · 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
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
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
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
post
/workspaces/{workspaceId}/projects/channel-templates/create-preview

Last updated

Was this helpful?