> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Deepline Native: Domain Ownership Match

> Checking whether two domains belong to the same company, such as a mail-only alias or parent-company email domain versus the company website, using a shared.

Checking whether two domains belong to the same company, such as a mail-only alias or parent-company email domain versus the company website, using a shared.

> [!NOTE]
>
> Tool ID: `domain_ownership_match`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'domain_ownership_match',
  {
    "domain": "example.com",
    "other_domain": "example.com"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute domain_ownership_match --input '{
  "domain": "example.com",
  "other_domain": "example.com"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "same_organization": true,
  "matched_on": "same_domain",
  "domain": {
    "domain": "example.com",
    "m365_tenant_id": "m365_tenant_123",
    "site_status": "live",
    "site_domain": "example.com"
  },
  "other_domain": {
    "domain": "example.com",
    "m365_tenant_id": "m365_tenant_123",
    "site_status": "live",
    "site_domain": "example.com"
  }
}
```

Use `deepline describe domain_ownership_match --json` for the latest machine-readable contract.

## Input reference

Check whether two domains belong to the same organization: the same Microsoft 365 tenant verified both, or one domain's website redirects to the other.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.domain` | `string` | Yes | — | First domain or URL, for example the company website. Minimum length: 1. |
| `payload.other_domain` | `string` | Yes | — | Second domain or URL, for example the domain of an email address found for someone at that company. Minimum length: 1. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Check whether two domains belong to the same organization: the same Microsoft 365 tenant verified both, or one domain's website redirects to the other.",
    "properties": {
      "domain": {
        "type": "string",
        "description": "First domain or URL, for example the company website.",
        "minLength": 1
      },
      "other_domain": {
        "type": "string",
        "description": "Second domain or URL, for example the domain of an email address found for someone at that company.",
        "minLength": 1
      }
    },
    "required": [
      "domain",
      "other_domain"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Domain ownership evidence for two domains.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.same_organization` | `boolean` | Yes | — | — |
| `result.matched_on` | `"same_domain" \| "m365_tenant" \| "site_redirect" \| null` | Yes | — | Evidence that matched. A shared third landing site never matches. |
| `result.domain` | `object` | Yes | — | — |
| `result.domain.domain` | `string` | Yes | — | Normalized hostname. |
| `result.domain.m365_tenant_id` | `string \| null` | Yes | — | Microsoft 365 tenant that verified the domain, or null when none has. |
| `result.domain.site_status` | `"live" \| "redirected" \| "not_found" \| "blocked" \| "server_error" \| "unreachable" \| "invalid"` | Yes | — | Allowed: `live`, `redirected`, `not_found`, `blocked`, `server_error`, `unreachable`, `invalid`. |
| `result.domain.site_domain` | `string \| null` | Yes | — | Hostname the domain's website lands on after redirects. |
| `result.other_domain` | `object` | Yes | — | — |
| `result.other_domain.domain` | `string` | Yes | — | Normalized hostname. |
| `result.other_domain.m365_tenant_id` | `string \| null` | Yes | — | Microsoft 365 tenant that verified the domain, or null when none has. |
| `result.other_domain.site_status` | `"live" \| "redirected" \| "not_found" \| "blocked" \| "server_error" \| "unreachable" \| "invalid"` | Yes | — | Allowed: `live`, `redirected`, `not_found`, `blocked`, `server_error`, `unreachable`, `invalid`. |
| `result.other_domain.site_domain` | `string \| null` | Yes | — | Hostname the domain's website lands on after redirects. |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Domain ownership evidence for two domains.",
    "properties": {
      "same_organization": {
        "type": "boolean"
      },
      "matched_on": {
        "description": "Evidence that matched. A shared third landing site never matches.",
        "anyOf": [
          {
            "type": "string",
            "const": "same_domain"
          },
          {
            "type": "string",
            "const": "m365_tenant"
          },
          {
            "type": "string",
            "const": "site_redirect"
          },
          {
            "type": "null"
          }
        ]
      },
      "domain": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "description": "Normalized hostname."
          },
          "m365_tenant_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Microsoft 365 tenant that verified the domain, or null when none has."
          },
          "site_status": {
            "type": "string",
            "enum": [
              "live",
              "redirected",
              "not_found",
              "blocked",
              "server_error",
              "unreachable",
              "invalid"
            ]
          },
          "site_domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "Hostname the domain's website lands on after redirects."
          }
        },
        "required": [
          "domain",
          "m365_tenant_id",
          "site_status",
          "site_domain"
        ],
        "additionalProperties": false
      },
      "other_domain": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "description": "Normalized hostname."
          },
          "m365_tenant_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Microsoft 365 tenant that verified the domain, or null when none has."
          },
          "site_status": {
            "type": "string",
            "enum": [
              "live",
              "redirected",
              "not_found",
              "blocked",
              "server_error",
              "unreachable",
              "invalid"
            ]
          },
          "site_domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "Hostname the domain's website lands on after redirects."
          }
        },
        "required": [
          "domain",
          "m365_tenant_id",
          "site_status",
          "site_domain"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "same_organization",
      "matched_on",
      "domain",
      "other_domain"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.