챗봇 메시지

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

API endpoint:

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

요청(Request) 예시:

curl --location --request GET 'https://aistoryplanner.com/api/v1/messages' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
파라미터
유형
설명
search
optional string
검색 질의.
search_by
optional string
검색 기준. 가능한 값: message = 메시지. 기본 설정: message.
chat_id
optional string
필터: 챗봇 ID.
role
optional string
필터: 역할. 가능한 값: user = 사용자, assistant = 도우미.
sort_by
optional string
정렬 기준. 가능한 값: id = 생성일. 기본 설정: id.
sort
optional string
정렬. 가능한 값: desc = 내림차순, asc = 오름차순. 기본 설정: desc.
per_page
optional integer
페이지당 검색결과수. 가능한 값: 10, 25, 50, 100. 기본 설정: 25.
Store

API endpoint:

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

요청(Request) 예시:

curl --location --request POST 'https://aistoryplanner.com/api/v1/messages' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}' \
--data-urlencode 'description={description}'
파라미터
유형
설명
name
required string
챗 이름.
chat_id
required string
메시지가 저장될 챗봇ID.
role
required string
메시지의 역할. 가능한 값: user = 사용자, assistant = 도우미.