Contacts

Contacts are managed by the websocket.

Reference

Contact object

KeyTypeDescription
uidstringUnique identifier of the contact (example: the column "id" in your database) (1-32 characters)
displayNamenumberDisplay name of the contact (1-64 characters)
numberstringPhone number (1-32 characters)

IncomingContact payload

KeyTypeDescription
displayNamestringDisplay name of the contact
numberstringPhone number of the contact

Error list

KeyTypeDescription
player-not-foundstringPlayer does not exist in your database
contact-not-foundstringContact does not exist in your database
contact-already-existstringContact already exist for the given custom_id
unknownstringDefault unknown error

Incoming events

Outgoing events

Powered by Doctave