---
title: "Tenant API"
language: ko
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/ko/docs/invantive-waypoint/interfaces/tenant-api
original: https://documentation.invantive.eu/en/docs/invantive-waypoint/interfaces/tenant-api
updated: 2026-12-04T16:45:33Z
license: https://documentation.invantive.eu/ko/
---

테넌트 API는 `https://waypoint.invantive.eu/api/v1`에서 제공되는 테넌트 프로그램용 API입니다. 프로그램은 관리자가 콘솔의 "Settings" 탭 "Tokens and OData"에서 생성한 토큰으로 로그인하며, 이 토큰은 `Authorization: Bearer wpt_tok_...`로 전송됩니다. 토큰의 범위에 따라 수행할 수 있는 작업이 결정됩니다. [[Invantive Waypoint/Console/Applications and Installation|Applications and Installation]]을(를) 참조하십시오. OpenAPI 설명은 `https://waypoint.invantive.eu/api/v1/openapi.json`에 있습니다.

## 토큰 확인
프로그램은 먼저 자신의 토큰을 확인합니다:

```http
GET /api/v1/me HTTP/1.1
Host: waypoint.invantive.eu
Authorization: Bearer wpt_tok_8f3e1c0d9a7b4e21b6c5d4f3a2e1b0c9
Accept: application/json
```

응답에는 토큰 이름, 테넌트 및 해당 코드, 범위, 게시 가능 여부, 만료일이 포함되며, 만료되지 않는 토큰의 경우 만료일은 `null`입니다. 알 수 없거나 만료되었거나 취소된 토큰은 401와(과) `itgenwpt200`로 응답합니다. 일시 중단된 테넌트의 토큰은 403와(과) `itgenwpt225`로 응답합니다.

## 자료
테넌트 API는 다음 리소스를 제공합니다:
- `/end-users` 및 `/end-users/{id}`: 속성이 포함된 최종 사용자; `GET`, `POST`, `PUT`, `PATCH` 및 `DELETE`. `DELETE`은(는) 최종 사용자를 모든 데이터와 함께 삭제하며 `end_users.delete`가 필요합니다.
- `/end-users/batch`: 한 번의 요청으로 최대 1 000명의 최종 사용자를 처리합니다.
- `/accounts`, `/accounts/{id}` 및 `/accounts/batch`: 회사도 같은 방식으로 처리합니다.
- `/applications` 및 `/applications/{code}`: 출처가 포함된 애플리케이션; `/applications/{code}/secrets`은(는) 서명 비밀키를 교체합니다.
- `/themes`, `/segments` 및 `/experiences`: 각각 `/{code}`을(를) 사용하여 콘텐츠를 초안으로 처리합니다.
- `/experiences/{code}/publish`: 초안을 게시합니다. `content.publish` 및 게시 권한이 있는 토큰이 필요합니다.
- `/experiences/{code}/archive`: 최종 사용자가 진행 중인 경험을 보관합니다.
- `/experiences/{code}/steps/{step}`: 초안 단계의 앵커, 페이지 또는 배치를 변경하거나 한 번도 게시되지 않은 단계를 삭제합니다. `/experiences/{code}/steps/{step}/retire`은(는) 게시된 단계를 폐기합니다.
- `/broken-anchors`: 스니펫이 찾지 못한 앵커입니다.
- `/steps`, `/user-states`, `/account-states`, `/step-states`, `/searches` 및 `/ideas`: 읽기용 목록입니다.
- `/events`: 읽기용 저장된 이벤트이며, `POST`은(는) 1 000개 이하의 이벤트를 `events.write` 애플리케이션 서버에서 가져오며, 각 이벤트에는 `application`, `user_id`, `code`, `properties` 및 `at`이 포함됩니다. `at`이(가) 30분보다 과거이거나 1분보다 미래이면 수신 시각으로 저장되므로, 이 방식으로는 이전 이력을 불러올 수 없습니다.
- `/event-hours` 및 `/audit-events`: 읽기용 시간별 합계와 감사 추적입니다.
- `/api-tokens` 및 `/api-tokens/{name}`: 토큰입니다. 새 토큰의 응답에는 토큰이 한 번만 포함됩니다. `expires`이 없는 새 토큰은 만료되지 않으며, 과거 날짜의 만료일은 400와(과) `itgenwpt205`로 응답합니다.
- `/analytics/experiences/{code}`: 단계별 노출 및 완료 현황이며, `group=origin`를 지정하면 출처별로 조회합니다.
- `/transfers/...`: 내보내기 및 가져오기이며, [[Invantive Waypoint/Console/Export and Import|Export and Import]]를 참조하십시오.

모든 목록은 `/$count`로도 행 수를 일반 텍스트로 응답합니다.

## 최종 사용자 일괄 쓰기
일괄 처리는 행 단위로 적용되며, 응답에는 각 행의 수락 여부가 표시되므로 잘못된 행 하나가 다른 행을 거부하지 않습니다. 행은 id로 생성되거나 갱신됩니다. 전송된 속성은 저장된 값을 대체하고, `null`로 설정된 속성은 제거되며, 전송되지 않은 속성은 유지됩니다.

```http
POST /api/v1/end-users/batch HTTP/1.1
Host: waypoint.invantive.eu
Authorization: Bearer wpt_tok_8f3e1c0d9a7b4e21b6c5d4f3a2e1b0c9
Content-Type: application/json

{ "rows":
  [ { "id": "u-7f3c0a"
    , "name": "John Doe"
    , "email": "john.doe@acme.eu"
    , "language": "en"
    , "account": "pty-7c1e"
    , "signed_up": "2026-11-06T09:00:00Z"
    , "attributes":
      { "segment_codes": "s.trial,p.currency-tools,r.admin"
      , "plan": "trial"
      }
    }
  ]
}
```

