Error Forbidden When Subaccount Tries to Request Reports from Reports API Error Forbidden When Subaccount Tries to Request Reports from Reports API

Error Forbidden When Subaccount Tries to Request Reports from Reports API

Vonage API Support

Question

Why do I receive an error when trying to request reports from Reports API from a subaccount?

{
    “title”: “Forbidden”,
    “detail”: “User not authorized to query the requested data”,
    “instance”: “1893d407c512be9e34614cf67c52b73b”
}

Applies To

  • Reports API
  • Subaccount

Answer

A subaccount can only make reports for its own key. It is restricted from making reports for master account or other subaccounts. A master account can make a report for itself or any of its subaccounts.