Access & visibility
Allow workspace.RefetchBrandIcon on your API key.
Workspace access by default. Private member data requires approved member delegation through Brigg-Act-As; the key supplies permissions while private ownership and project boundaries remain enforced.
Request
No parameters. Send an empty JSON object ({}).
Refresh from the workspace website
Read Get branding first. This uses the workspace's primary domain configured in Brigg; it does not accept an arbitrary URL. It fetches that website's icon and replaces the workspace icon only. It does not update the logo or company profile.
If there is no configured domain, correct the workspace profile in Brigg. If the website cannot be read or supplies no usable icon, fix the website or use Update branding with an explicit image. Re-read branding after success when updating a local cache.
Response
Returns 200 OK with a JSON body.
icon_urlnull or stringRequiredAbsolute URL of the refreshed workspace icon. Null means the saved image could not be represented as a public URL; it is not an instruction to erase a cached icon. Read GetBranding to reconcile the saved branding.
Errors & retries
Set BRIGG_REQUEST_ID once for each logical action. The samples send it as Idempotency-Key. Reuse the same value and body on retries, including after a timeout; a missing response does not prove the action failed.
For rate limits, follow the server’s retry guidance and back off. See HTTP errors and safe retries and limits.
| HTTP status | Code | What to do |
|---|---|---|
| 400 | invalid_json |
Send a JSON object with Content-Type: application/json. |
| 400 | invalid_input |
Check the request fields and types. Supply a stable Idempotency-Key containing 1–200 characters. |
| 401 | invalid_key |
The workspace API key is missing, invalid or revoked. |
| 403 | forbidden |
Check the key’s operation and resource grants. If Brigg-Act-As is supplied, the key must be authorized to delegate to that member. |
| 404 | not_found |
The requested operation or resource is not available to this credential. |
| 429 | rate_limited |
Wait for Retry-After before retrying. Reuse the original Idempotency-Key. |
| 400 | no_domain |
Set the workspace's primary website in Brigg before refreshing its icon. |
| 502 | scrape_failed |
The website could not be read. Check that it is reachable, or upload an icon through UpdateBranding. |
| 404 | icon_not_found |
No usable website icon was found. Supply an image through UpdateBranding instead. |
Next steps
JSON schemas
Use the complete schemas for validation or client generation.
Full request JSON schema
{
"type": "object",
"properties": {},
"additionalProperties": false,
"examples": [
{}
]
}Full response JSON schema
{
"type": "object",
"properties": {
"icon_url": {
"description": "Absolute URL of the refreshed workspace icon. Null means the saved image could not be represented as a public URL; it is not an instruction to erase a cached icon. Read GetBranding to reconcile the saved branding.",
"title": "OpenAdThreadSubtaskAgent_phase",
"anyOf": [
{
"type": "null",
"description": "Absolute URL of the refreshed workspace icon. Null means the saved image could not be represented as a public URL; it is not an instruction to erase a cached icon. Read GetBranding to reconcile the saved branding."
},
{
"type": "string",
"description": "Absolute URL of the refreshed workspace icon. Null means the saved image could not be represented as a public URL; it is not an instruction to erase a cached icon. Read GetBranding to reconcile the saved branding."
}
]
}
},
"required": [
"icon_url"
],
"additionalProperties": false,
"examples": [
{
"icon_url": "https://example.com/icon.png"
}
]
}