Update a company
Partially updates a company. Only the provided fields are changed — omitted fields remain untouched. `custom_fields` are **merged** with existing values (not replaced). If `domain` is changed, uniqueness within the workspace is enforced.
Authorization
apiKey API key from your nodestash dashboard. Pass as a Bearer token in the Authorization header.
In: header
Path Parameters
Company ID (prefixed with co_).
^co_Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://api.nodestash.io/v1/companies/co_7rT4mK9pQsVwXyZaB2cD4" \ -H "Content-Type: application/json" \ -d '{ "name": "Acme Corporation", "size": "201-500", "tags": [ "partner", "enterprise", "strategic" ] }'{
"data": {
"id": "co_7rT4mK9pQsVwXyZaB2cD4",
"type": "company",
"attributes": {
"id": "co_7rT4mK9pQsVwXyZaB2cD4",
"name": "Acme Corporation",
"domain": "acme.com",
"industry": "Technology",
"size": "201-500",
"custom_fields": {
"tier": "enterprise"
},
"tags": [
"partner",
"enterprise",
"strategic"
],
"created_at": "2026-01-10T09:00:00Z",
"updated_at": "2026-01-18T11:45:00Z"
}
},
"meta": {
"request_id": "req_9mQ6tX4yNrPwSzAbE5fH7"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"details": [
{
"field": "email",
"message": "Invalid email"
}
]
},
"meta": {
"request_id": "req_abc123def456"
}
}{
"error": {
"code": "INVALID_API_KEY",
"message": "Missing or invalid Authorization header"
},
"meta": {
"request_id": "req_abc123def456"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Contact not found"
},
"meta": {
"request_id": "req_abc123def456"
}
}{
"error": {
"code": "CONFLICT",
"message": "A contact with email 'jane@acme.com' already exists in this workspace"
},
"meta": {
"request_id": "req_abc123def456"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded"
},
"meta": {
"request_id": "req_abc123def456"
}
}List companies
Returns a paginated list of companies in the authenticated workspace. Supports cursor-based pagination, filtering by multiple fields, and configurable sorting.
Create a new contact
Creates a new contact in the authenticated workspace. If an `email` is provided it must be unique within the workspace. All fields are optional — at minimum you should provide an email or a name so the contact is identifiable.