# 레이아웃 상세 조회

## Request

## 브랜드 별 등록된 레이아웃 상세 내용을 조회합니다.<br>

> 브랜드 별 등록된 레이아웃 상세 내용을 조회합니다.  \
> \
> &#x20; \+ \*\*계정 권한: 대행사\*\*  \
> &#x20; \+ \*\*브랜드 권한: 운영자\*\*<br>

```json
{"openapi":"3.0.0","info":{"title":"RCS Biz Center API 규격","version":"1.1.12"},"servers":[{"description":"RCS Biz Center API for Staging","url":"https://api-qa.rcsbizcenter.com/api/1.1"},{"description":"RCS Biz Center API for Production","url":"https://api.rcsbizcenter.com/api/1.1"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"인증방식은 JWT인증을 사용합니다. 토큰의 갱신은 없으며 토큰 만료 시 항상 재발급 받아야 합니다.\n"}},"parameters":{"BrandKey":{"name":"X-RCS-Brandkey","in":"header","schema":{"type":"string","maxLength":18},"description":"maxLength: 18 - RCS Biz Center에서 브랜드 등록 시 자동 생성되는 Key 입니다.  \n\n대행사가 해당 브랜드에 대한 권한 여부를 판단하는데 사용됩니다.\n따라서, 대행사 계정으로 브랜드 내 정보를 조회/등록/수정 API 연동 시 Header에 설정되어야 합니다.\n"},"BrandId":{"name":"brandId","in":"path","schema":{"type":"string","maxLength":13},"required":true,"description":"maxLength: 13 - 브랜드 내 정보 접근시 사용되는 브랜드ID Path Parameter 입니다.\n"},"LayoutId":{"name":"layoutId","in":"path","schema":{"type":"string"},"description":"레이아웃ID 입니다.","required":true}}},"paths":{"/brand/{brandId}/layout/{layoutId}":{"get":{"summary":"브랜드 별 등록된 레이아웃 상세 내용을 조회합니다.\n","description":"브랜드 별 등록된 레이아웃 상세 내용을 조회합니다.  \n\n  + **계정 권한: 대행사**  \n  + **브랜드 권한: 운영자**\n","parameters":[{"$ref":"#/components/parameters/BrandKey"},{"$ref":"#/components/parameters/BrandId"},{"$ref":"#/components/parameters/LayoutId"}],"responses":{"200":{"description":"페이지 내 Response 섹션 참조"}}}}}}
```

## Response

<table data-full-width="true"><thead><tr><th width="147">필드명</th><th width="141">타입</th><th width="68" align="center">길이</th><th width="108" align="center">필수여부</th><th width="119">기본값</th><th>설명</th></tr></thead><tbody><tr><td><a href="#result-array-less-than-object-greater-than"><mark style="color:blue;"><strong><code>result</code></strong></mark></a></td><td>array&#x3C;object></td><td align="center"></td><td align="center">O</td><td></td><td>레이아웃 상세 정보 입니다.</td></tr><tr><td><strong><code>code</code></strong></td><td>string</td><td align="center">5</td><td align="center">O</td><td>20000000</td><td></td></tr><tr><td><strong><code>status</code></strong></td><td>integer</td><td align="center">3</td><td align="center">O</td><td>200</td><td></td></tr><tr><td><strong><code>desc</code></strong></td><td>string</td><td align="center"></td><td align="center">O</td><td></td><td></td></tr></tbody></table>

### <mark style="color:blue;">result</mark> - array\<object>

