Add tags to companies
POST /v2/companies/tags/add
Parameters
Header parameters
apps/rest-api/src/shared/idempotency.ts for the full contract. Missing → 400 BadRequest; same key + different body → 409 Conflict.Request body
Content-Type: application/json
Example
{
"companyIds": [
"00000000-0000-0000-0000-000000000000"
],
"tagIds": [
"00000000-0000-0000-0000-000000000000"
]
}
Responses
200 — Successful response
Content-Type: application/json
Example
{
"data": {
"affected": 0
}
}
400 — Request body failed validation.
Content-Type: application/json
401 — Missing or invalid API key.
Content-Type: application/json
403 — Valid key, insufficient permission.
Content-Type: application/json
404 — Resource does not exist.
Content-Type: application/json
409 — Request conflicts with the current state of the resource.
Content-Type: application/json
429 — Rate limit exceeded.
Content-Type: application/json
500 — Unexpected server error.
Content-Type: application/json
Code samples
curl https://api.prod.getdex.com/v2/companies/tags/add \
--request POST \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"companyIds": [
"00000000-0000-0000-0000-000000000000"
],
"tagIds": [
"00000000-0000-0000-0000-000000000000"
]
}'
fetch('https://api.prod.getdex.com/v2/companies/tags/add', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
companyIds: ['00000000-0000-0000-0000-000000000000'],
tagIds: ['00000000-0000-0000-0000-000000000000']
})
})
requests.post(
"https://api.prod.getdex.com/v2/companies/tags/add",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"companyIds": [
"00000000-0000-0000-0000-000000000000"
],
"tagIds": [
"00000000-0000-0000-0000-000000000000"
]
}
)
Delete companies in bulk
Permanently delete up to 100 companies (`company_ids`) and their logos. IDs outside the workspace are skipped. Owners and admins only; closed to API keys. Workspace-only: send the `X-Dex-Workspace` he
Remove tags from companies
Remove up to 50 tags (`tagIds`) from up to 100 companies (`companyIds`). The tags and companies stay. IDs outside the workspace match nothing. Workspace-only: send the `X-Dex-Workspace` header (404 `r

