カーソルページネーションを使用して、現在のアカウント配下の Forward アイデンティティを一覧表示します。
GET /api/v1/forward/identities
認証されたアカウントが所有する Identity レコードを返します。
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <PAT または SAT> |
Query parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
external_id | string | No | - | インテグレーターのエンドユーザー ID でフィルタリングします。 |
identity_ids | string|string[] | No | - | 複数の Identity ID でフィルタリングします。カンマ区切りまたは同じクエリパラメーターの繰り返しを使用でき、重複を除いて最大 100 件です。 |
search | string | No | - | Identity ID、名前、外部 ID を検索します。 |
enabled | boolean | No | - | 有効状態でフィルタリングします。ブール値以外は HTTP 400 を返します。 |
limit | integer | No | 20 | 1 ページあたりの項目数。最大 100。上限を超える値は 100 に制限されます。 |
after_id | string | No | - | 次のページのカーソル。before_id と併用できません。 |
before_id | string | No | - | 前のページのカーソル。after_id と併用できません。 |
Example request
Example response
HTTP 200 OK
Response fields
| Field | Type | Description |
|---|---|---|
data | array | 現在のページにある Identity オブジェクト。 |
first_id | string|null | このページの最初のレコードの ID。 |
last_id | string|null | このページの最後のレコードの ID。 |
has_more | boolean | さらにレコードが残っているかどうか。 |
data[].id | string | Forward Identity ID。 |
data[].external_id | string | インテグレーターのシステムにおけるエンドユーザー ID。 |
data[].name | string | Identity の表示名。 |
data[].identity_type | string | Identity の種類。通常の Identity は normal を返します。 |
data[].enabled | boolean | Identity を新しい操作に使用できるかどうか。 |
data[].metadata | object | カスタムメタデータ。 |
data[].created_at | string | 作成時刻。RFC 3339 形式。 |
data[].updated_at | string | 最終更新時刻。RFC 3339 形式。 |
Errors
| HTTP | Type | Code | 発生条件 |
|---|---|---|---|
| 400 | - | - | limit が不正、after_id と before_id を同時に指定、enabled がブール値ではない、または identity_ids が不正です。 |
| 401 | authentication_error | authentication_required | PAT または SAT が無効または期限切れです。 |
| 403 | permission_error | - | このリソースへのアクセス権がありません。 |
Notes
after_idとbefore_idは同時に使用できません。limitが 100 を超える場合は 100 に制限され、HTTP 400 は返されません。searchは Identity ID、名前、外部 ID を検索します。- 削除された Identity は通常の業務に使用しないでください。