Skip to main content
POST
/
v1
/
server
/
webview
/
ott
Create WebView OTT
curl --request POST \
  --url https://sdk-api.playcamp.io/v1/server/webview/ott \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "<string>",
  "campaignId": "<string>",
  "codeChallenge": "<string>",
  "callbackId": "<string>",
  "metadata": {}
}
'
{
  "data": {
    "ott": "<string>",
    "expiresIn": 123
  }
}

Authorizations

Authorization
string
header
required

Server API Key (format: {keyId}:{secret})

Body

application/json
userId
string
required

In-game user identifier

campaignId
string

Scope WebView to a specific campaign

codeChallenge
string

PKCE S256 challenge (Base64URL-encoded SHA256)

Required string length: 43 - 128
callbackId
string

Webhook tracking ID (included in webhook events from this session)

metadata
object

Additional metadata (stored in session)

Response

Success

data
object
required