Skip to main content

Create Interact Session

Start a standalone Interact browser session you drive with code (no prior scrape required).
2 min read
post/interact
Request example
Response
post/interact

Headers#

HeaderValue
AuthorizationBearer <API_KEY>
Content-Typeapplication/json

Request Body#

ParameterTypeRequiredDefaultDescription
ttlnumberNo600Total session lifetime in seconds (30-3600)
activityTtlnumberNo300Seconds of inactivity before session is destroyed (10-3600)
profileobjectNoEnable persistent storage across sessions. See below.
profile.namestringYes*Name for the profile (1-128 chars). Sessions with the same name share storage.
profile.saveChangesbooleanNotrueWhen true, browser state is saved back to the profile on close. Set to false to load existing data without writing. Only one saver is allowed at a time.

Response#

FieldTypeDescription
successbooleanWhether the session was created
idstringUnique session identifier
cdpUrlstringWebSocket URL for CDP connections
liveViewUrlstringURL to watch the session in real time
interactiveLiveViewUrlstringURL to interact with the session in real time (click, type, scroll)
expiresAtstringWhen the session will expire based on TTL

Example Request#

Example Response#

Are you an AI agent that needs a Firecrawl API key? See firecrawl.dev/agent-onboarding/SKILL.md for automated onboarding instructions.

Authorization

Authorizationstringheaderrequired#
Bearer authentication header of the form Bearer <token>, where <token> is your API key.

Body

application/json
ttlinteger#
Total time-to-live in seconds for the interact session

Default: 300

Range: 30–3600

activityTtlinteger#
Time in seconds before the session is destroyed due to inactivity

Range: 10–3600

streamWebViewboolean#
Whether to stream a live view of the browser

Default: true

profileobject#
Enable persistent storage across interact sessions. Data saved in one session can be loaded in a later session using the same name.
Show child attributes
namestringrequired#
A name for the profile. Sessions with the same name share storage.

Length: 1–128

saveChangesboolean#
When true, browser state is saved back to the profile on close. Set to false to load existing data without writing. Multiple non-saving sessions are allowed but only one saving session at a time.

Default: true

Responses

application/json
Interact session created successfully
successboolean#
idstring#
The unique session identifier
cdpUrlstring#
WebSocket URL for Chrome DevTools Protocol access
liveViewUrlstring#
URL to view the interact session in real time
interactiveLiveViewUrlstring#
URL to interact with the interact session in real time (click, type, scroll)
expiresAtstring#
When the session will expire based on TTL