# Forensic

## Retrieve Forensic for a domain

<mark style="color:blue;">`GET`</mark> `https://api.kdmarc.com/api/v1/domain/{domain}/forensic`

Fetch the forensic report for the domain

#### Path Parameters

| Name          | Type   | Description                                                                                                                                                        |
| ------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| domain        | string | To fetch the details of the specific domain for e.g. example.com                                                                                                   |
| Authorization | string | The HTTP Authorization request header contains the credentials to authenticate a user agent with a server, this can be generated through Dashboard within settings |

{% tabs %}
{% tab title="200 JSON representation of forensic " %}

```
{
    "data": [
        {
            "id": 4,
            "sender": null,
            "reciever": null,
            "from": "name <name@example.com>",
            "to": "example@test.kdmarc.com",
            "subject": null,
            "mailDate": "2020-06-28T11:53:30.000Z",
            "Domain": {
                "id": 1,
                "name": "example.com",
                "logo": null,
                "createdAt": "2019-05-07T12:17:31.000Z",
                "updatedAt": "2019-05-07T12:17:31.000Z",
                "deletedAt": null
              }
        }
    "count": 1,
    "pages": 1
}
```

{% endtab %}

{% tab title="404 Forensic not found " %}

```
{
    "errors": [
        "user not found"
    ]
}
```

{% endtab %}
{% endtabs %}

## ​Retrieve detail Forensic of a domain

<mark style="color:blue;">`GET`</mark> `https://api.kdmarc.com/api/v1/domain/{domain}/forensic/{forensic}`

Fetch a specific forensic reports (RUF) of the specified domain.

#### Path Parameters

| Name          | Type   | Description                                                                                                                                                        |
| ------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| forensic      | string | To fetch the forensic detail of a source                                                                                                                           |
| domain        | string | To fetch the details of the specific domain for e.g. example.com                                                                                                   |
| Authorization | string | The HTTP Authorization request header contains the credentials to authenticate a user agent with a server, this can be generated through Dashboard within settings |

{% tabs %}
{% tab title="200 " %}

```
{
    "data": null
}
```

{% endtab %}
{% endtabs %}


---

# 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://dev.kdmarc.com/forensic.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.
