Get public form
curl --request GET \
--url https://app.azalt.co/api/v1/forms/public/{formSiteId}import requests
url = "https://app.azalt.co/api/v1/forms/public/{formSiteId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.azalt.co/api/v1/forms/public/{formSiteId}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.azalt.co/api/v1/forms/public/{formSiteId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.azalt.co/api/v1/forms/public/{formSiteId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.azalt.co/api/v1/forms/public/{formSiteId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"organizationId": "<string>",
"description": "<string>",
"isPublic": true,
"year": 123,
"siteId": "<string>",
"elements": [
"<unknown>"
],
"hideFuturePeriods": true,
"metadata": "<unknown>",
"settings": null
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}Form
Get public form
Retrieve a public form configuration for external data collection without authentication.
Parameters:
formSiteId: Unique identifier combining form and site for this public endpointpassword: Optional password if the form is password-protected
Response includes:
- Complete form structure with all elements and their configurations
- Form metadata (title, description, instructions)
- Element definitions (input types, validation rules, options)
- Conditional logic and dependencies between elements
- Submission settings and requirements
Use Cases:
- External data collection from suppliers, partners, or stakeholders
- Self-service environmental data reporting
- Compliance data gathering from multiple organizations
- Public sustainability surveys and assessments
Security Features:
- No authentication required for public access
- Optional password protection for sensitive forms
- Rate limiting to prevent abuse
- Organization-level access controls still apply
GET
/
forms
/
public
/
{formSiteId}
Get public form
curl --request GET \
--url https://app.azalt.co/api/v1/forms/public/{formSiteId}import requests
url = "https://app.azalt.co/api/v1/forms/public/{formSiteId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.azalt.co/api/v1/forms/public/{formSiteId}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.azalt.co/api/v1/forms/public/{formSiteId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.azalt.co/api/v1/forms/public/{formSiteId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.azalt.co/api/v1/forms/public/{formSiteId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"organizationId": "<string>",
"description": "<string>",
"isPublic": true,
"year": 123,
"siteId": "<string>",
"elements": [
"<unknown>"
],
"hideFuturePeriods": true,
"metadata": "<unknown>",
"settings": null
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}
