List Accounts
List Accounts
GET
https://api.ocamba.com/v2/ocamba/accounts
Returns a list of AccountsQuery parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/ocamba/accounts" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/ocamba/accounts';
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");
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": "1000000",
"company_id": "1000001",
"creator_id": "1000001",
"status": "active",
"configured_status": "active",
"name": "Demo account",
"image": "https://storage.ocamba.com/1000001/adex/accounts/1000000/account.jpeg",
"contacts": [
{
"id": "95eb301b-6aaf-42ad-a219-ccbd5f4d3d2b",
"type": "email",
"value": "[email protected]"
}
],
"feeds": {
"postbacks": "https://google.com"
},
"is_default": 1,
"create_time": "2021-10-29 12:47:00",
"update_time": "2021-10-30 14:27:26"
}
]
}
Responses
Tip
Searchable field is name.
Sortable fields are: creator_id, status, name, is_default, create_time and update_time.