client.windows.asyncCreateAutomation(sessionId, windowId, { ...params }) -> Airtop.AsyncSessionAiResponseEnvelope
-
-
-
Create an automation of a browser window asynchronously
-
-
-
await client.windows.asyncCreateAutomation( "6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", );
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window.
-
request:
Airtop.AsyncCreateAutomationRequest
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.asyncCreateFormFiller(sessionId, windowId, { ...params }) -> Airtop.AsyncSessionAiResponseEnvelope
-
-
-
Create a form filler automation asynchronously
-
-
-
await client.windows.asyncCreateFormFiller( "6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", );
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window.
-
request:
Airtop.AsyncCreateFormFillerRequest
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.asyncExecuteAutomation(sessionId, windowId, { ...params }) -> Airtop.AsyncSessionAiResponseEnvelope
-
-
-
Execute an automation of a browser window asynchronously
-
-
-
await client.windows.asyncExecuteAutomation( "6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", { automationId: "automationId", }, );
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window.
-
request:
Airtop.AsyncExecuteAutomationRequest
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.asyncFillForm(sessionId, windowId, { ...params }) -> Airtop.AsyncSessionAiResponseEnvelope
-
-
-
Fill a form of a browser window asynchronously using a form-filler automation
-
-
-
await client.windows.asyncFillForm("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", { automationId: "automationId", });
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window.
-
request:
Airtop.AsyncFillFormRequest
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.list(sessionId) -> Airtop.WindowsResponse
-
-
-
Lists all browser windows in a session.
-
-
-
await client.windows.list("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b");
-
-
-
sessionId:
stringβ ID of the session to list windows for.
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.create(sessionId, { ...params }) -> Airtop.WindowIdResponse
-
-
-
Creates a new browser window in a session. Optionally, you can specify a url to load on the window upon creation.
-
-
-
await client.windows.create("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b");
-
-
-
sessionId:
stringβ ID of the session that owns the window.
-
request:
Airtop.CreateWindowInputV1Body
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.getWindowInfo(sessionId, windowId, { ...params }) -> Airtop.WindowResponse
-
-
-
Get information about a browser window in a session, including the live view url.
-
-
-
await client.windows.getWindowInfo("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430", { screenResolution: "1280x720", });
-
-
-
sessionId:
stringβ ID of the session that owns the window.
-
windowId:
stringβ ID of the browser window, which can either be a normal AirTop windowId or a CDP TargetId from a browser automation library like Puppeteer (typically associated with the page or main frame). Our SDKs will handle retrieving a TargetId for you from various popular browser automation libraries, but we also have details in our guides on how to do it manually.
-
request:
Airtop.GetWindowInfoRequest
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.loadUrl(sessionId, windowId, { ...params }) -> Airtop.OperationOutcomeResponse
-
-
-
Loads a specified url on a given window
-
-
-
await client.windows.loadUrl("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430", { url: "https://www.airtop.ai", });
-
-
-
sessionId:
stringβ ID of the session that owns the window.
-
windowId:
stringβ Airtop window ID of the browser window.
-
request:
Airtop.WindowLoadUrlV1Body
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.close(sessionId, windowId) -> Airtop.WindowIdResponse
-
-
-
Closes a browser window in a session
-
-
-
await client.windows.close("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430");
-
-
-
sessionId:
stringβ ID of the session that owns the window.
-
windowId:
stringβ Airtop window ID of the browser window.
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.click(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse
-
-
-
Execute a click interaction in a specific browser window
-
-
-
await client.windows.click("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", { elementDescription: "The login button", });
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window.
-
request:
Airtop.SessionClickHandlerRequestBody
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.createFormFiller(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse
-
-
-
Create a form-filler automation synchronously for the form loaded in the browser window
-
-
-
await client.windows.createFormFiller("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430");
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window.
-
request:
Airtop.CreateFormFillerRequest
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.fileInput(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse
-
-
-
Execute a file input interaction in a specific browser window. includeHiddenElements defaults to true and considers hidden file input elements. If there is only one file input element, it will be used directly. If there are multiple file input elements, the elementDescription will be used by AI to select among them. If no file input elements are found by inspecting the page structure, elementDescription will be used by AI to try to find a match visually.
-
-
-
await client.windows.fileInput("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430");
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window.
-
request:
Airtop.SessionFileInputHandlerRequestBody
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.fillForm(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse
-
-
-
Fill a form of a browser window synchronously using a form-filler automation
-
-
-
await client.windows.fillForm("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", { automationId: "automationId", });
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window.
-
request:
Airtop.FillFormRequest
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.hover(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse
-
-
-
Execute a hover interaction in a specific browser window
-
-
-
await client.windows.hover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", { elementDescription: "The search box input in the top right corner", });
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window.
-
request:
Airtop.SessionHoverHandlerRequestBody
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.monitor(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse
-
-
-
await client.windows.monitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", { condition: "Determine if the user appears to be signed in to the website", });
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window.
-
request:
Airtop.SessionMonitorHandlerRequestBody
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.pageQuery(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse
-
-
-
Submit a prompt that queries the content of a specific browser window. You may extract content from the page, or ask a question about the page and allow the AI to answer it (ex. Is the user logged in?).
-
-
-
await client.windows.pageQuery("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", { prompt: "What is the main idea of this page?", });
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window.
-
request:
Airtop.SessionPageQueryHandlerRequestBody
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.paginatedExtraction(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse
-
-
-
Submit a prompt that queries the content of a specific browser window and paginates through pages to return a list of results.
-
-
-
await client.windows.paginatedExtraction( "6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", { prompt: "This site contains a list of results about <provide details about the list>. Navigate through 3 pages of results and return the title and <provide details about the data you want to extract> about each result in this list.", }, );
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window.
-
request:
Airtop.SessionPaginatedExtractionHandlerRequestBody
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.promptContent(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse
-
-
-
This endpoint is deprecated. Please use the
pageQueryendpoint instead.
-
-
-
await client.windows.promptContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", { prompt: "What is the main idea of this page?", });
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window.
-
request:
Airtop.SessionPageQueryHandlerRequestBody
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.scrapeContent(sessionId, windowId, { ...params }) -> Airtop.ScrapeResponse
-
-
-
Scrape a window and return the content as markdown
-
-
-
await client.windows.scrapeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430");
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window to scrape.
-
request:
Airtop.ScrapeContentRequest
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.screenshot(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse
-
-
-
Take a screenshot of a browser window
-
-
-
await client.windows.screenshot("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430");
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window.
-
request:
Airtop.SessionScreenshotHandlerRequestBody
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.scroll(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse
-
-
-
Execute a scroll interaction in a specific browser window
-
-
-
await client.windows.scroll("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430");
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window.
-
request:
Airtop.SessionScrollHandlerRequestBody
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.summarizeContent(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse
-
-
-
This endpoint is deprecated. Please use the
pageQueryendpoint and ask for a summary in the prompt instead.
-
-
-
await client.windows.summarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430");
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window to summarize.
-
request:
Airtop.SessionSummaryHandlerRequestBody
-
requestOptions:
Windows.RequestOptions
-
-
client.windows.type(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse
-
-
-
Execute a type interaction in a specific browser window
-
-
-
await client.windows.type("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", { text: "Example text", });
-
-
-
sessionId:
stringβ The session id for the window.
-
windowId:
stringβ The Airtop window id of the browser window.
-
request:
Airtop.SessionTypeHandlerRequestBody
-
requestOptions:
Windows.RequestOptions
-
-
client.automations.list() -> Airtop.ListAutomationsOutput
-
-
-
List all automations for a given organization
-
-
-
await client.automations.list();
-
-
-
requestOptions:
Automations.RequestOptions
-
-
client.automations.update({ ...params }) -> Airtop.AutomationOutput
-
-
-
Update the description of a specific automation
-
-
-
await client.automations.update({ description: "description", id: "id", orgId: "orgId", });
-
-
-
request:
Airtop.UpdateAutomationDescriptionInputBody
-
requestOptions:
Automations.RequestOptions
-
-
client.automations.get(automationId) -> Airtop.AutomationOutput
-
-
-
Get a specific automation by ID
-
-
-
await client.automations.get("automationId");
-
-
-
automationId:
stringβ ID of the automation to retrieve
-
requestOptions:
Automations.RequestOptions
-
-
client.automations.delete(automationId) -> Airtop.DeleteAutomationOutputWrapperBody
-
-
-
Delete a specific automation
-
-
-
await client.automations.delete("automationId");
-
-
-
automationId:
stringβ ID of the automation to delete
-
requestOptions:
Automations.RequestOptions
-
-
client.files.list({ ...params }) -> Airtop.FilesResponse
-
-
-
Get a list of files filtered by session ID
-
-
-
await client.files.list({ offset: 1, limit: 10, });
-
-
-
request:
Airtop.FilesListRequest
-
requestOptions:
Files.RequestOptions
-
-
client.files.create({ ...params }) -> Airtop.EnvelopeCreateFileV1EnvelopeDefaultMeta
-
-
-
await client.files.create({ fileName: "fileName", });
-
-
-
request:
Airtop.CreateFileRestInputV1
-
requestOptions:
Files.RequestOptions
-
-
client.files.get(id) -> Airtop.EnvelopeGetFileV1EnvelopeDefaultMeta
-
-
-
await client.files.get("id");
-
-
-
id:
stringβ ID of the file
-
requestOptions:
Files.RequestOptions
-
-
client.files.delete(id) -> void
-
-
-
await client.files.delete("id");
-
-
-
id:
stringβ ID of the file
-
requestOptions:
Files.RequestOptions
-
-
client.files.push(id, { ...params }) -> void
-
-
-
Push a file to one or more sessions, making it available for the sessions to use
-
-
-
await client.files.push("id");
-
-
-
id:
stringβ ID of the file
-
request:
Airtop.PushFileBodyV1
-
requestOptions:
Files.RequestOptions
-
-
client.profiles.delete({ ...params }) -> void
-
-
-
Delete profiles matching by id
-
-
-
await client.profiles.delete();
-
-
-
request:
Airtop.ProfilesDeleteRequest
-
requestOptions:
Profiles.RequestOptions
-
-
client.requests.getRequestStatus(requestId) -> Airtop.RequestStatusResponse
-
-
-
await client.requests.getRequestStatus("123e4567-e89b-12d3-a456-426614174000");
-
-
-
requestId:
stringβ The ID of the request to check.
-
requestOptions:
Requests.RequestOptions
-
-
client.sessions.list({ ...params }) -> Airtop.SessionsResponse
-
-
-
Get a paginated list of sessions filtered by ID or status
-
-
-
await client.sessions.list({ offset: 1, limit: 10, });
-
-
-
request:
Airtop.SessionsListRequest
-
requestOptions:
Sessions.RequestOptions
-
-
client.sessions.create({ ...params }) -> Airtop.SessionResponse
-
-
-
await client.sessions.create();
-
-
-
request:
Airtop.SessionRestInputV1
-
requestOptions:
Sessions.RequestOptions
-
-
client.sessions.getInfo(id) -> Airtop.SessionResponse
-
-
-
Get a session by ID
-
-
-
await client.sessions.getInfo("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b");
-
-
-
id:
stringβ Id of the session to get
-
requestOptions:
Sessions.RequestOptions
-
-
client.sessions.terminate(id) -> void
-
-
-
Ends a session by ID. If a given session id does not exist within the organization, it is ignored.
-
-
-
await client.sessions.terminate("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b");
-
-
-
id:
stringβ ID of the session to delete.
-
requestOptions:
Sessions.RequestOptions
-
-
client.sessions.events(id, { ...params }) -> core.Stream
-
-
-
Get a session event stream for a given session ID
-
-
-
const response = await client.sessions.events("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", { lastEventId: 0, all: true, }); for await (const item of response) { console.log(item); }
-
-
-
id:
stringβ ID of the session to get status info for
-
request:
Airtop.SessionsEventsRequest
-
requestOptions:
Sessions.RequestOptions
-
-
client.sessions.saveProfileOnTermination(sessionId, profileName) -> void
-
-
-
await client.sessions.saveProfileOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myProfile");
-
-
-
sessionId:
stringβ ID of the session.
-
profileName:
stringβ Name under which to save the profile.
-
requestOptions:
Sessions.RequestOptions
-
-