Skip to main content
POST
/
channels
/
templates
/
create
cURL
curl --request POST \
  --url https://api.pubrio.com/channels/templates/create \
  --header 'Content-Type: application/json' \
  --header 'pubrio-api-key: <api-key>' \
  --data '{
  "channel_template_name": "channel template",
  "version_name": "default",
  "channel_node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "parameters": {},
  "profile_id": 123
}'
{
  "data": {
    "channel_template_id": 248,
    "channel_template_identifier": "4c717a78-26e9-49eb-ab2e-e1ce0755674a",
    "created_at": "2025-08-07T17:22:11.344Z",
    "version_number": 1,
    "is_default": true,
    "name": "Email Template",
    "channel_node_id": "93873c33-2635-4537-928c-6a4f3564164c",
    "parameters": {
      "content": "<div>hello world</div>",
      "subject": "hello world"
    },
    "version_name": "Default"
  }
}

Authorizations

pubrio-api-key
string
header
required

A unique API token that represents the actions you perform through the API and the corresponding permissions and operations. You can create it through the Settings section.

Body

application/json
channel_template_name
string
required

Filter search results to include a specific channel template name.

Example:

"channel template"

channel_node_id
string<uuid>
required

A unique identifier for the channel node operation.

parameters
object
required

The parameter information depends on the channel node requirements.

profile_id
integer
required

An identifier for the user profile (workspace) making the request. This ID helps in associating the lookup with a specific user, allowing for data retrieval and credit tracking.

Check out user details endpoints under the Profile tab for more information.

version_name
string

Version names provide a way to identify the history of changes.

Example:

"default"

Response

Successful response containing list of channel template details.

data
object | null

Response info depends on specific endpoint.