<table data-full-width="true"><thead><tr><th width="205">필드명</th><th width="137">타입</th><th width="70" align="center">길이</th><th width="96" align="center">필수여부</th><th width="139">기본값</th><th>설명</th></tr></thead><tbody><tr><td><strong><code>layoutId</code></strong></td><td>string</td><td align="center">40</td><td align="center"></td><td></td><td>샘플 레이아웃 상세 정보 입니다.</td></tr><tr><td><strong><code>layoutName</code></strong></td><td>string</td><td align="center">40</td><td align="center"></td><td></td><td>샘플 레이아웃 이름 입니다.</td></tr><tr><td><strong><code>productCode</code></strong></td><td>string</td><td align="center">20</td><td align="center"></td><td></td><td>샘플 레이아웃의 메시지 상품 코드 입니다.</td></tr><tr><td><strong><code>status</code></strong></td><td>string</td><td align="center"></td><td align="center"></td><td></td><td><p>샘플 레이아웃의 상태를 표시합니다.</p><ul><li>ready : 사용</li><li>pause : 사용중지</li></ul></td></tr><tr><td><strong><code>registerId</code></strong></td><td>string</td><td align="center">20</td><td align="center"></td><td></td><td>등록자 ID 입니다.</td></tr><tr><td><strong><code>registerDate</code></strong></td><td>string</td><td align="center"></td><td align="center"></td><td></td><td>등록일시 입니다.</td></tr><tr><td><strong><code>updateDate</code></strong></td><td>string</td><td align="center"></td><td align="center"></td><td></td><td>수정일시 입니다.</td></tr><tr><td><strong><code>approvalResult</code></strong></td><td>string</td><td align="center"></td><td align="center"></td><td></td><td><p>레이아웃 등록 상태입니다. 레이아웃은 운영자 검수 없이 자동 등록됩니다.</p><ul><li>등록완료 : 이통3사에 정상 등록된 상태입니다.</li><li>저장 : RBC 웹에서 저장만 했을 경우 상태이며 별도 등록요청을 해야 합니다.</li><li>처리중 : 이통 3사 등록 중 에러로 인해 최종 완료가 되지 않은 상태로 수정이나 삭제가 불가능한 상태입니다.</li></ul></td></tr><tr><td><strong><code>spec</code></strong></td><td>string</td><td align="center"></td><td align="center"></td><td>openrichcard</td><td>레이아웃 구조가 리치카드인지 오픈리치카드인지 구분합니다. 샘플 레이아웃은 오픈리치카드로 구성되어 있습니다.</td></tr><tr><td><strong><code>cardType</code></strong></td><td>string</td><td align="center">64</td><td align="center"></td><td></td><td><p>카드 종류를 구분합니다.<br>레이아웃에 표시되는 카드 타입은 다음 두 가지로 제한됩니다.</p><ul><li>format : 이통사 제공 공통포맷의 카드 타입입니다.</li><li>formatBr : 사용자가 등록한 레이아웃의 카드 타입입니다.</li></ul></td></tr><tr><td><strong><code>buttonColor</code></strong></td><td>string</td><td align="center"></td><td align="center"></td><td></td><td>버튼에 지정된 컬러 값을 표시합니다. 지정된 경우 컬러 Hex 값(예,'#FFFFFF')이 표시되며, 미지정 시 빈값 입니다.</td></tr><tr><td><a href="#headercomposition-bodycomposition-footercomposition-array-less-than-object-greater-than"><mark style="color:blue;"><strong><code>headerComposition</code></strong></mark></a></td><td>array&#x3C;object></td><td align="center"></td><td align="center"></td><td></td><td>카드 내의 최상위 영역으로 1개의 컴포넌트를 지정할 수 있습니다. 컴포넌트 중 headerYn = 'Y' 인 컴포넌트만 등록이 가능합니다.</td></tr><tr><td><a href="#headercomposition-bodycomposition-footercomposition-array-less-than-object-greater-than"><mark style="color:blue;"><strong><code>bodyComposition</code></strong></mark></a></td><td>array&#x3C;object></td><td align="center"></td><td align="center"></td><td></td><td><p>카드 내의 중간 영역으로 메시지 상품에서 지정한 개수의 컴포넌트를 지정할 수 있습니다.<br>컴포넌트 중 bodyYn = 'Y' 인 컴포넌트만 등록이 가능합니다.<br>예를 들어 LMS는 최대 6개의 컴포넌트를 지정할 수 있으며, 최대 개수 범위 내에서 각 영역별 배분할 수 있습니다.</p><ul><li>Header 1개 지정 시 body 최대 5개</li><li>body만 지정 시 최대 6개</li></ul></td></tr><tr><td><a href="#headercomposition-bodycomposition-footercomposition-array-less-than-object-greater-than"><mark style="color:blue;"><strong><code>footerComposition</code></strong></mark></a></td><td>array&#x3C;object></td><td align="center"></td><td align="center"></td><td></td><td>카드 내의 최상위 영역으로 1개의 컴포넌트를 지정할 수 있습니다. 컴포넌트 중 footerYn = 'Y' 인 컴포넌트만 등록이 가능합니다. 현재는 footer에 사용자가 직접 지정하는 컴포넌트는 없습니다.</td></tr><tr><td><strong><code>formattedString</code></strong></td><td>object</td><td align="center"></td><td align="center"></td><td></td><td>샘플 레이아웃을 구성한 openrichcard 메시지 구조 정보 입니다. 레이아웃 등록/수정 시에는 컴포넌트를 활용하므로 formattedString 은 참조 데이터로 제공됩니다.</td></tr><tr><td><a href="#params-array-less-than-object-greater-than"><mark style="color:blue;"><strong><code>params</code></strong></mark></a></td><td>array&#x3C;object></td><td align="center"></td><td align="center"></td><td></td><td>템플릿의 개별 파라미터를 검수하기 위한 대상 파라미터 정보 객체입니다. 크기 관련 필드는 &#x3C;=0 인 경우 체크하지 않습니다.</td></tr><tr><td><a href="#guideinfo-object"><mark style="color:blue;"><strong><code>guideInfo</code></strong></mark></a></td><td>object</td><td align="center"></td><td align="center"></td><td></td><td>템플릿 작성에 필요한 가이드 정보를 제공하기 위하여 양식 정의 시 포함되는 정보입니다. 리치카드의 경우 messagebaseInfo에서 제공됩니다.</td></tr><tr><td><a href="#policyinfo"><mark style="color:blue;"><strong><code>policyInfo</code></strong></mark></a></td><td>object</td><td align="center"></td><td align="center"></td><td></td><td>리치카드, 오픈리치카드에 포함된 content(title, description, media, button) 에 대한 검증 정책 저장을 위한 객체입니다.</td></tr></tbody></table>

