curl --request POST \
--url https://api.wellapp.ai/v1/locations \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "location",
"attributes": {
"address_line1": "123 Turing Way",
"address_line2": "",
"city": "London",
"region": "Greater London",
"postal_code": "E1 6AN",
"country": "GB",
"latitude": 37.7749,
"longitude": -122.4194,
"is_primary": true,
"is_registered": true
},
"relationships": {
"persons": {
"data": [
{
"type": "people",
"id": "people1"
}
]
},
"companies": {
"data": [
{
"type": "company",
"id": "company_tenant"
}
]
},
"workspaces": {
"data": [
{
"type": "workspace",
"id": "workspace_tenant"
}
]
}
}
}
'{
"data": {
"type": "location",
"id": "loc1",
"attributes": {
"full_address": "123 Turing Way, London, Greater London, E1 6AN, GB",
"address_line1": "123 Turing Way",
"address_line2": "",
"city": "London",
"region": "Greater London",
"postal_code": "E1 6AN",
"country": "GB",
"latitude": 37.7749,
"longitude": -122.4194,
"is_primary": true,
"is_registered": true,
"created_at": "2025-06-01T10:00:00Z",
"updated_at": "2025-06-01T10:00:00Z"
},
"relationships": {
"persons": {
"data": [
{
"type": "people",
"id": "people1"
}
]
},
"companies": {
"data": [
{
"type": "company",
"id": "company_tenant"
}
]
},
"workspaces": {
"data": [
{
"type": "workspace",
"id": "workspace_tenant"
}
]
}
}
},
"included": [
{
"type": "people",
"id": "people1",
"attributes": {
"first_name": "Alan",
"last_name": "Turing",
"full_name": "Alan Turing",
"created_at": "2025-06-01T09:00:00Z",
"updated_at": "2025-06-01T09:00:00Z"
}
},
{
"type": "company",
"id": "company_tenant",
"attributes": {
"name": "Tech Innovations Ltd",
"description": "Leading technology research company",
"locale": "en",
"domain_name_primary_link_url": "techinnovations.com",
"tax_id": {
"value": "GB123456789",
"type": "VAT"
},
"registration": {
"trade_name": "Tech Innovations",
"registered_name": "Tech Innovations Limited"
},
"registration_number": {
"business_type": "Ltd",
"value": "12345678",
"registry_name": "Companies House",
"registry_country": "GB"
},
"created_at": "2025-05-15T08:00:00Z",
"updated_at": "2025-05-15T08:00:00Z"
}
},
{
"type": "workspace",
"id": "workspace_tenant",
"attributes": {
"name": "UK Operations Workspace",
"description": "Workspace for UK-based operations and teams",
"avatar_color": "#2E86AB",
"external_workspace_id": "uk_ops_ws_001",
"auto_extract_enabled": true,
"created_at": "2025-05-20T10:00:00Z",
"updated_at": "2025-05-20T10:00:00Z"
}
}
]
}Create a new address/location with geographic coordinates and associate it with people, companies, or workspaces.
curl --request POST \
--url https://api.wellapp.ai/v1/locations \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "location",
"attributes": {
"address_line1": "123 Turing Way",
"address_line2": "",
"city": "London",
"region": "Greater London",
"postal_code": "E1 6AN",
"country": "GB",
"latitude": 37.7749,
"longitude": -122.4194,
"is_primary": true,
"is_registered": true
},
"relationships": {
"persons": {
"data": [
{
"type": "people",
"id": "people1"
}
]
},
"companies": {
"data": [
{
"type": "company",
"id": "company_tenant"
}
]
},
"workspaces": {
"data": [
{
"type": "workspace",
"id": "workspace_tenant"
}
]
}
}
}
'{
"data": {
"type": "location",
"id": "loc1",
"attributes": {
"full_address": "123 Turing Way, London, Greater London, E1 6AN, GB",
"address_line1": "123 Turing Way",
"address_line2": "",
"city": "London",
"region": "Greater London",
"postal_code": "E1 6AN",
"country": "GB",
"latitude": 37.7749,
"longitude": -122.4194,
"is_primary": true,
"is_registered": true,
"created_at": "2025-06-01T10:00:00Z",
"updated_at": "2025-06-01T10:00:00Z"
},
"relationships": {
"persons": {
"data": [
{
"type": "people",
"id": "people1"
}
]
},
"companies": {
"data": [
{
"type": "company",
"id": "company_tenant"
}
]
},
"workspaces": {
"data": [
{
"type": "workspace",
"id": "workspace_tenant"
}
]
}
}
},
"included": [
{
"type": "people",
"id": "people1",
"attributes": {
"first_name": "Alan",
"last_name": "Turing",
"full_name": "Alan Turing",
"created_at": "2025-06-01T09:00:00Z",
"updated_at": "2025-06-01T09:00:00Z"
}
},
{
"type": "company",
"id": "company_tenant",
"attributes": {
"name": "Tech Innovations Ltd",
"description": "Leading technology research company",
"locale": "en",
"domain_name_primary_link_url": "techinnovations.com",
"tax_id": {
"value": "GB123456789",
"type": "VAT"
},
"registration": {
"trade_name": "Tech Innovations",
"registered_name": "Tech Innovations Limited"
},
"registration_number": {
"business_type": "Ltd",
"value": "12345678",
"registry_name": "Companies House",
"registry_country": "GB"
},
"created_at": "2025-05-15T08:00:00Z",
"updated_at": "2025-05-15T08:00:00Z"
}
},
{
"type": "workspace",
"id": "workspace_tenant",
"attributes": {
"name": "UK Operations Workspace",
"description": "Workspace for UK-based operations and teams",
"avatar_color": "#2E86AB",
"external_workspace_id": "uk_ops_ws_001",
"auto_extract_enabled": true,
"created_at": "2025-05-20T10:00:00Z",
"updated_at": "2025-05-20T10:00:00Z"
}
}
]
}Bearer token for authentication
Show child attributes
"location"Show child attributes
Primary address line
Two-letter ISO country code (e.g., 'US', 'GB')
Secondary address line (optional)
City name
State, province, or region
Postal or ZIP code
Geographic latitude coordinate
Geographic longitude coordinate
Whether this is the primary location
Whether this is a registered business address
Email label type. See all available labels for complete list.
work, personal, other, ... Show child attributes
Show child attributes
Show child attributes
Location created successfully
Show child attributes
"location"
Show child attributes
Complete formatted address
Primary address line
Secondary address line
City name
State, province, or region
Postal or ZIP code
Two-letter ISO country code
Geographic latitude coordinate
Geographic longitude coordinate
Whether this is the primary location
Whether this is a registered business address
Custom label for the location
Date and time when the location was created
Date and time when the location was last updated
Show child attributes
Show child attributes
Show child attributes
people Person ID
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 Company ID
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 Workspace ID
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