Step Test
curl --request POST \
--url https://api.zapier.com/v2/actions/{action_id}/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"limit": 10,
"offset": 0,
"authentication": "example_QVaAreV1",
"inputs": {
"email": "me@example.com"
}
}
}
'import requests
url = "https://api.zapier.com/v2/actions/{action_id}/test"
payload = { "data": {
"limit": 10,
"offset": 0,
"authentication": "example_QVaAreV1",
"inputs": { "email": "me@example.com" }
} }
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({
data: {
limit: 10,
offset: 0,
authentication: 'example_QVaAreV1',
inputs: {email: 'me@example.com'}
}
})
};
fetch('https://api.zapier.com/v2/actions/{action_id}/test', 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.zapier.com/v2/actions/{action_id}/test",
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([
'data' => [
'limit' => 10,
'offset' => 0,
'authentication' => 'example_QVaAreV1',
'inputs' => [
'email' => 'me@example.com'
]
]
]),
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://api.zapier.com/v2/actions/{action_id}/test"
payload := strings.NewReader("{\n \"data\": {\n \"limit\": 10,\n \"offset\": 0,\n \"authentication\": \"example_QVaAreV1\",\n \"inputs\": {\n \"email\": \"me@example.com\"\n }\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://api.zapier.com/v2/actions/{action_id}/test")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"limit\": 10,\n \"offset\": 0,\n \"authentication\": \"example_QVaAreV1\",\n \"inputs\": {\n \"email\": \"me@example.com\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zapier.com/v2/actions/{action_id}/test")
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 \"data\": {\n \"limit\": 10,\n \"offset\": 0,\n \"authentication\": \"example_QVaAreV1\",\n \"inputs\": {\n \"email\": \"me@example.com\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"links": {
"next": null,
"prev": null
},
"meta": {
"count": 1,
"limit": null,
"offset": 0
},
"data": [
{
"Description": "A response from some example third party API related to the action",
"Source": "RFC 8259",
"Image": {
"Width": 800,
"Height": 600,
"Title": "View from 15th Floor",
"Thumbnail": {
"Url": "https://www.example.com/image/481989943",
"Height": 125,
"Width": 100
},
"Animated": false,
"IDs": [
116,
943,
234,
38793
]
}
}
]
}Actions
Step Test
Tests the action (step) in the third party api, using the provided authentication and inputs.
When using OAuth
This endpoint requires the zap:write OAuth scope.
POST
/
v2
/
actions
/
{action_id}
/
test
Step Test
curl --request POST \
--url https://api.zapier.com/v2/actions/{action_id}/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"limit": 10,
"offset": 0,
"authentication": "example_QVaAreV1",
"inputs": {
"email": "me@example.com"
}
}
}
'import requests
url = "https://api.zapier.com/v2/actions/{action_id}/test"
payload = { "data": {
"limit": 10,
"offset": 0,
"authentication": "example_QVaAreV1",
"inputs": { "email": "me@example.com" }
} }
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({
data: {
limit: 10,
offset: 0,
authentication: 'example_QVaAreV1',
inputs: {email: 'me@example.com'}
}
})
};
fetch('https://api.zapier.com/v2/actions/{action_id}/test', 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.zapier.com/v2/actions/{action_id}/test",
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([
'data' => [
'limit' => 10,
'offset' => 0,
'authentication' => 'example_QVaAreV1',
'inputs' => [
'email' => 'me@example.com'
]
]
]),
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://api.zapier.com/v2/actions/{action_id}/test"
payload := strings.NewReader("{\n \"data\": {\n \"limit\": 10,\n \"offset\": 0,\n \"authentication\": \"example_QVaAreV1\",\n \"inputs\": {\n \"email\": \"me@example.com\"\n }\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://api.zapier.com/v2/actions/{action_id}/test")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"limit\": 10,\n \"offset\": 0,\n \"authentication\": \"example_QVaAreV1\",\n \"inputs\": {\n \"email\": \"me@example.com\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zapier.com/v2/actions/{action_id}/test")
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 \"data\": {\n \"limit\": 10,\n \"offset\": 0,\n \"authentication\": \"example_QVaAreV1\",\n \"inputs\": {\n \"email\": \"me@example.com\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"links": {
"next": null,
"prev": null
},
"meta": {
"count": 1,
"limit": null,
"offset": 0
},
"data": [
{
"Description": "A response from some example third party API related to the action",
"Source": "RFC 8259",
"Image": {
"Width": 800,
"Height": 600,
"Title": "View from 15th Floor",
"Thumbnail": {
"Url": "https://www.example.com/image/481989943",
"Height": 125,
"Width": 100
},
"Animated": false,
"IDs": [
116,
943,
234,
38793
]
}
}
]
}Authorizations
See our OAuth2 authentication documentation here: https://docs.zapier.com/powered-by-zapier/api-reference/authentication
Body
application/json
Response
Base Response definition to be used in other Response Serializers.
Be sure to include the data field after using this class
Last modified on November 7, 2025
Was this page helpful?