{% hint style="info" %}
GSMA RCC.07-v11.0 참조\
<https://www.gsma.com/solutions-and-impact/technologies/networks/wp-content/uploads/2019/10/RCC.07-v11.0.pdf>
{% endhint %}

{% hint style="info" %}
TTAK.KO-06.0410/R7 참조

<https://committee.tta.or.kr/data/standard_view.jsp?secondDepthCode=PG1105&firstDepthCode=TC011&pk_num=TTAK.KO-06.0410/R7&commit_code=PG1105>
{% endhint %}

### <mark style="color:blue;">headerComposition, bodyComposition, footerComposition</mark> - array\<object>

<table data-full-width="true"><thead><tr><th width="147">필드명</th><th width="141">타입</th><th width="68" align="center">길이</th><th width="108" align="center">필수여부</th><th width="119">기본값</th><th>설명</th></tr></thead><tbody><tr><td><strong><code>index</code></strong></td><td>integer</td><td align="center"></td><td align="center"></td><td></td><td>레이아웃 내 컴포넌트의 순번을 표시합니다. 등록 시에는 index를 지정하지 않으며, 배열 내 순서를 기준으로 처리됩니다.</td></tr><tr><td><strong><code>componentId</code></strong></td><td>string</td><td align="center">40</td><td align="center">O</td><td></td><td>지정할 컴포넌트 ID 입니다.</td></tr><tr><td><a href="#options-object-1"><mark style="color:blue;"><strong>options</strong></mark></a></td><td>object</td><td align="center"></td><td align="center"></td><td></td><td>레이아웃 사용 시 컴포넌트에 적용될 수 있는 옵션입니다. 옵션 지정이 가능한 경우 표기됩니다.</td></tr></tbody></table>

### <mark style="color:blue;">options</mark> - object(0)

<table data-full-width="true"><thead><tr><th width="170">필드명</th><th width="141">타입</th><th width="74" align="center">길이</th><th width="108" align="center">필수여부</th><th width="90">기본값</th><th>설명</th></tr></thead><tbody><tr><td><strong><code>leftAlign</code></strong></td><td>string</td><td align="center"></td><td align="center"></td><td>left</td><td><p>좌측 컬럼(열) 전체의 글자 정렬 위치를 설정합니다.</p><ul><li>left : 좌측 정렬</li><li>right : 우측 정렬</li><li>center : 중앙 정렬</li></ul></td></tr><tr><td><strong><code>rightAlign</code></strong></td><td>string</td><td align="center"></td><td align="center"></td><td>right</td><td><p>우측 컬럼(열) 전체의 글자 정렬 위치를 설정합니다.</p><ul><li>left : 좌측 정렬</li><li>right : 우측 정렬</li><li>center : 중앙 정렬</li></ul></td></tr><tr><td><strong><code>leftTextStyle</code></strong></td><td>string</td><td align="center"></td><td align="center"></td><td>normal</td><td><p>좌측 컬럼(열)에 입력되는 글자 스타일을 지정합니다.</p><ul><li>normal : 기본 스타일</li><li>bold : bold 스타일 적용</li></ul></td></tr><tr><td><strong><code>rightTextStyle</code></strong></td><td>string</td><td align="center"></td><td align="center"></td><td>normal</td><td><p>우측 컬럼(열)에 입력되는 글자 스타일을 지정합니다.</p><ul><li>normal : 기본 스타일</li><li>bold : bold 스타일 적용</li></ul></td></tr><tr><td><strong><code>maxCount</code></strong></td><td>integer</td><td align="center"></td><td align="center"></td><td>5</td><td><p>테이블의 행 개수를 지정합니다. 정의된 숫자 이외에는 지정할 수 없습니다.</p><ul><li>5 : 5행</li><li>10 : 10행</li></ul></td></tr></tbody></table>

{% hint style="info" %}
Table / StyleTable등 테이블 컴포넌트의 옵션 정보 객체 입니다.
{% endhint %}

### <mark style="color:blue;">options</mark> - object(1)

<table data-full-width="true"><thead><tr><th width="170">필드명</th><th width="141">타입</th><th width="68" align="center">길이</th><th width="108" align="center">필수여부</th><th width="117">기본값</th><th>설명</th></tr></thead><tbody><tr><td><strong><code>color</code></strong></td><td>string</td><td align="center"></td><td align="center"></td><td></td><td>버튼의 색상 설정 옵션입니다. 버튼의 색상은 브랜드 정보에서 지정한 templateColor 컬러 Hex 값과 동일해야 합니다. 빈값 지정 시 기본 버튼 컬러로 적용되며, 지정된 컬러 Hex 값이 templateColor의 값과 다르면 templateColor로 강제 설정됩니다.</td></tr></tbody></table>

