챗봇 제작소

노트
전문가 영역
API 키는 요청의 권한 부여 헤더(Authorization header)에 베어러 토큰(Bearer token)으로 전송되어야 합니다. API 키를 발급받으세요.
List

API endpoint:

GET
https://aistoryplanner.com/api/v1/chats

요청(Request) 예시:

curl --location --request GET 'https://aistoryplanner.com/api/v1/chats' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
파라미터
유형
설명
search
optional string
검색 질의.
search_by
optional string
검색 기준. 가능한 값: name = 문서 이름. 기본 설정: name.
favorite
optional boolean
즐겨찾기에 의한 필터.
sort_by
optional string
정렬 기준. 가능한 값: id = 생성일, name = 문서 이름. 기본 설정: id.
sort
optional string
정렬. 가능한 값: desc = 내림차순, asc = 오름차순. 기본 설정: desc.
per_page
optional integer
페이지당 검색결과수. 가능한 값: 10, 25, 50, 100. 기본 설정: 25.
Show

API endpoint:

GET
https://aistoryplanner.com/api/v1/chats/{id}

요청(Request) 예시:

curl --location --request GET 'https://aistoryplanner.com/api/v1/chats/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Store

API endpoint:

POST
https://aistoryplanner.com/api/v1/chats

요청(Request) 예시:

curl --location --request POST 'https://aistoryplanner.com/api/v1/chats' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}' \
--data-urlencode 'description={description}'
파라미터
유형
설명
name
required string
챗 이름.
behavior
optional string
챗봇의 행동 방식.
Update

API endpoint:

PUT PATCH
https://aistoryplanner.com/api/v1/chats/{id}

요청(Request) 예시:

curl --location --request PUT 'https://aistoryplanner.com/api/v1/chats/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
파라미터
유형
설명
name
optional string
챗 이름.
behavior
optional string
챗봇의 행동 방식.
favorite
optional boolean
즐겨찾기 표시 챗봇인지 아닌지 여부.
삭제

API endpoint:

DELETE
https://aistoryplanner.com/api/v1/chats/{id}

요청(Request) 예시:

curl --location --request DELETE 'https://aistoryplanner.com/api/v1/chats/{id}' \
--header 'Authorization: Bearer {api_key}'