Get a single company or a list of companies Early access
Use this method with a query parameter to get a single company. If the query parameter is not specified, this method will return a list of companies.
Authorizations:
Scopes:
Request rate limit:
query Parameters
name | string Example: name=Infobip Name of company you want to get. | ||||||||||||||||||||||||||||||||||||
id | integer <int64> Example: id=11351351 ID of company you want to get. | ||||||||||||||||||||||||||||||||||||
externalId | string Example: externalId=11351351 External ID of company you want to get. | ||||||||||||||||||||||||||||||||||||
domain | string Example: domain=www.infobip.com Domain of company you want to get. | ||||||||||||||||||||||||||||||||||||
limit | integer <int32> Example: limit=20 Number of companies to return per page. Default - 20. Maximum - 1000. | ||||||||||||||||||||||||||||||||||||
page | integer <int32> Example: page=1 Page of results to return. Default - 1. | ||||||||||||||||||||||||||||||||||||
includeTotalCount | boolean Example: includeTotalCount=false Returns total count of companies, if set to | ||||||||||||||||||||||||||||||||||||
orderBy | string Example: orderBy=modifiedAt:desc Results ordering. Possible ordering fields are | ||||||||||||||||||||||||||||||||||||
filter | string Example: filter={"#or":[{"name":"infobip"},{"#contains":{"notes":"another"}}]} Allows to filter companies using simple queries. Just pass to the parameter URL encoded query. List of supported logical operators:
List of supported comparison operators:
|
Responses
successful response
Unauthorized
Forbidden
Too Many Requests
Error responses
Internal Server Error
Error responses
Request samples
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
curl -L -g 'https://{baseUrl}/people/2/companies?name=Infobip&id=11351351&externalId=11351351&domain=www.infobip.com&limit=20&page=1&includeTotalCount=false&orderBy=modifiedAt%3Adesc&filter=%7B%22%23or%22%3A%5B%7B%22name%22%3A%22infobip%22%7D%2C%7B%22%23contains%22%3A%7B%22notes%22%3A%22another%22%7D%7D%5D%7D' \ -H 'Authorization: {authorization}' \ -H 'Accept: application/json'
Response samples
- default
- 401
- 403
- 429
- 4XX
- 500
- 5XX
{- "companies": [
- {
- "createdAt": "2017-12-01T19:16:41",
- "modifiedAt": "2017-12-01T19:16:41",
- "id": 1,
- "name": "Infobip",
- "notes": "notes example",
- "country": "Croatia",
- "region": "Europe",
- "accountManager": "Jane Smith",
- "customerStage": "Active",
- "industry": "IT",
- "vatNumber": "003212059",
- "customAttributes": {
- "Contract Expiry": "2018-06-01"
}, - "domains": [
- "infobip.com"
], - "origin": "API",
- "modifiedFrom": "API"
}
]
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See