curl --request POST \
--url https://api.meshqu.com/v1/forms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-MeshQu-Tenant-Id: <api-key>' \
--data '
{
"policy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy_version": 2,
"scope": "policy",
"access_mode": "open",
"password": "<string>",
"token_expires_at": "2023-11-07T05:31:56Z",
"token_max_uses": 2,
"branding": {
"label": "<string>",
"description": "<string>",
"logo_url": "<string>"
},
"is_published": false
}
'import requests
url = "https://api.meshqu.com/v1/forms"
payload = {
"policy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy_version": 2,
"scope": "policy",
"access_mode": "open",
"password": "<string>",
"token_expires_at": "2023-11-07T05:31:56Z",
"token_max_uses": 2,
"branding": {
"label": "<string>",
"description": "<string>",
"logo_url": "<string>"
},
"is_published": False
}
headers = {
"Authorization": "Bearer <token>",
"X-MeshQu-Tenant-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-MeshQu-Tenant-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
policy_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
policy_version: 2,
scope: 'policy',
access_mode: 'open',
password: '<string>',
token_expires_at: '2023-11-07T05:31:56Z',
token_max_uses: 2,
branding: {label: '<string>', description: '<string>', logo_url: '<string>'},
is_published: false
})
};
fetch('https://api.meshqu.com/v1/forms', 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://api.meshqu.com/v1/forms",
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([
'policy_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'policy_version' => 2,
'scope' => 'policy',
'access_mode' => 'open',
'password' => '<string>',
'token_expires_at' => '2023-11-07T05:31:56Z',
'token_max_uses' => 2,
'branding' => [
'label' => '<string>',
'description' => '<string>',
'logo_url' => '<string>'
],
'is_published' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-MeshQu-Tenant-Id: <api-key>"
],
]);
$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://api.meshqu.com/v1/forms"
payload := strings.NewReader("{\n \"policy_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"policy_version\": 2,\n \"scope\": \"policy\",\n \"access_mode\": \"open\",\n \"password\": \"<string>\",\n \"token_expires_at\": \"2023-11-07T05:31:56Z\",\n \"token_max_uses\": 2,\n \"branding\": {\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"logo_url\": \"<string>\"\n },\n \"is_published\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("X-MeshQu-Tenant-Id", "<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.post("https://api.meshqu.com/v1/forms")
.header("Authorization", "Bearer <token>")
.header("X-MeshQu-Tenant-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"policy_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"policy_version\": 2,\n \"scope\": \"policy\",\n \"access_mode\": \"open\",\n \"password\": \"<string>\",\n \"token_expires_at\": \"2023-11-07T05:31:56Z\",\n \"token_max_uses\": 2,\n \"branding\": {\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"logo_url\": \"<string>\"\n },\n \"is_published\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meshqu.com/v1/forms")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["X-MeshQu-Tenant-Id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"policy_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"policy_version\": 2,\n \"scope\": \"policy\",\n \"access_mode\": \"open\",\n \"password\": \"<string>\",\n \"token_expires_at\": \"2023-11-07T05:31:56Z\",\n \"token_max_uses\": 2,\n \"branding\": {\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"logo_url\": \"<string>\"\n },\n \"is_published\": false\n}"
response = http.request(request)
puts response.read_body{
"form_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy_version": 123,
"is_frozen": true,
"scope": "<string>",
"access_mode": "<string>",
"branding": {
"label": "<string>",
"description": "<string>",
"logo_url": "<string>"
},
"identifier_config": {
"label": "<string>",
"placeholder": "<string>",
"helper_text": "<string>"
},
"is_published": true,
"token_expires_at": "<string>",
"token_max_uses": 123,
"token_use_count": 123,
"created_at": "<string>",
"updated_at": "<string>",
"token_secret": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"correlation_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"correlation_id": "<string>"
}Create form
Creates a new attested manual check form derived from a policy.
curl --request POST \
--url https://api.meshqu.com/v1/forms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-MeshQu-Tenant-Id: <api-key>' \
--data '
{
"policy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy_version": 2,
"scope": "policy",
"access_mode": "open",
"password": "<string>",
"token_expires_at": "2023-11-07T05:31:56Z",
"token_max_uses": 2,
"branding": {
"label": "<string>",
"description": "<string>",
"logo_url": "<string>"
},
"is_published": false
}
'import requests
url = "https://api.meshqu.com/v1/forms"
payload = {
"policy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy_version": 2,
"scope": "policy",
"access_mode": "open",
"password": "<string>",
"token_expires_at": "2023-11-07T05:31:56Z",
"token_max_uses": 2,
"branding": {
"label": "<string>",
"description": "<string>",
"logo_url": "<string>"
},
"is_published": False
}
headers = {
"Authorization": "Bearer <token>",
"X-MeshQu-Tenant-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-MeshQu-Tenant-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
policy_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
policy_version: 2,
scope: 'policy',
access_mode: 'open',
password: '<string>',
token_expires_at: '2023-11-07T05:31:56Z',
token_max_uses: 2,
branding: {label: '<string>', description: '<string>', logo_url: '<string>'},
is_published: false
})
};
fetch('https://api.meshqu.com/v1/forms', 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://api.meshqu.com/v1/forms",
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([
'policy_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'policy_version' => 2,
'scope' => 'policy',
'access_mode' => 'open',
'password' => '<string>',
'token_expires_at' => '2023-11-07T05:31:56Z',
'token_max_uses' => 2,
'branding' => [
'label' => '<string>',
'description' => '<string>',
'logo_url' => '<string>'
],
'is_published' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-MeshQu-Tenant-Id: <api-key>"
],
]);
$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://api.meshqu.com/v1/forms"
payload := strings.NewReader("{\n \"policy_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"policy_version\": 2,\n \"scope\": \"policy\",\n \"access_mode\": \"open\",\n \"password\": \"<string>\",\n \"token_expires_at\": \"2023-11-07T05:31:56Z\",\n \"token_max_uses\": 2,\n \"branding\": {\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"logo_url\": \"<string>\"\n },\n \"is_published\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("X-MeshQu-Tenant-Id", "<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.post("https://api.meshqu.com/v1/forms")
.header("Authorization", "Bearer <token>")
.header("X-MeshQu-Tenant-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"policy_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"policy_version\": 2,\n \"scope\": \"policy\",\n \"access_mode\": \"open\",\n \"password\": \"<string>\",\n \"token_expires_at\": \"2023-11-07T05:31:56Z\",\n \"token_max_uses\": 2,\n \"branding\": {\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"logo_url\": \"<string>\"\n },\n \"is_published\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meshqu.com/v1/forms")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["X-MeshQu-Tenant-Id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"policy_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"policy_version\": 2,\n \"scope\": \"policy\",\n \"access_mode\": \"open\",\n \"password\": \"<string>\",\n \"token_expires_at\": \"2023-11-07T05:31:56Z\",\n \"token_max_uses\": 2,\n \"branding\": {\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"logo_url\": \"<string>\"\n },\n \"is_published\": false\n}"
response = http.request(request)
puts response.read_body{
"form_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy_version": 123,
"is_frozen": true,
"scope": "<string>",
"access_mode": "<string>",
"branding": {
"label": "<string>",
"description": "<string>",
"logo_url": "<string>"
},
"identifier_config": {
"label": "<string>",
"placeholder": "<string>",
"helper_text": "<string>"
},
"is_published": true,
"token_expires_at": "<string>",
"token_max_uses": 123,
"token_use_count": 123,
"created_at": "<string>",
"updated_at": "<string>",
"token_secret": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"correlation_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"correlation_id": "<string>"
}Authorizations
MeshQu API key passed as a bearer token: Authorization: Bearer mqu_…. Mint one in the console (Settings → API keys).
Tenant UUID for multi-tenant isolation. Required on all authenticated routes — validated before authentication (middleware/tenant.ts), so a missing or non-UUID header returns 400 (MISSING_TENANT_ID / INVALID_TENANT_ID) before the API key is checked.
Body
Policy to derive the form from
Specific policy version (null = always latest)
x >= 1Evaluation scope: policy = linked policy only, decision_type = all policies for the decision type
policy Access control mode
open Password for password mode (will be hashed)
8 - 128ISO 8601 expiry for token-mode access (defaults to 7 days from creation)
Maximum number of submissions allowed via token
x >= 1Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Default Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Token secret — only returned on create/regenerate (one-time reveal)