Test data step
curl --request POST \
--url https://api-prod.usefini.com/v2/api-function-configs/test-run/public \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"id": "<string>",
"requestUrl": "<string>",
"requestMethod": "<string>",
"requestHeaders": {},
"requestBody": {},
"variables": {}
}
'import requests
url = "https://api-prod.usefini.com/v2/api-function-configs/test-run/public"
payload = {
"id": "<string>",
"requestUrl": "<string>",
"requestMethod": "<string>",
"requestHeaders": {},
"requestBody": {},
"variables": {}
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({
id: '<string>',
requestUrl: '<string>',
requestMethod: '<string>',
requestHeaders: {},
requestBody: {},
variables: {}
})
};
fetch('https://api-prod.usefini.com/v2/api-function-configs/test-run/public', 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-prod.usefini.com/v2/api-function-configs/test-run/public",
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([
'id' => '<string>',
'requestUrl' => '<string>',
'requestMethod' => '<string>',
'requestHeaders' => [
],
'requestBody' => [
],
'variables' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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-prod.usefini.com/v2/api-function-configs/test-run/public"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"requestUrl\": \"<string>\",\n \"requestMethod\": \"<string>\",\n \"requestHeaders\": {},\n \"requestBody\": {},\n \"variables\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
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-prod.usefini.com/v2/api-function-configs/test-run/public")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"id\": \"<string>\",\n \"requestUrl\": \"<string>\",\n \"requestMethod\": \"<string>\",\n \"requestHeaders\": {},\n \"requestBody\": {},\n \"variables\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-prod.usefini.com/v2/api-function-configs/test-run/public")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"id\": \"<string>\",\n \"requestUrl\": \"<string>\",\n \"requestMethod\": \"<string>\",\n \"requestHeaders\": {},\n \"requestBody\": {},\n \"variables\": {}\n}"
response = http.request(request)
puts response.read_bodyData Steps
Test data step
Test one HTTP call without saving.
POST
/
v2
/
api-function-configs
/
test-run
/
public
Test data step
curl --request POST \
--url https://api-prod.usefini.com/v2/api-function-configs/test-run/public \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"id": "<string>",
"requestUrl": "<string>",
"requestMethod": "<string>",
"requestHeaders": {},
"requestBody": {},
"variables": {}
}
'import requests
url = "https://api-prod.usefini.com/v2/api-function-configs/test-run/public"
payload = {
"id": "<string>",
"requestUrl": "<string>",
"requestMethod": "<string>",
"requestHeaders": {},
"requestBody": {},
"variables": {}
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': '<content-type>'},
body: JSON.stringify({
id: '<string>',
requestUrl: '<string>',
requestMethod: '<string>',
requestHeaders: {},
requestBody: {},
variables: {}
})
};
fetch('https://api-prod.usefini.com/v2/api-function-configs/test-run/public', 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-prod.usefini.com/v2/api-function-configs/test-run/public",
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([
'id' => '<string>',
'requestUrl' => '<string>',
'requestMethod' => '<string>',
'requestHeaders' => [
],
'requestBody' => [
],
'variables' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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-prod.usefini.com/v2/api-function-configs/test-run/public"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"requestUrl\": \"<string>\",\n \"requestMethod\": \"<string>\",\n \"requestHeaders\": {},\n \"requestBody\": {},\n \"variables\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
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-prod.usefini.com/v2/api-function-configs/test-run/public")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.body("{\n \"id\": \"<string>\",\n \"requestUrl\": \"<string>\",\n \"requestMethod\": \"<string>\",\n \"requestHeaders\": {},\n \"requestBody\": {},\n \"variables\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-prod.usefini.com/v2/api-function-configs/test-run/public")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"id\": \"<string>\",\n \"requestUrl\": \"<string>\",\n \"requestMethod\": \"<string>\",\n \"requestHeaders\": {},\n \"requestBody\": {},\n \"variables\": {}\n}"
response = http.request(request)
puts response.read_bodyRuns a single HTTP call and returns the raw response, without persisting anything. Pass a saved step’s
id to test it as stored, or send the request fields inline to try a call before saving.
Headers
string
required
Bearer token containing your Fini workspace API key. Format:
Bearer fini_... The key needs write scope.string
required
application/jsonBody parameters
string
Optional saved Data Step ID. When set, the stored URL, method, headers, and body are used, with any inline fields below overriding them. Stored secrets are resolved for the call.
string
Request URL. Required when
id is omitted.string
HTTP verb. Required when
id is omitted.object
Optional request headers.
object
Optional request body.
object
Optional values used to resolve
{{placeholder}} tokens in the URL, headers, and body.Response
Returns aData Step test-run result: success, statusCode, responseBody, and error when the call failed.
Errors
400 Bad Request
400 Bad Request
The body is malformed, or
requestUrl / requestMethod is missing when no id is provided.401 Unauthorized
401 Unauthorized
The API key is missing, malformed, revoked, or invalid.
403 Forbidden
403 Forbidden
The API key does not include the
write scope required for this route.Was this page helpful?
⌘I

