Skip to main content
POST
/
channels
/
templates
/
create_version
cURL
curl --request POST \
  --url https://api.pubrio.com/channels/templates/create_version \
  --header 'Content-Type: application/json' \
  --header 'pubrio-api-key: <api-key>' \
  --data '{
  "channel_template_identifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "channel_template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "version_name": "default",
  "is_default": true,
  "parameters": {},
  "profile_id": 123
}'
{
  "data": {
    "channel_template_id": 249,
    "channel_template_identifier": "4c717a78-26e9-49eb-ab2e-e1ce0755674a",
    "created_at": "2025-08-07T17:22:11.344Z",
    "version_number": 2,
    "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 2"
  }
}

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_identifier
string<uuid>
required

The identifier for the channel template version group.

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.

channel_template_id
string<uuid>

A unique identifier for the channel template operation.

version_name
string

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

Example:

"default"

is_default
boolean

When enabled, execution will set this to true for the current record and false for all other linked record groups affected.

parameters
object

The parameter information depends on the channel node requirements.

Response

Successful response containing list of channel template details.

data
object | null

Response info depends on specific endpoint.