Skip to content

Assign users to a contact

Assigns one or more team members to a contact, identified by their login phone numbers. If the contact does not exist yet it is created.

POST
https://api.zacx.io/v1/users/assign

Authorisation

  • bearerAuthHTTPrequired

Request bodyJSON

  • phoneNumberstringrequired

    The contact's phone number with country code.

    Example: "919999999990"
  • usersarray ofstringrequired

    Login phone numbers of the team members.

    Example: ["919100110151"]

Returns

200

The assignment was processed.

JSON
  • statusstringrequired
  • messagestringrequired
  • codeoptionalstring

    Present when the call succeeded but changed nothing, for example TAG_ALREADY_ASSOCIATED.

404

The user does not exist in this workspace.

JSON
  • statusstringrequired
  • codestringrequired

    Stable machine-readable error code.

  • messagestringrequired

    Human-readable explanation.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close