サポートされている認証方法
REST API V2 リクエストは、以下のいずれかの方法で認証できます:- Auth Token ヘッダー:リクエストの
x-cdata-authtokenヘッダーにトークンを送信します。 - HTTP Basic 認証:HTTP Basic 認証ヘッダーのパスワードとしてトークンを送信します。
メソッド1:リクエストヘッダーへのAuth-Token の含め方
x-cdata-authtoken リクエストヘッダーに AuthToken の値を含めます。
例
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
x-cdata-authtoken ヘッダーにトークンを送信します。x-cdata-authtoken リクエストヘッダーに AuthToken の値を含めます。
例
GET /api.rsc/v2/workspaces HTTP/1.1
Host: <Sync-Host>
x-cdata-authtoken: <AuthToken>
Accept: application/json
GET /api.rsc/v2/workspaces HTTP/1.1
Host: <Sync-Host>
Authorization: Basic <base64(Username:AuthToken)>
Accept: application/json
POST api.rsc/v2/users/generate-token