POST/v1/contacts

This endpoint allows you to add a new contact to your contact list in Protocol. To add a contact, you must provide their Protocol username and phone number.

Required attributes

usernamestringRequired

The username for the contact.

phone_numberstringRequired

The phone number for the contact.

Optional attributes

avatar_urlstring

The avatar image URL for the contact.

display_namestring

The contact display name in the contact list. By default, this is just the username.

Request example

Response