응답에는 `accepted`, `refused`가 포함되며, 행별로 `result` `created`, `updated` 또는 `refused`와 메시지 코드가 표시됩니다. 1 000행을 초과하는 일괄 요청은 전체가 `itgenwpt210`로 거부됩니다.

## 경험 만들기
경험은 트리거, 단계 및 텍스트와 함께 초안으로 생성된 후 게시됩니다:

```http
POST /api/v1/experiences HTTP/1.1
Host: waypoint.invantive.eu
Authorization: Bearer wpt_tok_5b7d9f1a3c5e4b70a9c1e3d5f7b9a1c3
Content-Type: application/json

{ "code": "schedule-daily"
, "name": "Schedule a daily import"
, "kind": "tour"
, "application": "currency-tools"
, "segment": "trial-users"
, "order_mode": "sequential"
, "progress_scope": "account"
, "replayable": true
, "triggers":
  [ { "kind": "page", "pages": [ "/schedules" ], "repeat_scope": "account", "presentation": "start", "throttled": true }
  , { "kind": "click", "anchor": { "data_waypoint": "new-schedule" }, "repeat_scope": "end_user", "presentation": "start", "throttled": false }
  ]
, "frequency": "once"
, "goal": { "event": "schedule.created", "within_days": 7 }
, "steps":
  [ { "code": "choose-companies"
    , "anchor": { "automation_id": "schedule-companies" }
    , "page": "/schedules"
    , "wait_anchor_seconds": 5
    , "texts": { "en": { "title": "Choose the companies", "body": "Pick the Exact Online companies the schedule runs for." } }
    }
  , { "code": "save-schedule"
    , "anchor": { "automation_id": "schedule-save" }
    , "page": "/schedules"
    , "advance_on": "event"
    , "completion_event": "schedule.created"
    , "texts": { "en": { "title": "Save the schedule", "body": "The tour ends when the schedule exists." } }
    }
  ]
}
```

종류는 `tour`, `tooltip`, `hotspot`, `checklist`, `modal`, `banner`, `slide_out` 및 `resource_centre`입니다. 트리거의 종류는 `page`, `element`, `event`, `click`, `delay` 및 `manual`입니다. 빈도는 `once`, `once_per_session`, `every_n_days`이며 `frequency_days`를 포함하거나 `every_time`입니다. 단계에는 `skip_when`, `done_when` 및 `event_filter`도 포함할 수 있으며, 규칙은 [[Invantive Waypoint/Console/Segments|segments]] 문법을 따릅니다. 단계의 텍스트는 `title`, `body`, `button_next`, `button_back` 및 `button_other`입니다. 모달, 배너 또는 슬라이드 아웃에서 `button_back`은(는) 이를 닫는 버튼의 레이블이며, `button_other`은(는) 단계가 다른 경험을 열거나 링크를 따를 때 기본 버튼의 레이블입니다. 초안은 `POST /api/v1/experiences/schedule-daily/publish`로 게시되며, 본문에 검토된 초안 버전을 `draft_version`로 명시합니다. `draft_version`이(가) 없으면 현재 초안이 게시됩니다.

## 필터링, 정렬 및 개수 세기
모든 목록은 스네이크 케이스 속성을 사용하는 [OData 버전 4](https://www.odata.org/documentation/)의 시스템 쿼리 옵션을 지원합니다:
- `$filter`은 `eq`, `ne`, `gt`, `ge`, `lt`, `le`, `and`, `or`, `not`, `in` 및 `eq null`를 지원하며, 함수 `contains`, `startswith`, `endswith`, `tolower`, `toupper`, `trim`, `length`, `year`, `month`, `day` 및 `date`와 한 단계 탐색(예: `account/name`)을 지원합니다.
- 모든 속성에 대한 `$select` 및 `$orderby`.
- `$top`은 페이지 크기를 지정하고, `$skip`도 사용할 수 있습니다.
- `$count=true`은 응답에 `count`을(를) 추가합니다.

예를 들어 `GET /api/v1/end-users?$filter=contains(email,'@acme.eu')&$select=id,name,last_seen&$orderby=last_seen desc&$count=true`. `?segment=trial-users`과 같은 바로 가기는 필터가 되며, 다른 필터와 결합할 수 있습니다. 최종 사용자 목록은 `Accept: text/csv`을(를) 사용해 CSV로 응답합니다. 그룹화는 [[Invantive Waypoint/Interfaces/OData Service|OData Service]]에서만 제공됩니다.

## 거절
가능하지 않은 작업은 상태, 메시지 코드와 대신 할 수 있는 작업을 함께 응답합니다:
- 게시된 단계는 삭제되지 않고 폐기됩니다(409, `itgenwpt208`).
- 최종 사용자가 사용 중인 경험은 삭제되지 않고 보관됩니다(409, `itgenwpt209`).
- `content.publish`이 없는 토큰은 게시할 수 없으며(403, `itgenwpt202`), 게시할 수 없는 편집자의 토큰은 `itgenwpt212`로 거부됩니다. 다른 작업의 범위가 없는 토큰은 `itgenwpt202`로도 거부됩니다.
- 원시 이벤트, 시간별 합계 및 감사 추적의 행은 변경하거나 삭제할 수 없습니다(405, `itgenwpt207`).
- 사용 중인 세그먼트나 테마는 삭제할 수 없습니다(409, `itgenwpt232` 및 `itgenwpt233`).

모든 쓰기, 거부된 쓰기 및 실패한 로그인은 감사 추적에 기록됩니다. 읽기는 해당하지 않습니다.
