API reference · v1.0.0

Accounts

The accounts of your end users: give an account created without a domain its domain, and choose how Flavio works for it and the language it writes in.

View as Markdown
Base URL
There is no single base URL: each partner works on its own domain, under its own brand, so your customers never see ours. We give you yours when we set you up together. The examples use app.acmeseo.com.
PATCH /api/accounts/{uuid}

Update account

Changes the details of an account. An account created without a domain gets one with domain: send it once the website is live there. Flavio starts its first scan right away and, from then on, scans it on its own every scan_interval days (in product_details.features of the account): there is no scan to ask for. The timeline records each one as scan.completed.

When the first scan ends, Flavio links the pages of the plan to the ones it found, checks what was answered with acknowledge (a page to create is resolved once found at its path), measures Get AI readiness and opens interventions for what is missing.

Authentication

  • Authorization header · Bearer JWT

    The JWT of one account (HMAC-SHA256, signed with the API Key), sent as Authorization: Bearer <JWT>. It gives access to that account only: every operation of Flavio Agent, Webhooks, Site data and Keywords, competitors and pages, and updating the account.

Parameters

  • uuid path · stringrequired

    UUID of the Account to update

Request body

json:api
data.type
"account"required
data.id
stringrequired

The ID of the account to update. MUST match the uuid parameter in the URL

data.attributes

  • domain string

    The domain of the website, for an account created without one. Send it once the website is live there: Flavio scans it right away, and then every scan_interval days on its own. It cannot be changed once given: 400 if the account already has one

    Example: bloomandco.example

  • flavio_mode string

    How Flavio works for the account. With on_demand, the default, Flavio works when you ask it to. With loop, Flavio also works by itself every so often: it asks for a new scan when the last one is old, asks AI assistants about the business once a month, brings in the data of the connected sources and writes the first plan when there is none. Only for accounts with Flavio.

    Allowed values: on_demand, loop

    Example: loop

  • lang string

    The language of the account’s user, such as en or es. Flavio writes the texts of the account in it, such as the plan and the interventions

    Example: en

Responses

200 OK
json:api
data.type
"account"
data.id
string

The unique ID for the Account. This id is the same value returned in the uuid field of the Account object attributes.

