Create Customer
curl --request POST \
--url https://app.lukittu.com/api/v1/dev/teams/{teamId}/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"fullName": "<string>",
"username": "<string>",
"discordId": "<string>",
"metadata": [
{
"key": "<string>",
"value": "<string>",
"locked": true
}
],
"address": {
"street": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postalCode": "<string>"
}
}
'import requests
url = "https://app.lukittu.com/api/v1/dev/teams/{teamId}/customers"
payload = {
"email": "jsmith@example.com",
"fullName": "<string>",
"username": "<string>",
"discordId": "<string>",
"metadata": [
{
"key": "<string>",
"value": "<string>",
"locked": True
}
],
"address": {
"street": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postalCode": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: 'jsmith@example.com',
fullName: '<string>',
username: '<string>',
discordId: '<string>',
metadata: [{key: '<string>', value: '<string>', locked: true}],
address: {
street: '<string>',
city: '<string>',
state: '<string>',
country: '<string>',
postalCode: '<string>'
}
})
};
fetch('https://app.lukittu.com/api/v1/dev/teams/{teamId}/customers', 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://app.lukittu.com/api/v1/dev/teams/{teamId}/customers",
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([
'email' => 'jsmith@example.com',
'fullName' => '<string>',
'username' => '<string>',
'discordId' => '<string>',
'metadata' => [
[
'key' => '<string>',
'value' => '<string>',
'locked' => true
]
],
'address' => [
'street' => '<string>',
'city' => '<string>',
'state' => '<string>',
'country' => '<string>',
'postalCode' => '<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://app.lukittu.com/api/v1/dev/teams/{teamId}/customers"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\",\n \"fullName\": \"<string>\",\n \"username\": \"<string>\",\n \"discordId\": \"<string>\",\n \"metadata\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"locked\": true\n }\n ],\n \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"postalCode\": \"<string>\"\n }\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://app.lukittu.com/api/v1/dev/teams/{teamId}/customers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"jsmith@example.com\",\n \"fullName\": \"<string>\",\n \"username\": \"<string>\",\n \"discordId\": \"<string>\",\n \"metadata\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"locked\": true\n }\n ],\n \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"postalCode\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.lukittu.com/api/v1/dev/teams/{teamId}/customers")
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 \"email\": \"jsmith@example.com\",\n \"fullName\": \"<string>\",\n \"username\": \"<string>\",\n \"discordId\": \"<string>\",\n \"metadata\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"locked\": true\n }\n ],\n \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"postalCode\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "789e0123-e89b-12d3-a456-426614174222",
"email": "customer@example.com",
"fullName": "John Doe",
"username": "johndoe",
"metadata": [
{
"key": "tier",
"value": "standard",
"locked": false
}
],
"address": {
"street": "123 Main St",
"city": "Anytown",
"state": "CA",
"country": "US",
"postalCode": "12345"
},
"discordAccount": null,
"teamId": "123e4567-e89b-12d3-a456-426614174000",
"createdByUserId": "456e7890-e89b-12d3-a456-426614174111",
"createdAt": "2023-09-15T14:30:00Z",
"updatedAt": "2023-09-15T14:30:00Z"
},
"result": {
"timestamp": "2023-09-15T14:30:00Z",
"valid": true,
"details": "Customer created"
}
}{
"result": {
"timestamp": "2023-11-07T05:31:56Z",
"valid": false,
"details": "<string>"
},
"data": {}
}{
"result": {
"timestamp": "2023-11-07T05:31:56Z",
"valid": false,
"details": "<string>"
},
"data": {}
}Dev - Customers
Create Customer
Create a new customer record for the specified team. Customers can be associated with licenses for tracking and management.
POST
/
api
/
v1
/
dev
/
teams
/
{teamId}
/
customers
Create Customer
curl --request POST \
--url https://app.lukittu.com/api/v1/dev/teams/{teamId}/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"fullName": "<string>",
"username": "<string>",
"discordId": "<string>",
"metadata": [
{
"key": "<string>",
"value": "<string>",
"locked": true
}
],
"address": {
"street": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postalCode": "<string>"
}
}
'import requests
url = "https://app.lukittu.com/api/v1/dev/teams/{teamId}/customers"
payload = {
"email": "jsmith@example.com",
"fullName": "<string>",
"username": "<string>",
"discordId": "<string>",
"metadata": [
{
"key": "<string>",
"value": "<string>",
"locked": True
}
],
"address": {
"street": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postalCode": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: 'jsmith@example.com',
fullName: '<string>',
username: '<string>',
discordId: '<string>',
metadata: [{key: '<string>', value: '<string>', locked: true}],
address: {
street: '<string>',
city: '<string>',
state: '<string>',
country: '<string>',
postalCode: '<string>'
}
})
};
fetch('https://app.lukittu.com/api/v1/dev/teams/{teamId}/customers', 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://app.lukittu.com/api/v1/dev/teams/{teamId}/customers",
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([
'email' => 'jsmith@example.com',
'fullName' => '<string>',
'username' => '<string>',
'discordId' => '<string>',
'metadata' => [
[
'key' => '<string>',
'value' => '<string>',
'locked' => true
]
],
'address' => [
'street' => '<string>',
'city' => '<string>',
'state' => '<string>',
'country' => '<string>',
'postalCode' => '<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://app.lukittu.com/api/v1/dev/teams/{teamId}/customers"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\",\n \"fullName\": \"<string>\",\n \"username\": \"<string>\",\n \"discordId\": \"<string>\",\n \"metadata\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"locked\": true\n }\n ],\n \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"postalCode\": \"<string>\"\n }\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://app.lukittu.com/api/v1/dev/teams/{teamId}/customers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"jsmith@example.com\",\n \"fullName\": \"<string>\",\n \"username\": \"<string>\",\n \"discordId\": \"<string>\",\n \"metadata\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"locked\": true\n }\n ],\n \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"postalCode\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.lukittu.com/api/v1/dev/teams/{teamId}/customers")
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 \"email\": \"jsmith@example.com\",\n \"fullName\": \"<string>\",\n \"username\": \"<string>\",\n \"discordId\": \"<string>\",\n \"metadata\": [\n {\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"locked\": true\n }\n ],\n \"address\": {\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"postalCode\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "789e0123-e89b-12d3-a456-426614174222",
"email": "customer@example.com",
"fullName": "John Doe",
"username": "johndoe",
"metadata": [
{
"key": "tier",
"value": "standard",
"locked": false
}
],
"address": {
"street": "123 Main St",
"city": "Anytown",
"state": "CA",
"country": "US",
"postalCode": "12345"
},
"discordAccount": null,
"teamId": "123e4567-e89b-12d3-a456-426614174000",
"createdByUserId": "456e7890-e89b-12d3-a456-426614174111",
"createdAt": "2023-09-15T14:30:00Z",
"updatedAt": "2023-09-15T14:30:00Z"
},
"result": {
"timestamp": "2023-09-15T14:30:00Z",
"valid": true,
"details": "Customer created"
}
}{
"result": {
"timestamp": "2023-11-07T05:31:56Z",
"valid": false,
"details": "<string>"
},
"data": {}
}{
"result": {
"timestamp": "2023-11-07T05:31:56Z",
"valid": false,
"details": "<string>"
},
"data": {}
}Authorizations
API key authentication for development endpoints.
You can create API keys in your team's settings on the Lukittu dashboard.
Include the API key in the Authorization header as: Bearer YOUR_API_KEY
Example:
Authorization: Bearer lukittu_api_key_abc123def456...
Path Parameters
Your team's UUID. You can find this value in your team's settings on the Lukittu dashboard. UUID v4 identifier
Body
application/json
Discord user ID (snowflake). When provided, Discord user will be validated and associated with this customer.
Pattern:
^\d{17,19}$Key-value metadata pairs
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I