Skip to content

Set or clear the capture-page branding for a programme

POST/v1/kyc/branding

Requires an API client bearer token.

Sets, updates, or clears a programme’s capture-page branding (display name, accent colours, default theme, logo). A field OMITTED from the body keeps its stored value; a field explicitly `null` clears it. Requires Idempotency-Key; an identical retry returns the SAME stored branding. Accepts an optional `flow_key` selector (default `'default'`); an unknown key 400s `unknown_flow` and an archived one 400s `flow_archived`. The resolved key is echoed back as `flow_key`.

Parameters

Header parameters

NameRequiredDescription
Idempotency-Keyrequired

Client-chosen. An identical retry with the same key returns the stored response; reusing the key with a different payload returns 409.

Request body

programme_idstring (uuid)required
display_namestring | null
accent_lightstring | null
accent_darkstring | null
default_theme"light" | "dark" | null
logoobject | null
+ show properties
content_typestringrequired
data_base64stringrequired
flow_keystring

Example

curl -X POST https://api.rigid.fi/v1/kyc/branding \
  -H "Authorization: Bearer $RIGID_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "programme_id": "uuid"
}'

Responses

200

The stored capture-page branding for the programme.

programme_idstringrequired
flow_keystringrequired
brandingobject | nullrequired
+ show properties
display_namestring
accent_lightstring
accent_darkstring
default_theme"light" | "dark"
logoobject
+ show properties
content_typestringrequired
versionintegerrequired
400

Validation error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
401

Authentication required

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
403

Forbidden

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
409

Idempotency-Key reused with a different payload

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
429

Too many KYC writes from this caller — see Retry-After

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
500

Internal server error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring