curl --request PUT \
--url https://go.aiinsurance.io/api/v1/companies/{companyId}/forms/static/{number} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"fileName": "certificate-corrected.pdf",
"fileBase64": "JVBERi0xLjQK..."
}
'import requests
url = "https://go.aiinsurance.io/api/v1/companies/{companyId}/forms/static/{number}"
payload = {
"fileName": "certificate-corrected.pdf",
"fileBase64": "JVBERi0xLjQK..."
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({fileName: 'certificate-corrected.pdf', fileBase64: 'JVBERi0xLjQK...'})
};
fetch('https://go.aiinsurance.io/api/v1/companies/{companyId}/forms/static/{number}', 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://go.aiinsurance.io/api/v1/companies/{companyId}/forms/static/{number}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'fileName' => 'certificate-corrected.pdf',
'fileBase64' => 'JVBERi0xLjQK...'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://go.aiinsurance.io/api/v1/companies/{companyId}/forms/static/{number}"
payload := strings.NewReader("{\n \"fileName\": \"certificate-corrected.pdf\",\n \"fileBase64\": \"JVBERi0xLjQK...\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.put("https://go.aiinsurance.io/api/v1/companies/{companyId}/forms/static/{number}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fileName\": \"certificate-corrected.pdf\",\n \"fileBase64\": \"JVBERi0xLjQK...\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://go.aiinsurance.io/api/v1/companies/{companyId}/forms/static/{number}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fileName\": \"certificate-corrected.pdf\",\n \"fileBase64\": \"JVBERi0xLjQK...\"\n}"
response = http.request(request)
puts response.read_body{
"templateKey": "550e8400-e29b-41d4-a716-446655440040",
"checkpointId": "550e8400-e29b-41d4-a716-446655440043",
"companyId": "550e8400-e29b-41d4-a716-446655440000",
"name": "Certificate of Insurance",
"number": "FM-0010",
"category": "event",
"storagePath": "acme/550e8400-.../formTemplates/550e8400-.../V-001/550e8400-....pdf",
"createdAt": "2026-07-01T12:00:00.000Z",
"createdBy": "550e8400-e29b-41d4-a716-446655440099",
"updatedAt": "2026-07-01T12:00:00.000Z",
"updatedBy": "550e8400-e29b-41d4-a716-446655440099"
}Replace Static Form
Replaces an existing static PDF form’s content in place, addressed by its
stable FM-XXXX number. The uploaded PDF becomes a new version under the
SAME identity — same number, templateKey, display name, and category — so
forms-logic rules that reference the number keep working. PDFs carry no smart
tags, so nothing is validated; the bytes are committed as-is.
Same-type only. The target number must be a .pdf static form and the
replacement must be .pdf; a DOCX template is replaced via
PUT /forms/template/{number}. This prevents a replace from silently flipping
a form’s file type under the same number.
Required permission: form-template.edit
curl --request PUT \
--url https://go.aiinsurance.io/api/v1/companies/{companyId}/forms/static/{number} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"fileName": "certificate-corrected.pdf",
"fileBase64": "JVBERi0xLjQK..."
}
'import requests
url = "https://go.aiinsurance.io/api/v1/companies/{companyId}/forms/static/{number}"
payload = {
"fileName": "certificate-corrected.pdf",
"fileBase64": "JVBERi0xLjQK..."
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({fileName: 'certificate-corrected.pdf', fileBase64: 'JVBERi0xLjQK...'})
};
fetch('https://go.aiinsurance.io/api/v1/companies/{companyId}/forms/static/{number}', 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://go.aiinsurance.io/api/v1/companies/{companyId}/forms/static/{number}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'fileName' => 'certificate-corrected.pdf',
'fileBase64' => 'JVBERi0xLjQK...'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://go.aiinsurance.io/api/v1/companies/{companyId}/forms/static/{number}"
payload := strings.NewReader("{\n \"fileName\": \"certificate-corrected.pdf\",\n \"fileBase64\": \"JVBERi0xLjQK...\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.put("https://go.aiinsurance.io/api/v1/companies/{companyId}/forms/static/{number}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fileName\": \"certificate-corrected.pdf\",\n \"fileBase64\": \"JVBERi0xLjQK...\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://go.aiinsurance.io/api/v1/companies/{companyId}/forms/static/{number}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fileName\": \"certificate-corrected.pdf\",\n \"fileBase64\": \"JVBERi0xLjQK...\"\n}"
response = http.request(request)
puts response.read_body{
"templateKey": "550e8400-e29b-41d4-a716-446655440040",
"checkpointId": "550e8400-e29b-41d4-a716-446655440043",
"companyId": "550e8400-e29b-41d4-a716-446655440000",
"name": "Certificate of Insurance",
"number": "FM-0010",
"category": "event",
"storagePath": "acme/550e8400-.../formTemplates/550e8400-.../V-001/550e8400-....pdf",
"createdAt": "2026-07-01T12:00:00.000Z",
"createdBy": "550e8400-e29b-41d4-a716-446655440099",
"updatedAt": "2026-07-01T12:00:00.000Z",
"updatedBy": "550e8400-e29b-41d4-a716-446655440099"
}Authorizations
API key authentication. Send your raw API key as the Authorization header value with NO scheme prefix — Authorization: YOUR-API-KEY. Do NOT prefix it with Bearer or ApiKey, and do not use an X-API-Key header; those are not accepted.
Path Parameters
Company identifier
The form template's stable FM-XXXX number (as returned by the Upload Form
Template endpoint). It identifies the template across all of its versions and
is the same value forms-logic rules reference.
Body
Response
New version created. The response is the new checkpoint's summary — note
number and templateKey are unchanged from the previous version.
A single form-template checkpoint.
Stable identifier of the template across its versions.
Identifier of this specific checkpoint (version) of the template.
Display name (derived from the uploaded file name).
Human-facing form number (e.g. FM-0010).
The form category assigned to the template.
event, quote-flow, quote-bind-flow, unknown Internal storage key of the checkpoint's document.
