API reference
Organizations & access
Organizations, projects, members, API keys and emergency suspension.
Generated from the public API contract (OpenAPI). Descriptions in the contract are written in Japanese.
Endpoints
Section titled “Endpoints”createOrganization
Section titled “createOrganization”POST/v1/platform/organizations
組織を作る。作った利用者が owner になる
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Request body
Section titled “Request body”application/json — NameInput
| Name | Type | Required | Description |
|---|---|---|---|
name |
string | yes | |
display_name |
string | yes |
Responses
Section titled “Responses”- 201 —
Organization: 組織 - default —
Problem: RFC 9457 Problem Details
getOrganization
Section titled “getOrganization”GET/v1/platform/organization
Responses
Section titled “Responses”- 200 —
Organization: 組織 - default —
Problem: RFC 9457 Problem Details
listMembers
Section titled “listMembers”GET/v1/platform/members
Responses
Section titled “Responses”- 200 —
object: メンバー - default —
Problem: RFC 9457 Problem Details
inviteMember
Section titled “inviteMember”POST/v1/platform/members
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Request body
Section titled “Request body”application/json
| Name | Type | Required | Description |
|---|---|---|---|
email |
string | yes | |
roles |
Role[] | yes | |
display_name |
string |
Responses
Section titled “Responses”- 201 —
Member: 招待したメンバー - default —
Problem: RFC 9457 Problem Details
removeMember
Section titled “removeMember”DELETE/v1/platform/members/{id}
メンバーを組織から外す。その人のトークンは次の呼出しから拒否し、グループからも外す。owner を外せるのは owner だけで、最後の owner は外せない
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
Section titled “Responses”- 200 —
Member: 外したメンバー - default —
Problem: RFC 9457 Problem Details
setMemberRoles
Section titled “setMemberRoles”PUT/v1/platform/members/{id}/roles
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body
Section titled “Request body”application/json
| Name | Type | Required | Description |
|---|---|---|---|
roles |
Role[] | yes |
Responses
Section titled “Responses”- 200 —
Member: メンバー - default —
Problem: RFC 9457 Problem Details
setMemberDelegation
Section titled “setMemberDelegation”PUT/v1/platform/members/{id}/delegation
不在の期間(両端の日を含む)に、割り当ての候補をこのメンバーから代理のメンバーへ回す。本人か、メンバーを管理できる人が設定する
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body
Section titled “Request body”application/json
| Name | Type | Required | Description |
|---|---|---|---|
delegate_id |
string | yes | |
starts_on |
string | yes | |
ends_on |
string | yes |
Responses
Section titled “Responses”- 200 —
Delegation: 代理 - default —
Problem: RFC 9457 Problem Details
removeMemberDelegation
Section titled “removeMemberDelegation”DELETE/v1/platform/members/{id}/delegation
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
Section titled “Responses”- 204: 代理を外した
- default —
Problem: RFC 9457 Problem Details
listGroups
Section titled “listGroups”GET/v1/platform/groups
Responses
Section titled “Responses”- 200 —
object: グループ - default —
Problem: RFC 9457 Problem Details
putGroup
Section titled “putGroup”PUT/v1/platform/groups/{name}
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
name |
path | string | yes |
Request body
Section titled “Request body”application/json
| Name | Type | Required | Description |
|---|---|---|---|
display_name |
string | yes | |
member_ids |
string[] | ||
emails |
string[] |
Responses
Section titled “Responses”- 200 —
Group: グループ - default —
Problem: RFC 9457 Problem Details
listProjects
Section titled “listProjects”GET/v1/platform/projects
Responses
Section titled “Responses”- 200 —
object: プロジェクト - default —
Problem: RFC 9457 Problem Details
createProject
Section titled “createProject”POST/v1/platform/projects
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Request body
Section titled “Request body”application/json — NameInput
| Name | Type | Required | Description |
|---|---|---|---|
name |
string | yes | |
display_name |
string | yes |
Responses
Section titled “Responses”- 201 —
Project: プロジェクト - default —
Problem: RFC 9457 Problem Details
listServiceAccounts
Section titled “listServiceAccounts”GET/v1/platform/service-accounts
Responses
Section titled “Responses”- 200 —
object: サービスアカウント - default —
Problem: RFC 9457 Problem Details
createServiceAccount
Section titled “createServiceAccount”POST/v1/platform/service-accounts
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Request body
Section titled “Request body”application/json
| Name | Type | Required | Description |
|---|---|---|---|
name |
string | yes | |
project |
string | yes | |
environment |
Environment | yes | |
scopes |
string[] | yes |
Responses
Section titled “Responses”- 201 —
ServiceAccount: サービスアカウント - default —
Problem: RFC 9457 Problem Details
createApiKey
Section titled “createApiKey”POST/v1/platform/service-accounts/{id}/keys
platform:keys.manage が必要。Idempotency-Key は要らない。応答を保存せず、呼ぶたびに権限を確かめて新しい鍵を発行する。 応答を受け取れなかった鍵は失効し、発行し直す
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body
Section titled “Request body”application/json
| Name | Type | Required | Description |
|---|---|---|---|
expires_at |
string | この時刻から先は入口が拒否する。省くと期限を付けない。今より後の時刻にする |
Responses
Section titled “Responses”- 201 —
object: 発行した API キー - default —
Problem: RFC 9457 Problem Details
revokeApiKey
Section titled “revokeApiKey”DELETE/v1/platform/service-accounts/{id}/keys/{keyId}
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | |
keyId |
path | string | yes |
Responses
Section titled “Responses”- 200 —
ApiKey: 失効した API キー - default —
Problem: RFC 9457 Problem Details
listEngagements
Section titled “listEngagements”GET/v1/platform/engagements
platform:engagements.manage(顧客の管理者)が必要。委任の内容と、入った運営者の主体の一覧
Responses
Section titled “Responses”- 200 —
object: 運営者の委任 - default —
Problem: RFC 9457 Problem Details
createEngagement
Section titled “createEngagement”POST/v1/platform/engagements
platform:engagements.manage(顧客の管理者)が必要。運営者の組織の主体が、決めたプロジェクトと環境に、決めた範囲で 入れるようにする。渡せるのは起案と実行のスコープだけで、人の承認の決定は渡せない。広げるときは新しい委任を作る
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Request body
Section titled “Request body”application/json
| Name | Type | Required | Description |
|---|---|---|---|
operator_organization |
string | yes | 運営者の組織の name か tenant_id |
project |
string | yes | |
environment |
Environment | yes | |
operator_groups |
string[] | ||
operator_emails |
string[] | ||
scopes |
string[] | yes | |
senders |
string[] | 運営者が使える送信の名義(SenderIdentity の名前) | |
valid_from |
string | ||
valid_until |
string | yes |
Responses
Section titled “Responses”- 201 —
Engagement: 運営者の委任 - default —
Problem: RFC 9457 Problem Details
narrowEngagement
Section titled “narrowEngagement”POST/v1/platform/engagements/{id}/narrow
platform:engagements.manage(顧客の管理者)が必要。範囲を狭める。すぐ効き、入っている主体は入り直す。 いまの範囲を超える値は拒否する
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | |
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Request body
Section titled “Request body”application/json
| Name | Type | Required | Description |
|---|---|---|---|
operator_groups |
string[] | ||
operator_emails |
string[] | ||
scopes |
string[] | ||
senders |
string[] | ||
valid_until |
string |
Responses
Section titled “Responses”- 200 —
Engagement: 運営者の委任 - default —
Problem: RFC 9457 Problem Details
revokeEngagement
Section titled “revokeEngagement”POST/v1/platform/engagements/{id}/revoke
platform:engagements.manage(顧客の管理者)が必要。委任を止める。運営者のトークンは次の呼出しから拒否し、 その主体が始めた実行と、外へ出していない操作も止める
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | |
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Request body
Section titled “Request body”application/json
| Name | Type | Required | Description |
|---|---|---|---|
reason |
string | yes |
Responses
Section titled “Responses”- 200 —
Engagement: 運営者の委任 - default —
Problem: RFC 9457 Problem Details
suspendOrganization
Section titled “suspendOrganization”POST/v1/platform/suspension
緊急停止。すべての API と実行を止める
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key |
header | string | 副作用を伴う POST ではサーバーが必須にする。SDK は無ければ自動で付けるので、型では省略できる |
Request body
Section titled “Request body”application/json
| Name | Type | Required | Description |
|---|---|---|---|
reason |
string | yes |
Responses
Section titled “Responses”- 200 —
Organization: 組織 - default —
Problem: RFC 9457 Problem Details
resumeOrganization
Section titled “resumeOrganization”DELETE/v1/platform/suspension
緊急停止を解く(owner だけ)
Responses
Section titled “Responses”- 200 —
Organization: 組織 - default —
Problem: RFC 9457 Problem Details
getNetworkPolicy
Section titled “getNetworkPolicy”GET/v1/platform/network-policy
接続元の制限。組織の API を呼べるネットワークの一覧と、この要求の接続元
Responses
Section titled “Responses”- 200 —
NetworkPolicy: 接続元の制限 - default —
Problem: RFC 9457 Problem Details
putNetworkPolicy
Section titled “putNetworkPolicy”PUT/v1/platform/network-policy
ネットワークの一覧を置き換える。登録したネットワークから変えるときは、いまの接続元を一覧に残す
Request body
Section titled “Request body”application/json
| Name | Type | Required | Description |
|---|---|---|---|
networks |
NetworkInput[] | yes |
Responses
Section titled “Responses”- 200 —
NetworkPolicy: 接続元の制限 - default —
Problem: RFC 9457 Problem Details
getSsoConnection
Section titled “getSsoConnection”GET/v1/platform/sso-connection
組織の IdP の接続。登録していなければ connection は null
Responses
Section titled “Responses”- 200 —
SsoConnectionState: IdP の接続 - default —
Problem: RFC 9457 Problem Details
putSsoConnection
Section titled “putSsoConnection”PUT/v1/platform/sso-connection
登録すると、登録したドメインの社員はその IdP でログインし、組織へはその IdP のセッションでしか入れなくなる。IdP に登録する戻り先は <入口>/api/auth/sso/callback/<provider_id>
Request body
Section titled “Request body”application/json — SsoConnectionInput
| Name | Type | Required | Description |
|---|---|---|---|
issuer |
string | yes | IdP の発行元(https の URL)。discovery の文書(/.well-known/openid-configuration)を読める必要がある |
client_id |
string | yes | |
client_secret |
string | yes | 保存するだけで、応答には返さない |
domains |
string[] | yes | この IdP でログインできるメールアドレスのドメイン。ほかの組織が登録したドメインと、だれでも作れるメールのドメインは登録できない |
Responses
Section titled “Responses”- 200 —
SsoConnectionState: IdP の接続 - default —
Problem: RFC 9457 Problem Details
deleteSsoConnection
Section titled “deleteSsoConnection”DELETE/v1/platform/sso-connection
IdP の接続を外す。外した後は、メンバーはメールのワンタイムコードでログインする
Responses
Section titled “Responses”- 204: 外した
- default —
Problem: RFC 9457 Problem Details