Create a submission
curl --request POST \
--url https://api.formizee.com/v1/f/{endpointId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "example",
"email": "[email protected]"
}
'import requests
url = "https://api.formizee.com/v1/f/{endpointId}"
payload = {
"name": "example",
"email": "[email protected]"
}
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({name: 'example', email: '[email protected]'})
};
fetch('https://api.formizee.com/v1/f/{endpointId}', 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.formizee.com/v1/f/{endpointId}",
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([
'name' => 'example',
'email' => '[email protected]'
]),
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://api.formizee.com/v1/f/{endpointId}"
payload := strings.NewReader("{\n \"name\": \"example\",\n \"email\": \"[email protected]\"\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://api.formizee.com/v1/f/{endpointId}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"example\",\n \"email\": \"[email protected]\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.formizee.com/v1/f/{endpointId}")
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 \"name\": \"example\",\n \"email\": \"[email protected]\"\n}"
response = http.request(request)
puts response.read_body{
"id": "sub_4VjHrJoEwAFC6itz8oUBW9NW2bia",
"endpointId": "enp_4VjHrJoEwAFC6itz8oUBW9NW2bia",
"location": "Spain",
"isSpam": false,
"isRead": false
}{
"code": "BAD_REQUEST",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/BAD_REQUEST",
"requestId": "<string>"
}{
"code": "UNAUTHORIZED",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/UNAUTHORIZED",
"requestId": "<string>"
}{
"code": "FORBIDDEN",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/FORBIDDEN",
"requestId": "<string>"
}{
"code": "NOT_FOUND",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/NOT_FOUND",
"requestId": "<string>"
}{
"code": "METHOD_NOT_ALLOWED",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/METHOD_NOT_ALLOWED",
"requestId": "<string>"
}{
"code": "CONFLICT",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/CONFLICT",
"requestId": "<string>"
}{
"code": "PAYLOAD_TOO_LARGE",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/PAYLOAD_TOO_LARGE",
"requestId": "<string>"
}{
"code": "TOO_MANY_REQUESTS",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/TOO_MANY_REQUESTS",
"requestId": "<string>"
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/INTERNAL_SERVER_ERROR",
"requestId": "<string>"
}{
"code": "GATEWAY_TIMEOUT",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/GATEWAY_TIMEOUT",
"requestId": "<string>"
}Submissions
Create a submission
POST
/
v1
/
f
/
{endpointId}
Create a submission
curl --request POST \
--url https://api.formizee.com/v1/f/{endpointId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "example",
"email": "[email protected]"
}
'import requests
url = "https://api.formizee.com/v1/f/{endpointId}"
payload = {
"name": "example",
"email": "[email protected]"
}
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({name: 'example', email: '[email protected]'})
};
fetch('https://api.formizee.com/v1/f/{endpointId}', 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.formizee.com/v1/f/{endpointId}",
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([
'name' => 'example',
'email' => '[email protected]'
]),
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://api.formizee.com/v1/f/{endpointId}"
payload := strings.NewReader("{\n \"name\": \"example\",\n \"email\": \"[email protected]\"\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://api.formizee.com/v1/f/{endpointId}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"example\",\n \"email\": \"[email protected]\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.formizee.com/v1/f/{endpointId}")
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 \"name\": \"example\",\n \"email\": \"[email protected]\"\n}"
response = http.request(request)
puts response.read_body{
"id": "sub_4VjHrJoEwAFC6itz8oUBW9NW2bia",
"endpointId": "enp_4VjHrJoEwAFC6itz8oUBW9NW2bia",
"location": "Spain",
"isSpam": false,
"isRead": false
}{
"code": "BAD_REQUEST",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/BAD_REQUEST",
"requestId": "<string>"
}{
"code": "UNAUTHORIZED",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/UNAUTHORIZED",
"requestId": "<string>"
}{
"code": "FORBIDDEN",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/FORBIDDEN",
"requestId": "<string>"
}{
"code": "NOT_FOUND",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/NOT_FOUND",
"requestId": "<string>"
}{
"code": "METHOD_NOT_ALLOWED",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/METHOD_NOT_ALLOWED",
"requestId": "<string>"
}{
"code": "CONFLICT",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/CONFLICT",
"requestId": "<string>"
}{
"code": "PAYLOAD_TOO_LARGE",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/PAYLOAD_TOO_LARGE",
"requestId": "<string>"
}{
"code": "TOO_MANY_REQUESTS",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/TOO_MANY_REQUESTS",
"requestId": "<string>"
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/INTERNAL_SERVER_ERROR",
"requestId": "<string>"
}{
"code": "GATEWAY_TIMEOUT",
"message": "Missing required field 'name'.",
"docs": "https://formizee.com/api-references/errors/code/GATEWAY_TIMEOUT",
"requestId": "<string>"
}Path Parameters
The id of the endpoint
Example:
"enp_4VjHrJoEwAFC6itz8oUBW9NW2bia"
Body
application/json
The body is of type object.
Response
Create a submission
The id of the submission
Example:
"sub_4VjHrJoEwAFC6itz8oUBW9NW2bia"
The id of the endpoint
Example:
"enp_4VjHrJoEwAFC6itz8oUBW9NW2bia"
The origin location of the submission
Example:
"Spain"
Shows if the submission is marked as spam
Example:
false
Shows if the submission is already readed
Example:
false
Was this page helpful?
⌘I