View Account
View Account
GET
https://api.ocamba.com/v2/adex/accounts/{id}
Retrieves the details of an Account that has previously been created if a valid identifier was provided
Path parameters
parametersQuery parameters
parametersResponse schemas
›
200
application/json
GET https://api.ocamba.com/v2/adex/accounts/{id} HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
curl -X GET "https://api.ocamba.com/v2/adex/accounts/{id}" \
-H "Authorization: Bearer $TOKEN"
fetch("https://api.ocamba.com/v2/adex/accounts/{id}", {
method: "GET",
headers: { Authorization: `Bearer ${TOKEN}` }
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/v2/adex/accounts/{id}");
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
HTTP/1.1 200 OK
Content-Type: application/json
{
"total": 1,
"items": [
{
"id": "52794322",
"company_id": "1234123",
"creator_id": "1235523",
"status": "active",
"configured_status": "active",
"name": "Demo_account",
"image": "https://path/logo.jpeg",
"contacts": [
{
"id": "95eb301b-6aaf-42ad-a219-ccbd5f4d3d2b",
"value": "[email protected]",
"type": "email"
}
],
"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
1
If you don’t know the account id, list the accounts to find it.