Skip to content

Set the agency's white label (replaces the previous one)

PUT
/v1/orgs/{org}/branding
curl --request PUT \
--url https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/branding \
--header 'Content-Type: application/json' \
--data '{ "productName": "example", "colors": {}, "logoLightVersionId": "example", "logoDarkVersionId": "example", "iconVersionId": "example", "supportEmail": "hello@example.com", "helpUrl": "example", "systemMailFromName": "example", "systemMailDomain": "example" }'
org
required
string
/^org_[a-z0-9]{26}$/

Example

org_01hx0000000000000000000000
Media typeapplication/json
object
productName
required
string
>= 1 characters <= 60 characters /^[^\x00-\x1f\x7f]*$/
colors

Primary, primary_contrast, sidebar and accent as #rrggbb; primary and primary_contrast with AA contrast (4.5:1)

object
key
additional properties
string
logoLightVersionId
string
nullable /^dvr_[a-z0-9]{26}$/
logoDarkVersionId
string
nullable /^dvr_[a-z0-9]{26}$/
iconVersionId
string
nullable /^dvr_[a-z0-9]{26}$/
supportEmail
string format: email
nullable <= 254 characters
helpUrl
string
nullable <= 500 characters /^https:\/\/\S+$/
systemMailFromName
string
nullable >= 1 characters <= 60 characters /^[^\x00-\x1f\x7f]*$/
systemMailDomain
string
nullable <= 253 characters /^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$/

White label

Media typeapplication/json
object
configured
required
boolean
entitled
required

The agency is currently entitled (5 or more paid brands)

boolean
productName
required
string
nullable
colors
required
object
key
additional properties
string
logoLightVersionId
required
string
nullable
logoDarkVersionId
required
string
nullable
iconVersionId
required
string
nullable
logoLightUrl
required
string
nullable
logoDarkUrl
required
string
nullable
iconUrl
required
string
nullable
supportEmail
required
string
nullable
helpUrl
required
string
nullable
systemMailFromName
required
string
nullable
systemMailDomain
required
string
nullable
systemMailDomainVerified
required
boolean
updatedAt
required
string
nullable

Example generated

{
"configured": true,
"entitled": true,
"productName": "example",
"colors": {
"additionalProperty": "example"
},
"logoLightVersionId": "example",
"logoDarkVersionId": "example",
"iconVersionId": "example",
"logoLightUrl": "example",
"logoDarkUrl": "example",
"iconUrl": "example",
"supportEmail": "example",
"helpUrl": "example",
"systemMailFromName": "example",
"systemMailDomain": "example",
"systemMailDomainVerified": true,
"updatedAt": "example"
}

Invalid data

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

No session, expired session, or invalid, expired or revoked API key

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Does not exist or is not visible to you

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Conflict

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Internal error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}