Record Playtime Session
Records a single playtime session.
Auto attribution:
- If
campaignIdis not specified, automatically attributed to the project’s active campaign sponsor
Idempotency:
- The unique key is
projectId+sessionId - A duplicate
sessionIdis NOT an error: the existing row is kept and the response returnsrecorded: false
Authorizations
Server API Key (format: {keyId}:{secret})
Body
Client-generated unique session ID
User ID
Session duration in seconds
x >= 1Session start time (ISO 8601 UTC format)
- Format:
YYYY-MM-DDTHH:mm:ss.sssZ - Example:
2024-01-15T10:30:00.000Z
Session end time (ISO 8601 UTC format, must be greater than or equal to startedAt)
- Format:
YYYY-MM-DDTHH:mm:ss.sssZ - Example:
2024-01-15T11:00:00.000Z
Campaign ID (optional). If omitted, automatically attributed to the project's active campaign sponsor
Creator key (optional, exactly 5 uppercase alphanumeric characters)
^[A-Z0-9]{5}$Playtime platform (optional, server defaults to Other)
iOS, Android, Web, Roblox, Other Arbitrary key/value metadata
Webhook tracking ID (included in webhook events triggered by this request)
Test mode (does not create actual data)
Response
Success
Recorded playtime session