Get a company
Retrieves a single company by ID. Use the `include` parameter to embed related resources such as linked contacts or a contact count.
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_Query Parameters
Related resources to include. contacts embeds a contacts array in the attributes. contact_count adds a contact_count integer to the attributes.
"contacts" | "contact_count"Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.nodestash.io/v1/companies/co_7rT4mK9pQsVwXyZaB2cD4"{
"data": {
"id": "co_7rT4mK9pQsVwXyZaB2cD4",
"type": "company",
"attributes": {
"id": "co_7rT4mK9pQsVwXyZaB2cD4",
"name": "Acme Corp",
"domain": "acme.com",
"industry": "Technology",
"size": "51-200",
"custom_fields": {
"tier": "enterprise"
},
"tags": [
"partner",
"enterprise"
],
"created_at": "2026-01-10T09:00:00Z",
"updated_at": "2026-01-10T09:00:00Z"
}
},
"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": "RATE_LIMITED",
"message": "Rate limit exceeded"
},
"meta": {
"request_id": "req_abc123def456"
}
}Delete a company
Permanently deletes a company. Contacts linked to this company will have their `company_id` set to `null`. This action cannot be undone.
List companies
Returns a paginated list of companies in the authenticated workspace. Supports cursor-based pagination, filtering by multiple fields, and configurable sorting.