お知らせの一覧
GET
/api/v1/email/announcements
const url = 'https://app.goyoka.com/api/v1/email/announcements?status=DRAFT&limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.goyoka.com/api/v1/email/announcements?status=DRAFT&limit=50' \ --header 'Authorization: Bearer <token>'作成日時・IDの
summaryは
必要なemail:read
必要な認証
「必要なパラメータ
「 パラメータ 」のクエリのパラメータ
「クエリのstatus
string
cursor
string
limit
integer
レスポンス
「 レスポンス 」の200
「200」のお知らせの
メディアタイプapplication/json
object
data
必須
Array<object>
object
id
必須
string 形式: uuid
subject
必須
string
audience
必須
string
event_id
必須
string | null 形式: uuid
occurrence_id
必須
string | null 形式: uuid
sender_profile_id
必須
string | null 形式: uuid
status
必須
string
scheduled_at
必須
string | null 形式: date-time
send_requested_at
必須
string | null 形式: date-time
sent_at
必須
string | null 形式: date-time
published_at
必須
string | null 形式: date-time
schedule_failed_reason
必須
string | null
created_at
必須
string 形式: date-time
updated_at
必須
string 形式: date-time
summary
必須
object
total
必須
integer
sent
必須
integer
failed
必須
integer
skipped
必須
integer
pending
必須
integer
next_cursor
必須
string | null
例自動生成
{ "data": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "subject": "example", "audience": "example", "event_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "occurrence_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "sender_profile_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "status": "example", "scheduled_at": "2026-04-15T12:00:00Z", "send_requested_at": "2026-04-15T12:00:00Z", "sent_at": "2026-04-15T12:00:00Z", "published_at": "2026-04-15T12:00:00Z", "schedule_failed_reason": "example", "created_at": "2026-04-15T12:00:00Z", "updated_at": "2026-04-15T12:00:00Z", "summary": { "total": 1, "sent": 1, "failed": 1, "skipped": 1, "pending": 1 } } ], "next_cursor": "example"}400
「400」の利用できない
メディアタイプ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" }}401
「401」の鍵が
メディアタイプ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" }}403
「403」の範囲不足
メディアタイプ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" }}404
「404」の見つからない
メディアタイプ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" }}409
「409」の予約・冪等キーの
メディアタイプ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" }}413
「413」の本文が
メディアタイプ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" }}422
「422」の入力の
メディアタイプ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" }}429
「429」の回数の
メディアタイプ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
固定窓内の
RateLimit-Remaining
integer
固定窓内の
RateLimit-Reset
integer
窓終了までの
Retry-After
integer
再試行までの
500
「500」の内部エラー
メディアタイプ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" }}