User roles and API scopes
We suggest using the API key to access Infobip HTTP API. It provides detailed control over API scopes along with numerous other security features. Learn more about it here.
If you cannot use the API key and must rely on basic authentication, you need to ensure that the user whose password you are using to call API endpoints has been granted the necessary scope to access those endpoints. Unlike API keys, scopes are not directly assigned to users. Instead, you can assign roles to the user, and those roles will implicitly grant certain scopes.
Refer to the list below for scopes that are implicitly granted by specific roles: