Bulk create clients
curl --request POST \
--url https://api.gospott.com/clients/_bulk \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"items": [
{
"name": "<string>",
"description": "<string>",
"specialties": [
"<string>"
],
"domain": "<string>",
"foundedYear": 0,
"linkedInProfileUrl": "<string>",
"stageId": "<string>",
"teamId": "<string>",
"locations": [
{
"street1": "<string>",
"street2": "<string>",
"postalCode": "<string>",
"city": "<string>",
"region": "<string>",
"state": "<string>",
"country": "<string>",
"latitude": 0,
"longitude": 0
}
],
"taxIdentifiers": [
{
"value": "<string>"
}
]
}
]
}
'import requests
url = "https://api.gospott.com/clients/_bulk"
payload = { "items": [
{
"name": "<string>",
"description": "<string>",
"specialties": ["<string>"],
"domain": "<string>",
"foundedYear": 0,
"linkedInProfileUrl": "<string>",
"stageId": "<string>",
"teamId": "<string>",
"locations": [
{
"street1": "<string>",
"street2": "<string>",
"postalCode": "<string>",
"city": "<string>",
"region": "<string>",
"state": "<string>",
"country": "<string>",
"latitude": 0,
"longitude": 0
}
],
"taxIdentifiers": [{ "value": "<string>" }]
}
] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{
name: '<string>',
description: '<string>',
specialties: ['<string>'],
domain: '<string>',
foundedYear: 0,
linkedInProfileUrl: '<string>',
stageId: '<string>',
teamId: '<string>',
locations: [
{
street1: '<string>',
street2: '<string>',
postalCode: '<string>',
city: '<string>',
region: '<string>',
state: '<string>',
country: '<string>',
latitude: 0,
longitude: 0
}
],
taxIdentifiers: [{value: '<string>'}]
}
]
})
};
fetch('https://api.gospott.com/clients/_bulk', 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.gospott.com/clients/_bulk",
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([
'items' => [
[
'name' => '<string>',
'description' => '<string>',
'specialties' => [
'<string>'
],
'domain' => '<string>',
'foundedYear' => 0,
'linkedInProfileUrl' => '<string>',
'stageId' => '<string>',
'teamId' => '<string>',
'locations' => [
[
'street1' => '<string>',
'street2' => '<string>',
'postalCode' => '<string>',
'city' => '<string>',
'region' => '<string>',
'state' => '<string>',
'country' => '<string>',
'latitude' => 0,
'longitude' => 0
]
],
'taxIdentifiers' => [
[
'value' => '<string>'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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.gospott.com/clients/_bulk"
payload := strings.NewReader("{\n \"items\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"specialties\": [\n \"<string>\"\n ],\n \"domain\": \"<string>\",\n \"foundedYear\": 0,\n \"linkedInProfileUrl\": \"<string>\",\n \"stageId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"locations\": [\n {\n \"street1\": \"<string>\",\n \"street2\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"latitude\": 0,\n \"longitude\": 0\n }\n ],\n \"taxIdentifiers\": [\n {\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<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.gospott.com/clients/_bulk")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"specialties\": [\n \"<string>\"\n ],\n \"domain\": \"<string>\",\n \"foundedYear\": 0,\n \"linkedInProfileUrl\": \"<string>\",\n \"stageId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"locations\": [\n {\n \"street1\": \"<string>\",\n \"street2\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"latitude\": 0,\n \"longitude\": 0\n }\n ],\n \"taxIdentifiers\": [\n {\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gospott.com/clients/_bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"specialties\": [\n \"<string>\"\n ],\n \"domain\": \"<string>\",\n \"foundedYear\": 0,\n \"linkedInProfileUrl\": \"<string>\",\n \"stageId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"locations\": [\n {\n \"street1\": \"<string>\",\n \"street2\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"latitude\": 0,\n \"longitude\": 0\n }\n ],\n \"taxIdentifiers\": [\n {\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>"
}
]
}{
"status": 0,
"message": "<string>",
"requestId": "<string>"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>"
}Clients
Bulk create clients
Create up to 50 clients in one request. The whole request is applied in a single transaction: if any item is rejected, no clients are created and the batch must be retried in full. This endpoint is rate limited to 50 requests per hour per tenant, and returns 429 once that limit is reached.
POST
/
clients
/
_bulk
Bulk create clients
curl --request POST \
--url https://api.gospott.com/clients/_bulk \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"items": [
{
"name": "<string>",
"description": "<string>",
"specialties": [
"<string>"
],
"domain": "<string>",
"foundedYear": 0,
"linkedInProfileUrl": "<string>",
"stageId": "<string>",
"teamId": "<string>",
"locations": [
{
"street1": "<string>",
"street2": "<string>",
"postalCode": "<string>",
"city": "<string>",
"region": "<string>",
"state": "<string>",
"country": "<string>",
"latitude": 0,
"longitude": 0
}
],
"taxIdentifiers": [
{
"value": "<string>"
}
]
}
]
}
'import requests
url = "https://api.gospott.com/clients/_bulk"
payload = { "items": [
{
"name": "<string>",
"description": "<string>",
"specialties": ["<string>"],
"domain": "<string>",
"foundedYear": 0,
"linkedInProfileUrl": "<string>",
"stageId": "<string>",
"teamId": "<string>",
"locations": [
{
"street1": "<string>",
"street2": "<string>",
"postalCode": "<string>",
"city": "<string>",
"region": "<string>",
"state": "<string>",
"country": "<string>",
"latitude": 0,
"longitude": 0
}
],
"taxIdentifiers": [{ "value": "<string>" }]
}
] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{
name: '<string>',
description: '<string>',
specialties: ['<string>'],
domain: '<string>',
foundedYear: 0,
linkedInProfileUrl: '<string>',
stageId: '<string>',
teamId: '<string>',
locations: [
{
street1: '<string>',
street2: '<string>',
postalCode: '<string>',
city: '<string>',
region: '<string>',
state: '<string>',
country: '<string>',
latitude: 0,
longitude: 0
}
],
taxIdentifiers: [{value: '<string>'}]
}
]
})
};
fetch('https://api.gospott.com/clients/_bulk', 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.gospott.com/clients/_bulk",
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([
'items' => [
[
'name' => '<string>',
'description' => '<string>',
'specialties' => [
'<string>'
],
'domain' => '<string>',
'foundedYear' => 0,
'linkedInProfileUrl' => '<string>',
'stageId' => '<string>',
'teamId' => '<string>',
'locations' => [
[
'street1' => '<string>',
'street2' => '<string>',
'postalCode' => '<string>',
'city' => '<string>',
'region' => '<string>',
'state' => '<string>',
'country' => '<string>',
'latitude' => 0,
'longitude' => 0
]
],
'taxIdentifiers' => [
[
'value' => '<string>'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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.gospott.com/clients/_bulk"
payload := strings.NewReader("{\n \"items\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"specialties\": [\n \"<string>\"\n ],\n \"domain\": \"<string>\",\n \"foundedYear\": 0,\n \"linkedInProfileUrl\": \"<string>\",\n \"stageId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"locations\": [\n {\n \"street1\": \"<string>\",\n \"street2\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"latitude\": 0,\n \"longitude\": 0\n }\n ],\n \"taxIdentifiers\": [\n {\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<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.gospott.com/clients/_bulk")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"specialties\": [\n \"<string>\"\n ],\n \"domain\": \"<string>\",\n \"foundedYear\": 0,\n \"linkedInProfileUrl\": \"<string>\",\n \"stageId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"locations\": [\n {\n \"street1\": \"<string>\",\n \"street2\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"latitude\": 0,\n \"longitude\": 0\n }\n ],\n \"taxIdentifiers\": [\n {\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gospott.com/clients/_bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"specialties\": [\n \"<string>\"\n ],\n \"domain\": \"<string>\",\n \"foundedYear\": 0,\n \"linkedInProfileUrl\": \"<string>\",\n \"stageId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"locations\": [\n {\n \"street1\": \"<string>\",\n \"street2\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"latitude\": 0,\n \"longitude\": 0\n }\n ],\n \"taxIdentifiers\": [\n {\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>"
}
]
}{
"status": 0,
"message": "<string>",
"requestId": "<string>"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>"
}{
"status": 0,
"message": "<string>",
"requestId": "<string>"
}Authorizations
API key for authentication. Get your API key from Settings → API Keys in your Spott dashboard.
Body
application/json
Required array length:
1 - 50 elementsShow child attributes
Show child attributes
Response
Clients created successfully. Returns created client IDs in request order.
Show child attributes
Show child attributes
Was this page helpful?