Skip to main content
POST
/
v1
/
people
Create a new person
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
            }
          }
        ]
      }
    }
  }
}

Headers

Authorization
string
required

Bearer token for authentication

Body

application/json

Central entity representing individuals with comprehensive contact information

id
string<uuid>
required

Unique person identifier (UUID v4)

Example:

"550e8400-e29b-41d4-a716-446655440000"

type
string
required

JSON:API resource type identifier

Allowed value: "people"
attributes
object
required

Person attribute data

relationships
object

Person relationship references

included
object

Response

Person created successfully

data
object