コンテンツにスキップ

初期設定の状態を読む

GET
/api/v1/onboarding
curl --request GET \
--url https://app.goyoka.com/api/v1/onboarding \
--header 'Authorization: Bearer <token>'

工程は8⁠つで、予約の受け方以外はお店の設定のデータから済みを判定します。selections にお店の形などの答え、setup_mode に選んだ進め方、steps に工程の該当性と完了、later に後でもいいことを返します。next_step に次に進める一歩(お店の形が先、あとは工程の並びで最初の未完了)を返し、key・title・お店の人に聞くこと(ask)・使うツール(tools)・済みの条件(done_when)・注意(note)が入ります。公開済みなら null です。public_url はお客様が開く予約ページの URL です。human_tasks には、必要に応じてカレンダーの接続、ご案内ページの写真、担当者の招待、貼り付け先の許可と、それぞれを行う管理画面の URL を返します。試しの予約は onboarding_test_booking_run、公開は onboarding_publish で AI が行えます。規約と表記の公開には legal:publish が要ります。進捗の行が無くても保存せず既定の状態を返します。

必要な範囲: onboarding:read

初期設定の状態を読む

メディアタイプapplication/json
object
setup_mode
必須
string | null
取りうる値: SELF AI
selections
必須
object
booking_kinds
必須
string | null
取りうる値: PERSONAL EVENT BOTH INQUIRY
meeting_place
必須
string | null
取りうる値: IN_PERSON ONLINE BOTH
website
必須
string | null
取りうる値: HAS_SITE NO_SITE UNDECIDED
location_disclosure
必須
string | null
取りうる値: PUBLIC_PAGE CONFIRMED_ONLY MANUAL
calendar_choice
必須
string | null
取りうる値: GOOGLE APPLE SKIPPED
steps
必須
Array<object>
object
key
必須
string
取りうる値: SALON_PROFILE FIRST_SERVICE BUSINESS_HOURS FIRST_EVENT BOOKING_RULES LEGAL_DOCUMENTS TEST_BOOKING PUBLISH
group
必須
string
取りうる値: A B C
title
必須
string
applicable
必須
boolean
completed
必須
boolean
manual
必須
boolean
later
必須
Array<object>
object
key
必須
string
取りうる値: calendar guidePage embed contact
title
必須
string
url
必須
string
completed
必須
boolean
published_at
必須
string | null 形式: date-time
public_url
必須
string 形式: uri
next_step
必須
object
key
必須
string
取りうる値: SHAPE SALON_PROFILE FIRST_SERVICE BUSINESS_HOURS FIRST_EVENT BOOKING_RULES LEGAL_DOCUMENTS TEST_BOOKING PUBLISH
title
必須
string
ask
必須
Array<string>
tools
必須
Array<string>
done_when
必須
string
note
必須
string | null
can_publish
必須
boolean
cannot_publish_reason
必須
string | null
human_tasks
必須
Array<object>
object
key
必須
string
label
必須
string
url
必須
string
例
{
"setup_mode": "SELF",
"selections": {
"booking_kinds": "PERSONAL",
"meeting_place": "IN_PERSON",
"website": "HAS_SITE",
"location_disclosure": "PUBLIC_PAGE",
"calendar_choice": "GOOGLE"
},
"steps": [
{
"key": "SALON_PROFILE",
"group": "A"
}
],
"later": [
{
"key": "calendar"
}
],
"next_step": {
"key": "SHAPE"
}
}

利用できないヘッダ

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

鍵が無い・無効

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

範囲不足

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

見つからない

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

予約・冪等キーの競合

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

本文が1 MiB⁠を超えている

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

入力の検証失敗

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

回数の上限

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}
RateLimit-Limit
integer
>= 1

固定窓内の回数上限

RateLimit-Remaining
integer

固定窓内の残り回数

RateLimit-Reset
integer

窓終了までの秒数

Retry-After
integer
>= 1

再試行までの待機秒数

内部エラー

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}