Get all contact sources.
Sample Response:
{
"data": [
{
"id": 1,
"name": "Track 1",
"created_at": "2020-12-04 02:34:15",
"updated_at": "2020-12-04 02:34:15"
},
{
"id": 2,
"name": "Track 2",
"created_at": "2020-12-04 02:34:19",
"updated_at": "2020-12-04 02:34:19"
}
]
}
Example Request:
curl --location --request GET 'https://<subdomain>.nimbus.io/api/sources' \
--header 'Accept: application/prs.nimbus.v1+json' \
--header 'Authorization: Bearer <token>'
Create new contact source.
Sample Response:
{
"data": {
"id": 1,
"name": "Test Source 1",
"created_at": "2020-11-01 04:42:41",
"updated_at": "2020-11-01 04:42:41"
}
}
Example Request:
curl --location --request GET 'https://<subdomain>.nimbus.io/api/sources' \
--header 'Accept: application/prs.nimbus.v1+json' \
--header 'Authorization: Bearer <token>'
--form 'name=Test Source 1'
Get all contacts.
Sample Response:
{
"data": [
{
"id": 916383,
"source_id": 26,
"first_name": "Melissa",
"last_name": "Pace",
"phone": 18179660730,
"email": "[email protected]",
"address": "59 West 46th Street",
"city": "New York City",
"state": "NY",
"zip": "10036",
"created_at": "11/01/2020 04:43 PM"
},
{
"id": 916384,
"source_id": 26,
"first_name": "Cynthia",
"last_name": "Savag",
"phone": 18168768385,
"email": "[email protected]",
"address": "59 West 46th Street",
"city": "New York City",
"state": "NY",
"zip": "10036",
"created_at": "11/01/2020 04:43 PM"
},
{
"id": 916385,
"source_id": 26,
"first_name": "Patricia",
"last_name": "Smith",
"phone": 17863062885,
"email": "[email protected]",
"address": "59 West 46th Street",
"city": "New York City",
"state": "NY",
"zip": "10036",
"created_at": "11/01/2020 04:43 PM"
}
]
}
Example Request:
curl --location --request GET 'https://<subdomain>.nimbus.io/api/contacts' \
--header 'Accept: application/prs.nimbus.v1+json' \
--header 'Authorization: Bearer <token>'
Create new contact.
Sample Response:
{
"data": {
"id": 945481,
"source_id": "1",
"first_name": "Dejan",
"last_name": "Prole",
"phone": "18179660731",
"email": "[email protected]",
"address": "Test 123",
"city": "New York",
"state": "NY",
"zip": "11000",
"created_at": "12/02/2020 01:20 PM"
}
}
Example Request:
curl --location --request POST 'https://<subdomain>.nimbus.io/api/contacts' \
--header 'Accept: application/prs.nimbus.v1+json' \
--header 'Authorization: Bearer <token>'
--form 'source_id=26' \
--form 'first_name=Dejan' \
--form 'last_name=Prole' \
--form 'phone=12222222223' \
--form '[email protected]' \
--form 'address=Test 123' \
--form 'city=New York' \
--form 'state=NY' \
--form 'zip=11000' \