--- title: "API to Start ScreenMeet Replay" slug: "replay-sfdc-apex-api-to-start-replay" description: "This article describes how to use Salesforce Apex to start a ScreenMeet replay session. " updated: 2021-06-28T13:14:50Z published: 2021-06-28T13:14:51Z canonical: "docs.screenmeet.com/replay-sfdc-apex-api-to-start-replay" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.screenmeet.com/llms.txt > Use this file to discover all available pages before exploring further. # Apex API to Start Replay You can use the example code below to create a Replay session using Apex API's from a Case object record. You can call this in a Flow for any event ```java //create the newSessionParams screenmeet.ScreenMeetAPI.ScreenMeetSessionParams newSessionParams = new screenmeet.ScreenMeetAPI.ScreenMeetSessionParams( 'replay', //session type '5001R00000xgLmIQAU', //parentObjectId 'case', //owner object type UserInfo.getUserId(), //Logged in user ID 'My Support Session', //session description UserInfo.getName() //name of currently logged in USER ); //make the REST API call to create the session screenmeet.ScreenMeetApi.createSession(newSessionParams); ``` For a full list of available ScreenMeet Apex API's, visit the [Apex API Reference](/v1/docs/salesforce-apex-api-reference) page.