{% hint style="info" %}
VButton / HButton 등 버튼 컴포넌트의 옵션 정보 객체 입니다.
{% endhint %}

### <mark style="color:blue;">options</mark> - object(2)

<table data-full-width="true"><thead><tr><th width="170">필드명</th><th width="141">타입</th><th width="68" align="center">길이</th><th width="108" align="center">필수여부</th><th width="117">기본값</th><th>설명</th></tr></thead><tbody><tr><td><strong><code>ctlrViewAll</code></strong></td><td>boolean</td><td align="center"></td><td align="center"></td><td>true</td><td><p></p><p>컴포넌트 단위의 viewAll(모두보기) 활성화 여부를  지정합니다.</p><ul><li>true: 컴포넌트 viewAll(모두보기) 활성화</li><li>false: 컴포넌트 viewAll(모두보기) 비활성화</li></ul></td></tr><tr><td>viewAll</td><td>integer</td><td align="center"></td><td align="center"></td><td>150</td><td>viewAll(모두보기) 접힘 글자수 기준값을 지정합니다.<br>유효값: 150(default), 300<br>유효값 이외 수치가 입력되는 경우 defualt로 처리됩니다.</td></tr></tbody></table>

{% hint style="info" %}
viewAll(모두보기) 설정을 포함하는 컴포넌트의 옵션 정보 객체 입니다.
{% endhint %}

### <mark style="color:blue;">params</mark> - array\<object>

<table data-full-width="true"><thead><tr><th width="170">필드명</th><th width="141">타입</th><th width="68" align="center">길이</th><th width="108" align="center">필수여부</th><th width="117">기본값</th><th>설명</th></tr></thead><tbody><tr><td><strong><code>param</code></strong></td><td>string</td><td align="center">20</td><td align="center">O</td><td></td><td>검수 파라미터명. (영문, 한글, 숫자, '_' 만 사용)</td></tr><tr><td><strong><code>isMandatory</code></strong></td><td>boolean</td><td align="center"></td><td align="center"></td><td>false</td><td>필수여부. true인 경우 중계사에서 메시지 전송 요청 시 해당 필드가 없는 경우 MaaP FE에서 실패처리한다. false인 경우는 해당 필드가 없는 경우도 메시지 전송이 되도록 MaaP FE에서 적절하게 처리한다.</td></tr><tr><td><strong><code>type</code></strong></td><td>string</td><td align="center"></td><td align="center"></td><td></td><td><p>기술검사타입을 지정합니다.</p><ul><li>string: 문자열 검사 대상</li><li>file: 파일 검사 대상</li><li>button: formattedString 내 button 제어 대상</li><li>layout: formattedString 내 button외 제어 대상</li></ul></td></tr><tr><td><strong><code>contentType</code></strong></td><td>string</td><td align="center"></td><td align="center"></td><td></td><td><p>컨텐츠 유형, PolicyInfo 정책을 검사하는데 사용됩니다.</p><ul><li>"title"</li><li>"description"</li><li>"maapfile"</li><li>"cell"</li><li>"displayText"</li><li>"url"</li><li>"etc"</li><li>"buttonName"</li><li>"visibility"</li></ul></td></tr><tr><td><strong><code>strSize</code></strong></td><td>integer</td><td align="center"></td><td align="center"></td><td></td><td>글자 최대 크기, type이 string인 경우</td></tr><tr><td><strong><code>fileSize</code></strong></td><td>integer</td><td align="center"></td><td align="center"></td><td></td><td>파일 최대 크기, type이 file인 경우.</td></tr><tr><td><strong><code>strRegx</code></strong></td><td>string</td><td align="center"></td><td align="center">65535</td><td></td><td><p>java regular expression, null 인경우 사용하지 않음. 예)</p><ol><li>숫자만 : '^[0-9]*$'</li><li>영문자만 : '[a-zA-Z]*$'</li><li>한글만 : '^[가-힣]*$'</li><li>영어 &#x26; 숫자만 : '^[a-zA-Z0-9]*$'</li><li>E-Mail : '^[a-zA-Z0-9]+@[a-zA-Z0-9]+$'</li><li>휴대폰 : '^01(?:0|1|[6-9])-(?:\d{3}|\d{4})-\d{4}$'</li><li>일반전화 : '^\d{2,3}-\d{3,4}-\d{4}$'</li><li>주민등록번호 : '\d{6}-[1-4]\d{6}'</li><li>IP 주소 : '([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3})'</li></ol></td></tr><tr><td><strong><code>verification</code></strong></td><td>array&#x3C;string></td><td align="center"></td><td align="center"></td><td></td><td>문장 패턴 정의 (SKT향) "안녕하세요", "님 ", "원입니다."</td></tr><tr><td><strong><code>imageWidth</code></strong></td><td>integer</td><td align="center"></td><td align="center"></td><td></td><td>이미지 해상도 가로 크기 (지정된 크기의 이미지를 등록해야 정상 발송 가능)</td></tr><tr><td><strong><code>imageHeight</code></strong></td><td>integer</td><td align="center"></td><td align="center"></td><td></td><td>이미지 해상도 세로 크기 (지정된 크기의 이미지를 등록해야 정상 발송 가능)</td></tr><tr><td><strong><code>couplingId</code></strong></td><td>string</td><td align="center"></td><td align="center">20</td><td></td><td>파라미터 간 함께 처리되어야 하는 경우 동일한 값을 부여 즉, 같은 값의 couplingId가 지정되는 경우 지정된 파라미터는 모두 조건을 만족해야 정상 발송 처리됨</td></tr><tr><td><strong><code>inputText</code></strong></td><td>string</td><td align="center"></td><td align="center">65535</td><td></td><td>템플릿 등록시 사용자 입력한 원본 문장(고정부 &#x26; 변수부)을 제공합니다. 단, cell방식의 타이틀 선택형은 제공되지 않습니다.</td></tr><tr><td><strong><code>relationId</code></strong></td><td>string</td><td align="center"></td><td align="center"></td><td></td><td>param과 관계가 있는 param을 의미합니다. 주로 현재 param이 입력되지 않을 경우 메시지 상에 노출여부와 연관된 visibility에 지정된 param을 표시합니다. 메시지 발송시 이통MaaP FE에서 핸들링하는 것으로 템플릿 등록이나 메시지 발송 param과는 무관하며, 참조 용도로 제공됩니다.</td></tr></tbody></table>

