Get the app profile
Read the name and branding used on provider consent screens.
GET
/api/v1/app-profileconst response = await fetch("https://api.smallworld.sh/api/v1/app-profile", {
method: "GET",
headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();
Use your server-side apiKey. Replace the example IDs.
Responses#
Returns saved branding, logo validation state, logo preview URL, effective clientName, and configured. An unsaved or removed profile uses the shared Smallworld client branding.
{
"name": "Support agent",
"logoUrl": null,
"logoStatus": null,
"logoCheckedAt": null,
"logoError": null,
"logoPreviewUrl": null,
"homepageUrl": "https://example.com/",
"clientName": "Support agent",
"configured": true
}