data.attributes

  • uuid string

    The unique resource identifier for this Account

    Example: {uuid}

  • promo stringnullable

    Promotional tag of this Account

    Example: xmas-promo

  • created_at string

    Account creation date / time

    Example: 2017-09-28T00:22:38Z

  • deleted_at stringnullable

    The date / time on which this Account was deleted

  • suspended_at stringnullable

    The date / time on which this Account was suspended

  • delete_date stringnullable

    Account is still active but marked for deletion at this date / time.

  • trial_period numbernullable

    Number of trial days

    Example: 10

  • demo number

    Example: 0

  • is_configured boolean

    This is a boolean field that flags active user interaction of the tool. If this field is true, the user has passed and configured the initial Wizard, marking the active usage of the product.

  • product string

    Type of product

    Example: evolution

  • product_details object

    The account’s product: its name, its features and whether it is free

    Child attributes
    • name string

      Visible name of the product

      Example: Pro

    • features object

      What a product includes and its limits, such as the number of keywords and competitors.

      Child attributes
      • api_only boolean
      • allow_anonymous boolean
      • max_keywords numbernullable

        Maximum number of keywords allowed

        Example: 20

      • max_competitors numbernullable

        Maximum number of competitors allowed

        Example: 4

      • max_pages number

        Maximum number of web pages scanned in each scan

        Example: 1000

      • ofs_tool boolean
      • max_tasks numbernullable

        Maximum number of tasks (null: no limit)

      • pdf_download boolean

        Whether the results can be downloaded as a PDF

      • scan_interval number

        Interval of days between each automatic scan

        Example: 1

      • scan_on_demand boolean
      • social boolean
      • max_recipients numbernullable
      • show_wp_instructions boolean
      • have_plugin stringnullable

        The plugin the product is for, such as wordpress, or null

        Example: wordpress

      • plugin_basename stringnullable

        The base name of that plugin, such as marketgoo-seo

        Example: marketgoo-seo

      • advanced_tools boolean
      • advanced_popularity boolean
      • meta_suggestions number

        AI meta description suggestions a site can ask for each day

        Example: 3

      • optimize_suggestions number

        AI page optimization suggestions a site can ask for each month

        Example: 20

      • local_business boolean
      • local_business_ai boolean
    • free boolean

      Whether the product is free

  • partner_token stringnullable

    The partner token this account is linked to

    Example: acme-cloud

  • domain stringnullable

    The domain for this Account web site, or null if the account has none

    Example: www.marketgoo.com

  • flavio_mode string

    How Flavio works for the account. With on_demand, the default, Flavio works when you ask it to. With loop, Flavio also works by itself every so often: it asks for a new scan when the last one is old, asks AI assistants about the business once a month, brings in the data of the connected sources and writes the first plan when there is none. Only for accounts with Flavio.

    Allowed values: on_demand, loop

    Example: loop

  • subscription objectnullable

    The account’s subscription, or null if it has none

    Child attributes
    • type number

      Example: 2

    • interval number

      Example: 1

    • gateway string

      The payment gateway of the subscription

      Example: stripe

    • gateway_id string

      The subscription’s ID in the payment gateway

      Example: sub_1AbCdEfGhIjKlMnOpQrStUvW

  • name string

    The name of the user

    Example: John Doe

  • email string

    The email of the user

    Example: john@doe.com

  • ulid string

    Example: 8d1f6b0c2a9e4f7d3b5c1a0e9f8d7c6b5a4e3d2c

  • lang string

    The language of the user

    Example: en

  • site object

    Only when the account has a domain

    Child attributes
    • frozen_at stringnullable

      The date / time on which the site was frozen

    • domain string

      The domain for this site

      Example: www.marketgoo.com

    • created_at string

      Site creation date / time (UTC)

      Example: 2017-09-26T14:20:36Z

    • checked_at string

      Date / time of the last automatic scan

      Example: 2017-10-02T14:20:41Z

    • thumbnail stringnullable

      Thumbnail filename. Use the following table to prefix this filename and get the correct thumbnail size and type:

      TypeSizePrefix path
      DesktopMedium (400x300)/thumbnails/desktop/medium
      DesktopSmall (200x150)/thumbnails/desktop/small
      DesktopThumbnail (100x75)/thumbnails/desktop/thumbnail
      MobileMedium (320x568)/thumbnails/mobile/medium
      MobileSmall (160x284)/thumbnails/mobile/small
      MobileThumbnail (80x142)/thumbnails/mobile/thumbnail
      MobileLighthouse report/thumbnails/mobile/lighthouse
      TabletMedium (400x300)/thumbnails/tablet/medium
      TabletSmall (200x150)/thumbnails/tablet/small
      TabletThumbnail (100x75)/thumbnails/tablet/thumbnail

      Add this thumbnail filename to the prefix path to create the final URL path to the desired thumbnail type and size. For example:

      https://app.acmeseo.com/thumbnails/desktop/medium/fb8a42eaaad1eaf41f73e3643140e8f87a15f057.webp

      The Lighthouse report is the Google Lighthouse report of the homepage on mobile, in JSON. Its filename is the same with the .json extension instead of .webp:

      https://app.acmeseo.com/thumbnails/mobile/lighthouse/fb8a42eaaad1eaf41f73e3643140e8f87a15f057.json

      Example: fb8a42eaaad1eaf41f73e3643140e8f87a15f057.webp

    • error objectnullable

      Only present when the site could not be checked: the HTTP status and the cURL code and message

      Child attributes
      • http_status number

        Example: 606

      • curl_status number

        Example: 6

      • curl_message string

        Example: Couldn't resolve host name

    • config object

      The settings of the site, as your customer or your integration saved them

      Child attributes
      • company_name stringnullable

        The name of the business

        Example: marketgoo

      • is_local boolean

        Whether it is a local business: true when city is set

      • city stringnullable

        The city of a local business, empty if it is not one

      • country string

        The country the site targets, as a lowercase ISO 3166-1 alpha-2 code

        Example: us

      • webmaster_email stringnullable

        The email of the person in charge of the site

        Example: webmaster@marketgoo.com

      • webmaster_name stringnullable

        The name of the person in charge of the site

        Example: marketgoo Team

      • goal stringnullable

        The main goal of the site, customers, visibility or loyalty (older accounts may have other values), or null if it is not set

      • industry stringnullable

        The industry of the business: finance, education, tech-ecommerce, entertainment, food-services, real-estate, healthcare-wellness, travel-hospitality, home-services or other

        Example: tech-ecommerce

      • cms string

        The CMS of the site, as detected in the last scan

        Example: wordpress

      • google_oauth objectnullable

        The Google services connected to the account, or null if none is

        Child attributes
        • profile object

          The property connected in each service

          Child attributes
          • google_analytics objectnullable

            The Google Analytics property, or null

            Child attributes
            • name string

              The name of the property

            • web_property_id string

              The ID of the property

          • google_search_console objectnullable

            The Google Search Console property, or null

            Child attributes
            • web_property_id string

              The URL of the property

          • google_business objectnullable

            The Google Business Profile location, or null

            Child attributes
            • id string

              The ID of the location in Google

              Example: locations/13642305279219253897

            • name string

              The name of the business on Google

              Example: Sunrise Bakery

            • account_id string

              The ID of the Google account the location belongs to

              Example: accounts/115828675202062250873

            • account_name string

              The name of that Google account

              Example: Sunrise Bakery LLC

            • address stringnullable

              The address of the business, or null

              Example: 1200 S Congress Ave, Austin, TX 78704

            • phone stringnullable

              The main phone of the business, or null

              Example: +1 512 555 0142

            • website stringnullable

              The website the profile links to, or null

              Example: https://www.sunrisebakery.com/

            • place_id stringnullable

              The Google Maps place ID, or null

              Example: ChIJHVNSnmdlRA0RnYpQgZ7NvDA

        • scopes object

          Whether your customer gave access to each service

          Child attributes
          • google_analytics boolean
          • google_search_console boolean
          • google_business boolean
        • need_authentication boolean

          true when the connection has expired or was revoked and your customer has to connect again

      • phone_prefix stringnullable

        The international calling code of the business phone

      • phone_number stringnullable

        The phone number of the business

      • logo stringnullable

        The absolute URL of the business logo

      • openai object

        How many AI suggestions are left

        Child attributes
        • meta_tries_left integer

          AI meta description suggestions left today (meta_suggestions of the product, every day)

          Example: 3

        • optimize_tries_left integer

          AI page optimization suggestions left this month (optimize_suggestions of the product, every month)

          Example: 20

      • tools object

        What was saved in the tools of the site

        Child attributes
        • structureddata objectnullable

          The data last saved in the structured data generator (LocalBusiness), or null