### <mark style="color:blue;">guideInfo</mark> - object

<table data-full-width="true"><thead><tr><th width="199">필드명</th><th width="141">타입</th><th width="68" align="center">길이</th><th width="108" align="center">필수여부</th><th width="117">기본값</th><th>설명</th></tr></thead><tbody><tr><td><strong><code>maxLineCount</code></strong></td><td>integer</td><td align="center"></td><td align="center"></td><td></td><td>max 라인수</td></tr><tr><td><strong><code>maxDisplayText</code></strong></td><td>integer</td><td align="center"></td><td align="center"></td><td></td><td>버튼명 글자수</td></tr><tr><td><strong><code>maxDescriptionSize</code></strong></td><td>integer</td><td align="center"></td><td align="center"></td><td></td><td>카드별 max 본문 글자수</td></tr><tr><td><strong><code>imageWidth</code></strong></td><td>integer</td><td align="center"></td><td align="center"></td><td></td><td>이미지 권고 가로 사이즈 단위는 Pixel</td></tr><tr><td><strong><code>imageHeight</code></strong></td><td>integer</td><td align="center"></td><td align="center"></td><td></td><td>이미지 권고 세로 사이즈 단위는 Pixel</td></tr><tr><td><strong><code>detailInfo</code></strong></td><td>object</td><td align="center"></td><td align="center"></td><td></td><td>리치카드 메시지 상품별 1라인당 글자수, 타이틀 라인수 및 버튼 수에 따라 메시지가 잘려 보이지 않는 최대 라인수 정보를 제공합니다. 메시지가 수신된 단말에 따라 상이할 수 있으나 리치카드 RCS메시지 발송 시 권장사항으로 참고하시기 바랍니다. LMS와 MMS 12종 총 13종에 대해 개별 제공됩니다.</td></tr></tbody></table>

### <mark style="color:blue;">policyInfo</mark>

<table data-full-width="true"><thead><tr><th width="199">필드명</th><th width="141">타입</th><th width="68" align="center">길이</th><th width="108" align="center">필수여부</th><th width="117">기본값</th><th>설명</th></tr></thead><tbody><tr><td><strong><code>buttonsAllowed</code></strong></td><td>boolean</td><td align="center"></td><td align="center"></td><td></td><td>MaaP FE /message의 buttons 사용 유무 true : buttons 필드 사용 false : buttons 에 값이 들어오면 실패 처리</td></tr><tr><td><strong><code>adHeaderAllowed</code></strong></td><td>boolean</td><td align="center"></td><td align="center"></td><td></td><td>header에 광고 인입 허가 여부 true : 광고인입 허용(MaaP FE /message의 header 체크안함) false : 광고인입 불허(MaaP FE /message이 header가 1(광고) 이면 실패 처리)</td></tr><tr><td><strong><code>adBodyAllowed</code></strong></td><td>boolean</td><td align="center"></td><td align="center"></td><td></td><td>광고 문구 허용 여부 true : 본문 광고 문구를 체크하지 않음 false : 본문이 "(광고)"로 시작하면 실패 처리</td></tr><tr><td><strong><code>cardCount</code></strong></td><td>integer</td><td align="center"></td><td align="center"></td><td></td><td>카드 개수</td></tr><tr><td><strong><code>maxTitleSize</code></strong></td><td>integer</td><td align="center"></td><td align="center"></td><td></td><td>개별 타이틀 글자 최대 수. 사용하지 않음.</td></tr><tr><td><strong><code>maxButtonCount</code></strong></td><td>integer</td><td align="center"></td><td align="center"></td><td></td><td>버튼 최대 개수</td></tr><tr><td><strong><code>maxDescriptionSize</code></strong></td><td>integer</td><td align="center"></td><td align="center"></td><td></td><td>RichCard인 경우(Carousel포함) Description들의 글자수 총합. OpenRichCard인 경우 변수부 글자수 총합. &#x3C;=0 인 경우 사용하지 않음.</td></tr><tr><td><strong><code>maxMediaSize</code></strong></td><td>integer</td><td align="center"></td><td align="center"></td><td></td><td>Byte단위 미디어 크기 총합의 최대 크기, &#x3C;=0 인 경우 사용하지 않음.</td></tr></tbody></table>

