Objects
Get a company
Retrieve a single company by company ID.
Overview
Use this endpoint to read one company record. You can limit the returned property set with the properties query parameter and include associations when needed. It requires public api oauth access token authentication and the crm.companies.read scope.
/api/crm/objects/companies/{companyId}cURL
GETcurl --request GET \ --url 'https://crm.notifyy.io/api/crm/objects/companies/55?properties=name%2Cwebsite&associations=contact%2Cdeal' \ --header 'Authorization: Bearer nfy_public_api_access_token'Sample Request Body
Sample Response
{ "success": true, "message": "Company retrieved successfully", "data": { "id": 55, "properties": { "name": "Notifyy", "website": "https://notifyy.io" }, "associations": { "contact": [ { "id": "456", "type": "company_to_contact" } ], "deal": [ { "id": "789", "type": "deal_to_company" } ] } }}Status Codes
| Code | Description |
|---|---|
| 200 | Company was returned. |
| 404 | Company not found in the token-bound tenant and project. |
Headers
Public API OAuth bearer token.
Example: Bearer nfy_public_api_access_token
| Object | Description |
|---|---|
Authorization string | RequiredPublic API OAuth bearer token. Example: Bearer nfy_public_api_access_token |
Path parameters
Company ID.
Example: 55
| Object | Description |
|---|---|
companyId integer | RequiredCompany ID. Example: 55 |
Query parameters
Comma-separated property internal names to return.
Example: name,website
Comma-separated associated object types to include.
Example: contact,deal
| Object | Description |
|---|---|
properties string | OptionalComma-separated property internal names to return. Example: name,website |
associations string | OptionalComma-separated associated object types to include. Example: contact,deal |
Response fields
Whether the request succeeded.
Example: true
Human-readable result message.
Example: Company retrieved successfully
Company record ID.
Example: 55
Requested company properties keyed by internal name.
Associated records grouped by object type when requested.
| Object | Description |
|---|---|
success boolean | Whether the request succeeded. Example: true |
message string | Human-readable result message. Example: Company retrieved successfully |
data.id integer | Company record ID. Example: 55 |
data.properties object | Requested company properties keyed by internal name. |
data.associations object | null | Associated records grouped by object type when requested. |