JavaScript
import Gizmo from '@gizmo-os/sdk';
const client = new Gizmo({
apiKey: process.env['GIZMO_API_KEY'], // This is the default and can be omitted
});
const application = await client.applications.create({
leadProviderSlug: 'leadProviderSlug',
primaryBorrowerEmail: 'primaryBorrowerEmail',
primaryBorrowerFirstName: 'primaryBorrowerFirstName',
primaryBorrowerLastName: 'primaryBorrowerLastName',
primaryBorrowerPhone: 'primaryBorrowerPhone',
subjectPropertyState: 'al',
});
console.log(application.id);import os
from gizmo_sdk import Gizmo
client = Gizmo(
api_key=os.environ.get("GIZMO_API_KEY"), # This is the default and can be omitted
)
application = client.applications.create(
lead_provider_slug="leadProviderSlug",
primary_borrower_email="primaryBorrowerEmail",
primary_borrower_first_name="primaryBorrowerFirstName",
primary_borrower_last_name="primaryBorrowerLastName",
primary_borrower_phone="primaryBorrowerPhone",
subject_property_state="al",
)
print(application.id)curl --request POST \
--url https://core.usegizmo.com/v1/applications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"primaryBorrowerFirstName": "<string>",
"primaryBorrowerLastName": "<string>",
"primaryBorrowerEmail": "<string>",
"primaryBorrowerPhone": "<string>",
"leadProviderSlug": "<string>",
"primaryBorrowerDateOfBirth": "<string>",
"primaryBorrowerSsn": "<string>",
"subjectPropertyStreetAddress": "<string>",
"subjectPropertyCity": "<string>",
"subjectPropertyZip": "<string>",
"losId": "<string>",
"crmId": "<string>",
"teamId": "<string>"
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://core.usegizmo.com/v1/applications",
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([
'primaryBorrowerFirstName' => '<string>',
'primaryBorrowerLastName' => '<string>',
'primaryBorrowerEmail' => '<string>',
'primaryBorrowerPhone' => '<string>',
'leadProviderSlug' => '<string>',
'primaryBorrowerDateOfBirth' => '<string>',
'primaryBorrowerSsn' => '<string>',
'subjectPropertyStreetAddress' => '<string>',
'subjectPropertyCity' => '<string>',
'subjectPropertyZip' => '<string>',
'losId' => '<string>',
'crmId' => '<string>',
'teamId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://core.usegizmo.com/v1/applications"
payload := strings.NewReader("{\n \"primaryBorrowerFirstName\": \"<string>\",\n \"primaryBorrowerLastName\": \"<string>\",\n \"primaryBorrowerEmail\": \"<string>\",\n \"primaryBorrowerPhone\": \"<string>\",\n \"leadProviderSlug\": \"<string>\",\n \"primaryBorrowerDateOfBirth\": \"<string>\",\n \"primaryBorrowerSsn\": \"<string>\",\n \"subjectPropertyStreetAddress\": \"<string>\",\n \"subjectPropertyCity\": \"<string>\",\n \"subjectPropertyZip\": \"<string>\",\n \"losId\": \"<string>\",\n \"crmId\": \"<string>\",\n \"teamId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://core.usegizmo.com/v1/applications")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"primaryBorrowerFirstName\": \"<string>\",\n \"primaryBorrowerLastName\": \"<string>\",\n \"primaryBorrowerEmail\": \"<string>\",\n \"primaryBorrowerPhone\": \"<string>\",\n \"leadProviderSlug\": \"<string>\",\n \"primaryBorrowerDateOfBirth\": \"<string>\",\n \"primaryBorrowerSsn\": \"<string>\",\n \"subjectPropertyStreetAddress\": \"<string>\",\n \"subjectPropertyCity\": \"<string>\",\n \"subjectPropertyZip\": \"<string>\",\n \"losId\": \"<string>\",\n \"crmId\": \"<string>\",\n \"teamId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.usegizmo.com/v1/applications")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"primaryBorrowerFirstName\": \"<string>\",\n \"primaryBorrowerLastName\": \"<string>\",\n \"primaryBorrowerEmail\": \"<string>\",\n \"primaryBorrowerPhone\": \"<string>\",\n \"leadProviderSlug\": \"<string>\",\n \"primaryBorrowerDateOfBirth\": \"<string>\",\n \"primaryBorrowerSsn\": \"<string>\",\n \"subjectPropertyStreetAddress\": \"<string>\",\n \"subjectPropertyCity\": \"<string>\",\n \"subjectPropertyZip\": \"<string>\",\n \"losId\": \"<string>\",\n \"crmId\": \"<string>\",\n \"teamId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>"
}{
"error": {
"message": "<string>",
"data": "<unknown>"
}
}{
"kind": "<string>",
"name": "<string>",
"retryAfter": 123
}Applications
Create Application
POST
/
applications
JavaScript
import Gizmo from '@gizmo-os/sdk';
const client = new Gizmo({
apiKey: process.env['GIZMO_API_KEY'], // This is the default and can be omitted
});
const application = await client.applications.create({
leadProviderSlug: 'leadProviderSlug',
primaryBorrowerEmail: 'primaryBorrowerEmail',
primaryBorrowerFirstName: 'primaryBorrowerFirstName',
primaryBorrowerLastName: 'primaryBorrowerLastName',
primaryBorrowerPhone: 'primaryBorrowerPhone',
subjectPropertyState: 'al',
});
console.log(application.id);import os
from gizmo_sdk import Gizmo
client = Gizmo(
api_key=os.environ.get("GIZMO_API_KEY"), # This is the default and can be omitted
)
application = client.applications.create(
lead_provider_slug="leadProviderSlug",
primary_borrower_email="primaryBorrowerEmail",
primary_borrower_first_name="primaryBorrowerFirstName",
primary_borrower_last_name="primaryBorrowerLastName",
primary_borrower_phone="primaryBorrowerPhone",
subject_property_state="al",
)
print(application.id)curl --request POST \
--url https://core.usegizmo.com/v1/applications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"primaryBorrowerFirstName": "<string>",
"primaryBorrowerLastName": "<string>",
"primaryBorrowerEmail": "<string>",
"primaryBorrowerPhone": "<string>",
"leadProviderSlug": "<string>",
"primaryBorrowerDateOfBirth": "<string>",
"primaryBorrowerSsn": "<string>",
"subjectPropertyStreetAddress": "<string>",
"subjectPropertyCity": "<string>",
"subjectPropertyZip": "<string>",
"losId": "<string>",
"crmId": "<string>",
"teamId": "<string>"
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://core.usegizmo.com/v1/applications",
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([
'primaryBorrowerFirstName' => '<string>',
'primaryBorrowerLastName' => '<string>',
'primaryBorrowerEmail' => '<string>',
'primaryBorrowerPhone' => '<string>',
'leadProviderSlug' => '<string>',
'primaryBorrowerDateOfBirth' => '<string>',
'primaryBorrowerSsn' => '<string>',
'subjectPropertyStreetAddress' => '<string>',
'subjectPropertyCity' => '<string>',
'subjectPropertyZip' => '<string>',
'losId' => '<string>',
'crmId' => '<string>',
'teamId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://core.usegizmo.com/v1/applications"
payload := strings.NewReader("{\n \"primaryBorrowerFirstName\": \"<string>\",\n \"primaryBorrowerLastName\": \"<string>\",\n \"primaryBorrowerEmail\": \"<string>\",\n \"primaryBorrowerPhone\": \"<string>\",\n \"leadProviderSlug\": \"<string>\",\n \"primaryBorrowerDateOfBirth\": \"<string>\",\n \"primaryBorrowerSsn\": \"<string>\",\n \"subjectPropertyStreetAddress\": \"<string>\",\n \"subjectPropertyCity\": \"<string>\",\n \"subjectPropertyZip\": \"<string>\",\n \"losId\": \"<string>\",\n \"crmId\": \"<string>\",\n \"teamId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://core.usegizmo.com/v1/applications")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"primaryBorrowerFirstName\": \"<string>\",\n \"primaryBorrowerLastName\": \"<string>\",\n \"primaryBorrowerEmail\": \"<string>\",\n \"primaryBorrowerPhone\": \"<string>\",\n \"leadProviderSlug\": \"<string>\",\n \"primaryBorrowerDateOfBirth\": \"<string>\",\n \"primaryBorrowerSsn\": \"<string>\",\n \"subjectPropertyStreetAddress\": \"<string>\",\n \"subjectPropertyCity\": \"<string>\",\n \"subjectPropertyZip\": \"<string>\",\n \"losId\": \"<string>\",\n \"crmId\": \"<string>\",\n \"teamId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.usegizmo.com/v1/applications")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"primaryBorrowerFirstName\": \"<string>\",\n \"primaryBorrowerLastName\": \"<string>\",\n \"primaryBorrowerEmail\": \"<string>\",\n \"primaryBorrowerPhone\": \"<string>\",\n \"leadProviderSlug\": \"<string>\",\n \"primaryBorrowerDateOfBirth\": \"<string>\",\n \"primaryBorrowerSsn\": \"<string>\",\n \"subjectPropertyStreetAddress\": \"<string>\",\n \"subjectPropertyCity\": \"<string>\",\n \"subjectPropertyZip\": \"<string>\",\n \"losId\": \"<string>\",\n \"crmId\": \"<string>\",\n \"teamId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>"
}{
"error": {
"message": "<string>",
"data": "<unknown>"
}
}{
"kind": "<string>",
"name": "<string>",
"retryAfter": 123
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The two-letter state abbreviation in lowercase
Available options:
al, ak, az, ar, ca, co, ct, de, dc, fl, ga, hi, id, il, in, ia, ks, ky, la, me, md, ma, mi, mn, ms, mo, mt, ne, nv, nh, nj, nm, ny, nc, nd, oh, ok, or, pa, ri, sc, sd, tn, tx, ut, vt, va, wa, wv, wi, wy Available options:
purchase, refi, refiCashOut Response
The created Application ID
Required string length:
32Was this page helpful?
⌘I