The BidProof API
Call BidProof from your own bid system with your organisation’s API key. An owner or admin makes a key in BidProof, under Sharing. Send it with every call as Authorization: Bearer bp_…. A key acts for one organisation and can be revoked at any time.
The same rules as the screens
- Sign-off stays with a named person in BidProof. No call signs anything off.
- A draft is saved unsigned, the pre-review check never changes an answer, and a template takes only signed-off text.
- Daily limits are shared with the screens: 30 documents read, 50 drafts and 100 pre-review checks for each organisation. A key may make 600 calls an hour.
- An error comes back as JSON with an “error” in words.
The calls
The ids the other calls take.
curl -H "Authorization: Bearer $BIDPROOF_KEY" https://bidproof.co.uk/api/v1/bidsReturns the questions found, with their criteria, weighting, limit and pass or fail mark, the scoring scale and the dates. Nothing is saved unless you add ?add=1, which adds them to the bid as found.
curl -H "Authorization: Bearer $BIDPROOF_KEY" -F file=@invitation-to-tender.pdf https://bidproof.co.uk/api/v1/bids/<bid id>/tender-packDrafts an answer for a library question you have no answer for, from your own signed-off answers. It is saved unsigned and never overwrites an answer. The question's id is the last part of its address in the bid library, for example q.sv.contact.
curl -H "Authorization: Bearer $BIDPROOF_KEY" -H "Content-Type: application/json" -d '{"question_id":"<library question id>"}' https://bidproof.co.uk/api/v1/answers/draftChecks every question that has criteria, an answer and no current result, and returns for each question the criteria met, partly met or not met, the inputs to ask for and the ways to strengthen the answer. It returns no predicted mark, and it never changes an answer.
curl -H "Authorization: Bearer $BIDPROOF_KEY" -X POST https://bidproof.co.uk/api/v1/bids/<bid id>/pre-review-checkReturns the buyer's own .docx or .xlsx with each signed-off answer where the buyer left room, and every gap marked.
curl -H "Authorization: Bearer $BIDPROOF_KEY" -F file=@response-template.docx -o filled.docx https://bidproof.co.uk/api/v1/bids/<bid id>/template