---
updatedAt: 2026-10-21T15:38:24.000Z
agentTools:
  projectIndex: https://docs.trustfull.com/llms.txt
---

# Trustfull Domain

Trustfull Domain

[Trustfull Domain](https://docs.trustfull.com/docs/trustfull-domain) checks whether a domain belongs to a real, operating business by analyzing its website, technical setup, company data and reputation, and returns a 0–1000 risk score.

## Request

The **Domain Intelligence** endpoint works asynchronously. When you submit a request,
the API immediately responds with a `200 OK` status if the request is valid and accepted for processing. The actual enrichment and decoration of the domain data happen in the background.

You can also send `model_id` to choose the model that computes the score. Use one of your custom models, or a Trustfull standard model such as `domain_score`. Without it, the API uses the active model.

Below is an example of a **Trustfull Domain** request:

```shell
curl --request POST \
     --url https://api.fido.id/1.0/domain-intelligence/ \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'x-api-key: [your_app_key]' \
     --data '
{
     "customer_id": "your_customer_id",
     "claims": [
          "domain"
     ],  
     "domain": {
          "value": "trustfull.com"
     },
     "model_id": "your_model_id"
}'
```

## Asynchronous Decoration

When you submit a request, the API immediately responds with a `200 OK` status if the request is valid and accepted for processing. The actual enrichment and decoration of the domain data happen in the background.

To retrieve the result of the decoration, you must perform a subsequent call to the
dedicated API endpoint described at [Get Domain API](https://docs.trustfull.com/reference/get-domain-api), using the `customer_id` provided in your original request.

### Status Codes

| Code | Type   | Description                                                                                                                                                                                                              |
| :--- | :----- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 2XX  | -      | The request was successfully executed and the operation was successful                                                                                                                                                   |
| 400  | CLIENT | The request was not processed because it contained formal errors. The service will provide as a response the details of the detected error. These errors can range from invalid payload to logic errors in the API call. |
| 403  | CLIENT | The request was not processed because there was an issue with the authentication                                                                                                                                         |
| 401  | CLIENT | This may happen if you correctly populated the API key field but the key is either incorrect or not enabled.                                                                                                             |
| 402  | CLIENT | API key used has no available credit                                                                                                                                                                                     |
| 429  | CLIENT | Indicates the user has sent too many requests in a given amount of time                                                                                                                                                  |
| 500  | SERVER | This is a generic error indicating a server-side problem.                                                                                                                                                                |
| 504  | SERVER | Gateway timeout, the server took too much time to response and closed the connection. In most cases is safe to retry this kind of transaction                                                                            |

### Specific errors

All the errors listed below can be generated by calling the API with an invalid payload. These errors are classified as CLIENT ERRORS and will return a 400 status code.

When the API receives an invalid payload, it will respond with a 400 status code, indicating a client error. This occurs when the request parameters do not meet the required specifications or contain malformed data.

| Error                    | Description                                                                                                                  |
| :----------------------- | :--------------------------------------------------------------------------------------------------------------------------- |
| INVALID\_PAYLOAD         | The payload of the request contains fields that are not managed by the API or misses some required fields.                   |
| DUPLICATED\_CUSTOMER\_ID | The request was performed with the same customer\_id of a previous one. Only a single request is allowed for a customer\_id. |

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "PRODUCTS",
    "description": "Hub is the main entry point for the API, it is used to retrieve data from the system",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.fido.id/{version}",
      "description": "Production",
      "variables": {
        "version": {
          "enum": [
            "1.0"
          ],
          "default": "1.0"
        }
      }
    }
  ],
  "paths": {
    "/domain-intelligence": {
      "post": {
        "tags": [
          "Products"
        ],
        "summary": "Trustfull Domain",
        "description": "Trustfull Domain",
        "operationId": "trustfull-domain-intelligence",
        "parameters": [
          {
            "$ref": "#/components/parameters/content-type"
          },
          {
            "$ref": "#/components/parameters/accept"
          },
          {
            "$ref": "#/components/parameters/x-api-key"
          },
          {
            "$ref": "#/components/parameters/x-demo"
          }
        ],
        "requestBody": {
          "description": "HubRequestDomain",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HubRequestDomain"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AsyncDomain"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HubRequestBase": {
        "title": "HubRequestBase",
        "description": "HubRequestBase",
        "required": [
          "customer_id",
          "claims"
        ],
        "properties": {
          "customer_id": {
            "description": "A string representing the unique identifier of the user you are requesting information about. Each request requires a different customer_id",
            "type": "string",
            "example": "customer_id_393494108457"
          },
          "max_enrichment_time": {
            "description": "Specifies the maximum duration for data enrichment, allowing you to fine-tune the process to enhance accuracy or reduce response time. [Read more](https://docs.trustfull.com/docs/response-times#working-with-max-enrichment-time)",
            "type": "number",
            "format": "float",
            "maximum": 10,
            "minimum": 1.7,
            "example": 3
          },
          "model_id": {
            "description": "The id of the model that computes the score: one of your models, or a system model such as phone_score. The model must score the product of the call. Leave it out to use the active model of the product.",
            "type": "string",
            "example": "c0a8f3e2-4b1d-4e8a-9f2a-7d1e2b3c4d5e"
          }
        },
        "type": "object"
      },
      "HubRequestDomain": {
        "title": "HubRequestDomain",
        "description": "HubRequestDomain",
        "required": [
          "domain"
        ],
        "properties": {
          "domain": {
            "description": "Domain information for the lookup.",
            "required": [
              "value"
            ],
            "properties": {
              "value": {
                "description": "The domain name to lookup.",
                "type": "string",
                "example": "trustfull.com"
              }
            },
            "type": "object"
          },
          "claims": {
            "type": "array",
            "items": {
              "type": "string",
              "default": "domain",
              "enum": [
                "domain"
              ]
            },
            "uniqueItems": true,
            "example": [
              "domain"
            ]
          },
          "model_id": {
            "$ref": "#/components/schemas/HubRequestBase/properties/model_id"
          },
          "merchant_mcc": {
            "description": "Optional merchant category code (MCC) that the merchant declares. Trustfull checks it against the MCC list, answers 400 when it is not on the list, and compares it with the website.",
            "type": "string",
            "example": "5814"
          },
          "customer_id": {
            "description": "A string representing the unique identifier of the user you are requesting information about. Each request requires a different customer_id",
            "type": "string",
            "example": "customer_id_393494108457"
          }
        },
        "type": "object"
      },
      "AsyncDomain": {
        "title": "Domain",
        "description": "Domain",
        "properties": {
          "status": {
            "type": "string",
            "example": "ok"
          },
          "url": {
            "type": "string",
            "example": "https://api-staging.fido.id/1.0/domain-intelligence/your_customer_id"
          },
          "message": {
            "type": "string",
            "example": "The request is still being processed"
          }
        },
        "type": "object"
      }
    },
    "parameters": {
      "content-type": {
        "name": "content-type",
        "in": "header",
        "schema": {
          "type": "string",
          "default": "application/json"
        }
      },
      "accept": {
        "name": "accept",
        "in": "header",
        "schema": {
          "type": "string",
          "default": "application/json"
        }
      },
      "x-api-key": {
        "name": "x-api-key",
        "in": "header",
        "required": true,
        "schema": {
          "type": "string",
          "example": "[your-api-key]"
        }
      },
      "x-demo": {
        "name": "x-demo",
        "in": "header",
        "schema": {
          "type": "string"
        }
      }
    }
  }
}
```