Stacker
Login to StackerStart buildingChangelogFeedbackStacker Classic Docs
  • Getting Started
    • How Stacker Works
    • Introduction to Editing Data
      • Stacker Tables: Paste Data
      • Stacker Tables: Import a CSV
    • Introduction to Designing your app
    • Introduction to Adding Users & Permissions
    • Introduction to Portals
  • Workspace, Portals, and Apps
    • Overview
    • Workspace
      • Workspace Settings
      • Workspace Users
      • Groups
    • Portals
      • Custom Domain
    • Apps
  • AI & Automations
    • AI Agents (Beta)
      • Setting up your AI agent
      • Agent Triggers
      • Operating Instructions
      • Tools
      • Skills
      • Renderer
      • History and Tasks
    • Workflows (Beta)
    • Integrations
      • Zapier Integration
      • Make.com Integration
    • Open API Overview
      • Setup Guide
      • Authentication
      • Additional Headers
      • Field API names
      • Accounts, Stacks, Objects, Fields
      • Record Actions
    • Action buttons
      • Use an Action Button
      • Create a page button on detail layout
      • Action buttons in field widgets
      • Edit an action button
  • Data management
    • Import data to Stacker Tables
      • Stacker Tables: Import a CSV
        • External IDs
      • Stacker Tables: Paste Data
    • Edit your Data in the Data Grid
      • Structuring data/schema
      • Add new fields
      • Formula Field
      • Creating and Editing Data
      • Share data with other apps
      • Linking your data
      • Set field default values from the data grid
    • Edit Data in the Layout
    • Layout Types
    • Data Integrations (Beta)
      • Airtable (Beta)
      • Hubspot (Beta)
      • Intercom (Beta)
      • Gorgias (Beta)
      • Netsuite (Beta)
  • User Access
    • Add Users
      • Roles
    • Log in flow
  • Customize Layouts
    • List Layout
      • Display Types
      • Edit List Layouts
    • Detail Layout
      • Layout options
      • Tabs
        • Feed Tab
      • Page Buttons
      • Widgets
      • Customize fields
        • Field Icons
    • Detail Pages (new! beta)
      • Widgets
        • Layout Options
      • Headers
      • Style
      • Controls
    • Create form
      • Auto-filling values into create forms
    • Custom Pages
    • Navigation
  • Security
    • Roles
    • Add User Permissions
      • Create or edit a permission rule
        • Record Filter
        • Ownership filter
        • Data filter
        • Permission Sharing
        • Field Access
        • Record Deletion
      • Troubleshooting Permissions
    • Data Filters
      • Conditional Visibility Filter
  • Interactivity
    • Feeds
    • Mobile Responsiveness
  • Use Cases
    • Profile views and team directories
    • Create a Ticketing App
    • Create a CRM App
  • Account Information
    • Stacker Support Access
    • Pricing
Powered by GitBook
On this page
  • Account ID
  • Stack ID
  • Timezone
  • Content Type
  1. AI & Automations
  2. Open API Overview

Additional Headers

In addition to your Integration Key to authenticate your requests, you may need to provide additional headers.

Account ID

Most endpoints (aside from /hello and /accounts) require an Account ID to be specified.

An account represents a single workspace in Stacker, and usually corresponds to a single company.

Getting your Account ID

You can access your Account ID by running the following command in the javascript console:

JSON.parse(localStorage.user).account_id

Using the Account ID

You should use the X-Account-Id header to specify the Account you wish to apply to your query

Stack ID

The Stack ID represents the ID of the particular application within Stacker that you are accessing.

Getting your Stack ID

The easiest way to find the Stack ID for a given application is by calling the Stacks endpoint.

Getting your Stack ID from browser

You can access your Stack ID from a request in the network tab of the developer tools.

Open the Developer Tools, and navigate to a page within the application you're trying to access. Select the "Network" tab and filter to a request containing /api and check the Request Headers section.

Coming soon: we'll be adding a better way to access this!

Using the Stack ID

You should use the X-Stack-Id header to specify the Stack you wish to apply to your query.

Even when specifying a Stack ID, you should also provide the matching Account ID.

Timezone

Endpoint which return records optionally allow you to specify a timezone for any datetime fields to be returned in.

This can be achieved by setting the X-Timezone header with your desired timezone in a canonical format such as America/Los_Angeles (list of these).

If this is not specified, the timezone defaults to UTC.

Content Type

If you are providing data to a POST request, you may need to set the content type header to application/json

-H "Content-Type: application/json"
PreviousAuthenticationNextField API names

Last updated 1 month ago