### ❖ response body sample

{% tabs %}
{% tab title="200" %}

```
{
    "code": "20000000",
    "desc": null,
    "result": [
        {
            "layoutId": "CLLBR.0a81DDlZjz-9OYjpEElL0HDIB079ac1",
            "layoutName": "2024x06x26x10x11x22",
            "productCode": "lms",
            "sampleLayoutId": null,
            "spec": "openrichcard",
            "buttonColor": null,
            "formattedString": {
                "RCSMessage": {
                    "openrichcardMessage": {
                        "scaleAllowed": true,
                        "layout": {
                            "orientation": "vertical",
                            "widget": "LinearLayout",
                            "children": [
                                {
                                    "orientation": "vertical",
                                    "widget": "LinearLayout",
                                    "visibility": "{{mTitleVsblty}}",
                                    "children": [
                                        {
                                            "orientation": "horizontal",
                                            "widget": "LinearLayout",
                                            "children": [
                                                {
                                                    "corner_radius": "4dp",
                                                    "marginRight": "4dp",
                                                    "widget": "ImageView",
                                                    "visibility": "{{mTitleMediaVsblty}}",
                                                    "mediaUrl": "{{mTitleMedia}}",
                                                    "scaleType": "fitXY",
                                                    "width": "24dp",
                                                    "height": "24dp"
                                                },
                                                {
                                                    "widget": "TextView",
                                                    "textSize": "19dp",
                                                    "textAlignment": "textStart",
                                                    "width": "match",
                                                    "textStyle": "bold",
                                                    "text": "{{mTitle}}",
                                                    "textColor": "#1e1e1e",
                                                    "height": "content"
                                                }
                                            ],
                                            "gravity": "bottom",
                                            "width": "match",
                                            "height": "content"
                                        },
                                        {
                                            "widget": "View",
                                            "background": "#1e1e1e",
                                            "width": "match",
                                            "marginTop": "6dp",
                                            "height": "2dp"
                                        }
                                    ],
                                    "paddingRight": "14dp",
                                    "width": "match",
                                    "paddingLeft": "14dp",
                                    "marginTop": "14dp",
                                    "height": "content"
                                },
                                {
                                    "orientation": "vertical",
                                    "widget": "LinearLayout",
                                    "children": [
                                        {
                                            "padding": "4dp",
                                            "orientation": "vertical",
                                            "widget": "LinearLayout",
                                            "visibility": "{{descVsblty1}}",
                                            "children": [
                                                {
                                                    "widget": "TextView",
                                                    "textSize": "17dp",
                                                    "visibility": "{{descTitleVsblty1}}",
                                                    "width": "match",
                                                    "marginBottom": "6dp",
                                                    "textStyle": "bold",
                                                    "text": "{{title1}}",
                                                    "textColor": "#1e1e1e",
                                                    "height": "content"
                                                },
                                                {
                                                    "widget": "TextView",
                                                    "textSize": "15dp",
                                                    "width": "match",
                                                    "textStyle": "normal",
                                                    "text": "{{description1}}",
                                                    "textColor": "#1e1e1e",
                                                    "viewAll": "100",
                                                    "height": "content"
                                                }
                                            ],
                                            "width": "match",
                                            "marginTop": "6dp",
                                            "height": "content"
                                        },
                                        {
                                            "padding": "4dp",
                                            "orientation": "horizontal",
                                            "widget": "LinearLayout",
                                            "children": [
                                                {
                                                    "corner_radius": "8dp",
                                                    "widget": "Button",
                                                    "textSize": "15dp",
                                                    "visibility": "{{btnVsblty1}}",
                                                    "weight": 1,
                                                    "textColor": "#1e1e1e",
                                                    "click": {
                                                        "action": {
                                                            "displayText": "dummy",
                                                            "urlAction": {
                                                                "openUrl": {
                                                                    "url": ""
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "background": "#E4E4E4",
                                                    "textAlignment": "center",
                                                    "width": "content",
                                                    "text": "{{btnName1}}",
                                                    "textStyle": "normal",
                                                    "height": "36dp"
                                                },
                                                {
                                                    "corner_radius": "8dp",
                                                    "widget": "Button",
                                                    "textSize": "15dp",
                                                    "visibility": "{{btnVsblty2}}",
                                                    "weight": 1,
                                                    "textColor": "#1e1e1e",
                                                    "click": {
                                                        "action": {
                                                            "displayText": "dummy",
                                                            "urlAction": {
                                                                "openUrl": {
                                                                    "url": ""
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "marginLeft": "8dp",
                                                    "background": "#E4E4E4",
                                                    "textAlignment": "center",
                                                    "width": "content",
                                                    "text": "{{btnName2}}",
                                                    "textStyle": "normal",
                                                    "height": "36dp"
                                                }
                                            ],
                                            "width": "match",
                                            "marginTop": "8dp",
                                            "height": "content"
                                        },
                                        {
                                            "padding": "4dp",
                                            "orientation": "vertical",
                                            "widget": "LinearLayout",
                                            "visibility": "{{descVsblty2}}",
                                            "children": [
                                                {
                                                    "widget": "TextView",
                                                    "textSize": "17dp",
                                                    "visibility": "{{descTitleVsblty2}}",
                                                    "width": "match",
                                                    "marginBottom": "6dp",
                                                    "textStyle": "bold",
                                                    "text": "{{title2}}",
                                                    "textColor": "#1e1e1e",
                                                    "height": "content"
                                                },
                                                {
                                                    "widget": "TextView",
                                                    "textSize": "15dp",
                                                    "width": "match",
                                                    "textStyle": "normal",
                                                    "text": "{{description2}}",
                                                    "textColor": "#1e1e1e",
                                                    "viewAll": "100",
                                                    "height": "content"
                                                }
                                            ],
                                            "width": "match",
                                            "marginTop": "6dp",
                                            "height": "content"
                                        },
                                        {
                                            "padding": "4dp",
                                            "orientation": "vertical",
                                            "widget": "LinearLayout",
                                            "children": [
                                                {
                                                    "orientation": "vertical",
                                                    "widget": "LinearLayout",
                                                    "children": [
                                                        {
                                                            "corner_radius": "8dp",
                                                            "widget": "Button",
                                                            "textSize": "15dp",
                                                            "visibility": "{{btnVsblty3}}",
                                                            "textColor": "#1e1e1e",
                                                            "click": {
                                                                "action": {
                                                                    "displayText": "dummy",
                                                                    "urlAction": {
                                                                        "openUrl": {
                                                                            "url": ""
                                                                        }
                                                                    }
                                                                }
                                                            },
                                                            "background": "#E4E4E4",
                                                            "textAlignment": "center",
                                                            "width": "match",
                                                            "text": "{{btnName3}}",
                                                            "textStyle": "normal",
                                                            "marginTop": "8dp",
                                                            "height": "36dp"
                                                        },
                                                        {
                                                            "corner_radius": "8dp",
                                                            "widget": "Button",
                                                            "textSize": "15dp",
                                                            "visibility": "{{btnVsblty4}}",
                                                            "textColor": "#1e1e1e",
                                                            "click": {
                                                                "action": {
                                                                    "displayText": "dummy",
                                                                    "urlAction": {
                                                                        "openUrl": {
                                                                            "url": ""
                                                                        }
                                                                    }
                                                                }
                                                            },
                                                            "background": "#E4E4E4",
                                                            "textAlignment": "center",
                                                            "width": "match",
                                                            "text": "{{btnName4}}",
                                                            "textStyle": "normal",
                                                            "marginTop": "8dp",
                                                            "height": "36dp"
                                                        }
                                                    ],
                                                    "width": "match",
                                                    "height": "content"
                                                }
                                            ],
                                            "width": "match",
                                            "height": "content"
                                        }
                                    ],
                                    "paddingRight": "10dp",
                                    "width": "match",
                                    "paddingLeft": "10dp",
                                    "height": "content"
                                },
                                {
                                    "orientation": "vertical",
                                    "widget": "LinearLayout",
                                    "width": "match",
                                    "height": "10dp"
                                }
                            ],
                            "background": "#F2F2F2",
                            "width": "match",
                            "height": "content"
                        },
                        "version": "1.0.0",
                        "zoomAllowed": true,
                        "card": "open_rich_card"
                    },
                    "trafficType": "advertisement"
                }
            },
            "registerId": "leekmdevagency",
            "registerDate": "2024-07-03 10:20:10",
            "updateDate": "2024-07-03 10:20:11",
            "status": "ready",
            "approvalResult": "승인",
            "cardType": "formatBr",
            "headerComposition": [
                {
                    "componentId": "CP-MainTitle",
                    "index": 1
                }
            ],
            "bodyComposition": [
                {
                    "componentId": "CP-Description",
                    "index": 2
                },
                {
                    "componentId": "CP-HButton",
                    "index": 3
                },
                {
                    "componentId": "CP-Description",
                    "index": 4
                },
                {
                    "componentId": "CP-VButton",
                    "index": 5
                }
            ],
            "footerComposition": [],
            "params": [
                {
                    "param": "btnName1",
                    "isMandatory": false,
                    "type": "button",
                    "contentType": "buttonName",
                    "strSize": 7,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": "btnVsblty1"
                },
                {
                    "param": "btnName2",
                    "isMandatory": false,
                    "type": "button",
                    "contentType": "buttonName",
                    "strSize": 7,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": "btnVsblty2"
                },
                {
                    "param": "btnName3",
                    "isMandatory": false,
                    "type": "button",
                    "contentType": "buttonName",
                    "strSize": 17,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": "btnVsblty3"
                },
                {
                    "param": "btnName4",
                    "isMandatory": false,
                    "type": "button",
                    "contentType": "buttonName",
                    "strSize": 17,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": "btnVsblty4"
                },
                {
                    "param": "btnVsblty1",
                    "isMandatory": false,
                    "type": "button",
                    "contentType": "visibility",
                    "strSize": -1,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": null
                },
                {
                    "param": "btnVsblty2",
                    "isMandatory": false,
                    "type": "button",
                    "contentType": "visibility",
                    "strSize": -1,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": null
                },
                {
                    "param": "btnVsblty3",
                    "isMandatory": false,
                    "type": "button",
                    "contentType": "visibility",
                    "strSize": -1,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": null
                },
                {
                    "param": "btnVsblty4",
                    "isMandatory": false,
                    "type": "button",
                    "contentType": "visibility",
                    "strSize": -1,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": null
                },
                {
                    "param": "description1",
                    "isMandatory": true,
                    "type": "string",
                    "contentType": "description",
                    "strSize": 1300,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": "descVsblty1"
                },
                {
                    "param": "description2",
                    "isMandatory": true,
                    "type": "string",
                    "contentType": "description",
                    "strSize": 1300,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": "descVsblty2"
                },
                {
                    "param": "descTitleVsblty1",
                    "isMandatory": false,
                    "type": "layout",
                    "contentType": "visibility",
                    "strSize": -1,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": null
                },
                {
                    "param": "descTitleVsblty2",
                    "isMandatory": false,
                    "type": "layout",
                    "contentType": "visibility",
                    "strSize": -1,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": null
                },
                {
                    "param": "descVsblty1",
                    "isMandatory": false,
                    "type": "layout",
                    "contentType": "visibility",
                    "strSize": -1,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": null
                },
                {
                    "param": "descVsblty2",
                    "isMandatory": false,
                    "type": "layout",
                    "contentType": "visibility",
                    "strSize": -1,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": null
                },
                {
                    "param": "mTitle",
                    "isMandatory": false,
                    "type": "string",
                    "contentType": "title",
                    "strSize": 17,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": "mTitleVsblty"
                },
                {
                    "param": "mTitleMedia",
                    "isMandatory": false,
                    "type": "file",
                    "contentType": "maapfile",
                    "strSize": -1,
                    "fileSize": 1048576,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": 300,
                    "imageHeight": 300,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": "mTitleMediaVsblty"
                },
                {
                    "param": "mTitleMediaVsblty",
                    "isMandatory": false,
                    "type": "layout",
                    "contentType": "visibility",
                    "strSize": -1,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": null
                },
                {
                    "param": "mTitleVsblty",
                    "isMandatory": false,
                    "type": "layout",
                    "contentType": "visibility",
                    "strSize": -1,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": null
                },
                {
                    "param": "title1",
                    "isMandatory": false,
                    "type": "string",
                    "contentType": "description",
                    "strSize": 30,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": "descTitleVsblty1"
                },
                {
                    "param": "title2",
                    "isMandatory": false,
                    "type": "string",
                    "contentType": "description",
                    "strSize": 30,
                    "fileSize": null,
                    "strRegx": null,
                    "verification": null,
                    "imageWidth": null,
                    "imageHeight": null,
                    "couplingId": null,
                    "inputText": null,
                    "relationId": "descTitleVsblty2"
                }
            ],
            "policyInfo": {
                "cardCount": 1,
                "maxTitleSize": 30,
                "maxButtonCount": 4,
                "maxDescriptionSize": 1300,
                "maxMediaSize": 0,
                "buttonsAllowed": true,
                "adHeaderAllowed": true,
                "adBodyAllowed": true
            },
            "guideInfo": {
                "maxLineCount": 0,
                "maxDisplayText": 17,
                "maxDescriptionSize": 1300,
                "imageWidth": "0",
                "imageHeight": "0",
                "detailInfo": null
            }
        }
    ],
    "status": 200
}
```

{% endtab %}

{% tab title="400" %}

```
{
    "error": {
        "code": "64001",
        "message": "Missing X-RCS-BrandKey header"
    },
    "status": 400
}
```

{% endtab %}

{% tab title="401" %}

```
{
    "error": {
        "code": "61003",
        "message": "Invalid token"
    },
    "status": 401
}
```

{% endtab %}

{% tab title="403" %}

```
{
    "error": {
        "code": "63001",
        "message": "No Brand Permission"
    },
    "status": 403
}
```

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
error code는 [RCS Biz Center - Response body error code](https://apidocs.rcsbizcenter.com/error_code#rcs-biz-center-response-body-error-code) 참조
{% endhint %}
