Contact API
API for retrieving and creating contacts
Endpoints
List contacts
GET /api/v1/contacts
Headers
| name | type | example value |
|---|---|---|
| X-AUTHORIZATION | Bearer JWT token | eyJhbGciOiJIUzI1NiJ9.body.signature |
Parameters
| name | required | data type | description |
|---|---|---|---|
| company_profile_id | true | UUID | profile id |
| audience_id | true | UUID | profile id |
| page | false | int | page num (default 0) |
| per_page | false | int | num results on a single page (default 50) |
Responses
Create contact
PUT /api/v1/contacts
Headers
| name | type | example value |
|---|---|---|
| X-AUTHORIZATION | Bearer JWT token | eyJhbGciOiJIUzI1NiJ9.body.signature |
Example Body
{
"contact": {
"standard_personal_infos": [
{
"name": "Voornaam",
"value": "Jur"
},
{
"name": "Achternaam",
"value": "Jansen"
},
{
"name": "E-mailadres",
"value": "jur@reuzenpanda.nl"
},
{
"name": "Land",
"value": "Netherlands"
},
{
"name": "Postcode",
"value": "6001CH"
},
{
"name": "Plaats",
"value": "Weert"
},
{
"name": "Straatnaam",
"value": "Stationsplein"
},
{
"name": "Huisnummer",
"value": "8"
},
{
"name": "Telefoonnummer",
"value": "085 111 0055"
}
],
"time_stamp": 1694614551531,
"audience": {
"id": "b2aa1603-d553-4a6c-a89b-be283706c1be",
"company_profile": {
"id": "02539024-03ad-4e10-a735-ea6eee1b5d0a"
}
},
"contact_type": "CONSUMER"
}
}Responses