Trustfull Domain

Trustfull Domain

Trustfull's API endpoints are quite flexible and you can request a range of services from a single endpoint

One of the possible use cases is Domain Intelligence

What is Domain Intelligence?

Domain Intelligence is a product that combines advanced domain validation, data enrichment, and a specific AI model all based on a pair of touch point, the domain and a country code.

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.

Following an example of a Domain Intelligence request:

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"
     }
}'

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, using the customer_id provided in your original request.

Status Codes

CodeTypeDescription
2XX-The request was successfully executed and the operation was successful
400CLIENTThe 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.
403CLIENTThe request was not processed because there was an issue with the authentication
401CLIENTThis may happen if you correctly populated the API key field but the key is either incorrect or not enabled.
402CLIENTAPI key used has no available credit
429CLIENTIndicates the user has sent too many requests in a given amount of time
500SERVERThis is a generic error indicating a server-side problem.
504SERVERGateway 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.

ErrorDescription
INVALID_PAYLOADThe payload of the request contains fields that are not managed by the API or misses some required fields.
DUPLICATED_CUSTOMER_IDThe request was performed with the same customer_id of a previous one. Only a single request is allowed for a customer_id.
Language
URL
Click Try It! to start a request and see the response here!