> 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/xsoar-8-api/cortex-xsoar-8.x-apis/evidence.md).

# Evidence

APIs for managing evidence entities

## Delete evidence

> Delete an evidence entity.

```json
{"openapi":"3.0.1","info":{"title":"Cortex XSOAR 8 API","version":"XSOAR 8 Cloud"},"tags":[{"name":"Evidence","description":"APIs for managing evidence entities"}],"servers":[{"url":"https://api-yourfqdn","description":""}],"paths":{"/xsoar/public/v1/evidence/delete":{"post":{"summary":"Delete evidence","tags":["Evidence"],"responses":{"200":{"description":"OK"}},"operationId":"post-evidence-delete","parameters":[{"schema":{"type":"string"},"in":"header","name":"authorization","description":"api_key","required":true},{"schema":{"type":"string"},"in":"header","name":"x-xdr-auth-id","description":"api_key_id","required":true}],"description":"Delete an evidence entity.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"evidenceID":{"type":"string","description":"ID of the evidence you want to delete."}}}}}}}}}}
```

## Search evidence

> Search for an evidence entity by filter.

```json
{"openapi":"3.0.1","info":{"title":"Cortex XSOAR 8 API","version":"XSOAR 8 Cloud"},"tags":[{"name":"Evidence","description":"APIs for managing evidence entities"}],"servers":[{"url":"https://api-yourfqdn","description":""}],"paths":{"/xsoar/public/v1/evidence/search":{"post":{"summary":"Search evidence","tags":["Evidence"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidencesSearchResponse"}}}}},"operationId":"post-evidence-search","parameters":[{"schema":{"type":"string"},"in":"header","name":"authorization","description":"api_key","required":true},{"schema":{"type":"string"},"in":"header","name":"x-xdr-auth-id","description":"api_key_id","required":true}],"description":"Search for an evidence entity by filter.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"filter":{"$ref":"#/components/schemas/GenericStringDateFilter"},"incidentID":{"type":"string"}}}}}}}}},"components":{"schemas":{"EvidencesSearchResponse":{"description":"EvidencesSearchResponse returns the response from the evidences search","type":"object","properties":{"evidences":{"$ref":"#/components/schemas/Evidences"},"total":{"type":"integer","format":"int64"}}},"Evidences":{"description":"Evidences is a list of evidence entities","type":"array","items":{"$ref":"#/components/schemas/Evidence"}},"Evidence":{"type":"object","title":"Evidence details.","properties":{"ShardID":{"type":"integer","format":"int64"},"allRead":{"type":"boolean"},"allReadWrite":{"type":"boolean"},"cacheVersn":{"type":"integer","format":"int64"},"created":{"type":"string","format":"date-time"},"dbotCreatedBy":{"description":"Who has created this event - relevant only for manual incidents","type":"string"},"description":{"description":"The description for the resolve","type":"string"},"entryId":{"description":"The entry ID","type":"string"},"fetched":{"description":"when the evidence entry was fetched","type":"string","format":"date-time"},"hasRole":{"description":"Internal field to make queries on role faster","type":"boolean"},"highlight":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"id":{"type":"string"},"incidentId":{"description":"The incident ID","type":"string"},"indexName":{"type":"string"},"markedBy":{"description":"the user that marked this evidence","type":"string"},"markedDate":{"description":"when this evidence was marked","type":"string","format":"date-time"},"modified":{"type":"string","format":"date-time"},"numericId":{"type":"integer","format":"int64"},"occurred":{"description":"When this evidence has occurred","type":"string","format":"date-time"},"previousAllRead":{"type":"boolean"},"previousAllReadWrite":{"type":"boolean"},"previousRoles":{"description":"Do not change this field manually","type":"array","items":{"type":"string"}},"primaryTerm":{"type":"integer","format":"int64"},"roles":{"description":"The role assigned to this investigation","type":"array","items":{"type":"string"}},"sequenceNumber":{"type":"integer","format":"int64"},"sizeInBytes":{"type":"integer","format":"int64"},"sortValues":{"type":"array","items":{"type":"string"}},"syncHash":{"type":"string"},"tags":{"description":"Tags","type":"array","items":{"type":"string"}},"tagsRaw":{"description":"TagsRaw","type":"array","items":{"type":"string"}},"taskId":{"description":"when the evidence entry was fetched","type":"string"},"version":{"type":"integer","format":"int64"},"xsoarHasReadOnlyRole":{"type":"boolean"},"xsoarPreviousReadOnlyRoles":{"type":"array","items":{"type":"string"}},"xsoarReadOnlyRoles":{"type":"array","items":{"type":"string"}}}},"GenericStringDateFilter":{"description":"GenericStringDateFilter is a general filter that will fetch entities using the Query value and a date filter","type":"object","properties":{"Cache":{"description":"Cache of join functions","type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"accounts":{"type":"object","additionalProperties":{"type":"object"}},"fields":{"type":"array","items":{"type":"string"}},"filterobjectquery":{"type":"string"},"fromDate":{"type":"string","format":"date-time"},"fromDateLicense":{"type":"string","format":"date-time"},"ignoreWorkers":{"description":"Do not use workers mechanism while searching bleve","type":"boolean"},"page":{"description":"0-based page","type":"integer","format":"int64"},"period":{"$ref":"#/components/schemas/Period"},"query":{"type":"string"},"searchAfter":{"description":"Efficient next page, pass max sort value from previous page","type":"array","items":{"type":"string"}},"searchAfterElastic":{"description":"Efficient next page, pass max ES sort value from previous page","type":"array","items":{"type":"string"}},"searchAfterMap":{"description":"Map accounts search after values - stores next page sort values per account.\nThere is no need to store searchBeforeMap as [current page searchBefore] equals to [prev page searchAfter]\nMore, there is no way to generate correct searchBefore from current page as some tenants may not appear at all.\nThe map is relevant in proxy mode and used by tenants, each tenant extracts the searchAfter keys from the map.","type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"searchAfterMapOrder":{"type":"object","additionalProperties":{"type":"integer","format":"int64"}},"searchBefore":{"description":"Efficient prev page, pass min sort value from next page","type":"array","items":{"type":"string"}},"searchBeforeElastic":{"description":"Efficient prev page, pass min ES sort value from next page","type":"array","items":{"type":"string"}},"size":{"description":"Size is limited to 1000, if not passed it defaults to 0, and no results will return","type":"integer","format":"int64"},"sort":{"description":"The sort order","type":"array","items":{"$ref":"#/components/schemas/Order"}},"timeFrame":{"$ref":"#/components/schemas/Duration"},"toDate":{"type":"string","format":"date-time"},"trim_events":{"type":"integer","format":"int64"}}},"Period":{"title":"Period","type":"object","properties":{"by":{"type":"string"},"byFrom":{"type":"string"},"byTo":{"type":"string"},"field":{"type":"string"},"fromValue":{"type":"string","format":"duration"},"toValue":{"type":"string","format":"duration"}},"description":"Period holds the 'Period' query, such as last 3 days, last 6 hours, between 6 days from now until 3 days from now."},"Order":{"title":"Order","type":"object","properties":{"asc":{"type":"boolean"},"field":{"type":"string"},"fieldType":{"type":"string"}},"description":"Order structure holds a sort field and the direction of sorting"},"Duration":{"title":"Duration","type":"integer","description":"A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.","format":"int64"}}}}
```


---

# 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/xsoar-8-api/cortex-xsoar-8.x-apis/evidence.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.
