Skip to main content
POST
Create whitelabel

Authorizations

Authorization
string
header
required

Access token issued by gs.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.

Team-SID
string
header
required

Team scope for tokens that do not carry one. Ignored when the token already names a team.

Body

application/json

Request body of create_whitelabel.

name
string
required

The brand name, 1..255 chars.

Required string length: 1 - 255
domain
string
required

The app and login host, bare lowercase FQDN (app.reseller.com): no scheme, no path.

Maximum string length: 253
Pattern: ^(?=.{1,253}$)([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$
logo_url
string | null

https URL of the horizontal logo; null clears it. The file itself is uploaded in the app.

Maximum string length: 2048
Pattern: ^https:\/\/
icon_url
string | null

https URL of the square mark; null clears it.

Maximum string length: 2048
Pattern: ^https:\/\/
login_image_url
string | null

https URL of the login artwork; null clears it.

Maximum string length: 2048
Pattern: ^https:\/\/
palette
object | null

Brand colors, #rrggbb each; null = the platform defaults.

email_from_name
string | null

The From name on the clients' mail; null = the brand name.

Maximum string length: 255
email_reply_to
string<email> | null

The Reply-To on the clients' mail; null = none.

Maximum string length: 255
email_from_address
string<email> | null

The brand's own sender address; refused on a host SendGrid cannot authenticate (422 email_domain_invalid), a platform domain (422 email_domain_reserved) or another team's (409 email_domain_already_taken). Proven by verify_whitelabel_email_domain.

Maximum string length: 255

Response

create success envelope.

success
enum<boolean>
required
Available options:
true
operation
enum<string>
required
Available options:
create
item
object
required
already_exists
boolean
required
meta
object
required