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

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

get token for existing visitors

POST https://widget.imber.live/contact/sdk

Request Body

NameTypeDescription

id

string

id of work space

auth

string

contact_hash which created

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>

Last updated