Create a contact

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

const val = 1

Response

{
"text": "Imagine the wildest idea that you've ever had, and you're curious about how it might scale to something that's a 100, a 1,000 times bigger. This is a place where you can get to do that."
}