Glowb Dev Docs
Main APIAI API

GET /ai/portfolio/exists

포트폴리오 존재 확인

포트폴리오 존재 확인

사용자의 포트폴리오 존재 여부를 확인합니다.

항목
메서드GET
경로/ai/portfolio/exists
인증필요

요청

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

if (exists) {
  // 포트폴리오 수정 화면으로 이동
} else {
  // 포트폴리오 생성 화면으로 이동
}

응답

성공 응답 (200 OK)

true
설명
true포트폴리오가 존재함
false포트폴리오가 존재하지 않음

API 테스트

On this page