Bitfocus AS
Bitfocus AS

Loading...

Footer

Bitfocus

Subscribe to our newsletter

The latest news, articles, and resources, sent to your inbox.

FacebookInstagramGitHubYouTubeLinkedIn

Products

  • Buttons
  • Companion

Integrations

  • Supported Devices
  • Developer Community
  • Connection Development

Support

  • Support Overview
  • Documentation
  • Video Tutorials
  • Community Forum

Sales

  • Resellers & Integrators
  • Buttons Pricing

Updates

  • Case Studies
  • Events & Trade Shows
  • Press Releases
  • Product Updates
  • Webinars

Legal

  • Legal Overview
  • Privacy Policy
  • Buttons EULA
  • Terms & Cookie Policy

Company

  • About us
  • Press kit
  • Careers
Co-funded by the European Union

Our Bitfocus Workflow 2.0 project is co-funded by the European Union’s Creative Europe programme. About the project

© 2026 Bitfocus AS. All rights reserved.

HTTP replies
Docs for
Overview
Getting started
What is Bitfocus Buttons?
Install Buttons and get started
Manage your Buttons license
Activate Buttons offline
Find your way around Buttons
Create your first backup
Add an ATEM connection
Choose a control method
Choose an installation path
Install Buttons on Debian or Ubuntu
Understand HA clustering
High Availability
Upgrade Buttons
Remove Buttons
Positions
Understand positions
Encoders and taps
Create a position
Custom button layouts
Add controls and sections to a position
Feedback variables with text
Create your first button
Use a connection's presets
Build more capable button actions
Encoders
Add more feedback to a button
Organize controls in a section
Shift Section
Organize controls with a Folder Section
Add a Popover Section
Build and reuse a Shared Section
Show different controls by role
Choose a routing panel
Build a Router Section
Understand Custom Routers
Custom Router panel
Surfaces
Surface compatibility
Add and attach a surface
Device orientation
Connections
Update a connection's module safely
Monitor and troubleshoot a connection
Port forwarding (HA)
Router integrations
VideoHub and AJA KUMO
Utah Scientific BPS
Generic SW-P-08
Nevion VideoIPath
Arkona BLADE//runner
Evertz Quartz
Imagine LRC
Riedel MediorNet
Nevion MRP
Ross Video NK router
TAG Video Systems MCS
Routing
Physical routing
Shape direction
Configure ports and labels
Take a physical route
Understand route status
Topology graph
Routing Presets
Get started with virtual routing
Configure Nested Shapes
Reverse routing
Tielines
Routing Projects
Routing settings
Troubleshoot a route
Tally
Understand the Tally system
Send ATEM tally and labels to a UMD
Interpret Active Tally state
TSL/UMD connections
Diagnose tally problems
NMOS
Understand NMOS in Buttons
Connect Buttons to an NMOS Registry
Built-in Registry Server
Configure NMOS connections
Discover and adopt
Browse the NMOS inventory
Manage NMOS multicast addresses
Diagnose NMOS problems
Cuelists
Understand Cuelists
Run and stop cues
Build a Cuelist
Cuelist state
Read and advance a running Cuelist
Control a Cuelist from a Position
Workflows
Understand workflows
Build your first workflow
Encoders
Reuse a group of workflow nodes safely
Port forwarding (HA)
Troubleshoot a workflow
Recipes
Sequence a timed automation
Call an HTTP endpoint from a workflow
REST endpoint
Use variables
Understand variable scope
Understand nested variables
Update expressions for v1.8
Plan and use Tags
Access
Create and manage users
Create roles and assign permissions
Grant access to specific resources
Set up PIN and NFC sign-in
SSO
Get started with SSO
Connect a generic OIDC provider
Connect LDAP or Active Directory
Map identity claims to roles
Secure a Buttons deployment
Integrations
External control
Connect to Bitfocus Listener
USB Relay
Install USB Relay on Windows
Install USB Relay on macOS
Desktop app
Install USB Relay on Linux
Install USB Relay on a Raspberry Pi
Get started with the Control API
Secure and monitor the Control API
Control API reference
AI assistants (MCP)
Connect an AI assistant
Edit with an assistant in the editor
What an assistant can do
Manage MCP access and tokens
Actions
HTTP replies
Administration
Enable and manage installable features
Services and health
Configure and monitor scheduled backups
Restore a backup and verify it
Export or import Buttons configuration
Store and rotate connection secrets
Replace the HTTPS certificate
HA backup and recovery
Settings
Collect support information
Reference
Glossary
Button Inspector reference
Network ports reference
Expressions
Internal actions reference
Custom Router button types
Startup configuration reference
Workflow nodes
Connection workflow nodes
Workflow variable and action nodes
Internal workflow nodes
Position workflow nodes
API workflow nodes
Utility workflow nodes

Loading...

Previous
← Actions
Next
Administration →
Contact support →
You are viewing documentation for Buttons 1.10.See the docs for Buttons 1.8
Buttons/Actions/HTTP replies

HTTP replies

View as Markdown
A Generic HTTP GET or POST can keep the reply in a position variable. The button can show that variable, and any other control in the position can read it.
PUT, PATCH, and DELETE send the request and do not store the body.

Note

Generic HTTP is only the example on this page. Other modules can store what an action gets back, too. Some actions have their own field for picking a position variable, like the HTTP actions here. Actions from modules built on Module API 2.2 or later can return a result, and show a Store result field instead. It can write to a position variable or to one of the button's own variables. Generic SNMP's Get OID value is one of these. Which actions can store a value depends on the module.

Before you begin#

  • A Generic HTTP connection. Set Base URL on the connection when every request starts from the same address.
  • A position variable to store the reply in. Create it on the position's Configuration tab, under Position Variables, with the type String. See Use variables in controls and expressions.

Keep the reply#

GET and POST both end with two fields:
  • JSON Response Data Variable lists the position variables. Pick one. If the list is empty, create the variable first. The field cannot point at a button variable.
  • JSON Stringify Result is checked by default. The variable then receives the reply as text. Clear it to parse the body as JSON. If the body is not JSON, the text is stored anyway.
The address field is URI when the connection has a Base URL, and URL when it does not. A value that already starts with http is requested as written, and the base URL is not added in front of it.
This example asks a rundown server for the current segment and shows the answer on the button.
  1. Create a position variable named segment, type String.
  2. On the button's Actions tab, add the connection's GET action to Press.
  3. Enter the path in URI. With a base URL of the rundown server, that is segment.
  4. In JSON Response Data Variable, select segment. Leave JSON Stringify Result checked when the reply is text.
  5. On the Design tab, set the button text to $(position.state.segment).
  6. Select Apply.
The reply is stored in the position variable segment, and the button shows it.
Press the button. The reply is written to segment when the request succeeds. A failed request leaves the variable as it was. Every control in the position that uses $(position.state.segment) updates together.
POST uses the same two fields. It also has Body and Content Type. For application/json, the body has to be valid JSON or the request is not sent.
In a workflow or a cue list, JSON Response Data Variable shows Setting Custom Variables from actions are not supported. The reply can be stored from a button on a position, including a button in a shared section that is mounted in a position.

Where to go next#

  • Button actions
  • Understand variable scope

Was this helpful?

Was this helpful?

0 of 0 users found this page helpful