Skip to main content

Type Alias: WebserviceConfig

type WebserviceConfig: components["schemas"]["WebserviceConfig"];

Properties

PropertyTypeRequiredDescription
urlstringYesToken generation endpoint URL (example: "https://myserver.com/token")
method"GET" | "POST"YesHTTP method (example: "POST")
headersobjectNoHTTP headers (example: {"Authorization":"Bearer xxx"})
bodyTemplatestringNoRequest body template with {{roomId}} placeholder (example: "{\"roomId\": \"{{roomId}}\"}")
responseTokenPathstringYesJSONPath to extract token from response (example: "data.token")

Defined in

4Players/cortex-typescript-sdk/src/resources/settings.ts:10