GET /customers/:id/contacts

Returns a list of contacts from the customer with a specific id.

The provided id can be either:

curl -XGET \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer 795d966936e24e19d4f9455be5ce44a4fd1d489623b966d20acf53ac0994cdfa" \
  https://api.invisiblecollector.com/customers/2314234/contacts
require "net/https"
require "uri"

uri = URI.parse("https://api.invisiblecollector.com/customers/2314234/contacts")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Get.new(uri.request_uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer 4a415cc660e67d8f4d26d5a7f390183a86fc3a4524ded78dc2448e86c48b2739'

response = http.request(request)
// example available soon
// example available soon

Endpoint

GET https://api.invisiblecollector.com/:id/contacts

Errors

This endpoint may return the following errors

HTTP Code Description
401 Unauthorized Invalid credentials were supplied
404 Not found The user doesn’t have any customer registered with that specific id.

Feedback

If you have a question that needs an answer, please contact support.