Skip to main content
Start Mo after your deployment is ready and export the findings for your script or CI job to review. Use a Momentic API key to authenticate.

Start a session

Use the qa CLI from a script or continuous integration (CI) job after your target is ready. Set MOMENTIC_API_KEY as a CI secret instead of running qa login. Start a session with qa start and save its ID and URL. Use qa wait to wait for completion or a question, then qa report to export findings. A successful wait means Mo finished testing. Check the report to see whether the app met your criteria. You can also start a web session over HTTP with a Momentic API key. This request returns sessionId and webUrl:

Start a PR session

Send the provider and PR reference to /v1/mo/pr-sessions. GitHub is the supported PR provider. previewUrl is optional; supply it when your script or coding agent knows which deployment to test:
A selected environment needs no preview URL. Otherwise, discovery is best effort: missing or ambiguous previews do not block startup. Mo can inspect the PR or ask you for the target. Supply previewUrl when you know the deployment. For recurring testing, configure a Mo schedule with a prompt and environment. Each scheduled run starts a new session. Use an exported report to read results from your scripts. See Mo integrations for other connections.