> ## Documentation Index
> Fetch the complete documentation index at: https://docs.base44.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update SEO settings

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

Saves SEO settings for the app and returns the settings as they now stand.

This is a partial update. Keys you leave out of `settings` keep their saved values. The same is true one level deeper for `pages`. A page absent from your `pages` object keeps its existing overrides, and within a page you do include, any field you leave out keeps its saved value. For example, sending only a page's `title` changes that field alone. Its `description` and every other page stay as they were. To hide or show a single page, [Update page SEO settings](/api-reference/update-page-seo-settings) changes just its `noindex` without sending the rest of the settings.

You can't remove a page or a page override through this endpoint. An empty `pages` object changes nothing, and a `null` page entry is rejected. To stop a page overriding a tag, send an empty string as that field's value instead.

A successful call means the settings are saved. The live site can take a little while to catch up, so confirm with [Get SEO settings](/api-reference/get-seo-settings) rather than treating the published pages as proof.

<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 fields documented here. Other request fields are not supported and their behavior can change.</Warning>



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json put /api/apps/{app_id}/seo/settings
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - PersonalAccessTokenAuth: []
paths:
  /api/apps/{app_id}/seo/settings:
    put:
      summary: Update SEO settings
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        Saves SEO settings for the app and returns the settings as they now
        stand.


        This is a partial update. Keys you leave out of `settings` keep their
        saved values. The same is true one level deeper for `pages`. A page
        absent from your `pages` object keeps its existing overrides, and within
        a page you do include, any field you leave out keeps its saved value.
        For example, sending only a page's `title` changes that field alone. Its
        `description` and every other page stay as they were. To hide or show a
        single page, [Update page SEO
        settings](/api-reference/update-page-seo-settings) changes just its
        `noindex` without sending the rest of the settings.


        You can't remove a page or a page override through this endpoint. An
        empty `pages` object changes nothing, and a `null` page entry is
        rejected. To stop a page overriding a tag, send an empty string as that
        field's value instead.


        A successful call means the settings are saved. The live site can take a
        little while to catch up, so confirm with [Get SEO
        settings](/api-reference/get-seo-settings) rather than treating the
        published pages as proof.


        <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 fields documented here. Other request fields are not
        supported and their behavior can change.</Warning>
      operationId: update_seo_settings_api_apps__app_id__seo_settings_put
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the app whose SEO settings you want.
            title: App Id
          description: ID of the app whose SEO settings you want.
          example: 6820f3a4e7b91d003c45a1f2
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSEOSettingsRequest'
            example:
              settings:
                pages:
                  Home:
                    title: Acme CRM
                    description: Track leads and deals in one place.
                    og_image: https://cdn.example.com/acme-og.png
                sitemap_xml_enabled: true
      responses:
        '200':
          description: The settings as they stand after the merge.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SEOSettingsResponse'
        '401':
          description: Missing or invalid credentials.
        '403':
          description: >-
            You don't have access to this app, or your token or key is
            read-only. These endpoints accept a personal access token or a
            workspace API key, and this one refuses a read-only credential.
        '404':
          description: App not found.
        '422':
          description: >-
            The body is missing, `settings` is missing or not an object, a value
            doesn't match its field's type, `og_image` exceeds 2048 characters
            or isn't a valid `https://` URL with a host, `content_query_params`
            has more than 25 entries, or an entry in `custom_json_ld` isn't a
            JSON object.
        '429':
          description: >-
            Rate limit exceeded. The base limit is 30 requests per minute for
            each app, counted across the workspace rather than per caller, and
            shared with the app's other SEO endpoints. See [Rate
            limits](/developers/references/apps-api/get-started/rate-limits) for
            the multiplier your plan gets.
        '503':
          description: >-
            Database temporarily unavailable (`database_unavailable`): the data
            cluster did not answer in time. Retry after the `Retry-After`
            seconds.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
              examples:
                database_unavailable:
                  summary: database_unavailable
                  value:
                    error:
                      code: database_unavailable
                      message: Database temporarily unavailable, please retry
                      details: {}
      security:
        - PersonalAccessTokenAuth:
            - full_access
        - WorkspaceApiKeyAuth:
            - full_access
        - WorkspaceApiKeyBearerAuth:
            - full_access
