Create a user
curl --request POST \
--url https://api-sandbox.argyle.com/partners/v2/users \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"client": "39096494-45c8-4fd8-9454-3d1cb2d62db7",
"first_name": "Jane",
"last_name": "Doe",
"ssn": "000-00-0000",
"email": "jane@example.com",
"phone_number": "+15555555555",
"address": {
"city": "New York",
"line1": "123 Main St",
"line2": null,
"state": "NY",
"country": "US",
"postal_code": null
},
"birth_date": {
"year": 1990,
"month": 1,
"day": 13
},
"external_id": null
}
'import requests
url = "https://api-sandbox.argyle.com/partners/v2/users"
payload = {
"client": "39096494-45c8-4fd8-9454-3d1cb2d62db7",
"first_name": "Jane",
"last_name": "Doe",
"ssn": "000-00-0000",
"email": "jane@example.com",
"phone_number": "+15555555555",
"address": {
"city": "New York",
"line1": "123 Main St",
"line2": None,
"state": "NY",
"country": "US",
"postal_code": None
},
"birth_date": {
"year": 1990,
"month": 1,
"day": 13
},
"external_id": None
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
client: '39096494-45c8-4fd8-9454-3d1cb2d62db7',
first_name: 'Jane',
last_name: 'Doe',
ssn: '000-00-0000',
email: 'jane@example.com',
phone_number: '+15555555555',
address: {
city: 'New York',
line1: '123 Main St',
line2: null,
state: 'NY',
country: 'US',
postal_code: null
},
birth_date: {year: 1990, month: 1, day: 13},
external_id: null
})
};
fetch('https://api-sandbox.argyle.com/partners/v2/users', 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-sandbox.argyle.com/partners/v2/users",
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([
'client' => '39096494-45c8-4fd8-9454-3d1cb2d62db7',
'first_name' => 'Jane',
'last_name' => 'Doe',
'ssn' => '000-00-0000',
'email' => 'jane@example.com',
'phone_number' => '+15555555555',
'address' => [
'city' => 'New York',
'line1' => '123 Main St',
'line2' => null,
'state' => 'NY',
'country' => 'US',
'postal_code' => null
],
'birth_date' => [
'year' => 1990,
'month' => 1,
'day' => 13
],
'external_id' => null
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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-sandbox.argyle.com/partners/v2/users"
payload := strings.NewReader("{\n \"client\": \"39096494-45c8-4fd8-9454-3d1cb2d62db7\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"ssn\": \"000-00-0000\",\n \"email\": \"jane@example.com\",\n \"phone_number\": \"+15555555555\",\n \"address\": {\n \"city\": \"New York\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"state\": \"NY\",\n \"country\": \"US\",\n \"postal_code\": null\n },\n \"birth_date\": {\n \"year\": 1990,\n \"month\": 1,\n \"day\": 13\n },\n \"external_id\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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-sandbox.argyle.com/partners/v2/users")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"client\": \"39096494-45c8-4fd8-9454-3d1cb2d62db7\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"ssn\": \"000-00-0000\",\n \"email\": \"jane@example.com\",\n \"phone_number\": \"+15555555555\",\n \"address\": {\n \"city\": \"New York\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"state\": \"NY\",\n \"country\": \"US\",\n \"postal_code\": null\n },\n \"birth_date\": {\n \"year\": 1990,\n \"month\": 1,\n \"day\": 13\n },\n \"external_id\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.argyle.com/partners/v2/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"client\": \"39096494-45c8-4fd8-9454-3d1cb2d62db7\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"ssn\": \"000-00-0000\",\n \"email\": \"jane@example.com\",\n \"phone_number\": \"+15555555555\",\n \"address\": {\n \"city\": \"New York\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"state\": \"NY\",\n \"country\": \"US\",\n \"postal_code\": null\n },\n \"birth_date\": {\n \"year\": 1990,\n \"month\": 1,\n \"day\": 13\n },\n \"external_id\": null\n}"
response = http.request(request)
puts response.read_body{
"user_token": "<SECRET>",
"id": "7a614711-066f-4b6b-b319-4c6236b5acc1"
}Users
Create a user
Creates a new user object for partner verification workflows.
POST
/
partners
/
v2
/
users
Create a user
curl --request POST \
--url https://api-sandbox.argyle.com/partners/v2/users \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"client": "39096494-45c8-4fd8-9454-3d1cb2d62db7",
"first_name": "Jane",
"last_name": "Doe",
"ssn": "000-00-0000",
"email": "jane@example.com",
"phone_number": "+15555555555",
"address": {
"city": "New York",
"line1": "123 Main St",
"line2": null,
"state": "NY",
"country": "US",
"postal_code": null
},
"birth_date": {
"year": 1990,
"month": 1,
"day": 13
},
"external_id": null
}
'import requests
url = "https://api-sandbox.argyle.com/partners/v2/users"
payload = {
"client": "39096494-45c8-4fd8-9454-3d1cb2d62db7",
"first_name": "Jane",
"last_name": "Doe",
"ssn": "000-00-0000",
"email": "jane@example.com",
"phone_number": "+15555555555",
"address": {
"city": "New York",
"line1": "123 Main St",
"line2": None,
"state": "NY",
"country": "US",
"postal_code": None
},
"birth_date": {
"year": 1990,
"month": 1,
"day": 13
},
"external_id": None
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
client: '39096494-45c8-4fd8-9454-3d1cb2d62db7',
first_name: 'Jane',
last_name: 'Doe',
ssn: '000-00-0000',
email: 'jane@example.com',
phone_number: '+15555555555',
address: {
city: 'New York',
line1: '123 Main St',
line2: null,
state: 'NY',
country: 'US',
postal_code: null
},
birth_date: {year: 1990, month: 1, day: 13},
external_id: null
})
};
fetch('https://api-sandbox.argyle.com/partners/v2/users', 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-sandbox.argyle.com/partners/v2/users",
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([
'client' => '39096494-45c8-4fd8-9454-3d1cb2d62db7',
'first_name' => 'Jane',
'last_name' => 'Doe',
'ssn' => '000-00-0000',
'email' => 'jane@example.com',
'phone_number' => '+15555555555',
'address' => [
'city' => 'New York',
'line1' => '123 Main St',
'line2' => null,
'state' => 'NY',
'country' => 'US',
'postal_code' => null
],
'birth_date' => [
'year' => 1990,
'month' => 1,
'day' => 13
],
'external_id' => null
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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-sandbox.argyle.com/partners/v2/users"
payload := strings.NewReader("{\n \"client\": \"39096494-45c8-4fd8-9454-3d1cb2d62db7\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"ssn\": \"000-00-0000\",\n \"email\": \"jane@example.com\",\n \"phone_number\": \"+15555555555\",\n \"address\": {\n \"city\": \"New York\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"state\": \"NY\",\n \"country\": \"US\",\n \"postal_code\": null\n },\n \"birth_date\": {\n \"year\": 1990,\n \"month\": 1,\n \"day\": 13\n },\n \"external_id\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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-sandbox.argyle.com/partners/v2/users")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"client\": \"39096494-45c8-4fd8-9454-3d1cb2d62db7\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"ssn\": \"000-00-0000\",\n \"email\": \"jane@example.com\",\n \"phone_number\": \"+15555555555\",\n \"address\": {\n \"city\": \"New York\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"state\": \"NY\",\n \"country\": \"US\",\n \"postal_code\": null\n },\n \"birth_date\": {\n \"year\": 1990,\n \"month\": 1,\n \"day\": 13\n },\n \"external_id\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.argyle.com/partners/v2/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"client\": \"39096494-45c8-4fd8-9454-3d1cb2d62db7\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"ssn\": \"000-00-0000\",\n \"email\": \"jane@example.com\",\n \"phone_number\": \"+15555555555\",\n \"address\": {\n \"city\": \"New York\",\n \"line1\": \"123 Main St\",\n \"line2\": null,\n \"state\": \"NY\",\n \"country\": \"US\",\n \"postal_code\": null\n },\n \"birth_date\": {\n \"year\": 1990,\n \"month\": 1,\n \"day\": 13\n },\n \"external_id\": null\n}"
response = http.request(request)
puts response.read_body{
"user_token": "<SECRET>",
"id": "7a614711-066f-4b6b-b319-4c6236b5acc1"
}Body
application/json