Docs / built-apps / getSeo

getSeo

utilitysince 0.5.0not for built apps

Client function: read a site's builder-set SEO configuration.

import { getSeo } from 'flowstack-sdk'

Non-React client function. GET /api/v1/sites/{siteId}/seo. Returns the AppSeo block the builder has stored for the app — description, keywords, OG image, FAQ entries and structured-data type.

Signature

getSeo(credentials, siteId, config?): Promise<ApiResponse<{ site_id: string; seo: AppSeo }>>

Parameters

ParamTypeNotesDescription
credentialsFlowstackCredentialsrequiredThe app owner's credentials (owner-scoped JWT).
siteIdstringrequiredThe site/app id to read.
configFlowstackClientConfigClient config (baseUrl, tenantId as needed).

Returns

FieldTypeDescription
Promise<ApiResponse<{ site_id: string; seo: AppSeo }>>The stored AppSeo config. Fields are all optional — an unconfigured site returns an empty object.

Examples

Read SEO config
const res = await getSeo(credentials, siteId);
if (res.ok) console.log(res.data.seo.description);
WarningOwner/management operation — call it with the app owner's credentials from a builder/dashboard/server context, not from inside the generated app's end-user runtime. builtAppSafe is false.

See also

setSeo · AppSeo

Source: src/api/client.ts (Builder SEO, P0-176) · Also available in llms-full.txt and registry.json.