Mangools/API

Find a saved brand profile for a domain

Find a brand profile you already saved for a domain, so a new monitor can start from it instead of building a new one. The profile comes from one of your monitors on the same domain that has a saved brand profile, preferring a monitor in the same location, then the newest.

Query parameters:

  • domain — domain of the new monitor
  • location_id — optional location of the new monitor

Response:

  • match — null when none of your monitors on this domain has a saved profile; otherwise that monitor's monitor_id, brand, domain, location_id, location_label and its saved profile, and regenerations_left, the regenerations of the new monitor
GET
/aiwatcher/brand-profile/reuse

Authorization

ApiKeyAuth
x-access-token<token>

API token issued for your Mangools account, sent as an API key in the x-access-token HTTP header. This is NOT a standard RFC 6750 Authorization: Bearer <token> header. Auto-generated clients should be configured to send the token in x-access-token accordingly.

In: header

Query Parameters

domain*string

Domain to find a saved brand profile for.

location_id?integer

Location of the new monitor (optional). A monitor in this location is preferred.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://api.mangools.com/v3/aiwatcher/brand-profile/reuse?domain=string"
{
  "match": {
    "monitor_id": "string",
    "brand": "string",
    "domain": "string",
    "location_id": 0,
    "location_label": "string",
    "profile": {
      "about": "string",
      "about_origin": "site",
      "products": [
        {
          "key": "string",
          "name": "string",
          "description": "string",
          "origin": "site"
        }
      ],
      "audiences": [
        {
          "key": "string",
          "name": "string",
          "origin": "site"
        }
      ],
      "business_type": "string",
      "business_type_origin": "site",
      "removed_keys": [
        "string"
      ],
      "source": "homepage",
      "fallback_reason": "timeout",
      "built_for": {
        "domain": "string",
        "brand": "string"
      },
      "homepage_read_at": "2019-08-24T14:15:22Z",
      "saved_at": "2019-08-24T14:15:22Z",
      "regenerations": 0
    },
    "regenerations_left": 0
  }
}
{
  "error": {
    "type": "AuthError",
    "message": "Invalid API Key"
  }
}
{
  "error": {
    "type": "ValidationError",
    "message": "Your request is invalid",
    "errors": [
      "Your request is invalid"
    ]
  }
}
{
  "error": {
    "type": "Error",
    "message": "Internal server error"
  }
}