400 Bad Request
  • errors object[]
    Child attributes
    • code number

      Numeric error code

      Example: 1023

    • title string

      Error message title

      Example: Invalid Email

    • detail string

      Error message detail

      Example: The 'email' parameter is empty or invalid.

    • source object

      This is the parameter that triggered the error

      Child attributes
      • pointer string

        Example: /data/attributes/email

404 Not Found
  • errors object[]
    Child attributes
    • status number

      HTTP status

      Example: 404

    • title string

      Error message title

      Example: Not Found

    • detail string

      Error message detail

      Example: The requested account ID was not found

Request

curl -X PATCH https://app.acmeseo.com/api/accounts/{uuid} \
  -H "Authorization: Bearer <JWT>" \
  -H "Accept: application/vnd.marketgoo.api+json" \
  -H "Content-Type: application/vnd.marketgoo.api+json" \
  -d '{
  "data": {
    "type": "account",
    "id": "{uuid}",
    "attributes": {
      "domain": "bloomandco.example"
    }
  }
}'

Response

{
  "data": {
    "type": "account",
    "id": "{uuid}",
    "attributes": {
      "uuid": "{uuid}",
      "promo": "xmas-promo",
      "created_at": "2026-05-19T16:52:09Z",
      "deleted_at": null,
      "suspended_at": null,
      "delete_date": null,
      "trial_period": 0,
      "demo": 0,
      "is_configured": true,
      "product": "evolution",
      "product_details": {
        "name": "Pro",
        "features": {
          "api_only": false,
          "allow_anonymous": false,
          "max_keywords": 20,
          "max_competitors": 4,
          "max_pages": 1000,
          "ofs_tool": true,
          "max_tasks": null,
          "pdf_download": true,
          "scan_interval": 1,
          "scan_on_demand": true,
          "social": false,
          "max_recipients": null,
          "show_wp_instructions": false,
          "have_plugin": null,
          "plugin_basename": null,
          "advanced_tools": true,
          "advanced_popularity": true,
          "meta_suggestions": 3,
          "optimize_suggestions": 20,
          "local_business": true,
          "local_business_ai": true
        },
        "free": false
      },
      "partner_token": "acme-cloud",
      "domain": "www.marketgoo.com",
      "subscription": {
        "type": 2,
        "interval": 1,
        "gateway": "stripe",
        "gateway_id": "sub_1AbCdEfGhIjKlMnOpQrStUvW"
      },
      "name": "John Doe",
      "email": "john@doe.com",
      "ulid": "8d1f6b0c2a9e4f7d3b5c1a0e9f8d7c6b5a4e3d2c",
      "lang": "en",
      "site": {
        "frozen_at": null,
        "domain": "www.marketgoo.com",
        "created_at": "2026-05-19T16:52:09Z",
        "checked_at": "2026-10-29T16:52:50Z",
        "thumbnail": "fb8a42eaaad1eaf41f73e3643140e8f87a15f057.webp"
      }
    }
  }
}