Appearance
Get parent account info or own account info if there is no parent
| GET | /accounts/{id}/parent-account-info |
Path parameters
| Name | Type | Description | Required |
|---|---|---|---|
id | string | Id of the target account | ✅ |
Response schema
{
...
...
}Examples
bash
curl \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {jwt}" \
"$API_BASE_URL/accounts/{id}/parent-account-info"ts
const url = "<base-url>/accounts/{id}/parent-account-info";
const headers = {
"Content-Type": "application/json",
Authorization: "Bearer <jwt>"
};
fetch(url, { headers }).then(res => {
console.log(res)
});python
import requests
url = "<base-url>/accounts/{id}/parent-account-info"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer <jwt>"
}
print(requests.get(url, headers=headers))