コンテンツにスキップ

許可済みサイトと貼り付け先の検知を読む

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

allowed_origins⁠は許可済みサイト、pending_sightings⁠は未許可かつ非表示でないorigin⁠ごとの最新検知で、origin・preset_id・last_seen_at⁠を返します。表示成功やサイト所有の証明ではありません。許可の追加・削除は管理画面の設定の『お店』のタブにある『埋め込みを貼ってよいサイト』で、お店の方が行う。

新しい貼り付け先は、コードを貼って自動検知した後、お店の方が管理画面の設定の『お店』のタブにある『埋め込みを貼ってよいサイト』で許可します。検知されなければアドレスを入力して許可し、コードの作成・取得だけでは未許可サイトに表示できません。

必要な範囲: salon-settings:read

許可済みサイトと貼り付け先の検知を読む

メディアタイプapplication/json
object
data
必須
object
allowed_origins
必須

許可済みサイト。追加・削除は管理画面の設定の『お店』のタブにある『埋め込みを貼ってよいサイト』で、お店の方が行う。

Array<string>
pending_sightings
必須

未許可かつ非表示にしていないorigin⁠ごとの最新検知。表示成功やサイト所有を保証しない。

Array<object>
object
origin
必須
string
preset_id
必須
string
last_seen_at
必須
string 形式: date-time
例自動生成
{
"data": {
"allowed_origins": [
"example"
],
"pending_sightings": [
{
"origin": "example",
"preset_id": "example",
"last_seen_at": "2026-04-15T12:00:00Z"
}
]
}
}

利用できないヘッダ

メディアタイプ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"
}
}