curl --request POST \
--url https://api.wellapp.ai/v1/phones \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"type": "phone",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"country_code": 1,
"national_number": "4155552671",
"e164_number": "+14155552671",
"label": "work",
"is_primary": true,
"is_verified": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"relationships": {
"persons": {
"data": [
{
"type": "people",
"id": "people1"
}
]
},
"companies": {
"data": [
{
"type": "company",
"id": "company_tenant"
}
]
},
"workspaces": {
"data": [
{
"type": "workspace",
"id": "workspace_sales"
},
{
"type": "workspace",
"id": "550e8400-e29b-41d4-a716-446655440000"
}
]
}
}
},
"included": [
{
"type": "people",
"id": "people1",
"attributes": {
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
},
{
"type": "company",
"id": "company_tenant",
"attributes": {
"name": "Acme Corporation",
"description": "Leading technology company",
"locale": "en",
"domain_name_primary_link_url": "acme.com",
"created_at": "2023-12-01T09:00:00Z",
"updated_at": "2023-12-01T09:00:00Z"
}
},
{
"type": "workspace",
"id": "workspace_sales",
"attributes": {
"name": "Sales Team Workspace",
"description": "Workspace for sales activities",
"avatar_color": "#FF6B35",
"external_workspace_id": "fygr_123",
"auto_extract_enabled": true,
"created_at": "2024-01-10T08:15:00Z",
"updated_at": "2024-01-10T08:15:00Z"
}
},
{
"type": "workspace",
"id": "550e8400-e29b-41d4-a716-446655440000",
"attributes": {
"name": "Marketing Team Workspace",
"description": "Workspace for marketing campaigns",
"avatar_color": "#4A90E2",
"external_workspace_id": "mkt_workspace_001",
"auto_extract_enabled": false,
"created_at": "2024-01-12T14:45:00Z",
"updated_at": "2024-01-12T14:45:00Z"
}
}
]
}
'{
"data": [
{
"type": "phone",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"country_code": 1,
"national_number": "4155552671",
"e164_number": "+14155552671",
"label": "work",
"is_primary": true,
"is_verified": true,
"created_at": "2023-11-07T05:31:56Z"
},
"relationships": {
"persons": {
"data": [
{
"type": "people",
"id": "people1",
"attributes": {
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]"
}
}
]
},
"companies": {
"data": [
{
"type": "company",
"id": "company_tenant",
"attributes": {
"name": "Acme Corporation",
"description": "Leading technology company",
"website": "https://acme.com"
}
}
]
},
"workspaces": {
"data": [
{
"type": "workspace",
"external_workspace_id": "fygr_123",
"attributes": {
"name": "Sales Team Workspace",
"description": "Workspace for sales activities"
}
},
{
"type": "workspace",
"id": "550e8400-e29b-41d4-a716-446655440000",
"attributes": {
"name": "Marketing Team Workspace",
"description": "Workspace for marketing campaigns"
}
}
]
}
}
}
]
}Create a new phone number with relationships to people, companies, or workspaces
curl --request POST \
--url https://api.wellapp.ai/v1/phones \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"type": "phone",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"country_code": 1,
"national_number": "4155552671",
"e164_number": "+14155552671",
"label": "work",
"is_primary": true,
"is_verified": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"relationships": {
"persons": {
"data": [
{
"type": "people",
"id": "people1"
}
]
},
"companies": {
"data": [
{
"type": "company",
"id": "company_tenant"
}
]
},
"workspaces": {
"data": [
{
"type": "workspace",
"id": "workspace_sales"
},
{
"type": "workspace",
"id": "550e8400-e29b-41d4-a716-446655440000"
}
]
}
}
},
"included": [
{
"type": "people",
"id": "people1",
"attributes": {
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
},
{
"type": "company",
"id": "company_tenant",
"attributes": {
"name": "Acme Corporation",
"description": "Leading technology company",
"locale": "en",
"domain_name_primary_link_url": "acme.com",
"created_at": "2023-12-01T09:00:00Z",
"updated_at": "2023-12-01T09:00:00Z"
}
},
{
"type": "workspace",
"id": "workspace_sales",
"attributes": {
"name": "Sales Team Workspace",
"description": "Workspace for sales activities",
"avatar_color": "#FF6B35",
"external_workspace_id": "fygr_123",
"auto_extract_enabled": true,
"created_at": "2024-01-10T08:15:00Z",
"updated_at": "2024-01-10T08:15:00Z"
}
},
{
"type": "workspace",
"id": "550e8400-e29b-41d4-a716-446655440000",
"attributes": {
"name": "Marketing Team Workspace",
"description": "Workspace for marketing campaigns",
"avatar_color": "#4A90E2",
"external_workspace_id": "mkt_workspace_001",
"auto_extract_enabled": false,
"created_at": "2024-01-12T14:45:00Z",
"updated_at": "2024-01-12T14:45:00Z"
}
}
]
}
'{
"data": [
{
"type": "phone",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"country_code": 1,
"national_number": "4155552671",
"e164_number": "+14155552671",
"label": "work",
"is_primary": true,
"is_verified": true,
"created_at": "2023-11-07T05:31:56Z"
},
"relationships": {
"persons": {
"data": [
{
"type": "people",
"id": "people1",
"attributes": {
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]"
}
}
]
},
"companies": {
"data": [
{
"type": "company",
"id": "company_tenant",
"attributes": {
"name": "Acme Corporation",
"description": "Leading technology company",
"website": "https://acme.com"
}
}
]
},
"workspaces": {
"data": [
{
"type": "workspace",
"external_workspace_id": "fygr_123",
"attributes": {
"name": "Sales Team Workspace",
"description": "Workspace for sales activities"
}
},
{
"type": "workspace",
"id": "550e8400-e29b-41d4-a716-446655440000",
"attributes": {
"name": "Marketing Team Workspace",
"description": "Workspace for marketing campaigns"
}
}
]
}
}
}
]
}Bearer token for authentication
Show child attributes
Phone number in E164 format
"+14155552671"
Whether this is the primary phone number
Phone label type. See all available labels for complete list.
work, personal, other, ... Show child attributes
Phone created successfully
Show child attributes
"phone"UUID of the phone
Show child attributes
Full international phone number in E164 format
"+14155552671"
Phone label type. See all available labels for complete list.
work, personal, other, ... Whether this is the primary phone number
Timestamp when the phone was created
Show child attributes
Show child attributes
Show child attributes
Show child attributes
"people"Person attribute data
Show child attributes
Person's first name
1 - 100"Marie"
Person's last name
1 - 100"Dubois"
Person creation timestamp (UTC)
"2024-01-15T10:30:00Z"
Auto-computed full name (first + last)
"Marie Dubois"
Last modification timestamp (UTC)
"2024-01-16T14:20:00Z"
Show child attributes
Show child attributes
"company"Show child attributes
The domain url from the website or email address of the company. Used as unique identifier in some cases.
500Show child attributes
Legal entity structure type.
Official company registration number.
Name of the official registration body.
Country of the registry authority. (string (ISO 3166-1 alpha-2))
UUID of the workspace associated with this company
Show child attributes
Show child attributes
"workspace"Show child attributes
Workspace name
Workspace description
external workspace id
Color of the avatar
Timestamp when the workspace was created
Timestamp when the workspace was last updated