Authentication
Authentication
In order to use Imber API you must have a token for authentication, in order to get your unique TOKEN you can follow instructions below.

Get your unique token

Generate token for member

  • Go to Your Dashboard
  • Go to Setting
  • Go to Developers Section
  • Click on generate your Token
  • Copy your unique TOKEN and use it

Generate token for visitors

for new visitor simply create a contact and get token Or for existing visitors you can follow instructions below:
first generate contact_hash
Node.js
const jwt = require('jsonwebtoken');
const contact_hash = jwt.sign({contactId: visitorId}, identityVerificationKey);
you can access identity verification key of your work space via this link
then send cantact_hash to the following end-point
post
https://widget.imber.live
/contact/sdk
get token for existing visitors

Bearer authentication

Bearer authentication (also called token authentication) is an HTTP authentication scheme that involves security tokens called bearer tokens. The name “Bearer authentication” can be understood as “give access to the bearer of this token.” The client must send this token in the Authorization header when making requests to protected resources:
Authorization: Bearer <token>
Copy link
On this page
Get your unique token
Generate token for member
Generate token for visitors
post
get token for existing visitors
Bearer authentication