nodestash
Companies

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.

GET
/companies/{id}
AuthorizationBearer <token>

API key from your nodestash dashboard. Pass as a Bearer token in the Authorization header.

In: header

Path Parameters

id*string

Company ID (prefixed with co_).

Match^co_

Query Parameters

include?string

Related resources to include. contacts embeds a contacts array in the attributes. contact_count adds a contact_count integer to the attributes.

Value in"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"
  }
}