---
title: "Get a company by id"
method: GET
path: "/v1/resourceowner/companies/{companyId}"
tags: ["ResourceOwnerCompany"]
---

# Get a company by id

`GET /v1/resourceowner/companies/{companyId}`

## Request

- Base URL: `https://api.automile.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.automile.com/v1/resourceowner/companies/{companyId}`
- Auth: OAuth 2
  - Implicit: `https://api.automile.com/login/`

The user only has access to contacts that it is associated with through the company

## Path parameters

- `companyId` integer, required

## Response `200`

The company details are returned

- CompanyDetailModel
  - `CompanyId` integer
  - `RegisteredCompanyName` string
  - `RegistrationNumber` string
  - `Description` string
  - `LastModified` string, date-time
  - `Created` string, date-time

## Other responses

- `500`: Internal server error

---

[API](https://skmtc.dev/automile/apis/automile-api.md) - [All operations](https://skmtc.dev/automile/apis/automile-api/llms.txt) - [OpenAPI document](https://skmtc.dev/automile/apis/automile-api/revisions/56b5b8d6d733?raw)
