메인 콘텐츠로 건너뛰기
POST
/
channels
/
templates
cURL
curl --request POST \
  --url https://api.pubrio.com/channels/templates \
  --header 'Content-Type: application/json' \
  --header 'pubrio-api-key: <api-key>' \
  --data '
{
  "profile_id": 123,
  "channel_template_name": "channel template",
  "channel_nodes": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "channel_types": [
    1,
    2
  ],
  "per_page": 25,
  "page": 1
}
'
{
  "data": {
    "pagination": {
      "page": 1,
      "per_page": 25,
      "total_entries": 4,
      "total_pages": 1,
      "is_timeout": false
    },
    "channel_templates": [
      {
        "channel_template_id": 1,
        "channel_template_identifier": "4f6f40cb-ed6d-4cca-99d8-616feef8de93",
        "channel_node_id": "93873c33-2635-4537-928c-6a4f3564164c",
        "channel_node_slug": "send_email",
        "channel_type_id": 1,
        "channel_type_slug": "email",
        "owner_email": "[email protected]",
        "owner_name": "Owner",
        "name": "email",
        "version_number": 1,
        "version_name": "version 1",
        "is_default": true,
        "is_personal": true,
        "created_at": "2025-07-29T09:07:11.969Z",
        "last_modified": "2025-07-29T09:07:11.969Z",
        "channel_template_versions": [
          {
            "channel_template_id": 1,
            "channel_template_identifier": "4f6f40cb-ed6d-4cca-99d8-616feef8de93",
            "channel_node_id": "93873c33-2635-4537-928c-6a4f3564164c",
            "channel_node_slug": "send_email",
            "channel_type_id": 1,
            "channel_type_slug": "email",
            "owner_email": "[email protected]",
            "owner_name": "Owner",
            "name": "email",
            "parameters": {
              "content": "<div>hello world</div>",
              "subject": "Hello World",
              "attachments": []
            },
            "version_number": 1,
            "version_name": "version 1",
            "default_values": null,
            "is_default": true,
            "is_personal": true,
            "created_at": "2025-07-29T09:07:11.969581",
            "last_modified": "2025-07-29T09:07:11.969581"
          }
        ]
      },
      "..."
    ]
  }
}

인증

pubrio-api-key
string
header
필수

API에서 수행하는 작업 및 해당 권한을 식별하는 고유한 API 토큰입니다. 이 토큰은 설정 섹션에서 생성할 수 있습니다.

본문

application/json
profile_id
integer
필수

요청을 수행하는 팀 식별자입니다. 이 ID는 조회 및 사용 크레딧 추적을 위해 특정 팀(작업 공간)과 연계됩니다.

자세한 내용은 팀 탭의 user details 엔드포인트를 참고하세요.

channel_template_name
string

검색 결과를 특정 채널 템플릿 이름으로 필터링합니다.

예시:

"channel template"

channel_nodes
string<uuid>[]

특정 채널 노드를 검색하기 위한 channel_node_id 목록.

channel_types
integer[]

특정 채널 유형을 검색하기 위한 channel_type_id 목록.

예시:
[1, 2]
per_page
integer

페이지당 반환할 검색 결과 수입니다. 결과 수를 제한하면 API 성능이 향상됩니다.

예시:

25

page
integer

조회할 데이터 페이지 번호입니다.

예시:

1

응답

관련 세부 정보가 포함된 성공적인 응답입니다.

data
object

응답 정보는 특정 API에 따라 다릅니다.