components:
  schemas:
    UpdateSEOSettingsRequest:
      properties:
        settings:
          $ref: '#/components/schemas/SEOSettings'
          description: The settings to save. Send only the keys you want to change.
      type: object
      required:
        - settings
      title: UpdateSEOSettingsRequest
    SEOSettingsResponse:
      properties:
        result:
          $ref: '#/components/schemas/SEOSettingsResource'
          description: >-
            The saved settings. This is an empty object for an app whose SEO
            settings have never been changed.
      type: object
      required:
        - result
      title: SEOSettingsResponse
      description: An app's SEO settings.
    StandardErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/StandardError'
          description: What went wrong.
      type: object
      required:
        - error
      title: StandardErrorEnvelope
      description: The error body returned in the standard envelope.
    SEOSettings:
      properties:
        seo_disabled:
          type: boolean
          title: Seo Disabled
          description: >-
            Whether you run your own SEO. When `true`, Base44 stops injecting
            titles, descriptions, Open Graph and Twitter tags, canonical URLs,
            JSON-LD and prerender snapshots, and serves your own
            `public/robots.txt` when you ship one. Defaults to `false` while the
            key is absent. This does not add a `noindex` tag, and a login-gated
            or private app stays unindexed whatever you set here.
          example: false
        platform_meta_injection_enabled:
          type: boolean
          title: Platform Meta Injection Enabled
          description: >-
            Whether Base44 injects the title, description, Open Graph and
            Twitter tag block. Set it to `false` when your deployed `index.html`
            already carries a complete set. Narrower than `seo_disabled`, which
            also turns off canonical URLs, JSON-LD and snapshots. Defaults to
            `true` while the key is absent.
          example: true
        platform_jsonld_injection_enabled:
          type: boolean
          title: Platform Jsonld Injection Enabled
          description: >-
            Whether Base44 injects its own WebSite, Organization, BreadcrumbList
            and FAQPage JSON-LD. Set it to `false` when your app ships its own
            structured data. Defaults to `true` while the key is absent.
          example: true
        pages:
          additionalProperties:
            $ref: '#/components/schemas/SEOSettingsPage'
          type: object
          title: Pages
          description: >-
            Per-page tag overrides, keyed by the page's component name as it
            appears in the app's code. The key is absent while no page overrides
            anything.
          example:
            Home:
              description: Track leads and deals in one place.
              og_image: https://cdn.example.com/acme-og.png
              title: Acme CRM
        custom_json_ld:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Custom Json Ld
          description: >-
            Extra JSON-LD entries Base44 injects alongside its own. Each entry
            needs a `json_ld_template` key holding the markup object to inject,
            matching the shape [Preview JSON-LD](/api-reference/preview-json-ld)
            returns. The key is absent while you have added none.
          example:
            - confidence: '0.85'
              entity_name: Product
              field_mapping:
                name: title
              json_ld_template:
                '@context': https://schema.org
                '@type': Product
                name: Acme CRM
              schema_type: Product
        llms_txt_enabled:
          type: boolean
          title: Llms Txt Enabled
          description: >-
            Whether Base44 serves a generated `/llms.txt` describing the app to
            AI crawlers. A shipped `public/llms.txt` always wins. Defaults to
            `false` while the key is absent.
          example: false
        robots_txt_enabled:
          type: boolean
          title: Robots Txt Enabled
          description: >-
            Whether Base44 generates `/robots.txt`. When `false`, your deployed
            `public/robots.txt` is served instead, and the path returns 404 when
            you ship none. Defaults to `true` while the key is absent.
          example: true
        sitemap_xml_enabled:
          type: boolean
          title: Sitemap Xml Enabled
          description: >-
            Whether Base44 generates `/sitemap.xml`. When `false`, your deployed
            `public/sitemap.xml` is served instead, and the path returns 404
            when you ship none. Defaults to `true` while the key is absent.
          example: true
        ai_crawlers_enabled:
          type: boolean
          title: Ai Crawlers Enabled
          description: >-
            Whether known AI crawlers are allowed in the generated `robots.txt`.
            Defaults to `true` while the key is absent.
          example: true
        website_schema:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Website Schema
          description: Saved WebSite JSON-LD object. The key is absent while none is saved.
          example:
            '@context': https://schema.org
            '@type': WebSite
            name: Acme CRM
            url: https://acme.com
        breadcrumb_schema:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Breadcrumb Schema
          description: >-
            Saved BreadcrumbList JSON-LD object. It is served only while
            `synthesized_breadcrumb_enabled` is `false`. The key is absent while
            none is saved.
          example:
            '@context': https://schema.org
            '@type': BreadcrumbList
            itemListElement: []
        synthesized_breadcrumb_enabled:
          type: boolean
          title: Synthesized Breadcrumb Enabled
          description: >-
            Whether Base44 builds a BreadcrumbList for each request path at
            render time. Set it to `false` to serve the saved
            `breadcrumb_schema` instead, which is what keeps a hand-written
            breadcrumb intact. Defaults to `true` while the key is absent.
          example: true
        canonical_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Canonical Url
          description: >-
            Base URL Base44 builds canonical tags from. The app's own published
            URL is used while the key is absent.
          example: https://acme.com
        organization_schema:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Organization Schema
          description: >-
            Saved Organization JSON-LD object. The key is absent while none is
            saved.
          example:
            '@context': https://schema.org
            '@type': Organization
            name: Acme
            url: https://acme.com
        faq_schema:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Faq Schema
          description: Saved FAQPage JSON-LD object. The key is absent while none is saved.
          example:
            '@context': https://schema.org
            '@type': FAQPage
            mainEntity: []
        content_query_params:
          items:
            type: string
          type: array
          maxItems: 25
          title: Content Query Params
          description: >-
            Query-string parameter names whose values serve distinct content,
            such as `article` for `/guides?article=slug`. Naming one opts its
            URL variants into prerender warming, which otherwise only covers
            paths. Send at most 25 names, counted before the list is cleaned up,
            and match each name's casing exactly. Names are trimmed, and blank
            or repeated entries are dropped, so the list you read back can be
            shorter than the one you sent. Defaults to an empty list, meaning no
            query variants are warmed.
          example:
            - article
      type: object
      title: SEOSettings
    SEOSettingsResource:
      properties:
        seo_disabled:
          type: boolean
          title: Seo Disabled
          description: >-
            Whether you run your own SEO. When `true`, Base44 stops injecting
            titles, descriptions, Open Graph and Twitter tags, canonical URLs,
            JSON-LD and prerender snapshots, and serves your own
            `public/robots.txt` when you ship one. Defaults to `false` while the
            key is absent. This does not add a `noindex` tag, and a login-gated
            or private app stays unindexed whatever you set here.
          default: false
          example: false
        platform_meta_injection_enabled:
          type: boolean
          title: Platform Meta Injection Enabled
          description: >-
            Whether Base44 injects the title, description, Open Graph and
            Twitter tag block. Set it to `false` when your deployed `index.html`
            already carries a complete set. Narrower than `seo_disabled`, which
            also turns off canonical URLs, JSON-LD and snapshots. Defaults to
            `true` while the key is absent.
          default: true
          example: true
        platform_jsonld_injection_enabled:
          type: boolean
          title: Platform Jsonld Injection Enabled
          description: >-
            Whether Base44 injects its own WebSite, Organization, BreadcrumbList
            and FAQPage JSON-LD. Set it to `false` when your app ships its own
            structured data. Defaults to `true` while the key is absent.
          default: true
          example: true
        robots_txt_enabled:
          type: boolean
          title: Robots Txt Enabled
          description: >-
            Whether Base44 generates `/robots.txt`. When `false`, your deployed
            `public/robots.txt` is served instead, and the path returns 404 when
            you ship none. Defaults to `true` while the key is absent.
          default: true
          example: true
        sitemap_xml_enabled:
          type: boolean
          title: Sitemap Xml Enabled
          description: >-
            Whether Base44 generates `/sitemap.xml`. When `false`, your deployed
            `public/sitemap.xml` is served instead, and the path returns 404
            when you ship none. Defaults to `true` while the key is absent.
          default: true
          example: true
        llms_txt_enabled:
          type: boolean
          title: Llms Txt Enabled
          description: >-
            Whether Base44 serves a generated `/llms.txt` describing the app to
            AI crawlers. A shipped `public/llms.txt` always wins. Defaults to
            `false` while the key is absent.
          default: false
          example: false
        ai_crawlers_enabled:
          type: boolean
          title: Ai Crawlers Enabled
          description: >-
            Whether known AI crawlers are allowed in the generated `robots.txt`.
            Defaults to `true` while the key is absent.
          default: true
          example: true
        synthesized_breadcrumb_enabled:
          type: boolean
          title: Synthesized Breadcrumb Enabled
          description: >-
            Whether Base44 builds a BreadcrumbList for each request path at
            render time. Set it to `false` to serve the saved
            `breadcrumb_schema` instead, which is what keeps a hand-written
            breadcrumb intact. Defaults to `true` while the key is absent.
          default: true
          example: true
        canonical_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Canonical Url
          description: >-
            Base URL Base44 builds canonical tags from. The app's own published
            URL is used while the key is absent.
          example: https://acme.com
        content_query_params:
          items:
            type: string
          type: array
          maxItems: 25
          title: Content Query Params
          description: >-
            Query-string parameter names whose values serve distinct content,
            such as `article` for `/guides?article=slug`. Naming one opts its
            URL variants into prerender warming, which otherwise only covers
            paths. Send at most 25 names, counted before the list is cleaned up,
            and match each name's casing exactly. Names are trimmed, and blank
            or repeated entries are dropped, so the list you read back can be
            shorter than the one you sent. Defaults to an empty list, meaning no
            query variants are warmed.
          example:
            - article
        custom_json_ld:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Custom Json Ld
          description: >-
            Extra JSON-LD entries Base44 injects alongside its own. Each entry
            needs a `json_ld_template` key holding the markup object to inject,
            matching the shape [Preview JSON-LD](/api-reference/preview-json-ld)
            returns. The key is absent while you have added none.
          example:
            - confidence: '0.85'
              entity_name: Product
              field_mapping:
                name: title
              json_ld_template:
                '@context': https://schema.org
                '@type': Product
                name: Acme CRM
              schema_type: Product
        website_schema:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Website Schema
          description: Saved WebSite JSON-LD object. The key is absent while none is saved.
          example:
            '@context': https://schema.org
            '@type': WebSite
            name: Acme CRM
            url: https://acme.com
        organization_schema:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Organization Schema
          description: >-
            Saved Organization JSON-LD object. The key is absent while none is
            saved.
          example:
            '@context': https://schema.org
            '@type': Organization
            name: Acme
            url: https://acme.com
        breadcrumb_schema:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Breadcrumb Schema
          description: >-
            Saved BreadcrumbList JSON-LD object. It is served only while
            `synthesized_breadcrumb_enabled` is `false`. The key is absent while
            none is saved.
          example:
            '@context': https://schema.org
            '@type': BreadcrumbList
            itemListElement: []
        faq_schema:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Faq Schema
          description: Saved FAQPage JSON-LD object. The key is absent while none is saved.
          example:
            '@context': https://schema.org
            '@type': FAQPage
            mainEntity: []
        pages:
          additionalProperties:
            $ref: '#/components/schemas/SEOPageSettings'
          type: object
          title: Pages
          description: >-
            Per-page tag overrides, keyed by the page's component name as it
            appears in the app's code. The key is absent while no page overrides
            anything.
          example:
            Home:
              description: Track leads and deals in one place.
              og_image: https://cdn.example.com/acme-og.png
              title: Acme CRM
      type: object
      title: SEOSettingsResource
      description: An app's saved SEO settings.
    StandardError:
      properties:
        code:
          type: string
          title: Code
          description: >-
            Stable machine-readable cause of the failure. Match on this, not on
            `message`.
          example: not_found
        message:
          type: string
          title: Message
          description: Human-readable explanation. It isn't a stable contract.
          example: App not found
        details:
          additionalProperties: true
          type: object
          title: Details
          description: >-
            Structured context for the failure, or an empty object when there's
            none.
          example: {}
      type: object
      required:
        - code
        - message
      title: StandardError
    SEOSettingsPage:
      properties:
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
          description: >-
            Title tag for this page. The key is absent while the page overrides
            no title.
          example: Acme CRM
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: >-
            Meta description for this page. The key is absent while the page
            overrides no description.
          example: Track leads and deals in one place.
        og_image:
          anyOf:
            - type: string
              maxLength: 2048
            - type: 'null'
          title: Og Image
          description: >-
            Image URL for the `og:image` and `twitter:image` tags on this page.
            It must be an `https://` URL with a host and no backslashes, and it
            cannot exceed 2048 characters. Send an empty string to stop
            overriding the image.
          example: https://cdn.example.com/acme-og.png
        noindex:
          type: boolean
          title: Noindex
          description: >-
            Whether the page is hidden from search engines. When `true`, Base44
            serves the page with a `noindex, nofollow` robots directive and
            leaves it out of the `sitemap.xml` it generates. This applies only
            while the app is search-eligible and `seo_disabled` is `false`.
            Defaults to `false` while the key is absent.
          example: false
      type: object
      title: SEOSettingsPage
      description: >-
        The meta tags one page overrides, and whether it's hidden from search
        engines.
    SEOPageSettings:
      properties:
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
          description: >-
            Title tag for this page. The key is absent while the page overrides
            no title.
          example: Acme CRM
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: >-
            Meta description for this page. The key is absent while the page
            overrides no description.
          example: Track leads and deals in one place.
        og_image:
          anyOf:
            - type: string
              maxLength: 2048
            - type: 'null'
          title: Og Image
          description: >-
            Image URL for the `og:image` and `twitter:image` tags on this page.
            It must be an `https://` URL with a host and no backslashes, and it
            cannot exceed 2048 characters. Send an empty string to stop
            overriding the image.
          example: https://cdn.example.com/acme-og.png
        noindex:
          type: boolean
          title: Noindex
          description: >-
            Whether the page is hidden from search engines. When `true`, Base44
            serves the page with a `noindex, nofollow` robots directive and
            leaves it out of the `sitemap.xml` it generates. This applies only
            while the app is search-eligible and `seo_disabled` is `false`.
            Defaults to `false` while the key is absent.
          default: false
          example: false
      type: object
      title: SEOPageSettings
      description: >-
        The meta tags one page overrides, and whether it's hidden from search
        engines.
  securitySchemes:
    PersonalAccessTokenAuth:
      type: http
      scheme: bearer
      description: >-
        Personal access token, sent as `Authorization: Bearer <token>`. Each
        operation lists the permission it needs: `read_only` or `full_access`. A
        full-access token can call every operation. A read-only token can call
        only the operations that list `read_only`; anything else returns 403
        `read_only_credential_route_not_allowed`.
    WorkspaceApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: >-
        Workspace API key, sent as `api_key: <key>`. Each operation that accepts
        one lists what the key needs: a permission, `read_only` or
        `full_access`, like a personal access token, or a scope. A key without
        the scope gets 403 `workspace_api_key_scope_required`.
    WorkspaceApiKeyBearerAuth:
      type: http
      scheme: bearer
      description: >-
        Workspace API key, sent as `Authorization: Bearer <key>`. Accepted
        wherever `api_key` is, with the same permission.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.