コンテンツにスキップ

会話の詳細

GET
/api/v1/conversations/{id}
curl --request GET \
--url https://app.goyoka.com/api/v1/conversations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

メッセージとお問い合わせの受付内容を返します。既読印や状態は変えません。

customers:contact⁠がなければcontact全体がnull、許可があればemail⁠だけのobject⁠で、未登録のemail⁠はnull⁠です。

必要な範囲: messages:read

customers:contact があるとメール・電話が入る(会話はメールのみ)。

id
必須
string 形式: uuid

会話の詳細

メディアタイプapplication/json
object
data
必須
object
id
必須
string 形式: uuid
customer_id
必須
string | null 形式: uuid
subject
必須
string
contact_name
必須
string
contact
必須
object
email
必須
string | null
status
必須
string
取りうる値: OPEN CLOSED
channel
必須
string
取りうる値: EMAIL
booking_id
必須
string | null 形式: uuid
sender_profile_id
必須
string | null 形式: uuid
last_message_at
必須
string 形式: date-time
created_at
必須
string 形式: date-time
updated_at
必須
string 形式: date-time
messages
必須
Array<object>
object
id
必須
string 形式: uuid
direction
必須
string
取りうる値: INBOUND OUTBOUND
author_kind
必須
string
取りうる値: CUSTOMER STAFF
body
必須
string
created_at
必須
string 形式: date-time
inquiry
必須
object
name
必須
string
body
必須
string
answers
必須
Array<object>
object
prompt
必須
string
answer
必須
string
source_name
必須
string | null
consented_at
必須
string | null 形式: date-time
例
{
"data": {
"status": "OPEN",
"channel": "EMAIL",
"messages": [
{
"direction": "INBOUND",
"author_kind": "CUSTOMER"
}
]
}
}

利用できないヘッダ

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