Submit a quote
curl --request POST \
--url https://app.govly.com/api/tools/v1/quote/submissions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "<string>",
"workspaceAttachmentId": "<string>",
"quoteTotal": "<string>",
"comment": "<string>"
}
'import requests
url = "https://app.govly.com/api/tools/v1/quote/submissions"
payload = {
"workspaceId": "<string>",
"workspaceAttachmentId": "<string>",
"quoteTotal": "<string>",
"comment": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workspaceId: '<string>',
workspaceAttachmentId: '<string>',
quoteTotal: '<string>',
comment: '<string>'
})
};
fetch('https://app.govly.com/api/tools/v1/quote/submissions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.govly.com/api/tools/v1/quote/submissions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'workspaceId' => '<string>',
'workspaceAttachmentId' => '<string>',
'quoteTotal' => '<string>',
'comment' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.govly.com/api/tools/v1/quote/submissions"
payload := strings.NewReader("{\n \"workspaceId\": \"<string>\",\n \"workspaceAttachmentId\": \"<string>\",\n \"quoteTotal\": \"<string>\",\n \"comment\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.govly.com/api/tools/v1/quote/submissions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"workspaceId\": \"<string>\",\n \"workspaceAttachmentId\": \"<string>\",\n \"quoteTotal\": \"<string>\",\n \"comment\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.govly.com/api/tools/v1/quote/submissions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workspaceId\": \"<string>\",\n \"workspaceAttachmentId\": \"<string>\",\n \"quoteTotal\": \"<string>\",\n \"comment\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"portal": "chess",
"workspaceId": "<string>",
"opportunityId": "<string>",
"quoteTotal": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"comment": "<string>",
"confirmationNumber": "<string>",
"failureReason": "<string>",
"submittedAt": "2023-11-07T05:31:56Z",
"confirmedAt": "2023-11-07T05:31:56Z",
"file": {
"id": "<string>",
"filename": "<string>",
"contentType": "<string>",
"byteSize": 123,
"file": {
"url": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
}
},
"evidence": {
"id": "<string>",
"filename": "<string>",
"contentType": "<string>",
"byteSize": 123,
"file": {
"url": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
}
}
},
"meta": {
"terminal": true,
"nextPollAfterSeconds": 123,
"retryable": true
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
}
}
]
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
}
}
]
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
}
}
]
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
}
}
]
}Quote Submissions
Submit a quote
Submit a quote to the portal for an opportunity workspace. Upload the quote file to the workspace attachments endpoint first, then pass the returned workspaceAttachmentId here. The response returns a submission ID that can be polled with show_quote_submission.
POST
/
api
/
tools
/
v1
/
quote
/
submissions
Submit a quote
curl --request POST \
--url https://app.govly.com/api/tools/v1/quote/submissions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "<string>",
"workspaceAttachmentId": "<string>",
"quoteTotal": "<string>",
"comment": "<string>"
}
'import requests
url = "https://app.govly.com/api/tools/v1/quote/submissions"
payload = {
"workspaceId": "<string>",
"workspaceAttachmentId": "<string>",
"quoteTotal": "<string>",
"comment": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workspaceId: '<string>',
workspaceAttachmentId: '<string>',
quoteTotal: '<string>',
comment: '<string>'
})
};
fetch('https://app.govly.com/api/tools/v1/quote/submissions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.govly.com/api/tools/v1/quote/submissions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'workspaceId' => '<string>',
'workspaceAttachmentId' => '<string>',
'quoteTotal' => '<string>',
'comment' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.govly.com/api/tools/v1/quote/submissions"
payload := strings.NewReader("{\n \"workspaceId\": \"<string>\",\n \"workspaceAttachmentId\": \"<string>\",\n \"quoteTotal\": \"<string>\",\n \"comment\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.govly.com/api/tools/v1/quote/submissions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"workspaceId\": \"<string>\",\n \"workspaceAttachmentId\": \"<string>\",\n \"quoteTotal\": \"<string>\",\n \"comment\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.govly.com/api/tools/v1/quote/submissions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workspaceId\": \"<string>\",\n \"workspaceAttachmentId\": \"<string>\",\n \"quoteTotal\": \"<string>\",\n \"comment\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"portal": "chess",
"workspaceId": "<string>",
"opportunityId": "<string>",
"quoteTotal": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"comment": "<string>",
"confirmationNumber": "<string>",
"failureReason": "<string>",
"submittedAt": "2023-11-07T05:31:56Z",
"confirmedAt": "2023-11-07T05:31:56Z",
"file": {
"id": "<string>",
"filename": "<string>",
"contentType": "<string>",
"byteSize": 123,
"file": {
"url": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
}
},
"evidence": {
"id": "<string>",
"filename": "<string>",
"contentType": "<string>",
"byteSize": 123,
"file": {
"url": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
}
}
},
"meta": {
"terminal": true,
"nextPollAfterSeconds": 123,
"retryable": true
}
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
}
}
]
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
}
}
]
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
}
}
]
}{
"errors": [
{
"status": "<string>",
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"source": {
"pointer": "<string>"
}
}
]
}Authorizations
bearerApiKeyheaderApiKey
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Was this page helpful?
⌘I