curl --request POST \
--url https://api.wellapp.ai/v1/people \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "<string>",
"attributes": {
"first_name": "Marie",
"last_name": "Dubois"
},
"relationships": {
"emails": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
]
},
"phones": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
]
},
"web_links": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
]
},
"companies": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
]
},
"workspaces": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
]
},
"documents": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
]
},
"memberships": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
]
},
"medias": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
]
}
},
"included": {
"emails": {
"data": [
{
"type": "<string>",
"id": "<string>",
"attributes": {
"value": "[email protected]",
"is_primary": true,
"label": "work",
"created_at": "2023-06-15T10:30:00Z",
"updated_at": "2023-06-15T10:30:00Z"
}
}
]
},
"phones": {
"data": [
{
"type": "<string>",
"id": "<string>",
"attributes": {
"number": "+14155552671",
"is_primary": true,
"label": "work"
}
}
]
},
"web_links": {
"data": [
{
"type": "<string>",
"id": "<string>",
"attributes": {
"url": "<string>",
"platform": "website"
}
}
]
},
"companies": {
"data": [
{
"type": "<string>",
"id": "<string>",
"attributes": {
"registration": {
"registered_name": "TechCorp AI Solutions LLC",
"trade_name": "TechSol"
},
"locale": "en-US",
"domain_name_primary_link_url": "https://www.techcorp.com",
"tax_id": {
"value": "DE123456789",
"type": [
"VAT",
"TVA",
"IVA",
"..."
]
},
"registration_number": {
"business_type": "GmbH",
"value": "HRB 123456",
"registry_name": "Handelsregister Berlin",
"registry_country": "DE, FR, US, etc."
},
"description": "An innovative technology company focused on AI solutions"
}
}
]
},
"workspaces": {
"data": [
{
"type": "<string>",
"id": "<string>",
"attributes": {
"name": "<string>",
"description": "<string>",
"avatar_color": "<string>",
"external_workspace_id": "<string>"
}
}
]
},
"documents": {
"data": [
{
"type": "<string>",
"id": "<string>",
"attributes": {
"file_name": "<string>",
"status": "<string>",
"file_type": "<string>",
"size_bytes": 123
}
}
]
},
"memberships": {
"data": [
{
"type": "<string>",
"id": "<string>",
"attributes": {
"role": "admin",
"firebase_id": "<string>"
}
}
]
},
"medias": {
"data": [
{
"type": "<string>",
"id": "<string>",
"attributes": {
"media_type": "avatar",
"is_primary": true
}
}
]
}
}
}
'{
"data": {
"type": "people",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z"
},
"relationships": {
"emails": {
"data": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
},
"phones": {
"data": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
},
"web_links": {
"data": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
},
"companies": {
"data": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"meta": {
"relationship_type": "employee"
}
}
]
},
"medias": {
"data": [
{
"type": "<string>",
"id": "550e8400-e29b-41d4-a716-446655440002"
}
]
},
"workspaces": {
"data": [
{
"type": "<string>",
"id": "632860b5-48b7-49eb-9dd1-8bddc634f387"
}
]
},
"memberships": {
"data": [
{
"type": "<string>",
"id": "632860b5-48b7-49eb-9dd1-8bddc634f387"
}
]
},
"documents": {
"data": [
{
"type": "<string>",
"id": "550e8400-e29b-41d4-a716-446655440009"
}
]
}
},
"included": {
"emails": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"value": "[email protected]",
"is_primary": true,
"label": "work",
"created_at": "2023-06-15T10:30:00Z",
"updated_at": "2023-06-15T10:30:00Z"
}
}
],
"phones": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"number": "+14155552671",
"label": "work",
"is_primary": true,
"created_at": "2023-11-07T05:31:56Z"
}
}
],
"web_links": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"platform": "website",
"url": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
],
"companies": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"description": "<string>",
"domain_name_primary_link_url": "<string>",
"tax_id": {
"value": "<string>",
"type": "<string>"
},
"registration": {
"trade_name": "<string>",
"registered_name": "<string>"
},
"registration_number": {
"business_type": "<string>",
"value": "<string>",
"registry_name": "<string>",
"registry_country": "<string>"
},
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
],
"workspaces": {
"data": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"name": "<string>",
"description": "<string>",
"avatar_color": "<string>",
"external_workspace_id": "<string>"
}
}
]
},
"medias": {
"data": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"media_type": "avatar",
"url": "<string>",
"is_primary": true,
"processed_at": "2023-11-07T05:31:56Z",
"uploaded_at": "2023-11-07T05:31:56Z"
}
}
]
},
"memberships": {
"data": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"role": "<string>",
"firebase_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
]
},
"documents": {
"data": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"file_name": "<string>",
"status": "<string>",
"uploaded_at": "2023-11-07T05:31:56Z",
"processed_at": "2023-11-07T05:31:56Z",
"file_type": "<string>",
"size_bytes": 123
}
}
]
}
}
}
}Create a new person record with optional emails, phone numbers, company relationships, and social links. If a person with the same name and primary email already exists, returns the existing person instead of creating a duplicate.
curl --request POST \
--url https://api.wellapp.ai/v1/people \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "<string>",
"attributes": {
"first_name": "Marie",
"last_name": "Dubois"
},
"relationships": {
"emails": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
]
},
"phones": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
]
},
"web_links": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
]
},
"companies": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
]
},
"workspaces": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
]
},
"documents": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
]
},
"memberships": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
]
},
"medias": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
]
}
},
"included": {
"emails": {
"data": [
{
"type": "<string>",
"id": "<string>",
"attributes": {
"value": "[email protected]",
"is_primary": true,
"label": "work",
"created_at": "2023-06-15T10:30:00Z",
"updated_at": "2023-06-15T10:30:00Z"
}
}
]
},
"phones": {
"data": [
{
"type": "<string>",
"id": "<string>",
"attributes": {
"number": "+14155552671",
"is_primary": true,
"label": "work"
}
}
]
},
"web_links": {
"data": [
{
"type": "<string>",
"id": "<string>",
"attributes": {
"url": "<string>",
"platform": "website"
}
}
]
},
"companies": {
"data": [
{
"type": "<string>",
"id": "<string>",
"attributes": {
"registration": {
"registered_name": "TechCorp AI Solutions LLC",
"trade_name": "TechSol"
},
"locale": "en-US",
"domain_name_primary_link_url": "https://www.techcorp.com",
"tax_id": {
"value": "DE123456789",
"type": [
"VAT",
"TVA",
"IVA",
"..."
]
},
"registration_number": {
"business_type": "GmbH",
"value": "HRB 123456",
"registry_name": "Handelsregister Berlin",
"registry_country": "DE, FR, US, etc."
},
"description": "An innovative technology company focused on AI solutions"
}
}
]
},
"workspaces": {
"data": [
{
"type": "<string>",
"id": "<string>",
"attributes": {
"name": "<string>",
"description": "<string>",
"avatar_color": "<string>",
"external_workspace_id": "<string>"
}
}
]
},
"documents": {
"data": [
{
"type": "<string>",
"id": "<string>",
"attributes": {
"file_name": "<string>",
"status": "<string>",
"file_type": "<string>",
"size_bytes": 123
}
}
]
},
"memberships": {
"data": [
{
"type": "<string>",
"id": "<string>",
"attributes": {
"role": "admin",
"firebase_id": "<string>"
}
}
]
},
"medias": {
"data": [
{
"type": "<string>",
"id": "<string>",
"attributes": {
"media_type": "avatar",
"is_primary": true
}
}
]
}
}
}
'{
"data": {
"type": "people",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z"
},
"relationships": {
"emails": {
"data": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
},
"phones": {
"data": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
},
"web_links": {
"data": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
},
"companies": {
"data": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"meta": {
"relationship_type": "employee"
}
}
]
},
"medias": {
"data": [
{
"type": "<string>",
"id": "550e8400-e29b-41d4-a716-446655440002"
}
]
},
"workspaces": {
"data": [
{
"type": "<string>",
"id": "632860b5-48b7-49eb-9dd1-8bddc634f387"
}
]
},
"memberships": {
"data": [
{
"type": "<string>",
"id": "632860b5-48b7-49eb-9dd1-8bddc634f387"
}
]
},
"documents": {
"data": [
{
"type": "<string>",
"id": "550e8400-e29b-41d4-a716-446655440009"
}
]
}
},
"included": {
"emails": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"value": "[email protected]",
"is_primary": true,
"label": "work",
"created_at": "2023-06-15T10:30:00Z",
"updated_at": "2023-06-15T10:30:00Z"
}
}
],
"phones": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"number": "+14155552671",
"label": "work",
"is_primary": true,
"created_at": "2023-11-07T05:31:56Z"
}
}
],
"web_links": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"platform": "website",
"url": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
],
"companies": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"description": "<string>",
"domain_name_primary_link_url": "<string>",
"tax_id": {
"value": "<string>",
"type": "<string>"
},
"registration": {
"trade_name": "<string>",
"registered_name": "<string>"
},
"registration_number": {
"business_type": "<string>",
"value": "<string>",
"registry_name": "<string>",
"registry_country": "<string>"
},
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
],
"workspaces": {
"data": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"name": "<string>",
"description": "<string>",
"avatar_color": "<string>",
"external_workspace_id": "<string>"
}
}
]
},
"medias": {
"data": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"media_type": "avatar",
"url": "<string>",
"is_primary": true,
"processed_at": "2023-11-07T05:31:56Z",
"uploaded_at": "2023-11-07T05:31:56Z"
}
}
]
},
"memberships": {
"data": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"role": "<string>",
"firebase_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
]
},
"documents": {
"data": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"file_name": "<string>",
"status": "<string>",
"uploaded_at": "2023-11-07T05:31:56Z",
"processed_at": "2023-11-07T05:31:56Z",
"file_type": "<string>",
"size_bytes": 123
}
}
]
}
}
}
}Bearer token for authentication
Central entity representing individuals with comprehensive contact information
Unique person identifier (UUID v4)
"550e8400-e29b-41d4-a716-446655440000"
JSON:API resource type identifier
"people"Person relationship references
Show child attributes
Email addresses associated with this person
Phone numbers associated with this person
Social media profiles associated with this person
Companies associated with this person
Workspaces this person belongs to
Show child attributes
Documents associated with this person
Workspace memberships with roles and permissions
Show child attributes
Show child attributes
Show child attributes
Show child attributes
"email"Show child attributes
Email address value
Whether this is the primary email address. Defaults to 'false', unless no other email is marked as primary (in which case it becomes 'true'). Only one email can be marked as primary per person/company.
true
Email label type. See all available labels for complete list.
work, personal, other, ... "work"
Timestamp when the email was created
"2023-06-15T10:30:00Z"
Timestamp when the email was last updated
"2023-06-15T10:30:00Z"
Show child attributes
Show child attributes
"phone"temp-id that references a phones defined in the included array
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, ... Web links associated with this company
Show child attributes
Show child attributes
"web_link"temp-id that references a web links defined in the included array
Show child attributes
Show child attributes
"company"temp-id that references a companies defined in the included array
Show child attributes
Language settings.That’s the locale for the business relationship. Emails or documents can be used to identify the locale. Default EN.
"en-US"
The domain url from the website or email address of the company. Used as unique identifier in some cases.
"https://www.techcorp.com"
Show child attributes
Tax ID issued by local or national tax authority.
"DE123456789"
Type of tax ID, useful for applying formatting and validation rules.all tax id types See all available labels for complete list.
["VAT", "TVA", "IVA", "..."]Show child attributes
Legal entity structure type. See all business entity types for complete list.
Inc, Corp, LLC, GmbH, Ltd, SA, SAS "GmbH"
Official company registration number.
"HRB 123456"
Name of the official registration body. See all available registry name for complete list.
"Handelsregister Berlin"
Country of the registry authority. Must be valid ISO country code
"DE, FR, US, etc."
Company description explaining business purpose in max 2 sentences.
1 - 500"An innovative technology company focused on AI solutions"
Workspaces associated with this company
Show child attributes
Show child attributes
"workspace"temp-id that references a workspaces defined in the included array
Show child attributes
Workspace name
1 - 255Workspace description
1000Avatar color in hexadecimal format (e.g., #FF5733)
External workspace identifier
1 - 255Documents associated with this company
Show child attributes
Show child attributes
"document"temp-id that references a documents defined in the included array
membership associated with this person
Show child attributes
Show child attributes
"membership"temp-id that references a memberships defined in the included array
Show child attributes
User role in the workspace. See all available roles for complete list.
admin, member, owner, ... Media associated with this person
Show child attributes
Show child attributes
"membership"temp-id that references a medias defined in the included array
Person created successfully
Show child attributes
"people"
Show child attributes
Person's first name
"John"
Person's last name
"Doe"
Person's full name (first + last)
"John Doe"
Timestamp when the person was created
"2024-01-15T10:30:00Z"
Timestamp when the person was last updated
"2024-01-20T14:45:00Z"
Show child attributes
Show child attributes
Show child attributes
"company"Included resources grouped by type
Show child attributes
Show child attributes
Type of the included email resource
"email"UUID of the email
Show child attributes
Email address value
Whether this is the primary email address. Defaults to 'false', unless no other email is marked as primary (in which case it becomes 'true'). Only one email can be marked as primary per person/company.
true
Email label type. See all available labels for complete list.
work, personal, other, ... "work"
Timestamp when the email was created
"2023-06-15T10:30:00Z"
Timestamp when the email was last updated
"2023-06-15T10:30:00Z"
Show child attributes
Type of the included phone resource
"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
Type of the included social link resource
"social_links"UUID of the social link
Show child attributes
Web platform type
website, linkedin, x, github Full profile URL
Date and time when the web link was created
Date and time when the web link was updated
Show child attributes
Type of the included company resource
"company"UUID of the 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
Workspaces associated with this company
Show child attributes
Show child attributes
"workspace"UUID of the workspace
Show child attributes
Workspace name
1 - 255Workspace description
1000Avatar color in hexadecimal format (e.g., #FF5733)
External workspace identifier
1 - 255Media files associated with this person
Show child attributes
Show child attributes
"media"UUID of the media
Show child attributes
avatar, logo, banner URL to the media file
Whether this is the primary media
Timestamp when media processing completed
membership to a workspace
Show child attributes
Show child attributes
"media"UUID of the media
Documents associated with this company
Show child attributes
Show child attributes
"document"UUID of the document
Show child attributes