<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Applies the fix for one check from an SEO scan and returns what it did.

Get the checks from Run SEO scan or Get last SEO scan. Each check Base44 can act on carries a fix_action. Send its type as fix_type and its params as params.

The fix actions fall into three groups. Some change the app's SEO settings, some change the app itself, and the rest change nothing and point you to the app editor screen where you make the fix. An action that changes settings replaces the value it sets, including a value someone edited by hand. The exception is generate_page_meta with overwrite_existing set to false in params, as the scan sends it: it keeps page titles and descriptions someone wrote by hand.

No action edits the app's code, creates a checkpoint, or uses the workspace's credits.

A call can succeed and still report success as false when the action had nothing to apply, such as generate_json_ld on an app with no entity Base44 can match to a Schema.org type.

Calling an action again applies it again. Most land on the same result every time, but generate_description writes a new description on each call.

A successful call means the change is saved. The live site can take a little while to catch up.

<Warning>The response includes fields beyond the ones documented here. Don't rely on undocumented response fields, as they can change at any time. Send only the fix_type values documented here. Other values are not supported and their behavior can change.</Warning>

post/api/apps/{app_id}/seo/fix

Request

  • Base URL
    https://app.base44.com
  • URL
    https://app.base44.com/api/apps/{app_id}/seo/fix
  • Auth
    HTTP bearer

Path parameters

app_idstring required

ID of the app to fix.

Request body

fix_type'enable_llms_txt' | 'enable_ai_crawlers' | 'generate_json_ld' | 'generate_page_meta' | 'generate_website_schema' | 'generate_organization_schema' | 'generate_faq_schema' | 'generate_breadcrumb_schema' | 'generate_canonical' | 'generate_description' | 'suggest_shorter_title' | 'set_app_title' | 'edit_app_description' | 'edit_public_access' | 'open_seo_advanced' | 'set_og_image' | 'connect_domain' | 'edit_slug' | 'enable_https' | 'publish_app' | 'fix_with_ai' required

Action to apply, the type of a check's fix_action in Run SEO scan or Get last SEO scan. See Fix actions for what each one does.

paramsobject

Arguments for the action, the params of the same fix_action, sent as they are. Defaults to an empty object.

Example request

{
  "fix_type": "enable_llms_txt",
  "params": {}
}

Response

What the action did.

Example response

{
  "result": {
    "success": true,
    "message": "llms.txt enabled",
    "redirect": "domains"
  }
}

Changes