Skip to content
PaalChat Docs

Sign staff in to the inbox

.md
POST
https://whatsapp.paaltech.org/api/v1/businesses/{external_id}/inbox/sign-in

Token ability: inbox.manage ยท Authentication

Single sign-on into the PaalChat inbox for a staff member already signed in to your product. Send who they are and their role (admin, agent or viewer) - PaalChat records or updates the member - then redirect their browser to url. The link works once, within 5 minutes; ask for a new one each time. Pass conversation_id to open that conversation. PaalChat never holds staff passwords. Needs the inbox enabled for the business.

Path parameters

external_id string required

Your own ID for the business (Multi-SKUUL - the tenant ID).

Max 191 characters. Pattern ^[A-Za-z0-9._:-]+$.

Body parameters

staff object required
external_id string required staff.external_id

Your id for the staff member.

Max 191 characters.

name string required staff.name

Max 191 characters.

email string | null staff.email

Format email.

role string required staff.role

viewer reads; agent also replies, notes, tags and takes conversations; admin also assigns anyone.

One of: admin, agent, viewer.

conversation_id integer | null

Open this conversation after signing in.

Responses

201

The one-time link.

401

unauthenticated - missing, invalid, revoked or expired token

403

missing_ability, or feature_disabled (the inbox is not enabled for the business).

404

not_found - not yours, or does not exist

409

business_suspended.

422

validation_failed - fields are invalid; see errors.

429

rate_limited - over 300 requests/minute for this product

Errors always look like {"error": {"code", "message"}} - see Errors and status codes.