---
title: "Add companies to contact"
method: POST
path: "/api/v1/contacts/contact/{contactId}/companies"
tags: ["Contacts"]
---

# Add companies to contact

`POST /api/v1/contacts/contact/{contactId}/companies`

## Request

- Base URL: `https://api.getprospect.com`
- URL: `https://api.getprospect.com/api/v1/contacts/contact/{contactId}/companies`
- Auth: API key in header `apiKey`
- TypeScript: <https://skmtc.dev/getprospect/apis/calls/docs/api/v1/contacts/contact/:contactId/companies/post.ts> (a function with typed inputs; its response is checked against the schema)

This API endpoint attaches a company to contact

## Path parameters

- `contactId` string, required

## Request body

- AddCompaniesRelationsDto
  - `companies` CompanyRelationsDto[], required
    - `companyId` string, required
    - `email` string
    - `status` string
    - `position` string

## Response `200`

Entity given

## Other responses

- `400`: Bad model
- `401`: Unauthorized user
- `404`: Entity not found
- `500`: Internal server error

---

[API](https://skmtc.dev/getprospect/apis/calls.md) - [All operations](https://skmtc.dev/getprospect/apis/calls/llms.txt) - [OpenAPI document](https://skmtc.dev/getprospect/apis/calls/revisions/5211a12644da?raw)
