curl --request POST \
--url https://api.tryfuse.ai/api/v1/business/contacts/{contactId}/phones \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"phoneNumber": "<string>"
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/contacts/{contactId}/phones"
payload = { "phoneNumber": "<string>" }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({phoneNumber: '<string>'})
};
fetch('https://api.tryfuse.ai/api/v1/business/contacts/{contactId}/phones', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"phones": [
{
"phoneNumber": "+13015023231",
"status": "valid"
},
{
"phoneNumber": "+14155550123",
"status": "unverified"
}
],
"primaryPhone": "+14155550123"
}{
"phones": [
{
"phoneNumber": "+13015023231",
"status": "valid"
},
{
"phoneNumber": "+14155550123",
"status": "unverified"
}
],
"primaryPhone": "+14155550123"
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}Add a phone to a contact
Adds a number, in international (E.164) form, to your view of a contact your team holds, as the app’s Add phone does, and makes it your primary phone for the contact. A number already on another of your team’s contacts is refused. A teammate who holds the contact gets the number too (as their primary only when they have none). Answers 201 when the number was added, with your phones and primaryPhone as they now stand. A number your record of the contact already holds answers 200 and changes nothing, your primary phone included (set that with PATCH /business/contacts/). Free to call.
Errors:
404CONTACT_NOT_FOUND— No contact with that id is held by your team (saved by you or a teammate), or it was deleted or merged.422CONTACT_DETAILS_NOT_EDITABLE— Your team holds the contact, but you hold no record of it of your own; save it to one of your lists first.409CONTACT_PHONE_BELONGS_TO_ANOTHER_CONTACT— The number is already on another of your team’s contacts.422CONTACT_PHONE_NUMBER_INVALID—phoneNumberdoes not read as a phone number.422VALIDATION_FAILED—phoneNumberis not in international (E.164) form, orcontactIdis not a 24-character hex id.429RATE_LIMITED— More than 120 requests per minute or 10,000 per day on the contacts bucket, which every /business/contacts endpoint shares; retry after Retry-After.500UNEXPECTED_ERROR— The request could not be completed; quote request_id to support.
Requires one of the following token scopes: contacts.
curl --request POST \
--url https://api.tryfuse.ai/api/v1/business/contacts/{contactId}/phones \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"phoneNumber": "<string>"
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/contacts/{contactId}/phones"
payload = { "phoneNumber": "<string>" }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({phoneNumber: '<string>'})
};
fetch('https://api.tryfuse.ai/api/v1/business/contacts/{contactId}/phones', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"phones": [
{
"phoneNumber": "+13015023231",
"status": "valid"
},
{
"phoneNumber": "+14155550123",
"status": "unverified"
}
],
"primaryPhone": "+14155550123"
}{
"phones": [
{
"phoneNumber": "+13015023231",
"status": "valid"
},
{
"phoneNumber": "+14155550123",
"status": "unverified"
}
],
"primaryPhone": "+14155550123"
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}Authorizations
Path Parameters
Id of the contact: the row id from GET /business/lists/{listId}/rows, or the contactId returned by POST /business/contacts/resolve. It must be a contact your team holds (saved by you or a teammate), though GET /business/contacts/{contactId}/activities also answers for one your team has activity with.