メインコンテンツへスキップ
GET
/
channels
/
types
/
templates
チャネルテンプレートタイプ一覧
curl --request GET \
  --url https://api.pubrio.com/channels/types/templates \
  --header 'pubrio-api-key: <api-key>'
import requests

url = "https://api.pubrio.com/channels/types/templates"

headers = {"pubrio-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'pubrio-api-key': '<api-key>'}};

fetch('https://api.pubrio.com/channels/types/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pubrio.com/channels/types/templates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"pubrio-api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.pubrio.com/channels/types/templates"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("pubrio-api-key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.pubrio.com/channels/types/templates")
.header("pubrio-api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.pubrio.com/channels/types/templates")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["pubrio-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "data": [
    {
      "channel_type_id": 1,
      "slug": "email",
      "channel_type_identifier": "db3ecea8-b838-4cfa-8aa1-c358223b0060",
      "logo_url": "https://buckets.pubrio.com/technology-logo/tdurnBxI97MV1hr2L1QaYgt.jpg",
      "node_type": "action",
      "channel_nodes": [
        {
          "channel_node_id": "93873c33-2635-4537-928c-6a4f3564164c",
          "channel_node_identifier": "30896b66-7fc7-42bf-b5fe-ce7e1fdb9e30",
          "channel_type_id": 1,
          "slug": "send_email",
          "parameter_properties": [
            {
              "name": "Subject",
              "slug": "subject",
              "hints": "My subject line",
              "field_type": "string",
              "max_length": 1000,
              "min_length": 1,
              "description": "Subject line of the email",
              "is_required": true,
              "display_type": "string",
              "supported_tools": [
                "variables"
              ],
              "is_template_field": true,
              "is_verify_required": false,
              "is_display_as_snippet": true,
              "is_return_in_plain_text": true
            },
            {
              "name": "Content",
              "slug": "content",
              "hints": "Write your email content",
              "field_type": "string",
              "max_length": 250000,
              "min_length": 0,
              "description": "HTML text message of email",
              "is_required": true,
              "display_type": "email_editor",
              "supported_tools": [
                "formatting_options",
                "variables",
                "insert_link",
                "attachments",
                "insert_photo",
                "code_mode",
                {
                  "slug": "insert_signature",
                  "syntax": "{{insert_signature.signature_html}}"
                }
              ],
              "is_template_field": true,
              "is_verify_required": false,
              "is_attachment_allowed": true,
              "is_display_as_snippet": false,
              "is_return_in_plain_text": false
            },
            {
              "name": "Attachments",
              "slug": "attachments",
              "hints": null,
              "field_type": "array",
              "max_length": 25,
              "min_length": 0,
              "description": null,
              "is_required": false,
              "display_type": null,
              "is_template_field": true,
              "is_verify_required": false,
              "is_attachment_allowed": true,
              "is_hide_from_control_panel": true
            }
          ],
          "is_template_available": true,
          "logo_url": "https://buckets.pubrio.com/technology-logo/tdurnBxI97MV1hr2L1QaYgt.jpg",
          "node_type": "action",
          "input_properties": [
            {
              "name": "To email addresses [multiple comma-separated]",
              "slug": "to_email_addresses",
              "hints": "[email protected]",
              "field_type": "array",
              "max_length": 1000,
              "min_length": 1,
              "description": "Email address of the recipient",
              "is_required": true,
              "display_type": "email_input",
              "is_verify_required": false
            }
          ],
          "name": "Send Email",
          "description": "The Send Email node sends emails using the connected email provider."
        }
      ],
      "name": "Email",
      "description": "Sends automated emails based on triggers or events."
    },
    "..."
  ]
}
{
"code": 40001,
"message": "エラーの背景やフィールド単位の情報などを含む追加データオブジェクトです。",
"details": {}
}
{
"error": "クライアントはしばらく待ってから再試行することが推奨されます。"
}
{
"error": "レスポンスボディには `error` フィールドが含まれ、問題の概要がメッセージとして記載されます。"
}

承認

pubrio-api-key
string
header
必須

API で実行する操作内容と、その操作に付与された権限を識別するための一意の API トークンです。このトークンはダッシュボードの 設定 画面から発行できます。

レスポンス

関連する詳細情報を含む成功レスポンスです。

data
object[] | null

エンドポイント固有のレスポンスを配列形式で格納する汎用コンテナです。要素の構造は呼び出した API ごとに異なります。