# Automation

## POST /automation/compare-results

> Compare two automation scan results by their jsmon IDs

```json
{"openapi":"3.0.0","info":{"title":"JSMON API","version":"1.0.0"},"servers":[{"url":"https://api-dev.jsmon.sh","description":"Development Server (For internal testing)"},{"url":"https://api.jsmon.sh","description":"Production Server (Stable release)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{},"requestBodies":{"postScannerCompareResults":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id1","id2"],"properties":{"id1":{"type":"string","description":"First jsmon ID"},"id2":{"type":"string","description":"Second jsmon ID"}}}}}}}},"paths":{"/automation/compare-results":{"post":{"summary":"Compare two automation scan results by their jsmon IDs","tags":["Automation"],"parameters":[{"in":"query","name":"wkspId","schema":{"type":"string"},"required":true,"description":"Workspace ID of the user"}],"requestBody":{"$ref":"#/components/requestBodies/postScannerCompareResults"},"responses":{"200":{"description":"Differences between array fields in automation results","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"differences":{"type":"object","additionalProperties":{"type":"object","properties":{"removed":{"type":"array","items":{"type":"string"}},"added":{"type":"array","items":{"type":"string"}}}}}}}}}},"400":{"description":"Invalid jsmon IDs","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"403":{"description":"Access denied to workspace","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}},"404":{"description":"Validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"error":{"type":"object"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledge.jsmon.sh/api-reference/reference/automation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
