Set the app profile
Replace the branding used for new OAuth connections.
PUT
/api/v1/app-profileconst response = await fetch("https://api.smallworld.sh/api/v1/app-profile", {
method: "PUT",
headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Support agent",
"homepageUrl": "https://example.com"
}),
});
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.
Request body#
namestringrequired1–60 trimmed printable characters.
logoUrlstring | nullOptional absolute HTTPS image URL, up to 2,048 characters. Omit, null, or an empty string removes it.
homepageUrlstring | nullOptional absolute HTTPS URL, up to 2,048 characters. Omit, null, or an empty string removes it.
Responses#
Returns the app profile after validating its optional logo.
{
"name": "Support agent",
"logoUrl": null,
"logoStatus": null,
"logoCheckedAt": null,
"logoError": null,
"logoPreviewUrl": null,
"homepageUrl": "https://example.com/",
"clientName": "Support agent",
"configured": true
}
More about this endpoint
PUT replaces the profile. Optional URLs left out are cleared. Credentials and URL fragments are rejected; HTTP is accepted only on loopback hosts for development.
The same logo availability checks as the dashboard run before the profile is saved.