Retrieves the detail of a specific Subaccount
.
API Endpoint
https://api.plivo.com/v1/Account/{auth_id}/Subaccount/{subauth_id}/
Arguments
No arguments need to be passed.
Returns
Returns a Subaccount
object.
Request
import plivo
client = plivo.RestClient('<auth_id>','<auth_token>')
response = client.subaccounts.get(
auth_id='SA2025RK4E639VJFZAMM', )
print(response)
Response
{
"account": "/v1/Account/MA2025RK4E639VJFZAGV/",
"api_id": "323972b2-0db3-11e4-a2d1-22000ac5040c",
"auth_id": "SA2025RK4E639VJFZAMM",
"auth_token": "MTZjYWM0YzVjNjMwZmVmODFiNWJjNWJmOGJjZjgw",
"created": "2022-07-17",
"enabled": false,
"modified": null,
"name": "Han Solo",
"resource_uri": "/v1/Account/MA2025RK4E639VJFZAGV/Subaccount/SA2025RK4E639VJFMM/"
}