Glowb Dev Docs
SaaS API전자계약 API

GET /ai/contract/{contractId}

계약서 상세 정보를 조회합니다.

계약서 상세 조회

계약서 상세 정보를 조회합니다. 크리에이터가 SENT 상태의 계약서를 최초 열람하면 자동으로 OPENED 상태로 변경됩니다.

항목값
메서드GET
경로/ai/contract/{contractId}
인증Bearer Token (크리에이터)

최초 열람 시 상태가 SENT → OPENED로 자동 변경되며, 감사 로그에 OPENED 이벤트가 기록됩니다.

해외 캠페인 계약서는 응답에 language(KO/JA/EN)와 paymentInfo(해외 지급정보)가 추가로 포함됩니다. contractTemplate 의 조항 구성도 언어에 따라 달라집니다(영문은 캠페인 SNS 에 따라 인스타 14개 / 틱톡 15개 조항). 자세한 내용은 일본 계약서 · 영문 계약서를 참고하세요.

contractTemplate 제3조(제작 범위)의 제작 단계는 캠페인 검수 횟수를 따릅니다. 1회 검수 캠페인은 스크립트 단계(한국어 스크립트(영상 대본), 일본어 絵コンテ, 영문 Storyboard)가 빠집니다. 일본어·영문 계약서의 무상 수정 범위도 1회 검수면 스크립트 수정 없이 영상 수정 1회만 남습니다(動画修正1回 / one (1) video revision). PDF 계약서도 같은 기준으로 만들어집니다.

요청

GET /ai/contract/1 HTTP/1.1
Host: api.glowb.com
Authorization: Bearer {access_token}
curl -X GET "https://api.glowb.com/ai/contract/1" \
  -H "Authorization: Bearer {access_token}"
const response = await fetch('/ai/contract/1', {
  headers: {
    'Authorization': `Bearer ${accessToken}`,
  },
});
const result = await response.json();

Path Parameters

Prop

Type

응답

성공 응답 (200 OK)

{
  "status": 200,
  "code": null,
  "message": "계약서 조회가 완료되었습니다.",
  "data": {
    "contractId": 1,
    "applicationId": 101,
    "status": "OPENED",
    "campaignTitle": "여름 선크림 캠페인",
    "collabNo": 123,
    "language": null,
    "contractTemplate": {
      "title": "콘텐츠 제작 계약서",
      "preamble": "본 계약은 갑과 을 사이에...",
      "clauses": [
        {
          "number": 1,
          "title": "계약의 목적",
          "content": "본 계약은..."
        }
      ]
    },
    "companyInfo": {
      "companyName": "바이엇 주식회사",
      "businessNumber": "265-81-02680",
      "companyAddress": "서울특별시 중구 청계천로 40, 1302호 (다동, 한국관광공사 서울센터)",
      "ceoName": "김동규"
    },
    "variableValues": {
      "campaignName": "여름 선크림 캠페인",
      "paymentAmount": "500000"
    },
    "stageName": null,
    "realName": null,
    "businessName": null,
    "bankName": null,
    "bankAccountNumber": null,
    "accountHolderName": null,
    "signerName": null,
    "registrationNumber": null,
    "address": null,
    "representative": null,
    "paymentInfo": null,
    "signatureImageUrl": null,
    "signedPdfUrl": null,
    "contractDate": null,
    "sentAt": "2026-02-25T10:00:00",
    "signedAt": null,
    "createdAt": "2026-02-25T09:55:00"
  }
}

응답 필드

Prop

Type

크리에이터 입력 필드

Prop

Type

서명/PDF 결과

Prop

Type

CompanyInfo 객체

필드타입설명
companyNamestring회사명 (바이엇 주식회사)
businessNumberstring사업자등록번호 (265-81-02680)
companyAddressstring회사 주소
ceoNamestring대표자명 (김동규)

에러 응답

HTTP 200 + 봉투 status/code 로 내려갑니다(인증 실패만 실제 HTTP 401·403).

statuscode상황
400PATH_VARIABLE_INVALIDcontractId 가 숫자가 아님(args.name)
404CONTRACT_NOT_FOUND계약서가 없음
403CONTRACT_NOT_OWNED본인의 계약서가 아님
410CONTRACT_VOIDED폐기·취소된 계약서
{
  "status": 403,
  "code": "CONTRACT_NOT_OWNED",
  "message": "해당 계약서에 접근 권한이 없습니다.",
  "data": null
}

API 테스트

On this page