Cookie Auth API

concept australia Updated Oct 14, 2026 1 min read cookieauth-api.md
Raw file servicenow.com

The Cookie Auth Scripted REST API provides an endpoint that creates a short-lived ticket that the WebRTC phone widget needs to start a voice call. Because this endpoint doesn’t require a login, it works for authenticated and unauthenticated users.

WebRTC voice calling is a core capability for Customer Service Management (CSM) portals and Engagement Messenger. The Cookie Auth API allows authenticated and unauthenticated users (like customers on public support portals, third parties embedding Engagement Messenger) start a voice call without logging in. The ticket expires after 60 seconds and works once, so a caller never gets a long-lived credential. The API imposes rate limits so the open endpoint can’t be hit without restriction (see the API rate limits section for more information).

Typically, customers won’t call this API directly because the phone widget calls it automatically when someone starts a call.

Access and authentication

This API is provided in the sn_webrtc scope and requires the com.sn_webrtc (WebRTC Voice) plugin. No role is required to access this API.

API rate limits

The application ships with two rate limit rules for the Cookie Auth POST endpoint. You can change the limits to suit your environment.

Rule name Applies to Limit
WebRTC cookie auth limit for all users All users 3,600 requests per hour
WebRTC cookie auth limit for un-authenticated users The Guest user 3,600 requests per hour

Important: All unauthenticated callers share the single Guest user identity, so the limit for the Guest rule is a shared limit for all unauthenticated callers, not a limit for each caller.

Conversely, authenticated users each get 3,600 requests per hour as it is not shared under one identity. For example, authenticated User 1 gets 3,600 requests per hour, User 2 gets 3,600 per hour, and so on.

Parent Topic:REST API reference

Keywords WebRTCdialpadDTMFphone widgettheme tokens
Search documentation
Search document titles and file paths on the australia branch