Better Proposals API always return a JSON as response body.
It always include a status key, which can have two values:
success or error
With that you can simply know your request has succeeded or not.
If status is "success" then it always have a key called data, where your requested information is stored.
This error means that request you sent to the server is not correctly formed. Mostly this kind of error appears when you don't pass access token to request headers
"message": "Malformed request"
This error appears when the token you passed is not valid anymore. View API Authentication details
"message": "Invalid token"
This error appears when your free trial ends. To continue using our API, you should upgrade to Premium or Enterprise plans.
"message": "Your trial has expired."
Current Plan Not Supported
After your free trial, you can only use Better Proposals API with Premium or Enterprise plans. This error indicates that your current plan doesn't support API usage.
"message": "It isn't possible to use the Better Proposals API on your current plan."
Page not found
This error appears when endpoint url is not found or is not available in the current version of the API.
You can view available api endpoints in the API documentation menu.
"message": "Not found"
Response status codes