Skip to main content

템플릿 디자인 단건조회

템플릿 디자인 단건 조회 (GET)

특정 인증서 템플릿 디자인을 조회합니다.

  • Method: GET

  • URL: /certificate-designs/{certificateDesignId}

  • Path Parameters:

    파라미터타입필수설명
    certificateDesignIdnumberYes조회할 템플릿 디자인의 고유 ID

Response

{
"statusCode": 200,
"message": "템플릿 디자인이 상세 조회되었습니다.",
"certificateDesign": {
"id": 165,
"name": "sandbox-certificate-v1",
"main_color": "#7657FA",
"sub_color": "#CABDFF",
"extra_color_1": null,
"extra_color_2": null,
"template_type": "NewCertificateType7Single",
"created_at": "2025-04-09T18:37:39.696Z",
"updated_at": "2025-04-09T18:37:39.696Z",
"club": {
"domain": "sandbox",
"customData": [...]
}
}
}

certificateDesign (object)

필드명타입설명
idnumbercertificate 디자인 고유 id
namestringcertificate 디자인 이름
main_colorstring | nullcertificate 디자인 메인 색상
sub_colorstring | nullcertificate 디자인 서브 색상
extra_color_1string | nullcertificate 디자인 추가 색상1
extra_color_2string | nullcertificate 디자인 추가 색상2
layout_jsonobject[]인증서 이미지 생성을 위한 디자인 JSON 배열
template_typestringcertificate 디자인 템플릿 타입
created_atstring (ISO8601)certificate 디자인 생성일
updated_atstring (ISO8601)certificate 디자인 수정일

certificateDesign.club (object)

필드명타입설명
domainstring클럽의 도메인
customDataarray클럽이 정의한 커스텀 데이터 목록
customData[].attribute_namestring커스텀 데이터 이름
customData[].attribute_tagstring커스텀 데이터 태그

오류 코드

상태 코드에러메시지상세 설명
400BadRequest잘못된 요청입니다.허가되지 않은 값, 올바르지 않은 형식의 요청
401UnauthorizedInvalid token인증 정보가 올바르지 않은 경우
404CertificateDesignNotFound템플릿 디자인을 찾을 수 없습니다.해당 클럽 도메인의 디자인 데이터가 없을 경우
500InternalServerError예기치 않은 오류가 발생했습니다.서버 에러

Request Sample

String url = "https://api.test.kolleges.net/open-api/certificate-designs/" + certificateDesignId;

HttpResponse<String> response = Unirest.get(url)
.header("Content-Type", "application/json")
.header("Accept", "application/json")
.header("Authorization", "Bearer " + apiKey)
.asString();

System.out.println("Status: " + response.getStatus());
System.out.println("Response: " + response.getBody());