GET
https://api.octopush.com/v1/public/subaccount/{****@sub-accounts.com}Encoding : UTF-8
Authentication
Your “api-key” and “api-login” must be added in the headers.
Definition
This web service allows you to retrieve information from a sub-account.
Special parameters
| Nom | Type | Description |
|---|
Curl Example
curl -X GET \
'https://api.octopush.com/v1/public/subaccount/{****@sub-accounts.com}' \
-H 'Content-Type: application/json' \
-H 'api-key: ************' \
-H 'api-login: ******@email.org' \
-H 'cache-control: no-cache' \ JSON Server Response
Success : 200 OK
{
"first_name":"Leonardo",
"last_name": "Da Vinci",
"company_name": "Italy",
"api_key": "*********************",
"callback": {
"callback_url_for_inbounds": "https://mywebhook.dns/webhook-1",
"callback_url_for_deliveries": "https://mywebhook.dns/webhook-2",
"callback_url_for_blacklisted_numbers": "https://mywebhook.dns/webhook-3",
"callback_url_for_visits": "https://mywebhook.dns/webhook-4",
"email": "[email protected]"
}
}