curl --request POST \
--url https://flowker.sandbox.lerian.net/v1/provider-configurations \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"config": {
"baseUrl": "https://api.clearsale.com.br",
"apiKey": "cs-key-abc123",
"environment": "production"
},
"name": "ClearSale Production",
"providerId": "clearsale",
"description": "ClearSale anti-fraud for Pix transactions",
"metadata": {
"environment": "production",
"team": "risk"
}
}
'import requests
url = "https://flowker.sandbox.lerian.net/v1/provider-configurations"
payload = {
"config": {
"baseUrl": "https://api.clearsale.com.br",
"apiKey": "cs-key-abc123",
"environment": "production"
},
"name": "ClearSale Production",
"providerId": "clearsale",
"description": "ClearSale anti-fraud for Pix transactions",
"metadata": {
"environment": "production",
"team": "risk"
}
}
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({
config: {
baseUrl: 'https://api.clearsale.com.br',
apiKey: 'cs-key-abc123',
environment: 'production'
},
name: 'ClearSale Production',
providerId: 'clearsale',
description: 'ClearSale anti-fraud for Pix transactions',
metadata: {environment: 'production', team: 'risk'}
})
};
fetch('https://flowker.sandbox.lerian.net/v1/provider-configurations', 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://flowker.sandbox.lerian.net/v1/provider-configurations",
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([
'config' => [
'baseUrl' => 'https://api.clearsale.com.br',
'apiKey' => 'cs-key-abc123',
'environment' => 'production'
],
'name' => 'ClearSale Production',
'providerId' => 'clearsale',
'description' => 'ClearSale anti-fraud for Pix transactions',
'metadata' => [
'environment' => 'production',
'team' => 'risk'
]
]),
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://flowker.sandbox.lerian.net/v1/provider-configurations"
payload := strings.NewReader("{\n \"config\": {\n \"baseUrl\": \"https://api.clearsale.com.br\",\n \"apiKey\": \"cs-key-abc123\",\n \"environment\": \"production\"\n },\n \"name\": \"ClearSale Production\",\n \"providerId\": \"clearsale\",\n \"description\": \"ClearSale anti-fraud for Pix transactions\",\n \"metadata\": {\n \"environment\": \"production\",\n \"team\": \"risk\"\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://flowker.sandbox.lerian.net/v1/provider-configurations")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"config\": {\n \"baseUrl\": \"https://api.clearsale.com.br\",\n \"apiKey\": \"cs-key-abc123\",\n \"environment\": \"production\"\n },\n \"name\": \"ClearSale Production\",\n \"providerId\": \"clearsale\",\n \"description\": \"ClearSale anti-fraud for Pix transactions\",\n \"metadata\": {\n \"environment\": \"production\",\n \"team\": \"risk\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://flowker.sandbox.lerian.net/v1/provider-configurations")
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 \"config\": {\n \"baseUrl\": \"https://api.clearsale.com.br\",\n \"apiKey\": \"cs-key-abc123\",\n \"environment\": \"production\"\n },\n \"name\": \"ClearSale Production\",\n \"providerId\": \"clearsale\",\n \"description\": \"ClearSale anti-fraud for Pix transactions\",\n \"metadata\": {\n \"environment\": \"production\",\n \"team\": \"risk\"\n }\n}"
response = http.request(request)
puts response.read_body{
"createdAt": "2026-03-17T14:00:00Z",
"id": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"name": "ClearSale Production",
"status": "active"
}{
"code": "FLK-0001",
"message": "Invalid input provided",
"title": "Bad Request"
}{
"code": "FLK-0001",
"message": "Invalid input provided",
"title": "Bad Request"
}{
"code": "FLK-0001",
"message": "Invalid input provided",
"title": "Bad Request"
}{
"code": "FLK-0001",
"message": "Invalid input provided",
"title": "Bad Request"
}{
"code": "FLK-0001",
"message": "Invalid input provided",
"title": "Bad Request"
}Create a Provider Configuration
Use this endpoint to create a new provider configuration. The configuration is validated against the provider’s JSON Schema.
curl --request POST \
--url https://flowker.sandbox.lerian.net/v1/provider-configurations \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"config": {
"baseUrl": "https://api.clearsale.com.br",
"apiKey": "cs-key-abc123",
"environment": "production"
},
"name": "ClearSale Production",
"providerId": "clearsale",
"description": "ClearSale anti-fraud for Pix transactions",
"metadata": {
"environment": "production",
"team": "risk"
}
}
'import requests
url = "https://flowker.sandbox.lerian.net/v1/provider-configurations"
payload = {
"config": {
"baseUrl": "https://api.clearsale.com.br",
"apiKey": "cs-key-abc123",
"environment": "production"
},
"name": "ClearSale Production",
"providerId": "clearsale",
"description": "ClearSale anti-fraud for Pix transactions",
"metadata": {
"environment": "production",
"team": "risk"
}
}
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({
config: {
baseUrl: 'https://api.clearsale.com.br',
apiKey: 'cs-key-abc123',
environment: 'production'
},
name: 'ClearSale Production',
providerId: 'clearsale',
description: 'ClearSale anti-fraud for Pix transactions',
metadata: {environment: 'production', team: 'risk'}
})
};
fetch('https://flowker.sandbox.lerian.net/v1/provider-configurations', 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://flowker.sandbox.lerian.net/v1/provider-configurations",
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([
'config' => [
'baseUrl' => 'https://api.clearsale.com.br',
'apiKey' => 'cs-key-abc123',
'environment' => 'production'
],
'name' => 'ClearSale Production',
'providerId' => 'clearsale',
'description' => 'ClearSale anti-fraud for Pix transactions',
'metadata' => [
'environment' => 'production',
'team' => 'risk'
]
]),
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://flowker.sandbox.lerian.net/v1/provider-configurations"
payload := strings.NewReader("{\n \"config\": {\n \"baseUrl\": \"https://api.clearsale.com.br\",\n \"apiKey\": \"cs-key-abc123\",\n \"environment\": \"production\"\n },\n \"name\": \"ClearSale Production\",\n \"providerId\": \"clearsale\",\n \"description\": \"ClearSale anti-fraud for Pix transactions\",\n \"metadata\": {\n \"environment\": \"production\",\n \"team\": \"risk\"\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://flowker.sandbox.lerian.net/v1/provider-configurations")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"config\": {\n \"baseUrl\": \"https://api.clearsale.com.br\",\n \"apiKey\": \"cs-key-abc123\",\n \"environment\": \"production\"\n },\n \"name\": \"ClearSale Production\",\n \"providerId\": \"clearsale\",\n \"description\": \"ClearSale anti-fraud for Pix transactions\",\n \"metadata\": {\n \"environment\": \"production\",\n \"team\": \"risk\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://flowker.sandbox.lerian.net/v1/provider-configurations")
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 \"config\": {\n \"baseUrl\": \"https://api.clearsale.com.br\",\n \"apiKey\": \"cs-key-abc123\",\n \"environment\": \"production\"\n },\n \"name\": \"ClearSale Production\",\n \"providerId\": \"clearsale\",\n \"description\": \"ClearSale anti-fraud for Pix transactions\",\n \"metadata\": {\n \"environment\": \"production\",\n \"team\": \"risk\"\n }\n}"
response = http.request(request)
puts response.read_body{
"createdAt": "2026-03-17T14:00:00Z",
"id": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"name": "ClearSale Production",
"status": "active"
}{
"code": "FLK-0001",
"message": "Invalid input provided",
"title": "Bad Request"
}{
"code": "FLK-0001",
"message": "Invalid input provided",
"title": "Bad Request"
}{
"code": "FLK-0001",
"message": "Invalid input provided",
"title": "Bad Request"
}{
"code": "FLK-0001",
"message": "Invalid input provided",
"title": "Bad Request"
}{
"code": "FLK-0001",
"message": "Invalid input provided",
"title": "Bad Request"
}Authorizations
API key for authenticating requests to the Flowker API. Provisioned via the API_KEY environment variable during deployment.
Body
Request body containing the provider configuration details.
Provider-specific configuration that is validated against the provider's JSON Schema.
Show child attributes
Show child attributes
{
"baseUrl": "https://api.clearsale.com.br",
"apiKey": "cs-key-abc123",
"environment": "production"
}
Unique name for this provider configuration.
1 - 100"ClearSale Production"
ID of the catalog provider to configure. Must match a registered provider.
"clearsale"
Human-readable description of this provider configuration.
500"ClearSale anti-fraud for Pix transactions"
Custom key-value pairs for tagging.
Show child attributes
Show child attributes
{
"environment": "production",
"team": "risk"
}
Response
Indicates that the resource was successfully created and the operation was completed as expected.
Timestamp when the configuration was created.
"2026-03-17T14:00:00Z"
Unique identifier of the created configuration.
"c3d4e5f6-a7b8-9012-cdef-345678901234"
Name of the configuration.
"ClearSale Production"
Initial status (always active on creation).
"active"
Was this page helpful?

