Submit a routine build interaction
curl --request POST \
--url https://api.deck.co/v2/routine-builds/{routine_build_id}/interaction \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": "<unknown>"
}
'import requests
url = "https://api.deck.co/v2/routine-builds/{routine_build_id}/interaction"
payload = { "input": "<unknown>" }
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({input: '<unknown>'})
};
fetch('https://api.deck.co/v2/routine-builds/{routine_build_id}/interaction', 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.deck.co/v2/routine-builds/{routine_build_id}/interaction",
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([
'input' => '<unknown>'
]),
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.deck.co/v2/routine-builds/{routine_build_id}/interaction"
payload := strings.NewReader("{\n \"input\": \"<unknown>\"\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.deck.co/v2/routine-builds/{routine_build_id}/interaction")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"input\": \"<unknown>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deck.co/v2/routine-builds/{routine_build_id}/interaction")
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 \"input\": \"<unknown>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "rbld_AbC123xYz456",
"object": "<string>",
"routine_id": "rtn_AbC123xYz456",
"task_id": "task_AbC123xYz456",
"source_id": "src_AbC123xYz456",
"status": "queued",
"created_at": "2026-11-05T16:41:03Z",
"updated_at": "2026-11-05T16:41:03Z",
"credential_id": "<string>",
"session_id": "<string>",
"live_view_url": "<string>",
"version": 123,
"instructions": "<string>",
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>",
"policy": {
"type": "payment",
"amount_max": 1
}
}
],
"interaction": "<unknown>",
"runtime_ms": 123,
"input": "<unknown>",
"tokenized": [
"<string>"
],
"browser": {
"logs_truncated": true,
"dom": {
"page_url": "<string>",
"file_type": "<string>",
"file_size": 123,
"truncated": true,
"url": "<string>",
"created_at": "2026-09-22T12:00:00Z"
},
"har": {
"file_type": "<string>",
"file_size": 123,
"truncated": true,
"url": "<string>",
"created_at": "2026-09-22T12:00:00Z"
}
},
"request_id": "<string>"
}{
"errors": {},
"type": "<string>",
"title": "<string>",
"status": 123,
"traceId": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>",
"policy": {
"type": "payment",
"amount_max": 1
}
}
],
"request_id": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>",
"policy": {
"type": "payment",
"amount_max": 1
}
}
],
"request_id": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>",
"policy": {
"type": "payment",
"amount_max": 1
}
}
],
"request_id": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>",
"policy": {
"type": "payment",
"amount_max": 1
}
}
],
"request_id": "<string>"
}Routine Builds
Submit a routine build interaction
Submits user input to resume a routine build that is paused waiting for interaction during login (e.g. MFA code, security question). Same body as a task run interaction.
POST
/
routine-builds
/
{routine_build_id}
/
interaction
Submit a routine build interaction
curl --request POST \
--url https://api.deck.co/v2/routine-builds/{routine_build_id}/interaction \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": "<unknown>"
}
'import requests
url = "https://api.deck.co/v2/routine-builds/{routine_build_id}/interaction"
payload = { "input": "<unknown>" }
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({input: '<unknown>'})
};
fetch('https://api.deck.co/v2/routine-builds/{routine_build_id}/interaction', 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.deck.co/v2/routine-builds/{routine_build_id}/interaction",
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([
'input' => '<unknown>'
]),
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.deck.co/v2/routine-builds/{routine_build_id}/interaction"
payload := strings.NewReader("{\n \"input\": \"<unknown>\"\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.deck.co/v2/routine-builds/{routine_build_id}/interaction")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"input\": \"<unknown>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deck.co/v2/routine-builds/{routine_build_id}/interaction")
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 \"input\": \"<unknown>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "rbld_AbC123xYz456",
"object": "<string>",
"routine_id": "rtn_AbC123xYz456",
"task_id": "task_AbC123xYz456",
"source_id": "src_AbC123xYz456",
"status": "queued",
"created_at": "2026-11-05T16:41:03Z",
"updated_at": "2026-11-05T16:41:03Z",
"credential_id": "<string>",
"session_id": "<string>",
"live_view_url": "<string>",
"version": 123,
"instructions": "<string>",
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>",
"policy": {
"type": "payment",
"amount_max": 1
}
}
],
"interaction": "<unknown>",
"runtime_ms": 123,
"input": "<unknown>",
"tokenized": [
"<string>"
],
"browser": {
"logs_truncated": true,
"dom": {
"page_url": "<string>",
"file_type": "<string>",
"file_size": 123,
"truncated": true,
"url": "<string>",
"created_at": "2026-09-22T12:00:00Z"
},
"har": {
"file_type": "<string>",
"file_size": 123,
"truncated": true,
"url": "<string>",
"created_at": "2026-09-22T12:00:00Z"
}
},
"request_id": "<string>"
}{
"errors": {},
"type": "<string>",
"title": "<string>",
"status": 123,
"traceId": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>",
"policy": {
"type": "payment",
"amount_max": 1
}
}
],
"request_id": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>",
"policy": {
"type": "payment",
"amount_max": 1
}
}
],
"request_id": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>",
"policy": {
"type": "payment",
"amount_max": 1
}
}
],
"request_id": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>",
"policy": {
"type": "payment",
"amount_max": 1
}
}
],
"request_id": "<string>"
}Headers
Optional key that makes the request idempotent. Retrying with the same key returns the original response instead of repeating the operation; keys expire after 24 hours. Any string up to 256 characters. See Idempotency.
Maximum string length:
256Example:
"550e8400-e29b-41d4-a716-446655440000"
Path Parameters
Body
application/jsontext/jsonapplication/*+json
Response
OK
A routine build: Deck writing the Playwright code for one routine. A build is not a task run.
Was this page helpful?