Submit public form
curl --request POST \
--url https://app.azalt.co/api/v1/forms/public/{formSiteId}/submit \
--header 'Content-Type: application/json' \
--data '
{
"values": [
{
"elementId": "<string>",
"periodUnit": 123,
"sequence": 123,
"value": "<unknown>",
"selectedUnitId": "<string>"
}
],
"submissionId": "<string>"
}
'import requests
url = "https://app.azalt.co/api/v1/forms/public/{formSiteId}/submit"
payload = {
"values": [
{
"elementId": "<string>",
"periodUnit": 123,
"sequence": 123,
"value": "<unknown>",
"selectedUnitId": "<string>"
}
],
"submissionId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
values: [
{
elementId: '<string>',
periodUnit: 123,
sequence: 123,
value: '<unknown>',
selectedUnitId: '<string>'
}
],
submissionId: '<string>'
})
};
fetch('https://app.azalt.co/api/v1/forms/public/{formSiteId}/submit', 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.azalt.co/api/v1/forms/public/{formSiteId}/submit",
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([
'values' => [
[
'elementId' => '<string>',
'periodUnit' => 123,
'sequence' => 123,
'value' => '<unknown>',
'selectedUnitId' => '<string>'
]
],
'submissionId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.azalt.co/api/v1/forms/public/{formSiteId}/submit"
payload := strings.NewReader("{\n \"values\": [\n {\n \"elementId\": \"<string>\",\n \"periodUnit\": 123,\n \"sequence\": 123,\n \"value\": \"<unknown>\",\n \"selectedUnitId\": \"<string>\"\n }\n ],\n \"submissionId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.azalt.co/api/v1/forms/public/{formSiteId}/submit")
.header("Content-Type", "application/json")
.body("{\n \"values\": [\n {\n \"elementId\": \"<string>\",\n \"periodUnit\": 123,\n \"sequence\": 123,\n \"value\": \"<unknown>\",\n \"selectedUnitId\": \"<string>\"\n }\n ],\n \"submissionId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.azalt.co/api/v1/forms/public/{formSiteId}/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"values\": [\n {\n \"elementId\": \"<string>\",\n \"periodUnit\": 123,\n \"sequence\": 123,\n \"value\": \"<unknown>\",\n \"selectedUnitId\": \"<string>\"\n }\n ],\n \"submissionId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"score": {
"totalScore": 123,
"maxPossibleScore": 123,
"tierAchieved": {
"id": "<string>",
"name": "<string>",
"minScore": 123,
"maxScore": 123,
"color": "<string>",
"description": "<string>"
},
"sectionScores": [
{
"sectionId": "<string>",
"sectionName": "<string>",
"points": 123,
"maxPoints": 123
}
]
}
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}Form
Submit public form
Submit data to a public form without authentication, enabling external data collection.
Parameters:
formSiteId: Unique identifier for the form-site combinationpassword: Required if the form is password-protectedvalues: Array of form element values with their corresponding datasubmitterInfo: Optional contact information for the submitter
Value Structure per Element:
elementId: Form element identifiervalue: The actual data value (varies by element type)periodUnit: For time-series data, specifies the period (e.g., monthly, quarterly)docs: Optional file attachments supporting the data
Validation:
- All required fields must be provided
- Data types must match element configurations
- Numeric values validated against min/max constraints
- File uploads checked against allowed types and sizes
Common Use Cases:
- Supplier environmental data collection
- Third-party compliance reporting
- Stakeholder sustainability surveys
- External facility data submissions
POST
/
forms
/
public
/
{formSiteId}
/
submit
Submit public form
curl --request POST \
--url https://app.azalt.co/api/v1/forms/public/{formSiteId}/submit \
--header 'Content-Type: application/json' \
--data '
{
"values": [
{
"elementId": "<string>",
"periodUnit": 123,
"sequence": 123,
"value": "<unknown>",
"selectedUnitId": "<string>"
}
],
"submissionId": "<string>"
}
'import requests
url = "https://app.azalt.co/api/v1/forms/public/{formSiteId}/submit"
payload = {
"values": [
{
"elementId": "<string>",
"periodUnit": 123,
"sequence": 123,
"value": "<unknown>",
"selectedUnitId": "<string>"
}
],
"submissionId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
values: [
{
elementId: '<string>',
periodUnit: 123,
sequence: 123,
value: '<unknown>',
selectedUnitId: '<string>'
}
],
submissionId: '<string>'
})
};
fetch('https://app.azalt.co/api/v1/forms/public/{formSiteId}/submit', 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.azalt.co/api/v1/forms/public/{formSiteId}/submit",
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([
'values' => [
[
'elementId' => '<string>',
'periodUnit' => 123,
'sequence' => 123,
'value' => '<unknown>',
'selectedUnitId' => '<string>'
]
],
'submissionId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.azalt.co/api/v1/forms/public/{formSiteId}/submit"
payload := strings.NewReader("{\n \"values\": [\n {\n \"elementId\": \"<string>\",\n \"periodUnit\": 123,\n \"sequence\": 123,\n \"value\": \"<unknown>\",\n \"selectedUnitId\": \"<string>\"\n }\n ],\n \"submissionId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.azalt.co/api/v1/forms/public/{formSiteId}/submit")
.header("Content-Type", "application/json")
.body("{\n \"values\": [\n {\n \"elementId\": \"<string>\",\n \"periodUnit\": 123,\n \"sequence\": 123,\n \"value\": \"<unknown>\",\n \"selectedUnitId\": \"<string>\"\n }\n ],\n \"submissionId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.azalt.co/api/v1/forms/public/{formSiteId}/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"values\": [\n {\n \"elementId\": \"<string>\",\n \"periodUnit\": 123,\n \"sequence\": 123,\n \"value\": \"<unknown>\",\n \"selectedUnitId\": \"<string>\"\n }\n ],\n \"submissionId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"score": {
"totalScore": 123,
"maxPossibleScore": 123,
"tierAchieved": {
"id": "<string>",
"name": "<string>",
"minScore": 123,
"maxScore": 123,
"color": "<string>",
"description": "<string>"
},
"sectionScores": [
{
"sectionId": "<string>",
"sectionName": "<string>",
"points": 123,
"maxPoints": 123
}
]
}
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}⌘I

