Skip to content
Get Started

Verify a contact

contacts.verify(ContactVerifyParams**kwargs) -> ContactVerifyResponse
post/api/v2/contacts/verify

Send a verification message to a contact

ParametersExpand Collapse
number: str

Phone number to verify

ReturnsExpand Collapse
class ContactVerifyResponse:
status: Optional[str]
Verify a contact
import os
from sendblue_api import SendblueAPI

client = SendblueAPI(
    api_key=os.environ.get("SENDBLUE_API_API_KEY"),  # This is the default and can be omitted
    api_secret=os.environ.get("SENDBLUE_API_API_SECRET"),  # This is the default and can be omitted
)
response = client.contacts.verify(
    number="number",
)
print(response.status)
{
  "status": "OK"
}
Returns Examples
{
  "status": "OK"
}