> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xdr-5-api/compliance-controls/assessment-results.md).

# Assessment Results

Operations for managing assessment results

## Get assessment profile results

> Retrieve assessment profile results with optional filtering based on the last successful evaluation.\
> \
> \*\*Filtering Support:\*\*\
> \- Field (\`labels\`): \`contains\`, \`not\_contains\`\
> \
> \*\*Note:\*\* This API does not support sorting or pagination. Sorting will not take effect even if it is specified in the payload. \
> \
> \*\*Required license:\*\* Requires the Cortex Cloud Posture Management add-on.

```json
{"openapi":"3.0.3","info":{"title":"Compliance Controls API","version":"Cortex XDR 5.1"},"tags":[{"name":"Assessment results","description":"Operations for managing assessment results"}],"servers":[{"url":"https://{tenant}.xdr.{region}.paloaltonetworks.com","description":"Cortex tenant","variables":{"tenant":{"default":"api","description":"Tenant-specific subdomain"},"region":{"default":"us","description":"Deployment region","enum":["us","eu","uk","sg","jp","ca","au","in","gov"]}}}],"security":[{"XDRAuth":[],"XDRAuthToken":[]}],"components":{"securitySchemes":{"XDRAuth":{"type":"apiKey","in":"header","name":"x-xdr-auth-id","description":"API Key ID for authentication"}},"schemas":{"GetAssessmentResultsRequest":{"type":"object","properties":{"request_data":{"type":"object","properties":{"filters":{"type":"array","items":{"$ref":"#/components/schemas/AssessmentResultFilterObject"},"description":"Array of filter objects"}}}},"required":["request_data"]},"AssessmentResultFilterObject":{"type":"object","description":"Filter object for querying assessment results","required":["field","operator","value"],"properties":{"field":{"type":"string","enum":["labels"],"description":"Field to filter on (only 'labels' is supported)"},"operator":{"type":"string","enum":["contains","not_contains"],"description":"Filter operator to apply. Valid values include:\n- `contains`\n- `not_contains`"},"value":{"type":"string","description":"Value to filter by"}}},"AssessmentResultsResponse":{"type":"object","properties":{"reply":{"type":"object","properties":{"total_count":{"type":"integer","description":"Total number of assessment results available"},"result_count":{"type":"integer","description":"Number of assessment results matching the applied filters"},"standard_filter_count":{"type":"integer","description":"Count from standard filter processing"},"standard_total_count":{"type":"integer","description":"Total count from standard processing"},"data":{"type":"array","items":{"$ref":"#/components/schemas/AssessmentResult"},"description":"Array of assessment profile results"}}}}},"AssessmentResult":{"type":"object","description":"Individual assessment profile result data"},"Error":{"type":"object","properties":{"reply":{"type":"object","properties":{"err_code":{"type":"integer","description":"Error code"},"err_msg":{"type":"string","description":"Error message"},"err_extra":{"type":"object","description":"Additional error details"}}}}},"ErrorResponse":{"type":"object","properties":{"reply":{"type":"object","properties":{"err_code":{"type":"integer","description":"Error code"},"err_msg":{"type":"string","description":"Error message describing what went wrong"},"err_extra":{"type":"object","description":"Additional error details"}},"required":["err_code","err_msg"]}}}},"responses":{"BadRequest":{"description":"Bad request - invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"description":"Access denied - insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"InternalServerError":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/public_api/v1/compliance/get_assessment_results":{"post":{"summary":"Get assessment profile results","description":"Retrieve assessment profile results with optional filtering based on the last successful evaluation.\n\n**Filtering Support:**\n- Field (`labels`): `contains`, `not_contains`\n\n**Note:** This API does not support sorting or pagination. Sorting will not take effect even if it is specified in the payload. \n\n**Required license:** Requires the Cortex Cloud Posture Management add-on.","operationId":"getAssessmentProfileResults","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAssessmentResultsRequest"}}}},"responses":{"200":{"description":"Successfully retrieved assessment profile results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentResultsResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Assessment results"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/xdr-5-api/compliance-controls/assessment-results.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
