The Better Proposals API always returns a JSON as the response body.
The response always includes a status key, which can have one of two values:
success or error
That lets you know whether your request was successful.
If the status is "success", the response will always include a data key containing the requested information.
This error means that the request you've sent to the server is not formatted correctly.
This type of error usually occurs when you don't include the access token in the request headers.
{
"status": "error",
"message": "Malformed request"
}
This error occurs when the token you passed is not valid anymore. View API Authentication details
{
"status": "error",
"message": "Invalid token"
}
This error occurs when your free trial ends.
To continue using our API, you need to upgrade to the Premium or Enterprise plan.
{
"status": "error",
"message": "Your trial has expired."
}
After your free trial, you can only use the Better Proposals API on the Premium or Enterprise plan. This error indicates that your current plan doesn't support API use.
{
"status": "error",
"message": "It isn't possible to use the Better Proposals API on your current plan."
}
This error occurs when an 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.
{
"status": "error",
"message": "Not found"
}
| Status code | Description | ||
|---|---|---|---|
| Status code | 2XX | Description | Success |
| Status code | 4XX | Description | Client error |
| Status code | 5XX | Description | Server error |
The API currently supports header authorization.
Simply include Bptoken: YOUR_API_TOKEN in your request headers.
{
"status": "success",
"data": {}, // This object depends on created proposal's details.
}
{
"status": "success",
"data": {}, // This object depends on created cover's details.
}
{
"status": "success",
"data": {}, // This object depends on created quote's details.
}
{
"status": "success",
"data": {}, // This object depends on created company's details.
}