Messenger
Messenger API
Read and update dimmi messenger appearance, launcher settings, identity verification rules, and signing secrets over the dimmi JSON REST API.
Add the messenger to your appEmbed the dimmi messenger in web apps with JavaScript, React, or Next.js.
Identity secrets
5 endpointsGETList identity secrets
/identity-secretsLists the keys the customer's own server signs messenger identity tokens with, revoked ones included. Shows names, algorithms, fingerprints and status...POSTCreate an identity secret/identity-secretsMakes a new key for signing visitors' identity tokens. For HS256 dimmi generates the shared secret and returns it once, in this answer only: hand it...POSTRotate an identity secret/identity-secrets/{secret}/rotationsMakes a new secret with the same name and algorithm and retires the old one after a grace period, so the customer's servers can switch without failed sign-ins.GETGet an identity secret/identity-secrets/{secret}Reads one identity secret's details and status. The secret value itself is never shown again. Returns the secret's name, algorithm, key id, fingerprint...PATCHRename, retire or revoke an identity secret/identity-secrets/{secret}Renames a secret, retires it so it keeps working until a date, or revokes it at once. Revoking is final and, unless revoke_sessions is false, signs out...Identity verification
2 endpointsGETGet identity verification stats
/identity-verification/statsCounts messenger sessions over recent days by outcome: verified, invalid token or anonymous. Use it to see whether sign-in works before relying on it.GETGet identity verification settings/identity-verification/settingsReads how strict the messenger is about who visitors are: off ignores tokens, optional (default) proves signed-in customers and lets others chat...Widget settings
6 endpointsGETList messengers
/widget-settingsLists the workspace's messengers, the chat widgets customers see on its sites, oldest first. Returns every messenger with its settings, inbox, audiences...POSTCreate a messenger/widget-settingsAdds a messenger with its own inbox connection and any settings sent. It shows on a site only once its snippet is installed there. Returns the new messenger...GETGet a messenger/widget-settings/{widget}Reads one messenger's settings: look, texts, allowed sites, email collection, tabs, audiences. Returns the messenger with all its settings and its config...PATCHUpdate a messenger/widget-settings/{widget}Changes what customers see and can do in a messenger on the sites it is installed on; live pages pick it up within a minute. Only the fields sent change.PATCHSet who sees a messenger/widget-settings/{widget}/audiencesSets audience rules for who sees the launcher, who may start a conversation and who sees the help and changelog tabs. A rule sent replaces that one, null...DELETEDelete a messenger/widget-settings/{widget}DELETE /widget-settings/{widget}: Removes a messenger. Sites that embed it stop showing it. Returns nothing once it is removed. dimmi REST API reference.