List Account contacts
List Account contacts
GET
https://api.ocamba.com/v2/ocamba/accounts/{id}/contacts
Returns a list of Account contactsPath parameters
parametersQuery parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/ocamba/accounts/{id}/contacts" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/ocamba/accounts/{id}/contacts';
const options = {
method: 'GET',
headers: {
Authorization: `Bearer {TOKEN}`
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}$ch = curl_init("https://api.ocamba.com/v2/ocamba/accounts/{id}/contacts");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);Responses
200 OK
{
"total": 3,
"items": [
{
"id": "95eb301b-6aaf-42ad-a219-ccbd5f4d3d2b",
"type": "email",
"value": "[email protected]"
}
]
}
Responses
Tip
If you don’t know the account id, list the accounts to find it.