curl --request POST \
--url https://api.wellapp.ai/v1/emails \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"attributes": {
"value": "[email protected]",
"is_primary": true,
"label": "work"
},
"relationships": {
"persons": {
"data": [
{
"type": "people",
"id": "people1"
}
]
},
"companies": {
"data": [
{
"type": "company",
"id": "company_tenant"
}
]
},
"workspaces": {
"data": [
{
"type": "workspace",
"external_workspace_id": "fygr_123"
},
{
"type": "workspace",
"id": "550e8400-e29b-41d4-a716-446655440000"
}
]
}
}
}
'{
"data": {
"type": "email",
"id": "email1-uuid",
"attributes": {
"value": "[email protected]",
"is_primary": true,
"is_verified": true,
"label": "work",
"created_at": "2023-06-15T10:30:00Z",
"updated_at": "2023-06-15T10:30:00Z"
},
"relationships": {
"persons": {
"data": [
{
"type": "people",
"id": "person1-uuid"
}
]
},
"companies": {
"data": [
{
"type": "company",
"id": "company1-uuid"
}
]
},
"workspaces": {
"data": [
{
"type": "workspace",
"id": "workspace1-uuid"
}
]
}
}
},
"included": [
{
"type": "people",
"id": "person1-uuid",
"attributes": {
"first_name": "Sarah",
"last_name": "Wilson",
"full_name": "Sarah Wilson",
"created_at": "2023-06-15T09:00:00Z",
"updated_at": "2023-06-15T09:00:00Z"
}
},
{
"type": "company",
"id": "company1-uuid",
"attributes": {
"name": "TechCorp Solutions",
"description": "Leading technology company",
"domain_name_primary_link_url": "techcorp.com",
"locale": "en",
"created_at": "2023-06-01T08:00:00Z",
"updated_at": "2023-06-01T08:00:00Z"
}
},
{
"type": "workspace",
"id": "workspace1-uuid",
"attributes": {
"name": "Sales Team",
"description": "Sales team workspace",
"avatar_color": "#FF5733",
"auto_extract_enabled": true,
"created_at": "2023-06-01T08:00:00Z",
"updated_at": "2023-06-01T08:00:00Z"
}
}
]
}Create a new email address with relationships to people, companies, or workspaces
curl --request POST \
--url https://api.wellapp.ai/v1/emails \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"attributes": {
"value": "[email protected]",
"is_primary": true,
"label": "work"
},
"relationships": {
"persons": {
"data": [
{
"type": "people",
"id": "people1"
}
]
},
"companies": {
"data": [
{
"type": "company",
"id": "company_tenant"
}
]
},
"workspaces": {
"data": [
{
"type": "workspace",
"external_workspace_id": "fygr_123"
},
{
"type": "workspace",
"id": "550e8400-e29b-41d4-a716-446655440000"
}
]
}
}
}
'{
"data": {
"type": "email",
"id": "email1-uuid",
"attributes": {
"value": "[email protected]",
"is_primary": true,
"is_verified": true,
"label": "work",
"created_at": "2023-06-15T10:30:00Z",
"updated_at": "2023-06-15T10:30:00Z"
},
"relationships": {
"persons": {
"data": [
{
"type": "people",
"id": "person1-uuid"
}
]
},
"companies": {
"data": [
{
"type": "company",
"id": "company1-uuid"
}
]
},
"workspaces": {
"data": [
{
"type": "workspace",
"id": "workspace1-uuid"
}
]
}
}
},
"included": [
{
"type": "people",
"id": "person1-uuid",
"attributes": {
"first_name": "Sarah",
"last_name": "Wilson",
"full_name": "Sarah Wilson",
"created_at": "2023-06-15T09:00:00Z",
"updated_at": "2023-06-15T09:00:00Z"
}
},
{
"type": "company",
"id": "company1-uuid",
"attributes": {
"name": "TechCorp Solutions",
"description": "Leading technology company",
"domain_name_primary_link_url": "techcorp.com",
"locale": "en",
"created_at": "2023-06-01T08:00:00Z",
"updated_at": "2023-06-01T08:00:00Z"
}
},
{
"type": "workspace",
"id": "workspace1-uuid",
"attributes": {
"name": "Sales Team",
"description": "Sales team workspace",
"avatar_color": "#FF5733",
"auto_extract_enabled": true,
"created_at": "2023-06-01T08:00:00Z",
"updated_at": "2023-06-01T08:00:00Z"
}
}
]
}Bearer token for authentication
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
Email created successfully
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
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