Skip to main content
POST
/
v1
/
people
/
{peopleId}
/
relationships
/
companies
Link companies to a person
curl --request POST \
  --url https://api.wellapp.ai/v1/people/{peopleId}/relationships/companies \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": [
    {
      "type": "<string>",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "meta": {
        "relationship_type": "contact"
      }
    }
  ]
}'
{
  "data": [
    {
      "type": "company",
      "id": "8a4db4c2-bb41-4099-8240-4f2b0faf2c6e"
    }
  ],
  "included": [
    {
      "type": "company",
      "id": "8a4db4c2-bb41-4099-8240-4f2b0faf2c6e",
      "attributes": {
        "name": "TechCorp Solutions",
        "description": "An innovative technology company focused on AI solutions",
        "created_at": "2025-08-04T07:39:06.956Z",
        "updated_at": null
      }
    }
  ]
}

Headers

Authorization
string
required

Bearer token for authentication

Path Parameters

peopleId
string<uuid>
required

UUID of the person to link companies to

Body

application/json
data
object[]
required

Response

Companies successfully linked to person

data
object[]
included
object[]