Companies

List a company's email addresses and phone numbers

GET
https://api.searchsoftware.nl/v4/records/companies/{id}/contact-details

Every email address (archived ones left out) and phone number, the primary of each first. Requires companies:read.

Parameters

idstringrequiredpath

Company ID

Response

Contact details

Response fields application/json
statusstringokrequired
Example
ok
dataContactDetailsDatarequired
Show child attributes
email_addressesArray<ContactEmail>required
Show child attributes
idstringrequired

Identifier

Example
vM7Lp2q
addressstringrequired
Example
anna@example.com
is_primarybooleanrequired
Example
true
commentstringrequired
Example
addedboolean

Add only: false when the record already had this address.

Example
true
phone_numbersArray<ContactPhone>required
Show child attributes
idstringrequired

Identifier

Example
vM7Lp2q
numberstringrequired
Example
+31 20 123 4567
is_primarybooleanrequired
Example
false
commentstringrequired
Example
addedboolean

Add only: false when the record already had this number.

Example
true
400Bad RequestErrorResponse

Invalid id or body

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INVALID_BODY",
    "status_code": 400,
    "message": "Invalid request body"
  }
}
401UnauthorizedErrorResponse

Invalid API key

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INVALID_API_KEY",
    "status_code": 401,
    "message": "Invalid API key"
  }
}
403ForbiddenErrorResponse

Insufficient scope

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "FORBIDDEN",
    "status_code": 403,
    "message": "Insufficient scope"
  }
}
404Not FoundErrorResponse

Company not found

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "NOT_FOUND",
    "status_code": 404,
    "message": "Record not found"
  }
}
500Internal Server ErrorErrorResponse

Internal server error

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INTERNAL_ERROR",
    "status_code": 500,
    "message": "Internal server error"
  }
}

Authorization

bearer_authhttp (bearer) in header

API key or OAuth access token in Authorization header

Scopes: companies:read

oauth2_authoauth2

OAuth authorization code flow with mandatory S256 PKCE.

Scopes: companies:read

apikey_authapiKey in query

API key in query string

Scopes: companies:read