---
title: "\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8API"
description: "/api/v1/client \u306B\u3042\u308B Invantive Waypoint \u306E\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8API\u3067\u3001\u30B9\u30CB\u30DA\u30C3\u30C8\u304C1\u4EBA\u306E\u30A8\u30F3\u30C9\u30E6\u30FC\u30B6\u30FC\u306B\u3064\u3044\u3066\u547C\u3073\u51FA\u3057\u3001identify\u3001experiences\u3001starts\u3001events\u3092\u6271\u3044\u307E\u3059\u3002"
language: ja
source_language: en
translation_state: pending
canonical: https://documentation.invantive.eu/ja/docs/invantive-waypoint/interfaces/client-api
original: https://documentation.invantive.eu/en/docs/invantive-waypoint/interfaces/client-api
updated: 2026-12-04T15:58:41Z
license: https://documentation.invantive.eu/ja/
---

クライアントAPIは、スニペットのAPIであり、`https://waypoint.invantive.eu/api/v1/client`にあります。 応答はJSONのみで、CORSは公開鍵のアプリケーションのオリジンに対してのみ許可されます。 OpenAPIの説明は`https://waypoint.invantive.eu/api/v1/client/openapi.json`にあります。 アプリケーションは通常、クライアントAPIを直接ではなく、[[Invantive Waypoint/Interfaces/Snippet and Script Interface|snippet]]を通じて使用します。

## 業務
クライアントAPIは次の操作を提供します:
- `POST /identify`: 公開鍵、ユーザーID、署名、言語を使用してエンドユーザーにサインインします。セッションと最初のページのexperiencesを応答します。
- `GET /experiences?page=<path>`: ページ上のエンドユーザー向けのexperiencesを、`ETag`付きで取得します。
- `POST /experiences/{code}/start`: クリック、イベント、またはリクエストに応じて、experienceを開始します。 Waypointは、開始要求を現在の状態に照らして確認します。
- `POST /consent`: 統計の同意を渡します。
- `POST /events`: 表示、ステップ、イベントを登録します。1バッチあたり最大50件です。
- `GET /ideas`、`POST /ideas`、`POST /ideas/{uid}/vote`、`DELETE /ideas/{uid}/vote`: フィードバックボードです。
- `GET /search`: Invantive Searchを通じてリソースセンターを検索します。`POST /search/{uid}/click`は、開かれた結果を登録します。

`identify`以外のすべての操作は、セッションを`Authorization: Bearer wpt_ses_...`として送信します。

## Identify
ブラウザが送信する、スニペットのリクエスト:

```http
POST /api/v1/client/identify HTTP/1.1
Host: waypoint.invantive.eu
Origin: https://currencytools.example.com
Content-Type: application/json

{ "key": "wpt_pub_3f9a7d21c0e4b5a6"
, "user": "u-7f3c0a"
, "signature": "t=1763633400;s=9c1e5a07d2f84b6e81c3a9d0f5e2b7c4d6a8e1f3b5c7d9e0a2b4c6d8e0f1b42f"
, "language": "en"
, "time_zone": "Europe/Amsterdam"
, "consent": { "statistics": true }
, "page": "/menu.html"
}
```

応答には、有効期限付きのセッション、使用された言語、レンダラーとテーマのアドレス、およびエンドユーザーの状態を含むページのexperiencesが含まれます。 An experience with another theme than its application carries the address of that theme in `theme`. 拒否されたidentifyは、401または403で応答し、コード`itgenwpt300`、`itgenwpt304`、`itgenwpt305`、`itgenwpt315`、`itgenwpt316`、`itgenwpt317`のいずれかを返します。この拒否はInvantiveのシステム運用者向けに集計されます。

## イベント
スニペットは、experienceに対して起きたこと（表示、ステップ完了、閉じられた、完了、見つからなかったアンカー）を登録します。 これらはエンドユーザーの状態を保持するもので、同意は不要です。 統計の同意がある場合は、ページビューとアプリケーションのイベントも送信します:

```http
POST /api/v1/client/events HTTP/1.1
Host: waypoint.invantive.eu
Origin: https://currencytools.example.com
Authorization: Bearer wpt_ses_...
Content-Type: application/json

{ "session_id": "s-81f0c2"
, "consent": { "statistics": true }
, "events":
  [ { "code": "experience.shown", "experience": "first-import", "step": "choose-companies", "origin": "auto", "page": "/import", "at": "2026-11-20T10:31:02.114Z" }
  , { "code": "step.completed", "experience": "first-import", "step": "choose-companies", "page": "/import", "at": "2026-11-20T10:31:07.380Z" }
  , { "code": "import.completed", "kind": "custom", "page": "/import", "properties": { "companies": 2 }, "at": "2026-11-20T10:33:40.551Z" }
  ]
}
```

応答は202で、受け入れられたイベントと拒否されたイベントの数、および該当するexperiencesの新しい状態を含みます。 ステップは、その位置ではなく、常にそのコードで指定されます。 表示の`origin`は、`auto`、`intent`、`offer`、または`replay`です。 30分より古い、または1分より先の時刻は、受信時刻に置き換えられます。

統計の同意がない場合（`itgenwpt302`）、テナントの1時間あたりのイベント数の上限（`itgenwpt301`）を超える場合、および月間アクティブユーザー数の上限（`itgenwpt371`）を超える場合、アプリケーションのイベントは拒否されます。 この3つのいずれの場合も、experiencesは引き続き動作します。


## リリース情報

- [Invantive Cloud](/ja/release-notes/products/invantive-cloud)
  - [26.0 ～ 27.0](/ja/release-notes/products/invantive-cloud?step=26.0-to-27.0)
  - [25.0 ～ 26.0](/ja/release-notes/products/invantive-cloud?step=25.0-to-26.0)
