Only this pageAll pages
Powered by GitBook
1 of 70

Home

Loading...

Loading...

Loading...

REST API

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

API Reference

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

JS SDK

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Felt Style Language

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Overview

Build on Felt from your own code: put maps in your product, keep layers in sync with your data, or let an AI agent work in your workspace. Felt handles tiling, styling, refresh and permissions.

What do you want to build?

Some of these need a specific plan or the Platform add-on, and every new workspace gets a free 7-day trial of all of them. See Plans, access and limits.

Put a Felt map inside your product

Embed a map with the JS SDK and control it from your app: filters, viewport, styles, and events like clicks and selections. To show private maps without giving your users Felt accounts, use authenticated embeds.

Keep data in sync with your database or pipeline

Connect a data source such as Postgres, Snowflake or BigQuery and Felt refreshes it on a schedule, or push files from your pipeline with the REST API.

Automate Felt with the REST API

Create maps, upload and style layers, manage annotations and export data. Start with Getting started or the API reference; Python users can use felt-python. Use webhooks to react when a map changes.

Let an AI agent work in Felt

Connect Claude, ChatGPT, Cursor or VS Code to the MCP server to build maps, style layers, run SQL and edit features.

Style layers precisely

The Felt Style Language (FSL) is the JSON behind every layer's style, legend, labels and popups.

Customize maps from inside Felt

Extensions run SDK code inside a Felt map, with nothing to host.

Looking for Elements? They're now called Annotations.

The app and these docs say annotations, while the REST API and JS SDK keep the elements naming. See Working with annotations and Drawing annotations.

Authentication

All calls to the Felt API authenticate with a personal access token sent as a Bearer token in the request header:

Tokens start with the felt_pat_ prefix. Since a token grants access to your account, store it securely — treat it like a password. Prefer environment variables or a secrets manager over hardcoding tokens in source code.

You can create an API token in the :

Be sure to take note of the token before closing the dialog; you won't have a second chance to view it. Only a hash of your token is stored on Felt's servers.

  • Workspace-scoped. Each token belongs to the workspace it was created in and can only access that workspace's resources. Requests against another workspace's resources fail with

Maps

APIs for building maps

Maps are the centerpiece of Felt.

With these APIs, you can create, retrieve, update, delete, move, and duplicate maps programmatically.

Print Exports

APIs to export map images and print pages

With these APIs, you can render a map to a PNG, JPG, PDF or SVG file, or print the pages designed on a map in Felt's print editor.

Print Pages

APIs to design print pages

Print pages are fixed compositions designed in Felt's print editor: one or more maps, plus locator maps, legends, text and images, on a page of a set size.

With these APIs, you can create pages from scratch or from a layout, edit what is on them, and save them as layouts the workspace's other maps can start from.

Layers

APIs to visualize spatial data

Layers enable you to visualize, style and interact with your spatial data.

With these APIs, you can upload data, manage layer styling, publish and refresh live data layers.

Layer Uploads

APIs to upload data

With these APIs, you can upload your data to create new layers.

Layer Library

APIs to publish layers

With these APIs, you can publish layers to a Felt Server.

Layer Exports

APIs to export layer data

With these APIs, you can export data to CSV, GeoJSON, and other formats.

Layer Components

APIs to build dashboards

With these APIs, you can create and edit a layer's components.

Elements

APIs for drawing spatially

Elements enable you to annotate maps with custom shapes, text, and markers.

With these APIs, you can create, update, and delete map elements.

Users

APIs for user information

Users represent the people in your workspace.

With these APIs, you can retrieve user profile information.

Comments

APIs for programatic collaboration

Comments bring conversations to mapping.

With these APIs, you can export, resolve, and delete map comments and collaboration threads.

Embed Tokens

APIs to share maps securely

Embed tokens enable safely sharing your private maps.

With these APIs, you can generate secure tokens for embedding maps.

Sources

APIs to connect your data

Sources connect your databases to Felt.

With these APIs, you can configure data source connections, credentials, and sync settings to create live maps.

Projects

APIs to organize maps

Projects help you organize maps and manage team permissions.

With these APIs, you can manage the projects in your workspace.

The attributes block

The attributes block contains information on how attributes will be shown both on the popup and the table. Each attribute definition can contain the following properties:

Field name
Description

format accepts any valid — common keys include mantissa

Types of visualizations

The type field chooses how a layer's data is turned into a picture. Pick the type that matches your data and message:

Type
Use it for
Works on

Zoom-based styling

Most of the properties used on the and blocks can be defined using interpolators to enable zoom-based styling — the property tables on those pages mark which ones accept an Interpolator.

We support multiple types of interpolators: Step functions, linear, exponential and cubic bezier to enable your map looking like you want at each zoom level. See the page.

An example of a layer changing feature colors depending on the zoom level can be found below

On zoom levels lower than 14, features of this layer will be rendered in red color. On zoom levels higher than 20, features of this layer will be rendered in blue color.

In zooms between 14 and 20

401
.
  • They act as you. Requests made with your token have your account's permissions in that workspace.

  • No expiry. Tokens remain valid until revoked. To rotate a token, create a new one in workspace settings, switch your integration over, and revoke the old one.

  • Failed authentication returns 401 with a JSON body explaining the problem — see Errors and rate limits.

  • A successful response returns your user details, confirming the token works:

    From here, head to Getting started to create your first map via the API.

    Creating a token

    How tokens behave

    Developers tab of the Workspace Settings page
    Generate as many API tokens as you need
    Give your API token a unique name
    Make sure to copy your token to a secure location

    Making an authenticated request

    (decimal places),
    thousandSeparated
    ,
    average
    (compact notation like
    1.2M
    ),
    output
    (
    "percent"
    ,
    "currency"
    ), and
    prefix
    /
    postfix
    . The object is validated by numbro itself, so anything numbro accepts is valid.

    Felt adds one extra key on top of numbro: unit, for displaying measurements. Supported values: meter, kilometer, foot, mile, square_meter, hectare, square_kilometer, square_foot, acre, square_mile, and the adaptive auto-distance and auto-area.

    displayName

    Optional. How this attribute will be shown in different parts of the Felt UI.

    format

    Optional. A numbro object that encodes how numeric fields should be shown.

    The format object

    numbro format object
    # This looks like:
    # FELT_API_TOKEN="felt_pat_ABCDEFUDQPAGGNBmX40YNhkCRvvLI3f8/BCwD/g8"
    FELT_API_TOKEN="<YOUR_API_TOKEN>"
    
    curl \
      -H "Authorization: Bearer ${FELT_API_TOKEN}" \
      "https://felt.com/api/v2/user"
    import requests
    
    # This looks like:
    # api_token = "felt_pat_ABCDEFUDQPAGGNBmX40YNhkCRvvLI3f8/BCwD/g8"
    api_token = "<YOUR_API_TOKEN>"
    
    r = requests.get(
      "https://felt.com/api/v2/user",
      headers={"Authorization": f"Bearer {api_token}"}
    )
    assert r.ok
    print(r.json())
    Authorization: Bearer <API Token>
    {
      "id": "AbC123dEfG456hIjK789lM",
      "type": "user",
      "name": "Your Name",
      "email": "you@example.com"
    }
    Example of an attributes block
    "attributes": {
      "faa": {
        "displayName": "FAA Code",
        "format": {
          "mantissa": 0,
          "thousandSeparated": true
        }
      },
      "wikipedia": {"displayName": "Wikipedia"}
    }
    "attributes": {
      "parcel_area": {
        "displayName": "Parcel area",
        "format": {"mantissa": 1, "unit": "auto-area"}
      }
    }

    Points, lines, polygons, raster

    Vary color or size by a numeric value (choropleths, proportional symbols)

    Points, lines, polygons, raster

    Point density as a smooth surface

    Points

    Aggregate points into hexagonal bins

    Points

    Imagery, single/multiband numeric, categorical, and hillshade

    Raster

    Each page lists the geometry types it applies to, the properties that matter, and worked examples. For the values you'll plug into these styles, see Colors & palettes, Icons, and Classification methods.

    Simple

    One uniform style for every feature; raster imagery as-is

    Points, lines, polygons, raster

    Categorical

    Color (or icon) by a discrete category

    , color will be linearly interpolated between
    red
    and
    blue.
    Features at zoom level 14
    Features at zoom level 17
    Features at zoom level 20
    "paint": {
      "color": {"linear": [[14, "red"], [20, "blue"]]}
    }

    Zoom-based styling is useful to change how features and labels are shown at different zoom levels.

    paint
    label
    Interpolators

    Hiding and showing

    The Felt SDK provides methods to control the visibility of various entities like layers, layer groups, annotation groups, and legend items. These methods are designed to efficiently handle bulk operations.

    Understanding visibility requests

    All visibility methods use a consistent structure that allows both showing and hiding entities in a single call:

    {
      show?: string[],  // IDs of entities to show
      hide?: string[]   // IDs of entities to hide
    }

    Layers

    Control visibility of layers using setLayerVisibility:

    felt.setLayerVisibility({
      show: ["layer-1", "layer-2"],
      hide: ["layer-3"]
    });

    Layer groups

    Control visibility of layer groups using setLayerGroupVisibility:

    felt.setLayerGroupVisibility({
      show: ["group-1", "group-2"],
      hide: ["group-3"]
    });

    Annotation groups

    Similarly, control annotation group visibility with setElementGroupVisibility:

    felt.setElementGroupVisibility({
      show: ["points-group"],
      hide: ["lines-group", "polygons-group"]
    });

    Legend items

    Legend items require both a layer ID and an item ID to identify them. Use setLegendItemVisibility:

    felt.setLegendItemVisibility({
      show: [
        { layerId: "layer-1", id: "item-1" },
        { layerId: "layer-1", id: "item-2" }
      ],
      hide: [
        { layerId: "layer-1", id: "item-3" }
      ]
    });

    Common use cases

    Focusing on a single layer

    To focus on a single layer by hiding all others, first get all layers and then use their IDs:

    const layers = await felt.getLayers();
    const targetLayerId = "important-layer";
    
    felt.setLayerVisibility({
      show: [targetLayerId],
      hide: layers
        .map(layer => layer?.id)
        .filter(id => id && id !== targetLayerId)
    });

    Toggling visibility

    When implementing a toggle, you can use empty arrays for the operation you don't need:

    1. Batch operations: Use a single call with multiple IDs rather than making multiple calls:

    1. Omit unused properties: When you only need to show or hide, omit the unused property rather than including it with an empty array:

    Controlling maps

    The Felt SDK has a number of methods for interacting with maps, depending on how you set up your HTML.

    All Felt maps are embedded in iframes, and the SDK can do this for you or can connect to an existing Felt iframe.

    Felt map IDs

    Felt map IDs are unique identifiers for Felt maps. They are used to embed maps in iframes, and to connect to existing iframes.

    To get the ID of a Felt map, open the Extensions menu in the map's toolbar and choose Copy map ID under Developers. While editing a map, you can also search for "Copy map ID" in the command palette.

    Alternatively, you can look at the URL of the map. For example, the map at https://felt.com/map/Map-title-xPV9BqMuYQxmUraVWy9C89BNA has the ID xPV9BqMuYQxmUraVWy9C89BNA.

    Throughout the documentation, we'll use the placeholder FELT_MAP_ID to refer to a Felt map ID.

    Using Felt.embed to create an iframe

    Create an HTML page with a container element:

    <html>
      <body>
        <h1>My Felt app</h1>
        <div id="container"></div>
      </body>
    </html>

    Embed a Felt map in your container element and use the SDK to control it by calling Felt.embed, passing the container element as the first argument:

    Felt.embed also takes a third argument with options controlling the embed's UI, initial viewport, and authentication — see .

    In some cases, you may want to add a "template" iframe to your page. This can be useful if you want to style your iframe in a specific way, or if you already have one map embedded and want to mount and control a different map.

    In this case, you can call Felt.embed with the iframe element as the first argument:

    There may be cases where you already have a Felt map embedded in an iframe, and you want to control it using the SDK. This can be useful if your HTML is server-rendered with the Felt map already embedded.

    In this case, you can call Felt.connect with the iframe's window as the first argument:

    Note that in this case, you don't need to pass the Felt map ID to Felt.connect, because we are connecting to a map that has already been embedded.

    Style definition blocks

    The shape of a style definition

    A style in its most basic form contains a version definition but it can be extended to define how we want geometry and labels to show on the map, how the legend should look like, what information is shown in popups and the formatting used when displaying feature properties.

    The table below describes which properties can be used in the style definition.

    Field name
    Description

    version

    Mandatory. Defines which version this style adheres to. The current version is "2.3.1".

    type

    Optional. One of , , , , , or (for raster) . Defaults to simple.

    All of these keys are siblings at the top level of the object — none are nested inside another:

    Heatmaps

    Heatmaps are used to visualize the density of points on a map.

    Heatmaps work on point layers only, and show concentration rather than individual feature values — if you need to read a specific attribute, use a numeric visualization instead. The config block must be empty ({}), and heatmaps support no popups or labels.

    Heatmap visualizations are defined using "type": "heatmap" and allow the following properties to be set:

    Field name
    Type
    Default
    Typical range
    Description

    Tune size for the zoom you expect to view at — larger at low zoom, smaller at high zoom.

    This is an example of a heatmap visualization

    defined with the following visualization

    Styling layers

    A layer's style is defined in a JSON-based format called , or FSL for short. Editors can view the current style of a layer inside a Felt map by clicking on Actions > Edit style language in a layer's overflow menu (three dots).

    Here is an example of a simple visualization, expressed in FSL:

    A layer's FSL can be retrieved by performing a simple GET request to a layer's endpoint — the response's style field contains the current style object:

    To update a layer's style, we can send a POST request with the new FSL to the same layer's /update_style

    Errors and rate limits

    Almost every error returned by the Felt API uses the same JSON envelope: an errors array where each entry has a title, a human-readable detail, usually a stable code, and — where applicable — a source telling you which header, parameter, or body field caused the problem.

    Treat code as best-effort rather than guaranteed: a few responses, notably field-validation failures, carry only title and detail. Branch on the HTTP status first, and use code to refine when it is present.

    Navigating maps and workspaces

    Workspaces are the place where users in the same organization collaborate and share maps. A user may form part of several workspaces but, at the very least, always forms part of one.

    API tokens are created per-workspace. If you wish to interact with several workspaces via the Felt API, you must create a different API token for each one.

    Creating a new map is as simple as making a POST request to the maps endpoint.

    You should see a response like this (trimmed for brevity):

    Notice the "id" property. Every map has a unique ID, which is also part of the map's URL. Let's take note of it for future API calls.

    Also part of the response is a "url" property, which is the URL to your newly-created map.

    Getting started

    The Felt SDK allows you to control your Felt maps and build powerful, interactive custom applications. You can control many aspects of the Felt UI and map contents, as well as receive notifications of events happening in the map such as clicks, selections, and more.

    See our page to explore what you can build with the SDK.

    There are two main ways to use the Felt SDK:

    1. Extensions

    2. Embedded maps

    Write code directly within Felt using our feature. Extensions run directly within the Felt environment, giving you immediate access to all SDK functionality without embedding or connection steps. They're available on the Business and Enterprise plans.

    AI agents and MCP

    Felt runs a remote (MCP) server, so AI assistants and coding agents such as Claude, ChatGPT, Cursor and VS Code can work in your Felt workspace directly. An agent connected to Felt can create maps, load and style data, query layers and connected databases with SQL, edit features, and render maps inline in the conversation.

    The server URL is:

    Most clients connect with OAuth: you add the URL, a browser window opens, you sign in to Felt and choose which workspace the agent may use.

    In Claude, open Settings → Connectors → Add custom connector, name it Felt, and enter https://felt.com/mcp.

    Add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

    Map interactions and viewport

    The Felt SDK provides methods to control the map's viewport (the visible area of the map) and handle user interactions like clicking and hovering on the viewport.

    You can get the current viewport state using getViewport():

    There are two main ways to set the viewport: moving to a specific point, or fitting to bounds.

    Use setViewport() to move the map to a specific location:

    Use fitViewportToBounds() to adjust the viewport to show a specific rectangular area:

    To stay in sync with viewport changes, use the onViewportMove method:

    Listen for click events on the map using onPointerClick:

    Working with selection

    The Felt SDK provides functionality for reading the current selection state and selecting features on the map programmatically. This is useful for building interactive experiences that respond to data analysis or user interactions.

    Features are individual data points within layers. You can select features programmatically using the method. Only one feature can be selected at a time - selecting a new feature will replace the current selection.

    The method accepts options to control the selection behavior:

    • showPopup (boolean, default: true) - Whether to display the feature information popup

    Integrating with React

    To work with Felt embeds in React, we have a starter template that you can use as a starting point.

    This is available on GitHub in the repository.

    In that repo, you will find a feltUtils.ts file that demonstrates some ways to make using the Felt SDK in React easier. The SDK itself is framework-agnostic and ships no React bindings — the hooks below are small wrappers you copy into your own project.

    A common use case for building apps on Felt is to be notified when entities are updated. The main example of this is when you want to change the visibility of say a layer, and have your own UI reflect that change.

    Rather than keeping track of the visibility of entities yourself, you can use the Felt SDK to listen for changes to the visibility of entities.

    Here is an example of how you might do this for layers assuming you already have a reference to a Layer object, e.g. from calling felt.getLayers():

    Embed options

    Felt.embed() takes an optional third argument that controls how the embedded map looks and behaves:

    All uiControls options are booleans:

    Option
    Default
    Description

    The popup block

    The popup block contains information on how the popup is displayed and which attributes to show.

    These are the fields that each popup block can contain:

    Field name
    Description

    The filters block

    The filters block contains information on how the layer is being filtered before displaying. In order for a feature to be shown on the map it must evaluate the filter expression to true.

    Filters are written using a JSON infix notation that looks like one of [identifier, operator, operand], true or false .

    • Valid identifiers are either a feature property or a nested expression.

    Legends

    Adding a legend block to a visualization makes a legend entry appear for this visualization.

    Each legend entry is shown with the geometry type and color defined by the dataset and the visualization block.

    While simple visualizations will generate a single legend entry, categorical visualizations will generate a legend entry per category.

    The only field is displayName. For categorical visualizations it maps each category to its label; for numeric/heatmap visualizations it maps the index of each class ("0", "1", …) to its label. Set "displayName": "auto" to let Felt generate the labels for you — from the computed breaks for numeric classes, or from the category names for categorical visualizations ("auto" requires steps

    Examples

    A compact, one-per-type overview. For fuller, captioned examples — line casing, proportional symbols, icon-per-category, H3 aggregation popups, raster algebra — see the individual pages.

    Plans, access and limits

    What each plan includes for developers, and what happens at a limit. For prices, see .

    Feature
    Plan
    Numeric
    Heatmaps
    H3
    Raster

    Best practices

    Using Felt.embed to mount into an existing iframe

    Using Felt.connect to connect to an existing embedded Felt map

    Embed options

    config

    Optional. A block that contains some configuration options to be used across the style. Learn more.

    paint

    Optional. An object (or array of objects) that defines how the data will be drawn. Learn more.

    label

    Optional. An object that defines how the labels will be drawn. Learn more.

    legend

    Optional. Defines how this layer will be shown on the layer panel. Learn more.

    popup

    Optional. Defines how the popup is shown and what’s included. Learn more.

    attributes

    Optional. Defines how attributes are shown both in the popup and the table. Learn more.

    filters

    Optional. A data filter definition that defines which data will be rendered. Learn more.

    The block that controls how geometry and raster pixels are drawn is named paint. (Some earlier drafts of this guide referred to it as style.)

    simple
    categorical
    numeric
    heatmap
    h3
    hillshade

    color

    string

    none

    —

    A heatmap palette name, from less density to more. Always set it: without one, the heatmap renders in a single solid color (#EE4D5A) with no density ramp.

    size

    number

    10

    1–30 px

    Radius of influence in pixels. Larger = smoother, smaller = more detailed.

    intensity

    number

    0.5

    0.1–3.0

    How quickly density saturates. Higher = more contrast.

    opacity

    number

    0.9

    0–1

    Transparency.

    Performing a GET request to a map URL will give you useful information about that map, including title, URL, layers, thumbnail URL, creation and visited timestamps.

    To remove a map from your workspace, simply perform a DELETE request to the map's URL:

    To move a map to a different folder or project, send a POST request to the map's move URL with either a project_id or a folder_id in the body. You can find project IDs by listing your projects with GET /api/v2/projects:

    Workspaces and API tokens

    Working with maps

    Creating a new map

    # Your API token should look like this:
    # FELT_API_TOKEN="felt_pat_ABCDEFUDQPAGGNBmX40YNhkCRvvLI3f8/BCwD/g8"
    FELT_API_TOKEN="<YOUR_API_TOKEN>"
    
    curl \
      -X POST \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer ${FELT_API_TOKEN}" \
      "https://felt.com/api/v2/maps" \
      -d '{"title": "My newly created map"}'
    import requests
    
    # Your API token should look like this:
    # api_token = "felt_pat_ABCDEFUDQPAGGNBmX40YNhkCRvvLI3f8/BCwD/g8"
    api_token = "<YOUR_API_TOKEN>"
    
    r = requests.post(
      "https://felt.com/api/v2/maps",
      json={"title": "My newly created map"},
      headers={"Authorization": f"Bearer {api_token}"}
    )
    assert r.ok
    map_id = r.json()["id"]
    
    print(r.json())

    Getting a map's details

    Deleting a map

    Moving a map

    Minimal

    Point (simple)

    Line (simple)

    Polygon (simple)

    Categorical

    Numeric

    Heatmap

    H3

    Raster

    Types of visualizations

    Embedding with useFeltEmbed

    useFeltEmbed implementation

    A few things worth knowing about this hook:

    • The hasLoadedRef guard exists because React's Strict Mode runs effects twice in development — without it you would embed two iframes.

    • The hook embeds once for the component's lifetime: changing mapId after mount won't re-embed. If you need to switch maps, remount the component (for example with a key={mapId} prop).

    Getting live data

    felt/js-sdk-starter-react
    Track mouse movement over the map using onPointerMove:
    1. Cleanup: Always store and call unsubscribe functions when you're done listening for events:

    1. Throttling: For pointer move events, consider throttling your handler if you're doing expensive operations:

    By using these viewport controls and interaction handlers, you can create rich, interactive experiences with your Felt map.

    Working with the viewport

    Getting viewport state

    Setting the viewport

    Moving to a point

    Fitting to bounds

    Responding to viewport changes

    Map interactions

    Click events

    Hover events

    Best practices

    fitViewport (boolean | { maxZoom: number }, default: true) - Whether to fit the viewport to the feature. Can be true, false, or an object with maxZoom to limit the zoom level used.

    You can get the current selection state using getSelection(). This returns an array of EntityNode objects, each representing a selected entity. The selection can include various types of entities at the same time, such as annotations and features:

    Remove current selections using clearSelection():

    To stay in sync with selection changes, use the onSelectionChange() method:

    1. Clean up listeners: Always store and call the unsubscribe function when you no longer need to listen for selection changes:

    1. Handle empty selection: Remember that the selection array might be empty if nothing is selected:

    By following these patterns, you can build robust interactions based on what users select in your Felt map.

    Selecting features

    selectFeature()
    selectFeature()

    Reading selection

    Clearing selection

    Reacting to selection changes

    Best practices

    cooperativeGestures

    true

    Adjusted gesture behavior for embeds: on mobile, one-finger drag scrolls the page while two fingers pan the map; on desktop, scroll-to-zoom requires holding Ctrl/Cmd. Disable for app-like embeds where the map is the main content.

    fullScreenButton

    true

    Shows a button that opens the map in a new tab or window.

    geolocation

    false

    Shows a geolocation button that plots and tracks the visitor's position.

    zoomControls

    true

    Shows the zoom controls (bottom right). Hiding them does not prevent zooming.

    scaleBar

    true

    Shows the scale bar.

    rotation

    true

    Allows the map to be rotated (right-drag or Ctrl-drag, two-finger rotate, keyboard shortcuts) and shows the compass.

    contextMenu

    true

    Allows the right-click context menu. When false, right-clicking opens neither Felt's menu nor the browser's.

    You can change these after the map has loaded with updateUiControls:

    initialViewport overrides the map's saved viewport with a center and zoom for this embed:

    Public and unlisted maps embed with no extra configuration. To show a private map to visitors who don't have a Felt account, mint an embed token on your server and pass it as the token option:

    Embed tokens are part of the Platform add-on. They last 12 hours and are scoped to a single map. See Authenticated embeds for the server code, how authorization works, and how to serve each customer their own data.

    showLegend

    true

    UI controls

    Whether the legend is shown.

    Initial viewport

    Embedding private maps

    popupLayout

    Optional. One of "table" or "list". The way the popup shows its contents. Defaults to "table".

    popupLocation

    Optional. Where the popup appears: "onMap", "leftSidebar", "rightSidebar", or "modal".

    headerLayout

    Optional. "standard", "compact", or "none".

    keyAttributes

    Optional. A list of attributes to show in the popup following the order defined here. If it’s not defined, only attributes with a value will show. If it’s defined, all listed attributes show even when the selected feature doesn’t include them.

    url

    Iframe popups only. The URL to embed; supports the {{column_name}} template syntax.

    width

    iframe and html popups only. The popup width in pixels.

    height

    iframe and html popups only. The popup height in pixels.

    An iframe popup embeds external content. Use the template syntax {{column_name}} (or {{['Column Name']}} for names with spaces) to inject feature values into the URL or HTML.

    An html popup renders a rich HTML template that is authored and stored with the layer in the Felt app — the FSL block only sets "type": "html" plus the common fields above; the template itself is not part of the style.

    H3 hexes show aggregated values rather than raw feature attributes, so their popups reference special attribute names:

    • "felt:cluster_size" — number of features in the hex

    • "felt:sum:column", "felt:mean:column", "felt:min:column", "felt:max:column" — aggregates of column

    type

    Optional. "attributes" (default), "iframe", or "html".

    titleAttribute

    Optional. The attribute (or attributes) used to title the popup if available.

    imageAttribute

    Optional. The attribute that will be used to populate the popup image if available.

    Iframe and HTML popups

    H3 aggregation attributes

    Valid operators are:
    • "lt" – Less than

    • "gt" – Greater than

    • "le" – Less than or equal to

    • "ge" – Greater than or equal to

    • "eq" – Equal to

    • "ne" – Not equal to

    • "and" – And, cast to boolean

    • "or" – Or, cast to boolean

    • "cn" – Contains the operand, cast to string

    • "nc" – Does not contain the operand, cast to string

    • "in" – Contained in the operand list

    • "ni" – Not contained in the operand list

    • "is" – Used to match against null values

    • "isnt" – Used to match against null values

  • Operands are:

    • A numerical value, a string value, a boolean value

    • An array of numerical, string, or boolean values, a shorthand expanded to these patterns:

      • Input 1: [id, "in", [element1, …, elementN]]

      • Expansion 1: id is equal ("eq") to one or more of the elements

      • Input 2: [id, "ni", [element1, …, elementN]]

      • Expansion 2: id is not equal ("ne") to any of the elements

      • Not defined for operators other than "in" and "ni"

    • A nested expression

  • In cases of type mismatch cast the identifier value to the operand’s type

    • Type casting applies element-wise to lists with "in" and "ni" operators

    • Case & diacritics: eq, ne, gt, ge, lt, le, cn, and nc compare strings case-insensitively and diacritic-insensitively. ["status", "eq", "active"] matches "Active" and "ACTIVE".

    • in / ni are case-sensitive, unlike the operators above, and do per-element type coercion (["id", "in", [5]] matches a string "5"). in with an empty array always returns false; ni with an empty array always returns true.

    • Null handling: use is / isnt only for null/existence checks (with null as the value) — not for value equality. Most other operators yield null (and filter the feature out) when the column is missing or null.

    • Type coercion: the left-hand value is cast to match the right-hand type, so ["score", "eq", 100] matches whether the column stores 100 or "100".

    There is no single "between" operator — combine two comparisons:

    Check that a value exists and is non-empty:

    Three or more conditions must be written as nested pairs, not a flat list:

    Behavior notes

    Common patterns

    function toggleLayer(layerId: string, visible: boolean) {
      felt.setLayerVisibility({
        show: visible ? [layerId] : [],
        hide: visible ? [] : [layerId]
      });
    }
    // Better approach
    felt.setLayerVisibility({
      show: ["layer-1", "layer-2"],
      hide: ["layer-3", "layer-4"]
    });
    
    // Less efficient approach
    felt.setLayerVisibility({ show: ["layer-1"] });
    felt.setLayerVisibility({ show: ["layer-2"] });
    felt.setLayerVisibility({ hide: ["layer-3"] });
    felt.setLayerVisibility({ hide: ["layer-4"] });
    // Do this
    felt.setLayerVisibility({
      show: ["layer-1"]
    });
    import { Felt } from "@feltmaps/js-sdk";
    
    const felt = await Felt.embed(
      document.querySelector("#container"),
      "FELT_MAP_ID",
    );
    
    // Now use the SDK
    const layers = await felt.getLayers();
    const elements = await felt.getElements();
    
    // You also have a reference to the iframe itself:
    felt.iframe.style.width = "50%";
    <html>
      <body>
        <h1>My Felt app</h1>
        <iframe id="my-iframe"></iframe>
      </body>
    </html>
    import { Felt } from "@feltmaps/js-sdk";
    
    const felt = await Felt.embed(
      document.querySelector("#my-iframe"),
      "FELT_MAP_ID",
    );
    <html>
      <body>
        <h1>My Felt app</h1>
        <iframe src="https://felt.com/embed/map/Map-title-xPV9BqMuYQxmUraVWy9C89BNA" id="my-iframe"></iframe>
      </body>
    </html>
    import { Felt } from "@feltmaps/js-sdk";
    
    const felt = await Felt.connect(
      document.querySelector("#my-iframe").contentWindow
    );
    {
      "version": "2.3.1",
      "type": "simple",
      "config": {},
      "paint": {},
      "label": {},
      "legend": {},
      "popup": {}
    }
    {
      "version": "2.3.1",
      "type": "heatmap",
      "config": {},
      "legend": {"displayName": {"0": "Low", "1": "High"}},
      "paint": {"color": "@purpYlPink", "size": 10, "intensity": 0.2}
    }
    curl \
      -H "Authorization: Bearer ${FELT_API_TOKEN}" \
      "https://felt.com/api/v2/maps/${MAP_ID}"
    r = requests.get(
      f"https://felt.com/api/v2/maps/{map_id}",
      headers={"Authorization": f"Bearer {api_token}"}
    )
    assert r.ok
    print(r.json())
    from felt_python import get_map
    
    get_map(map_id)
    curl \
      -X DELETE \
      -H "Authorization: Bearer ${FELT_API_TOKEN}" \
      "https://felt.com/api/v2/maps/${MAP_ID}"
    r = requests.delete(
      f"https://felt.com/api/v2/maps/{map_id}",
      headers={"Authorization": f"Bearer {api_token}"}
    )
    assert r.ok
    from felt_python import delete_map
    
    delete_map(map_id)
    curl \
      -X POST \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer ${FELT_API_TOKEN}" \
      "https://felt.com/api/v2/maps/${MAP_ID}/move" \
      -d "{\"project_id\": \"${PROJECT_ID}\"}"
    r = requests.post(
      f"https://felt.com/api/v2/maps/{map_id}/move",
      json={"project_id": project_id},
      headers={"Authorization": f"Bearer {api_token}"}
    )
    assert r.ok
    print(r.json())
    from felt_python import move_map
    
    move_map(map_id, project_id)
    import os
    
    from felt_python import create_map
    
    # Setting your API token as an env variable can save
    # you from repeating it in every function call
    os.environ["FELT_API_TOKEN"] = "<YOUR_API_TOKEN>"
    
    response = create_map(
        title="My newly created map",
        lat=40,
        lon=-3,
        public_access="private",
    )
    map_id = response["id"]
    {
      "id": "CjU1CMJPTAGofjOK3ICf1D",
      "type": "map",
      "title": "My newly created map",
      "url": "https://felt.com/map/My-newly-created-map-CjU1CMJPTAGofjOK3ICf1D",
      "public_access": "view_only",
      "layers": [],
      "created_at": "2024-05-25T15:51:34"
    }
    {"version": "2.3.1", "type": "simple", "config": {}, "paint": {}, "label": {}}
    {
      "version": "2.3.1",
      "type": "simple",
      "config": {"labelAttribute": ["name"]},
      "paint": {"color": "#8F7EBF", "size": 4, "strokeColor": "auto", "strokeWidth": 1},
      "label": {"color": "auto", "haloColor": "auto", "placement": ["E"], "offset": [6, 0]}
    }
    {
      "version": "2.3.1",
      "type": "simple",
      "config": {"labelAttribute": ["river_name"]},
      "paint": {"color": "hsl(217, 80%, 40%)", "size": 2},
      "label": {"color": "auto", "fontStyle": "italic", "placement": "Above", "repeatDistance": 200}
    }
    {
      "version": "2.3.1",
      "type": "simple",
      "config": {"labelAttribute": ["name"]},
      "paint": {"color": "#3B82F6", "strokeColor": "auto", "strokeWidth": 1, "opacity": 0.8},
      "label": {"color": "auto", "haloColor": "auto", "placement": ["Center"]}
    }
    {
      "version": "2.3.1",
      "type": "categorical",
      "config": {
        "categoricalAttribute": "primary_fuel",
        "categories": {"type": "top", "count": 6},
        "showOther": true
      },
      "paint": {"color": "@catPalette1", "size": 4, "strokeColor": "auto", "strokeWidth": 1},
      "legend": {"displayName": "auto"}
    }
    {
      "version": "2.3.1",
      "type": "numeric",
      "config": {"numericAttribute": "Renter occupied (%)", "steps": {"type": "jenks", "count": 5}},
      "paint": {"color": "@galaxy", "opacity": 0.9, "strokeColor": "auto", "strokeWidth": 0.5},
      "legend": {"displayName": "auto"}
    }
    {
      "version": "2.3.1",
      "type": "heatmap",
      "config": {},
      "paint": {"color": "@purpYlPink", "size": 10, "intensity": 0.2, "opacity": 0.9},
      "legend": {"displayName": {"0": "Low", "1": "High"}}
    }
    {
      "version": "2.3.1",
      "type": "h3",
      "config": {
        "aggregation": "sum",
        "numericAttribute": "capacity_mw",
        "baseBinLevel": 3,
        "binMode": "fixed",
        "steps": {"type": "quantiles", "count": 5}
      },
      "paint": {"color": "@riverine"},
      "legend": {"displayName": "auto"}
    }
    {
      "version": "2.3.1",
      "type": "numeric",
      "config": {"band": 1, "steps": {"type": "continuous"}, "noData": [-9999], "rasterResampling": "linear"},
      "paint": {"color": "@mplVirdis", "opacity": 1},
      "legend": {"displayName": "auto"}
    }
    function MyComponent() {
      // get the felt controller (or null if it's not loaded yet) and a ref to the map container
      // into which we can embed the map
      const { felt, mapRef } = useFeltEmbed("FELT_MAP_ID", {
        uiControls: {
          cooperativeGestures: false,
          fullScreenButton: false,
          showLegend: false,
        },
      });
    
      return (
        <div>
          {/* the map container — remember to give it a height in your CSS */}
          <div ref={mapRef} />
    
          {/* a component that uses the Felt controller */}
          <MyFeltApp felt={felt} />
        </div>
      );
    }
    export function useLiveLayer(felt: FeltController, initialLayer: Layer) {
      // start with the layer we were given
      const [currentLayer, setLayer] = React.useState<Layer | null>(initialLayer);
    
      // listen for changes to the layer and update our state accordingly
      // (onLayerChange returns its unsubscribe function, so returning it
      // from the effect cleans up the listener on unmount)
      React.useEffect(() => {
        return felt.onLayerChange({
          options: { id: initialLayer.id },
          handler: ({ layer }) => setLayer(layer),
        });
      }, [felt, initialLayer.id]);
    
      // return the live layer
      return currentLayer;
    }
    import {
      Felt,
      FeltController,
      FeltEmbedOptions,
      Layer,
    } from "@feltmaps/js-sdk";
    import React from "react";
    
    export function useFeltEmbed(mapId: string, embedOptions: FeltEmbedOptions) {
      const [felt, setFelt] = React.useState<FeltController | null>(null);
      const hasLoadedRef = React.useRef(false);
      const mapRef = React.useRef<HTMLDivElement>(null);
    
      React.useEffect(() => {
        async function loadFelt() {
          if (hasLoadedRef.current) return;
          if (!mapRef.current) return;
    
          hasLoadedRef.current = true;
          const felt = await Felt.embed(mapRef.current, mapId, embedOptions);
          setFelt(felt);
        }
    
        loadFelt();
      }, []);
    
      return {
        felt,
        mapRef,
      };
    }
    const viewport = await felt.getViewport();
    console.log(viewport.center); // { latitude: number, longitude: number }
    console.log(viewport.zoom);   // number
    felt.setViewport({
      center: {
        latitude: 37.7749,
        longitude: -122.4194
      },
      zoom: 12
    });
    felt.fitViewportToBounds({
      bounds: [
        west,   // minimum longitude
        south,  // minimum latitude
        east,   // maximum longitude
        north   // maximum latitude
      ]
    });
    const unsubscribe = felt.onViewportMove({
      handler: (viewport) => {
        console.log("New center:", viewport.center);
        console.log("New zoom:", viewport.zoom);
      }
    });
    
    // Clean up when done
    unsubscribe();
    const unsubscribe = felt.onPointerClick({
      handler: (event) => {
        // Location of the click
        console.log("Click location:", event.coordinate);
        
        // Features under the click
        console.log("Clicked features:", event.features);
        
        // The pixel coordinates of the cursor, measured from the top left corner of the map DOM element.
        console.log("Screen coordinates:", event.point);
        
        // Values from raster layers under the pointer.
        // Always an array - empty when no raster layers are hit.
        for (const {value, categoryName, color, layerId} of event.rasterValues) {
          console.log("Raster value:", value, categoryName);
        }
      }
    });
    const unsubscribe = felt.onPointerMove({
      handler: (event) => {
        // Current mouse location
        console.log("Mouse location:", event.coordinate);
        
        // Features under the cursor
        console.log("Hovered features:", event.features);
        
        // The pixel coordinates of the cursor, measured from the top left corner of the map DOM element.
        console.log("Screen coordinates:", event.point);
    
        // Values from raster layers under the pointer.
        // Always an array - empty when no raster layers are hit.
        for (const {value, categoryName, color, layerId} of event.rasterValues) {
          console.log("Raster value:", value, categoryName);
        }
      }
    });
    const unsubscribe = felt.onPointerMove({
      handler: (event) => {
        // Handle event...
      }
    });
    
    // Later, when you're done:
    unsubscribe();
    import { throttle } from "lodash";
    
    felt.onPointerMove({
      handler: throttle((event) => {
        // Handle frequent mouse moves...
      }, 100) // Limit to once every 100ms
    });
    await felt.selectFeature({
      id: "feature-123",
      layerId: "buildings-layer"
    });
    await felt.selectFeature({
      id: "feature-123",
      layerId: "buildings-layer",
      showPopup: false,           // Whether to show the feature popup (default: true)
      fitViewport: { maxZoom: 15 } // Fit viewport to feature with zoom limit
    });
    const selection = await felt.getSelection();
    
    console.log(`${selection.length} items selected`);
    
    selection.forEach(node => {
      switch(node.type) {
        case 'feature':
          console.log('Selected feature:', node.entity.id, 'from layer:', node.entity.layerId);
          break;
        case 'element':
          console.log('Selected element:', node.entity.name || node.entity.type);
          break;
      }
    });
    // Clear all selections
    await felt.clearSelection();
    
    // Clear specific types of selections
    await felt.clearSelection({ 
      features: true,   // Clear feature selections
      elements: false   // Keep element selections
    });
    const unsubscribe = felt.onSelectionChange({
      handler: ({ selection }) => {
        // selection is an array of EntityNode objects
        console.log("Selected entities:", selection);
        
        // Check what's selected
        selection.forEach(node => {
          console.log("Entity type:", node.type);
          console.log("Entity ID:", node.entity.id);
        });
      }
    });
    
    // Don't forget to clean up when you're done
    unsubscribe();
    const unsubscribe = felt.onSelectionChange({
      handler: ({ selection }) => {
        // Handle selection...
      }
    });
    
    // Later, when you're done:
    unsubscribe();
    const unsubscribe = felt.onSelectionChange({
      handler: ({ selection }) => {
        if (selection.length === 0) {
          console.log("Nothing is selected");
          return;
        }
        // Handle selection...
      }
    });
    const felt = await Felt.embed(container, FELT_MAP_ID, {
      uiControls: {
        showLegend: false,
        cooperativeGestures: false,
      },
      initialViewport: {
        center: { latitude: 40.7128, longitude: -74.006 },
        zoom: 10,
      },
    });
    felt.updateUiControls({ showLegend: false });
    initialViewport: {
      center: { latitude: 40.7128, longitude: -74.006 },
      zoom: 10,
    }
    const felt = await Felt.embed(container, FELT_MAP_ID, {
      token: embedTokenFromYourServer,
    });
    Example of a popup block
    "popup": {
      "titleAttribute": "name",
      "keyAttributes": ["osm_id", "highway", "ref", "place"],
      "popupLayout": "list",
      "popupLocation": "onMap",
      "headerLayout": "standard"
    }
    Iframe popup
    "popup": {
      "type": "iframe",
      "url": "https://example.com/details/{{id}}",
      "popupLocation": "modal",
      "width": 600,
      "height": 800
    }
    "popup": {
      "titleAttribute": "felt:sum:revenue",
      "keyAttributes": ["felt:cluster_size", "felt:mean:revenue", "felt:max:revenue"]
    }
    Example of a filter block that filters out features with a value less than 50000 on the acres property
    "filters": ["acres", "lt", 50000]
    Example of a more complex filter block
    "filters": [["acres", "ge", 50000], "and", ["acres", "le", 70000]]
    "filters": [["temperature", "ge", 0], "and", ["temperature", "le", 100]]
    "filters": [["name", "isnt", null], "and", ["name", "ne", ""]]
    // WRONG: [a, "and", b, "and", c]
    // RIGHT:
    "filters": [["a", "eq", 1], "and", [["b", "eq", 2], "or", ["c", "eq", 3]]]
    endpoint.
    curl \
      -X POST \
      "https://felt.com/api/v2/maps/${MAP_ID}/layers/${LAYER_ID}/update_style" \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer ${FELT_API_TOKEN}" \
      --data '{"style": {"paint": {"color": "green", "opacity": 0.9, "size": 30, "strokeColor": "auto", "strokeWidth": 1}, "legend": {}, "type": "simple", "version": "2.3.1"}}'
    new_fsl = {
      "paint": {
        "color": "green",
        "opacity": 0.9,
        "size": 30,
        "strokeColor": "auto",
        "strokeWidth": 1
      },
      "legend": {},
      "type": "simple",
      "version": "2.3.1"
    }
    
    r = requests.post(
      f"https://felt.com/api/v2/maps/{map_id}/layers/{layer_id}/update_style",
      json={"style": new_fsl},
      headers={"Authorization": f"Bearer {api_token}"}
    )
    assert r.ok
    print(r.json())
    from felt_python import update_layer_style
    
    new_fsl = {
      "paint": {
        "color": "green",
        "opacity": 0.9,
        "size": 30,
        "strokeColor": "auto",
        "strokeWidth": 1
      },
      "legend": {},
      "type": "simple",
      "version": "2.3.1"
    }
    
    update_layer_style(
        map_id=map_id,
        layer_id=layer_id,
        style=new_fsl,
    )

    You can find examples of FSL for different visualization types in the Felt Style Language section of these docs:

    • Simple visualizations: same color and size for all features (vector) or pixels (raster).

    • Categorical visualizations: different color per feature or pixel, based on a categorical attribute

    • Numeric visualizations: different color or size per feature or pixel, based on a numeric attribute.

    • Heatmaps: a density-based visualization style, for vector point layers.

    • : aggregate points into hexagonal bins.

    • : imagery, single/multiband numeric, categorical, and hillshade styling for raster layers.

    {
      "config": {"labelAttribute": ["type"]},
      "legend": {},
      "paint": {
        "color": "blue",
        "opacity": 0.9,
        "size": 30,
        "strokeColor": "auto",
        "strokeWidth": 1
      },
      "type": "simple",
      "version": "2.3.1"
    }
    # Your API token should look like this:
    # FELT_API_TOKEN="felt_pat_ABCDEFUDQPAGGNBmX40YNhkCRvvLI3f8/BCwD/g8"
    FELT_API_TOKEN="<YOUR_API_TOKEN>"
    MAP_ID="<YOUR_MAP_ID>"
    LAYER_ID="<YOUR_LAYER_ID>"
    
    curl \
      -H "Authorization: Bearer ${FELT_API_TOKEN}" \
      "https://felt.com/api/v2/maps/${MAP_ID}/layers/${LAYER_ID}"
    import requests
    
    # Your API token should look like this:
    # api_token = "felt_pat_ABCDEFUDQPAGGNBmX40YNhkCRvvLI3f8/BCwD/g8"
    api_token = "<YOUR_API_TOKEN>"
    map_id = "<YOUR_MAP_ID>"
    layer_id = "<YOUR_LAYER_ID>"
    
    r = requests.get(
      f"https://felt.com/api/v2/maps/{map_id}/layers/{layer_id}",
      headers={"Authorization": f"Bearer {api_token}"}
    )
    assert r.ok
    print(r.json())
    import os
    
    from felt_python import get_layer_details
    
    # Setting your API token as an env variable can save
    # you from repeating it in every function call
    os.environ["FELT_API_TOKEN"] = "<YOUR_API_TOKEN>"
    
    map_id = "<YOUR_MAP_ID>"
    layer_id = "<YOUR_LAYER_ID>"
    
    layer_details = get_layer_details(map_id, layer_id)
    current_style = layer_details["style"]

    Understanding layer styles

    Fetching a layer's current style

    Updating an existing layer's style

    the Felt Style Language

    FSL examples

    Status
    Code
    Meaning
    What to do

    401

    unauthorized, invalid_access_token

    Missing, malformed, revoked, or wrong-workspace token. Requests with a valid token for a resource in a different workspace also return 401. Permission failures also return 401, not 403: for example, editing or deleting a map your account can only view. A feature your plan doesn't include also returns 401, with a detail such as "Your plan doesn't support…" or "…need the Platform add-on".

    Check the Authorization: Bearer header and that the token was created in the same workspace as the resource. If the token is fine, ask a workspace admin for the required role on the resource. If detail names a plan or add-on, see .

    403

    forbidden, over_storage_limit, over_processing_limit, over_data_connection_limit, unauthorized

    Your workspace has hit a usage limit (storage, monthly processing, or data connections), or a feature such as layer components or data export isn't on your plan.

    Read detail: it names the limit. Add capacity or upgrade from your workspace's billing settings; see .

    When handling responses in code, print the error body rather than only asserting success — detail almost always tells you exactly what's wrong:

    Each IP address can make 300 requests per minute. Exceeding it returns 429 with the too_many_requests code. Retry with exponential backoff and jitter, and spread bulk work out or batch it (for example, upsert many annotations in one POST /elements call instead of one call per feature).

    List endpoints (GET /projects, GET /library, GET /maps/{map_id}/elements, and so on) currently return all results in a single response — there are no pagination parameters. For very large maps, prefer scoping your reads (for example, listing a single element group) over repeatedly fetching full collections.

    The current API version is v2, served under https://felt.com/api/v2. The machine-readable OpenAPI spec for the exact version in production is always available at:

    {
      "errors": [
        {
          "title": "Not found",
          "detail": "Map not found",
          "code": "not_found",
          "source": { "parameter": "map_id" }
        }
      ]
    }
    r = requests.post(url, headers=headers, json=body)
    if not r.ok:
        print(r.status_code, r.json()["errors"])
        r.raise_for_status()
    GET https://felt.com/api/v2/openapi.json

    Status codes

    Rate limits

    Pagination

    Versioning

    When creating an extension, you automatically have access to a
    object named felt with no setup required. This controller provides all the methods you need to interact with your Felt map, including getViewport, createElement, setLayerStyle, and many more.

    Embed Felt maps in your own applications and control them remotely. This needs the Platform add-on. To show private maps to your app's users without Felt accounts, see Authenticated embeds.

    • A Felt map to embed. Open any map you have access to and grab its ID from the URL: in felt.com/map/Readable-Title-xPV9BqMuYQxmUraVWy9C89BNA, the ID is the trailing part, xPV9BqMuYQxmUraVWy9C89BNA.

    • The map's sharing settings must allow the visitor to view it. Public and unlisted maps work out of the box; for private maps see Authenticated embeds.

    Install the SDK using your preferred package manager:

    Alternatively, load it straight from a CDN in a <script type="module"> — no build step required:

    Create an HTML page with a container element. Give the container an explicit height — an iframe inside a zero-height container renders as an invisible sliver, which is the most common first-run problem:

    Embed a Felt map in your container element and use the SDK to read from it:

    You should see your map load inside the container, with the Felt legend and zoom controls visible. Open the browser console and you should see the layer count logged. If the container stays empty, check that the map ID is correct and that the map's sharing settings allow viewing. If the map appears but Felt.embed rejects after a few seconds, the map's workspace doesn't have the Platform add-on.

    Throughout these docs, code examples assume a controller variable named felt, whether it came from Felt.embed or from the extension environment.

    • General concepts — the mental model: controllers, promises, listeners, and what persists.

    • Controlling maps — viewports, and connecting to existing iframes.

    • Embed options — UI controls and initial viewport.

    • Authenticated embeds — show private maps to your app's users, with server code.

    • — React hooks for the SDK, and the for a quick start.

    Requires the Platform add-on, and included in the free trial. Extensions require Business or Enterprise instead. See Plans, access and limits.

    Extensions

    examples
    Extensions
    // In a Felt extension, the controller is automatically available
    const layers = await felt.getLayers();
    
    // Listen for map events
    felt.onSelectionChange({
      handler: ({ selection }) => console.log("Selection changed:", selection),
    });
    npm install @feltmaps/js-sdk
    import { Felt } from "https://esm.run/@feltmaps/js-sdk";
    <html>
      <head>
        <style>
          #container { height: 500px; }
        </style>
      </head>
      <body>
        <div id="container"></div>
        <script type="module" src="main.js"></script>
      </body>
    </html>
    // main.js
    import { Felt } from "@feltmaps/js-sdk";
    
    const felt = await Felt.embed(
      document.querySelector("#container"),
      "FELT_MAP_ID", // Replace with your map's ID
    );
    
    const layers = await felt.getLayers();
    console.log(`This map has ${layers.length} layers`);

    Embedded maps

    What you'll need

    Installation

    Embed your first map

    Next steps

    FeltController

    Add to .vscode/mcp.json:

    {
      "servers": {
    

    For scripts, CI, or clients without OAuth support, send a workspace API token as a bearer token instead:

    The agent then acts in the workspace the token belongs to, with the permissions of the person who created it.

    Area
    Tools

    Maps and projects

    create_map, get_map, update_map, share_map, delete_map, list_maps, list_projects, get_project, render_map, export_map_image

    Layers

    get_map_layers, get_layer_properties, inspect_layer, update_layer_properties, set_visibility, organize_layers, duplicate_layer_to_map, delete_layer

    Layer groups

    get_layer_group_properties, update_layer_group_properties, set_layer_group_interaction

    Loading data

    import_layer_from_url, prepare_file_upload, upload_contents_to_map, poll_layer_processing_status, refresh_url_layer

    Databases, Felt Server and the library

    Some of these go beyond the REST API: SQL over your layers, spatial analysis, and editing individual features are only available through MCP or the Felt app.

    render_map shows an interactive map inside clients that support MCP Apps, so the agent can show you its work as it goes.

    • Most tools are free to call. generate_fsl, developer_docs and help_center run Felt AI and use your workspace's Felt AI credits. When credits run out, those three wait until the monthly reset and every other tool keeps working.

    • Call who_am_i first to confirm the workspace.

    • Use developer_docs for exact REST, SDK and FSL shapes instead of guessing; it answers from these docs and the API reference.

    • Poll poll_layer_processing_status after an upload or refresh before styling or querying the layer.

    • Changes an agent makes through MCP are saved to the map, so they're visible to everyone who can see it.

    https://felt.com/mcp

    Requires Business or Enterprise, and included in the free trial. See Plans, access and limits.

    Connect

    Model Context Protocol
    claude mcp add --transport http felt https://felt.com/mcp
    {
      "mcpServers": {
        "felt": { "url": "https://felt.com/mcp" }
      }
    }
    {
      "mcpServers": {
        "felt": {
          "url": "https://felt.com/mcp",
          "headers": { "Authorization": "Bearer felt_pat_ABCDEF..." }
        }
      }
    }

    Connect with an API token

    What an agent can do

    Usage

    Tips for agents

    or
    categories
    to be set in
    config
    ). An empty
    legend: {}
    still produces a legend entry using the dataset's geometry and color.

    For continuous (non-stepped) color-by and heatmap legends keyed by index, "0" labels the lowest value and the highest index labels the highest value. Continuous size legends are the historical exception: their indices run inverted, with "0" labeling the maximum, "1" the midpoint, and "2" the minimum.

    The Biodiversity Hotspots layer in Felt has a simple visualization with a legend defined as follows:

    The Plant Hardiness Zones layer in Felt has a categorical visualization with a legend defined as follows:

    The visual display of numeric legends varies based on the style method (stepped or continuous) and the geometry type (point, line, polygon).

    The displayName can be modified in the legend block similar to simple and categorical style types.

    Heatmap legends are defined as follows:

    Notice that the displayName mapping goes from 0 (left value) to 1 (right value)

    The legend block

    "legend": {}
    "legend": {
      "displayName": {
        "13": "13: 60 to 70 °F",
        "12": "12: 50 to 60 °F",
        "11": "11: 40 to 50 °F",
        "10": "10: 30 to 40 °F",
        "9": "9: 20 to 30 °F",
        "8": "8: 10 to 20 °F",
        "7": "7: 0 to 10 °F",
        "6": "6: -10 to 0 °F",
        "5": "5: -20 to -10 °F",
        "4": "4: -30 to -20 °F",
        "3": "3: -40 to -30 °F",
        "2": "2: -50 to -40 °F",
        "1": "1: -60 to -50 °F"
      }
    }
    "legend": {
      "displayName": {
        "0": "5.14 to 19.46",
        "1": "19.46 to 26.43",
        "2": "26.43 to 34.06",
        "3": "34.06 to 45.06",
        "4": "45.06 to 100"
      }
    }
    "legend": {
      "displayName": {
        "0": "2.34M", 
        "1": "714.65K", 
        "2": "33K"
      }
    }
    "legend": {
      "displayName": {
        "0": "Low", 
        "1": "High"
     }
    }

    Simple legend

    Categorical legend

    Numeric legends

    Stepped

    Continuous

    Heatmap legends

    Business (1), Enterprise (unlimited)

    Trial. Every new workspace gets 7 days of Business with Platform, with no credit card. It ends on the Free plan unless you choose a paid one.

    Platform is the add-on for building your own product on Felt. It includes the JS SDK, authenticated embeds, and commercial rights to sell what you build. It works with any paid plan, and the first three months are free.

    Your app's users don't need Felt accounts, seats or viewer spots; each map load counts as a map view. On Team, Platform includes the embed-token endpoint, though not the rest of the REST API.

    Embeds show Felt attribution. Enterprise can remove it with the Custom Branding add-on.

    Free
    Team
    Business
    Enterprise
    Trial

    Map views

    10,000

    25,000

    100,000

    250,000

    25,000

    • Map views count every load of a map: on felt.com, in an embed, or in your app. If you're building an app, this number grows with your users.

    • Processing counts uploads, refreshes and analysis outputs. Each refresh counts the full dataset, so a table refreshed hourly counts about 720 times a month. Streamed vector tiles and Cloud Optimized GeoTIFFs don't count.

    • Felt AI credits are used by Felt AI and the MCP tools that call it (generate_fsl, developer_docs, help_center).

    • Data connections: one connection is one database, warehouse, bucket or STAC catalog, with any number of tables. Public URLs, ArcGIS, WMS/WFS, Google Sheets and SharePoint don't count.

    The REST API also allows 300 requests per minute per IP address; see Errors and rate limits.

    Existing maps keep working. Felt never charges for overage automatically: admins get warnings at 80% and 100%, and can add usage packs from billing settings (not during a trial).

    Limit
    What happens

    Map views

    Public visitors and all embeds see an over-limit page. Workspace members can still open maps.

    Processing or storage

    Uploads and refreshes pause. The API returns 403 with over_processing_limit or over_storage_limit.

    Data connections

    New connections return 403 with over_data_connection_limit.

    Refresh schedule

    A schedule faster than your plan allows returns 422.

    Felt AI credits

    AI requests wait until the 1st; other MCP tools keep working.

    Standard embeds of public or unlisted maps

    Team and up

    JS SDK and authenticated embeds

    Platform add-on, on Team and up

    REST API, webhooks, MCP and Extensions

    Business and Enterprise

    Which plan do I need?

    felt.com/pricing

    Database, warehouse and private cloud bucket connections

    Platform

    Monthly limits

    At a limit

    Uploading files and URLs

    Felt supports a myriad of formats, both as files and hosted URLs, up to 100 GB per file. Check out the full list .

    Uploading a URL

    The easiest way of uploading data into a Felt map via the API is to import from a URL. Here's an example importing all the recent earthquakes from the USGS' live GeoJSON feed:

    # Your API token and map ID should look like this:
    # FELT_API_TOKEN="felt_pat_ABCDEFUDQPAGGNBmX40YNhkCRvvLI3f8/BCwD/g8"
    # MAP_ID="CjU1CMJPTAGofjOK3ICf1D"
    FELT_API_TOKEN
    
    import requests
    
    # Your API token should look like this:
    # api_token = "felt_pat_ABCDEFUDQPAGGNBmX40YNhkCRvvLI3f8/BCwD/g8"
    
    import os
    
    from felt_python import upload_url
    
    # Setting your API token as an env variable can save
    # you from repeating it in every function call
    os.environ["FELT_API_TOKEN"] = "<YOUR_API_TOKEN>"
    
    map_id = "<YOUR_MAP_ID>"
    
    url_upload = upload_url(
        map_id=map_id,
        layer_url="https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.geojson",
        layer_name="USGS Earthquakes",
    )
    layer_id = url_upload["layer_id"]

    Like maps, layers also have unique identifiers. Make sure to take note of them for subsequent calls, like styling a layer or removing it.

    Uploading a file

    Uploading a file is a single function call using the felt-python library.

    Files aren't uploaded to the Felt app — instead, they're uploaded directly to Amazon S3. Therefore, creating a layer from a file on your computer is a two-step process:

    1. Request an upload via the Felt API

    Perform a POST request to receive an S3 presigned URL which you can later upload your files to:

    r = requests.post(
        f"https://felt.com/api/v2/maps/{map_id}/upload",
        headers={
            "Authorization": f"Bearer {api_token}",
            "Content-Type": "application/json",
        },
        json={"name": "My new layer"},
    )
    assert r.ok
    layer_id = r.json()["layer_id"]
    
    presigned_upload = r.json()
    from felt_python import upload_file
    
    file_name = "<YOUR_FILE_WITH_EXTENSION>" # Example: regions.geojson
    
    upload_file(
      map_id=map_id,
      file_name=file_name,
      layer_name="My new layer",
    )

    2. Upload your file(s) to Amazon S3

    # This code is a continuation of the previous Python code block
    # and assumes you already have a "presigned_upload" variable
    
    file_name = "<YOUR_FILE_WITH_EXTENSION>" # Example: regions.geojson
    
    url = presigned_upload["url"]
    presigned_attributes = presigned_upload["presigned_attributes"]
    # A 204 response indicates that the upload was successful
    with open(file_name, "rb") as file_obj:
        output = requests.post(
            url,
            # Order is important, file should come at the end
            files={**presigned_attributes, "file": file_obj},
        )

    You can check the upload status of a layer by querying it. The response includes two useful fields:

    • progress — a number from 0 to 100, the percentage complete. Typed as a float in the API spec, so don't assume an integer.

    • status — one of uploading, processing, completed, or failed.

    Poll until status is completed (or failed). A layer must reach completed before it can be styled or .

    Layer filters

    The Felt SDK allows you to filter which features are visible in a layer using expressions that evaluate against feature properties. Filters can come from different sources and are combined to determine what's visible.

    Filters work on layers uploaded to Felt and on layers created at runtime with createLayersFromGeoJson.

    By understanding how filters work and combine, you can create dynamic views of your data that respond to user interactions and application state.

    Understanding filter sources

    Layer filters can come from multiple sources, which are combined to create the final filter:

    1. Style filters: Set by the map creator in the Felt UI

    2. Component filters: Set through interactive legend components

    3. Ephemeral filters: Set temporarily through the SDK

    You can inspect these different filter sources using getLayerFilters:

    Use setLayerFilters to apply ephemeral filters to a layer:

    This replaces any ephemeral filters currently set on the layer. You can also pass an optional note — a message shown on the layer legend while the filter is applied, along with a reset button that lets the user clear it:

    The following operators are available:

    • Comparison: lt (less than), gt (greater than), le (less than or equal), ge (greater than or equal), eq (equal), ne (not equal)

    • Text: cn (contains), nc

    See for more details on filter operators.

    You can combine multiple conditions using boolean operators:

    Here's a common use case where we filter a layer to show only features that match a property of a selected feature:

    1. Clear filters: Set filters to null to remove them entirely:

    1. Check existing filters: Remember that your ephemeral filters combine with existing style and component filters:

    1. Type safety: Use TypeScript to ensure your filter expressions are valid:

    Examples

    Explore examples of what you can build with the Felt SDK. These examples showcase different approaches to creating interactive map experiences - from extensions that run directly within Felt to embedded maps in custom applications.

    Extensions

    Extensions run directly within Felt maps, giving you immediate access to all SDK functionality. Here are some examples built using AI assistance:

    Commuter patterns

    Visualize transportation patterns by drawing lines to destination counties on click. Features travel mode options and filtering capabilities to analyze commuting data across different regions. View the map here.

    Neighborhood comparison

    Compare neighborhoods side-by-side with automated analysis of land use patterns. This tool helps users understand demographic and geographic differences between areas. View the map here.

    Animated data

    Bring geographic data to life with animations showing the flow of the Mississippi River Basin from headwaters to the Gulf of Mexico, demonstrating how to create compelling temporal visualizations. View the map here.

    Story map

    Guide users through agricultural regions with an interactive narrative experience that combines storytelling with geographic exploration. View the map here.

    Embedded maps

    Embed Felt maps in your own applications and control them with the SDK. Here are some examples built with React and hosted on CodeSandbox:

    This interactive application leverages the Tool API to enable users to draw custom geometries that retrieve filtered GeoJSON data from an ESRI FeatureService. The application creates a dynamically styled GeoJSON layer to visualize solar potential data, helping users identify optimal locations for solar installations. View the app and code .

    Create powerful business intelligence tools by combining Felt's layer statistics with popular charting libraries. This example demonstrates how to build interactive visualizations that leverage layer filters. View the app and code .

    Enhance map usability with a custom legend that extracts and uses styling information to generate SVG icons. The code demonstrates how to build a nested folder structure with visibility toggles using layer filters, providing a pattern for organizing complex data layers. View the app and code .

    Build comprehensive multi-view dashboards by embedding multiple Felt maps on a single page. This example demonstrates how to create synchronized map views that communicate with each other, enabling users to simultaneously view different geographic contexts or zoom levels of the same data. View the app and code .

    Create engaging interactive experiences with customizable map lenses that reveal different data layers or styling as users explore. This technique allows for compelling before/after comparisons or the ability to highlight specific data attributes within a defined area. View the app and code .

    Provides a pattern for integrating third-party geospatial APIs with Felt maps. This example demonstrates how to make API requests based on annotation geometry and map interactions, process the returned data, and visualize isochrones as dynamic layers. View the app and code .

    Simple visualizations

    Simple visualizations are those that show each feature in a vector dataset using the same style or the image as it is in raster ones.

    Simple visualizations must define "type": "simple" and a single value for each supported style and label properties.

    Example

    The Airports layer in Felt is an example of a simple visualization using a vector dataset

    and is defined by the following style:

    {
      "attributes": {
        "ele": {"displayName": "Elevation (meters)"},
        "faa": {"displayName": "FAA Code"},
        "iata": {"displayName": "IATA Code"},
        "icao": {"displayName": "ICAO Code"},
        "name": {"displayName": "Name"},
        "name_en": {"displayName": "Name (EN)"},
        "wikipedia": {"displayName": "Wikipedia entry"}
      },
      "config": {"labelAttribute": ["name_en", "name"]},
      "filters": [["name", "isnt", null], "and", ["name", "ne", ""]],
      "label": {
        "color": "hsl(40,30%,40%)",
        "fontSize": {"linear": [[12, 12], [20, 20]]},
        "fontStyle": "Normal",
        "fontWeight": 400,
        "haloColor": "hsl(40,20%,85%)",
        "haloWidth": 1.5,
        "justify": "auto",
        "letterSpacing": 0.1,
        "lineHeight": 1.2,
        "maxLineChars": 10,
        "maxZoom": 23,
        "minZoom": 10,
        "offset": [8, 0],
        "padding": 10,
        "placement": ["E", "W"]
      },
      "legend": {},
      "paint": {
        "color": "hsl(40,30%,80%)",
        "highlightColor": "#EA3891",
        "highlightStrokeColor": "#EA3891",
        "highlightStrokeWidth": {"linear": [[3, 0], [20, 2]]},
        "isSandwiched": false,
        "opacity": 1,
        "size": {"linear": [[3, 1], [20, 6]]},
        "strokeColor": "hsl(40,20%,55%)",
        "strokeWidth": {"linear": [[3, 0.5], [20, 2]]}
      },
      "version": "2.3.1"
    }

    The {"linear": [[zoom, value], …]} objects used for size, fontSize, and strokeWidth above are interpolators — values that change with zoom level. See and for the full syntax; plain numbers work anywhere an interpolator does.

    Raster layers can also use simple to display imagery as-is — see Raster visualizations.

    More patterns

    Icon markers (points). Set iconImage to draw points as icons; the icon takes the layer's color and size. See Icons for the full catalog.

    Road-style casing (lines). A renders last-to-first, so the wider casing layer goes second (underneath) and the narrower fill goes first (on top).

    Categorical visualizations

    Categorical visualizations use a categorical attribute and the categories within it to apply styling to discrete categories of the attribute. (On raster datasets, categories are raw pixel values instead — see Raster visualizations.)

    Categorical visualizations are defined using "type": "categorical" and, for every supported style and label property used, either a single value that will apply to all categories or an array of different values for each category.

    You can list the categories explicitly, or use a shortcut when you don't know the exact values: {"type": "top", "count": N} keeps the N most common values (vector), and {"type": "all"} covers every unique pixel value (raster). When showOther: true is combined with an explicit categories array, paint/label arrays need N + 1 values — the extra one styles the "Other" bucket. For colors, prefer a shortcut over a hand-built array.

    The Global Power Plants layer in Felt is an example of a categorical layer on a vector dataset

    and is defined by the following style

    Notice that we are saying that the primary_fuel data attribute will be used to categorize elements and that the possible values of that attribute that we are interested in are "Solar", "Hydro", "Wind", "Gas", "Coal", "Oil" and "Nuclear" (colors are assigned in the same order). Also notice that we are defining either a single value that will apply to all categories (i.e. size) or a value for each category (i.e. color)

    Palette shortcut + "top N". When you don't know the exact category values, let Felt pick the most common ones and color them from a categorical palette:

    A different icon per category. iconImage and the paint arrays follow the same N (or N + 1 with showOther) pattern as color:

    Styling "Other" separately. With showOther: true, the trailing array element targets the "Other" bucket — here it is made smaller and more transparent than the named categories:

    H3

    H3 visualization is a way to aggregate point data into a grid of H3 cells.

    H3 visualizations are defined using "type": "h3" . They generally share the same properties and behaviors as color range visualizations for polygons. Properties of specific relevance to H3 are:

    Field name
    Description

    aggregation

    The aggregation method that will be used on points within each cell. Supported values are count (default), sum, min, max, and mean .

    binMode

    fixed (default), low, medium, high, or auto. fixed keeps the cell resolution constant at all zooms; the other modes pick a resolution from the current zoom, where low produces larger hexagons and high smaller ones (auto behaves like medium).

    This is an example of an H3 visualization

    defined with the following style

    aggregation: "count" doesn't need a numericAttribute — it counts the points in each cell:

    H3 cells display aggregated values, not raw feature attributes. Their popups reference special attribute names — "felt:cluster_size" for the feature count, and "felt:sum:column", "felt:mean:column", "felt:min:column", "felt:max:column" for aggregates. If no popup is provided, Felt auto-generates sensible stats from the aggregation type. See .

    Classification methods

    Numeric, H3, and raster (numeric and tinted hillshade) visualizations all turn a range of values into discrete classes (or a smooth gradient) using the steps field in the config block. The classification method decides where the breaks between classes fall.

    Methods

    Method
    What it does
    Best for

    continuous

    Smooth gradient, no discrete classes

    All shortcut methods except continuous require a count. Raster algebra visualizations support only continuous and equal-intervals.

    There are two ways to define steps.

    Shortcut (recommended when you don't know the data's distribution). Name a method and a class count and let Felt compute the break points from the data:

    For a smooth gradient, use the continuous shortcut:

    Explicit break points (when you know the values you want). Provide the break points directly:

    • Classed: N break points produce N − 1 classes. An explicit color or size array must therefore have exactly N − 1 entries. (A palette shortcut such as @galaxy is expanded for you.)

    • Continuous: provide 2 or more colors and Felt interpolates between them across the full value range. For proportional symbols, give size: [min, max]

    See for full color and size examples, and for palette choices.

    Interpolators

    Interpolators

    Interpolators are functions that use the current zoom level to get you a value. The following interpolators are currently supported:

    Step

    { "step": [output0, Stops[]] }: Computes discrete results by evaluating a piecewise-constant function defined by stops on a given input. Returns the output value of the stop with a stop input value just less than the input one. If the input value is less than the input of the first stop, output0 is returned.

    Stops are defined as pairs of [zoom, value] where zoom is the minimum zoom level where value is returned and value can be number | string | boolean. Note that stops need to be defined by increasing zoom level.

    { "step": ["hsl(50,5%,72%)", [[9, "hsl(10,75%,75%)"]]] }
    // If zoom level is less than 9, "hsl(50,5%,72%)" will be returned
    // If zoom level is equal or higher than 9, "hsl(10,75%,75%)" will be returned
    

    The following image shows the behavior of this definition:

    { "linear": Stops[] }: Linearly interpolates between stop values less than or equal and greater than the input value

    The following image shows the behaviour of this definitions

    { "linear": [number, number] }: Expands to { "linear": [[minZoom, number], [maxZoom, number]] }

    Color linear interpolation is done in the HCL color-space

    { "exp": [number, Stops[]] }: Exponentially interpolates between output stop values less than or equal and greater than the input value. The base parameter controls the rate at which output increases where higher values increase the output value towards the end of the range, lower values increase the output value towards the start of the range, and a base 1 interpolates linearly.

    The used value is computed as follows : (Math.pow(base, progress) - 1) / (Math.pow(base, difference) - 1)

    The following images shows the behaviour of this definition

    { "cubicbezier": [number, number, number, number, Stops[]] }: Interpolates using the bezier curve defined by the curve control points.

    The following images shows the behaviour of this definition

    Getting started

    The Felt REST API allows you to programmatically interact with the Felt platform, enabling you to integrate Felt's powerful mapping capabilities into your own workflows and pipelines.

    You are able to create and manipulate Maps, Layers, Annotations, Sources, Projects and more.

    All Felt API endpoints are hosted at the following base URL:

    All calls to the Felt API must be authenticated. The easiest way to authenticate your API calls is by creating an API token and providing it as a Bearer token in the request header.

    You can create an API token in the :

    Learn more about API tokens here:

    The easiest way to interact with the Felt API is by using our felt-python SDK. You can install it with the following command:

    For map management beyond creation — reading details, deleting, moving between projects — see .

    Creating a new map is as simple as making a POST request to the maps endpoint.

    Authenticated embeds

    An authenticated embed shows a private Felt map inside your own application, to people who don't have Felt accounts. Your backend mints a short-lived embed token for the map, and your page passes it to Felt.embed. Your users sign in to your app the way they already do. Felt never sees their passwords, you don't create Felt accounts for them, and you don't sync users or permissions between the two systems: your app decides who gets a token.

    1. A signed-in user of your app opens a page with a map.

    2. Your server decides which Felt map that user may see, then calls the Felt API to mint an embed token for that map.

    Refreshing live data layers

    It's common to have data update on a regular basis, such as every week or every month. Instead of having to re-upload and style the new data, it can be very convenient to simply refresh a layer using a new data source.

    Just like , refreshing a layer with a new file is a two-step process:

    Perform a POST request to receive an S3 presigned URL which you can later upload your files to:

    Similar to , refreshing an existing URL layer is just a matter of making a single POST request. The refresh re-fetches the layer's existing import URL — the request takes no body, so the URL itself cannot be changed during a refresh:

    Events reference

    Every listener on the Felt controller follows the same pattern: you pass a handler (and sometimes an options object scoping the listener to a specific entity), and the call returns an unsubscribe function.

    Always call the unsubscribe function when your UI unmounts or the listener is no longer needed.

    Listener
    Scoping options
    Handler receives

    Getting started

    The Felt Style Language (FSL) is a JSON-based specification for styling data layers in Felt — comparable to the Mapbox Style Spec, but at the layer level. A single JSON object describes how a layer is drawn (paint), labeled (label), classified (config), and presented in popups and legends.

    The same style object works in three places:

    • In the Felt app — open a layer's overflow menu and choose Actions > Edit style language to view and edit the layer's FSL directly. (The neighbouring Actions > Edit styles opens the visual style editor, which has no JSON view.)

    The config block

    The config block contains configuration options for a given visualization.

    These are the fields that each config block can contain:

    Field name
    Description

    Icons

    Point layers can be drawn as icons instead of plain circles. Set iconImage in the paint block to a built-in icon slug (or an emoji), and the icon takes on the layer's color and size.

    Icons work in , , and point visualizations. In categorical and numeric styles, iconImage (and the other paint properties) may be an array so each category or class gets its own marker.

    Property
    Type
    "felt": { "type": "http", "url": "https://felt.com/mcp" }
    }
    }

    list_data_sources, browse_data_source_tables, inspect_data_source_table_columns, get_tabular_data_from_data_source, create_layer_from_data_source, add_data_source_table_to_map, refresh_data_source_layer, list_felt_servers, browse_felt_server, browse_felt_library

    SQL and analysis

    get_tabular_data_from_felt_layers, create_layer_from_felt_layers, get_sql_guidance

    Editing data

    edit_features, edit_layer_attributes, get_sql_editing_guidance

    Annotations

    list_annotations, upsert_annotations, delete_annotation

    Styling and help

    generate_fsl, developer_docs, help_center, who_am_i

    Processing

    —

    5 GB

    25 GB

    100 GB

    5 GB

    Storage

    —

    20 GB

    100 GB

    400 GB

    20 GB

    Felt AI credits

    —

    250

    1,000

    2,500

    250

    Fastest refresh

    —

    Daily

    Hourly

    15 minutes

    Hourly

    H3
    Raster visualizations
    Integrating with React
    React starter repo

    404

    not_found

    The resource doesn't exist. The source.parameter field names the offending ID.

    Verify the ID. Remember that map IDs come from the map URL, while layer IDs come from API responses.

    422

    invalid

    The request body or parameters failed validation. source.pointer identifies the invalid field.

    Fix the field named in detail / source and retry.

    429

    too_many_requests

    You hit the per-IP request throttle. See below.

    Back off and retry.

    Plans, access and limits
    Plans, access and limits

    Rooftop solar potential

    Sales dashboard

    Custom legend with nested folders

    Inset maps

    Lens map

    Isochrones

    here
    here
    FSL
    here
    here
    here
    here
    =
    "
    <YOUR_API_TOKEN>
    "
    MAP_ID="<YOUR_MAP_ID>"
    curl \
    -X POST \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer ${FELT_API_TOKEN}" \
    "https://felt.com/api/v2/maps/${MAP_ID}/upload" \
    -d '{"import_url":"https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.geojson", "name": "USGS Earthquakes"}'
    api_token = "<YOUR_API_TOKEN>"
    map_id = "<YOUR_MAP_ID>"
    r = requests.post(
    f"https://felt.com/api/v2/maps/{map_id}/upload",
    json={
    "import_url":"https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.geojson",
    "name": "USGS Earthquakes",
    },
    headers={"Authorization": f"Bearer {api_token}"}
    )
    assert r.ok
    layer_id = r.json()["layer_id"]

    Monitoring progress

    refreshed
    in our Help Center
    (does not contain)
  • Boolean: and, or

  • Lookup: in (contained in list), ni (not contained in list)

  • Null checks: is / isnt (match against null)

  • Setting filters

    Filter operators

    Compound filters

    Practical example: Filtering by selected feature

    Best practices

    the filters block
    paint array
    Zoom-based styling
    Interpolators

    Example

    More patterns

    Lines support color variation per category but not per-category icons. For categorical polygons, color is the only visual variable — keep to 5–7 categories so large filled areas stay distinguishable. Lines can still use a paint array for casing under each colored category.

    @palette

    baseBinLevel

    Required. If binMode is fixed, this is the H3 cell resolution that the map will use. H3 cells vary from resolution 0 (largest) to resolution 15 (smallest). In the zoom-adaptive modes, this is the reference resolution used for calculating class breaks — you will get best results choosing a resolution that matches the fixed resolution you would choose for the most commonly-viewed zoom of your map.

    numericAttribute

    The numeric column to aggregate. Required unless aggregation is count , in which case the column choice is irrelevant.

    Aggregation popups

    H3 cells are rendered as polygons, so size has no effect on them — control cell size with baseBinLevel (H3 resolution) and binMode (how that resolution adapts to zoom). The attributes block renames the source column, so "revenue" makes a popup entry read "Sum of Revenue ($)".

    the popup block
    and sizes scale smoothly between those two values.

    Proportional symbols, smooth color ramps

    jenks

    Natural breaks — minimizes variance within each class

    Most cases; a good starting point

    quantiles

    Equal number of features in each class

    Balanced representation, evenly distributed data

    equal-intervals

    Equal-sized value bins

    When the value ranges themselves matter

    stddev

    Classes in 1σ steps with the middle class centered on the mean

    Data with a near-normal distribution

    geo-intervals

    Break points in a geometric progression between min and max

    Multiplicative, strongly skewed data (values must be non-negative)

    Specifying steps

    How breaks map to colors and sizes

    For choropleths and other classed thematic maps, 5–7 classes usually reads best. For right-skewed data (common with population or income), prefer quantiles or jenks over equal-intervals. When you have the data's min/max on hand, use them to inform the method and breaks.

    Numeric visualizations
    Colors & palettes

    Linear

    Exponential

    Cubic Bezier

    Graph showing a Step interpolator function
    Graph showing a Linear interpolator function

    Layers imported from a URL or a connected data source can refresh on a schedule, so you don't have to call the refresh endpoint yourself. Set refresh_period with POST /api/v2/maps/{map_id}/layers, which takes a list of layer updates:

    refresh_period takes one of 15 min, 30 min, hour, 3 hours, 6 hours, 12 hours, day, week, month or disabled. Because the body is a list, you can set the schedule for many layers on a map in one call.

    The fastest schedule depends on your plan:

    Plan
    Fastest schedule

    Team

    day

    Business

    hour

    Enterprise

    15 min

    Asking for a faster schedule than your plan allows returns 422. Each refresh counts the full dataset toward your monthly processing allowance, so choose the slowest schedule that meets your needs; see Plans, access and limits.

    The layer's response (GET /api/v2/maps/{map_id}/layers/{layer_id}) shows the schedule's state:

    • refresh_status is active, paused or disabled. Felt pauses a schedule after repeated failures and sets paused_reason to consecutive_failures.

    • next_refresh_at is when the next refresh will run. If a downgrade left refresh_period faster than the plan allows, the layer refreshes at the plan's fastest rate and next_refresh_at reflects that.

    • last_refreshed_at is when the layer's data last changed, from a scheduled or manual refresh or a direct edit.

    A layer must have finished uploading successfully (status of completed) before it can be refreshed — see Monitoring progress. Refreshing a layer that is still in its initial processing returns 404 with the detail "Layer still in initial processing".

    Refreshing a layer with a file

    Refreshing a file layer is a single function call using the felt-python library.

    1. Request a refresh via the Felt API

    2. Upload your file(s) to Amazon S3

    Refreshing a layer with a URL

    regular file uploads
    a URL upload
    import requests
    
    # Your API token should look like this:
    # api_token = "felt_pat_ABCDEFUDQPAGGNBmX40YNhkCRvvLI3f8/BCwD/g8"
    api_token = "<YOUR_API_TOKEN>"
    map_id = "<YOUR_MAP_ID>"
    layer_id = "<YOUR_LAYER_ID>"
    
    r = requests.post(
      f"https://felt.com/api/v2/maps/{map_id}/layers/{layer_id}/refresh",
      headers={"Authorization": f"Bearer {api_token}"}
    )
    assert r.ok
    presigned_upload = r.json()
    import os
    
    from felt_python import refresh_file_layer
    
    # Setting your API token as an env variable can save
    # you from repeating it in every function call
    os.environ["FELT_API_TOKEN"] = "<YOUR_API_TOKEN>"
    
    map_id = "<YOUR_MAP_ID>"
    layer_id = "<YOUR_LAYER_ID>"
    new_file_name = "<PATH_TO_NEW_FILE>"
    
    refresh_file_layer(
        map_id=map_id,
        layer_id=layer_id,
        file_name=new_file_name
    )

    Scheduled refresh

    # Nothing! Uploading a file is a single step with the felt-python library
    curl \
      "https://felt.com/api/v2/maps/${MAP_ID}/layers/${LAYER_ID}" \
      -H "Authorization: Bearer ${FELT_API_TOKEN}"
    r = requests.get(
        f"https://felt.com/api/v2/maps/{map_id}/layers/{layer_id}",
        headers={"Authorization": f"Bearer {api_token}"},
    )
    assert r.ok
    print(r.json()["progress"])
    from felt_python import get_layer_details
    
    get_layer_details(map_id, layer_id)["progress"]
    const filters = await felt.getLayerFilters("layer-1");
    console.log(filters.style);      // Base filters from the layer style
    console.log(filters.components); // Filters from legend components
    console.log(filters.ephemeral);  // Filters set through the SDK
    console.log(filters.combined);   // The final result of combining all filters
    felt.setLayerFilters({
      layerId: "layer-1",
      filters: ["POPULATION", "gt", 1000000]
    });
    felt.setLayerFilters({
      layerId: "layer-1",
      filters: ["POPULATION", "gt", 1000000],
      note: "Showing cities with over 1M residents",
    });
    felt.setLayerFilters({
      layerId: "layer-1",
      filters: [
        ["POPULATION", "gt", 1000000],
        "and",
        ["COUNTRY", "eq", "USA"]
      ]
    });
    // Listen for selection changes
    felt.onSelectionChange({
      handler: async ({ selection }) => {
        // Find the first selected feature
        const selectedFeature = selection.find(node => node.type === "feature");
        
        if (selectedFeature) {
          // Get the state code from the selected feature
          const stateCode = selectedFeature.entity.properties.STATE_CODE;
          
          // Filter the counties layer to show only counties in the selected state
          felt.setLayerFilters({
            layerId: "counties-layer",
            filters: ["STATE_CODE", "eq", stateCode]
          });
        } else {
          // Clear the filter when nothing is selected
          felt.setLayerFilters({
            layerId: "counties-layer",
            filters: null
          });
        }
      }
    });
    felt.setLayerFilters({
      layerId: "layer-1",
      filters: null
    });
    const filters = await felt.getLayerFilters("layer-1");
    
    // Check if there are any style filters before adding ephemeral ones
    if (filters.style) {
      console.log("This layer already has style filters");
    }
    import type { Filters } from "@feltmaps/js-sdk";
    
    const filter: Filters = ["POPULATION", "gt", 1000000];
    felt.setLayerFilters({
      layerId: "layer-1",
      filters: filter
    });
    {
      "version": "2.3.1",
      "type": "simple",
      "filters": ["status", "in", ["active"]],
      "paint": {
        "iconImage": "hospital",
        "iconFrame": "frame-circle",
        "color": "#E74C3C",
        "size": 4,
        "opacity": 0.9,
        "isClickable": true,
        "isHoverable": true
      },
      "legend": {}
    }
    {
      "version": "2.3.1",
      "type": "simple",
      "config": {"labelAttribute": ["name"]},
      "paint": [
        {"color": "#FFFFFF", "size": 4, "lineCap": "round", "lineJoin": "round", "isClickable": true},
        {"color": "#374151", "size": 8, "lineCap": "round", "lineJoin": "round"}
      ],
      "label": {
        "color": "auto",
        "haloColor": "auto",
        "haloWidth": 2,
        "placement": "Above",
        "minZoom": 12
      },
      "legend": {}
    }
    {
      "version": "2.3.1",
      "type": "categorical",
      "config": {
        "categoricalAttribute": "primary_fuel",
        "categories": ["Solar", "Hydro", "Wind", "Gas", "Coal", "Oil", "Nuclear"],
        "showOther": false
      },
      "legend": {"displayName": {}},
      "attributes": {
        "capacity_mw": {"displayName": "Capacity (MW)"},
        "name": {"displayName": "Name"},
        "primary_fuel": {"displayName": "Primary Fuel"}
      },
      "paint": {
        "color": [
          "#E5C550",
          "#7AB6C2",
          "#AB71A4",
          "#CC615C",
          "#AD7B68",
          "#EB9360",
          "#DEA145"
        ],
        "isSandwiched": false,
        "opacity": 1,
        "size": [{"linear": [[3, 1.5], [20, 8]]}]
      }
    }
    {
      "version": "2.3.1",
      "type": "categorical",
      "config": {
        "categoricalAttribute": "fuel_type",
        "categories": {"type": "top", "count": 10},
        "showOther": true
      },
      "paint": {
        "color": "@catPalette4",
        "size": 4,
        "strokeColor": "auto",
        "strokeWidth": 1,
        "opacity": 0.9,
        "isClickable": true
      },
      "legend": {"displayName": "auto"}
    }
    {
      "version": "2.3.1",
      "type": "categorical",
      "config": {
        "categoricalAttribute": "facility_type",
        "categories": ["hospital", "school", "fire_station"],
        "showOther": true
      },
      "paint": {
        "iconImage": ["hospital", "school", "fire", "dot"],
        "iconFrame": "frame-circle",
        "color": ["#E74C3C", "#3498DB", "#E67E22", "#95A5A6"],
        "size": 4,
        "opacity": 0.9,
        "isClickable": true
      },
      "legend": {
        "displayName": {
          "hospital": "Hospitals",
          "school": "Schools",
          "fire_station": "Fire Stations"
        }
      }
    }
    {
      "version": "2.3.1",
      "type": "categorical",
      "config": {
        "categoricalAttribute": "status",
        "categories": ["active", "pending", "closed"],
        "showOther": true
      },
      "paint": {
        "color": ["#22C55E", "#F59E0B", "#EF4444", "#9CA3AF"],
        "size": [8, 8, 8, 4],
        "opacity": [0.9, 0.9, 0.9, 0.5],
        "strokeColor": "auto",
        "strokeWidth": 1
      },
      "legend": {"displayName": "auto"}
    }
    {
      "config": {
        "steps": {"type": "quantiles", "count": 5},
        "aggregation": "sum",
        "binMode": "fixed",
        "baseBinLevel": 3,
        "numericAttribute": "capacity_mw"
      },
      "paint": {"color": "@riverine"},
      "type": "h3",
      "version": "2.3.1",
      "label": {},
      "legend": {"displayName": "auto"}
    }
    {
      "version": "2.3.1",
      "type": "h3",
      "config": {
        "aggregation": "count",
        "baseBinLevel": 4,
        "binMode": "medium",
        "steps": {"type": "continuous"}
      },
      "paint": {"color": "@galaxy", "opacity": 0.85, "strokeColor": "auto", "strokeWidth": 1},
      "legend": {"displayName": "auto"}
    }
    {
      "version": "2.3.1",
      "type": "h3",
      "config": {
        "numericAttribute": "revenue",
        "aggregation": "sum",
        "baseBinLevel": 5,
        "binMode": "medium",
        "steps": {"type": "jenks", "count": 5}
      },
      "paint": {"color": "@copper", "opacity": 0.85, "strokeColor": "auto", "strokeWidth": 1, "isClickable": true},
      "popup": {
        "titleAttribute": "felt:sum:revenue",
        "keyAttributes": ["felt:cluster_size", "felt:mean:revenue", "felt:min:revenue", "felt:max:revenue"]
      },
      "attributes": {"revenue": {"displayName": "Revenue ($)", "format": {"thousandSeparated": true, "mantissa": 0}}},
      "legend": {"displayName": "auto"}
    }
    {
      "config": {
        "numericAttribute": "population_density",
        "steps": {"type": "jenks", "count": 5}
      }
    }
    {
      "config": {
        "numericAttribute": "temperature",
        "steps": {"type": "continuous"}
      }
    }
    {
      "config": {
        "numericAttribute": "magnitude",
        "steps": [0, 3, 5, 7, 9]
      }
    }
    { "step": [0, [[0, 0], [100, 100]]]} // Blue
    { "step": [0, [[0, 0], [50, 50], [100, 100]]]} // Red
    { "step": [0, [[0, 0], [25, 25], [50, 50], [75, 75], [100, 100]]]} // Yellow
    
    {
      "linear": [
        [8, 10],
        [14, 15],
        [20, 21]
      ]
    }
    // If zoom level is less than 8, 10 is returned
    // If zoom level is greater or equal than 8 but less than 14, a value linearly interpolated
    // between 10 and 15 is returned
    // If zoom level is greater or equal than 14 but less than 20, a value linearly interpolated // between 15 and 21 is returned
    // If zoom level is greater or equal than 20, 21 is returned
    
    { "linear": [[0, 0], [100, 100]]} // Blue
    { "linear": [[0, 0], [50, 50], [100, 100]]} // Red
    { "linear": [[0, 0], [25, 25], [50, 50], [75, 75], [100, 100]]} // Yellow
    
    { "linear": [8, 10] }
    // If minZoom is defined as 3 and maxZoom is defined as 20:
    // If zoom level is less than 3, 8 is returned
    // If zoom level is between 3 and 20, a value linearly interpolated between 8 and 10 is
    // returned
    // If zoom level is greater or equal than 20, 10 is returned
    
    {
      "exp": [
        0.25,
        [
          [0, 25],
          [10, 100]
        ]
      ]
    }
    // If zoom level is less than 0, 25 is returned
    // If zoom level z is between 0 and 10, an interpolation factor is computed between 0 and 10
    // and then it's used to interpolate between 25 and 100
    // If zoom level is equal or higher than 10, 100 will be returned
    
    { "exp": [0.25, [[0, 0], [100, 100]]]} // Blue
    { "exp": [0.25, [[0, 0], [50, 50], [100, 100]]]} // Red
    { "exp": [0.25, [[0, 0], [25, 25], [50, 50], [75, 75], [100, 100]]]} // Yellow
    { "exp": [0.5, [[0, 0], [100, 100]]]} // Blue
    { "exp": [0.5, [[0, 0], [50, 50], [100, 100]]]} // Red
    { "exp": [0.5, [[0, 0], [25, 25], [50, 50], [75, 75], [100, 100]]]} // Yellow
    { "exp": [0.75, [[0, 0], [100, 100]]]} // Blue
    { "exp": [0.75, [[0, 0], [50, 50], [100, 100]]]} // Red
    { "exp": [0.75, [[0, 0], [25, 25], [50, 50], [75, 75], [100, 100]]]} // Yellow
    { "exp": [1, [[0, 0], [100, 100]]]} // Blue
    { "exp": [1, [[0, 0], [50, 50], [100, 100]]]} // Red
    { "exp": [1, [[0, 0], [25, 25], [50, 50], [75, 75], [100, 100]]]} // Yellow
    { "exp": [1.25, [[0, 0], [100, 100]]]} // Blue
    { "exp": [1.25, [[0, 0], [50, 50], [100, 100]]]} // Red
    { "exp": [1.25, [[0, 0], [25, 25], [50, 50], [75, 75], [100, 100]]]} // Yellow
    { "exp": [2, [[0, 0], [100, 100]]]} // Blue
    { "exp": [2, [[0, 0], [50, 50], [100, 100]]]} // Red
    { "exp": [2, [[0, 0], [25, 25], [50, 50], [75, 75], [100, 100]]]} // Yellow
    { "cubicbezier": [0.25, 0, 0.75, 1.5, [[0, 0], [100, 100]]]} // Blue
    { "cubicbezier": [0.25, 0, 0.75, 1.5, [[0, 0], [50, 50], [100, 100]]]} // Red
    { "cubicbezier": [0.25, 0, 0.75, 1.5, [[0, 0], [25, 25], [50, 50], [75, 75], [100, 100]]]} // Yellow
    import requests
    
    # Your API token and map ID should look like this:
    # api_token = "felt_pat_ABCDEFUDQPAGGNBmX40YNhkCRvvLI3f8/BCwD/g8"
    api_token = "<YOUR_API_TOKEN>"
    map_id = "<YOUR_MAP_ID>"
    layer_id = "<YOUR_LAYER_ID>"
    
    r = requests.post(
      f"https://felt.com/api/v2/maps/{map_id}/layers/{layer_id}/refresh",
      headers={"Authorization": f"Bearer {api_token}"}
    )
    assert r.ok
    print(r.json())
    from felt_python import refresh_url_layer
    
    refresh_url_layer(map_id, layer_id)
    curl -X POST \
      -H "Authorization: Bearer ${FELT_API_TOKEN}" \
      -H "Content-Type: application/json" \
      -d '[{"id": "'"${LAYER_ID}"'", "refresh_period": "hour"}]' \
      "https://felt.com/api/v2/maps/${MAP_ID}/layers"
    import os
    import requests
    
    r = requests.post(
        f"https://felt.com/api/v2/maps/{map_id}/layers",
        headers={"Authorization": f"Bearer {os.environ['FELT_API_TOKEN']}"},
        json=[{"id": layer_id, "refresh_period": "hour"}],
    )
    r.raise_for_status()
    # This code is a continuation of the previous Python code block
    # and assumes you already have a "presigned_upload" variable
    
    file_name = "<YOUR_FILE_WITH_EXTENSION>"  # Example: regions.geojson
    
    url = presigned_upload["url"]
    presigned_attributes = presigned_upload["presigned_attributes"]
    # A 204 response indicates that the upload was successful
    with open(file_name, "rb") as file_obj:
        output = requests.post(
            url,
            # Order is important, file should come at the end
            files={**presigned_attributes, "file": file_obj},
        )
    # Nothing! Refreshing a file layer is a single step with the felt-python library
    # Your API token and map ID should look like this:
    # FELT_API_TOKEN="felt_pat_ABCDEFUDQPAGGNBmX40YNhkCRvvLI3f8/BCwD/g8"
    FELT_API_TOKEN="<YOUR_API_TOKEN>"
    MAP_ID="<YOUR_MAP_ID>"
    LAYER_ID="<YOUR_LAYER_ID>"
    
    curl \
      -X POST \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer ${FELT_API_TOKEN}" \
      "https://felt.com/api/v2/maps/${MAP_ID}/layers/${LAYER_ID}/refresh"
    # Your API token should look like this:
    # FELT_API_TOKEN="felt_pat_ABCDEFUDQPAGGNBmX40YNhkCRvvLI3f8/BCwD/g8"
    FELT_API_TOKEN="<YOUR_API_TOKEN>"
    
    curl \
      -X POST \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer ${FELT_API_TOKEN}" \
      "https://felt.com/api/v2/maps" \
      -d '{"title": "My newly created map"}'
    import requests
    
    # This looks like:
    # api_token = "felt_pat_ABCDEFUDQPAGGNBmX40YNhkCRvvLI3f8/BCwD/g8"
    api_token = "<YOUR_API_TOKEN>"
    
    r = requests.post(
      "https://felt.com/api/v2/maps",
      json={"title": "My newly created map"},
      headers={"Authorization": f"Bearer {api_token}"}
    )
    assert r.ok
    map_id = r.json()["id"]
    
    print(r.json())
    import os
    
    from felt_python import create_map
    
    # Setting your API token as an env variable can save
    # you from repeating it in every function call
    os.environ["FELT_API_TOKEN"] = "<YOUR_API_TOKEN>"
    
    response = create_map(
        title="My newly created map",
        lat=40,
        lon=-3,
    )
    map_id = response["id"]

    You should see a response like this (trimmed for brevity):

    Notice the "id" property. Every map has a unique ID, which is also part of the map's URL. Let's take note of it for future API calls.

    Also part of the response is a "url" property, which is the URL to your newly-created map. Feel free to open it! For now, it should just show a blank map.

    This example uploads from a URL; for file uploads and monitoring processing, see Uploading files and URLs.

    Now that we've created a new map, let's add some data to it. We'll need the map_id included in the previous call's response.

    Felt supports many kinds of file and URL imports. In this case, we'll import all the recent earthquakes from the USGS' live GeoJSON feed:

    # Store the map ID from the previous call:
    # MAP_ID="CjU1CMJPTAGofjOK3ICf1D"
    MAP_ID="<YOUR_MAP_ID>"
    
    curl \
      -X POST \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer ${FELT_API_TOKEN}" \
      "https://felt.com/api/v2/maps/${MAP_ID}/upload" \
      -d '{"import_url":"https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.geojson", "name": "USGS Earthquakes"}'
    r = requests.post(
      f"https://felt.com/api/v2/maps/{map_id}/upload",
      json={
        "import_url":"https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.geojson",
        "name": "USGS Earthquakes",
      },
      headers={"Authorization": f"Bearer {api_token}"}
    )
    assert r.ok
    layer_id = r.json()["layer_id"]
    
    print(r.json())
    from felt_python import upload_url
    
    url_upload = upload_url(
        map_id=map_id,
        layer_url="https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.geojson",
        layer_name="USGS Earthquakes",
    )
    layer_id = url_upload["layer_id"]

    Like maps, layers also have unique identifiers. Let's take note of this one (the layer_id field in the response) so we can style it in the next call.

    You can see the uploaded result in your map:

    Since we imported a live data feed, the points on your layer may look different.

    For reading a layer's current style and more styling patterns, see Styling layers.

    Once a layer has finished processing, you can change its style. Let's change the style of our newly-created earthquakes layer so that points are bigger and in green color:

    # Store the layer ID from the previous call:
    # LAYER_ID="F1XyzAB2TQi9CDeFgHiJkL"
    LAYER_ID="<YOUR_LAYER_ID>"
    
    curl \
      -X POST \
      "https://felt.com/api/v2/maps/${MAP_ID}/layers/${LAYER_ID}/update_style" \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer ${FELT_API_TOKEN}" \
      --data '{"style": {"paint": {"color": "green", "opacity": 0.9, "size": 30, "strokeColor": "auto", "strokeWidth": 1}, "legend": {}, "type": "simple", "version": "2.3.1"}}'
    new_fsl = {
      "paint": {
        "color": "green",
        "opacity": 0.9,
        "size": 30,
        "strokeColor": "auto",
        "strokeWidth": 1
      },
      "legend": {},
      "type": "simple",
      "version": "2.3.1"
    }
    
    r = requests.post(
      f"https://felt.com/api/v2/maps/{map_id}/layers/{layer_id}/update_style",
      json={"style": new_fsl},
      headers={"Authorization": f"Bearer {api_token}"}
    )
    assert r.ok
    print(r.json())
    from felt_python import update_layer_style
    
    new_fsl = {
      "paint": {
        "color": "green",
        "opacity": 0.9,
        "size": 30,
        "strokeColor": "auto",
        "strokeWidth": 1
      },
      "legend": {},
      "type": "simple",
      "version": "2.3.1"
    }
    
    update_layer_style(
        map_id=map_id,
        layer_id=layer_id,
        style=new_fsl,
    )

    Go to your map to see how your new layer looks:

    Since we imported a live data feed, the points on your layer may look different.

    For refreshing file-based layers and the full refresh flow, see Refreshing live data layers.

    Similar to a URL upload, refreshing an existing URL layer is just a matter of making a single POST request:

    curl \
      -X POST \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer ${FELT_API_TOKEN}" \
      "https://felt.com/api/v2/maps/${MAP_ID}/layers/${LAYER_ID}/refresh"
    r = requests.post(
      f"https://felt.com/api/v2/maps/{map_id}/layers/{layer_id}/refresh",
      headers={"Authorization": f"Bearer {api_token}"}
    )
    assert r.ok
    print(r.json())
    from felt_python import refresh_url_layer
    
    refresh_url_layer(map_id, layer_id)

    Now go to your map and see if any new earthquakes have occurred!

    • Authentication — token behavior, rotation, and security.

    • Errors and rate limits — what failures look like and how to handle them.

    • Listening to updates using webhooks — react to map changes without polling.

    • Refreshing live data layers — keep layers up to date on a schedule.

    • — let an AI agent work in your workspace, including SQL and feature editing that the REST API doesn't cover.

    • — every endpoint, generated from the OpenAPI spec.

    https://felt.com/api/v2
    pip install felt-python

    Requires Business or Enterprise, and included in the free trial. See Plans, access and limits.

    Endpoints

    Create an API token

    Install our Python library (optional)

    Example: Creating a new map

    Developers tab of the Workspace Settings page
    Authentication
    Navigating maps and workspaces
    You can generate as many API tokens as you need. Make sure to copy them to a secure location!
    {
      "id": "CjU1CMJPTAGofjOK3ICf1D",
      "type": "map",
      "title": "My newly created map",
      "url": "https://felt.com/map/My-newly-created-map-CjU1CMJPTAGofjOK3ICf1D",
      "public_access": "view_only",
      "layers": [],
      "created_at": "2024-05-25T15:51:34"
    }

    Example: Uploading a layer from a URL

    Example: Styling a layer

    Layer styles are defined in the , a JSON-based specification that allows customizing a layer's style, legend, label and popups.

    Example: Refreshing a live data layer

    A layer must have finished uploading successfully before it can be refreshed

    Next steps

    Your page calls Felt.embed with the map ID and the token.
  • Felt renders the map, with its styling, legend, popups and components, and keeps it live: edits made to the map in Felt appear in the embed.

  • Call POST /api/v2/maps/{map_id}/embed_token with your API token. The user_email query parameter is required. Pass the email of the person who will view the map; Felt uses it to attribute views. That person doesn't need a Felt account.

    curl -X POST \
      -H
    
    // Express route: mint a token for the signed-in user's map.
    app.get("/api/felt-token"
    
    import os
    import requests
    
    def
    

    A successful response looks like this:

    Never call this endpoint from the browser: it would expose your API token. Only the embed token goes to the client.

    A Team workspace with Platform can call this endpoint even though the Team plan doesn't include the rest of the REST API.

    Give the container an explicit height; a zero-height div renders nothing. If you're not using the SDK, you can put the token on an iframe URL instead:

    • Mint a fresh token for each page load. A token lasts 12 hours, which covers a working session in one tab, reconnects included. When it expires, the embed asks the visitor to refresh, and your page mints a new one.

    • A token grants view access to one map. Anyone holding it can view that map until it expires, so treat it like a session credential and only hand it to the user you minted it for.

    • Tokens can't be revoked individually. An open embed re-checks every 15 minutes that the workspace still has access to authenticated embeds. To cut off a user, stop minting tokens for them; their existing token expires within 12 hours. Deleting the map ends access to it.

    • Viewers can't edit. Token viewers see the map read-only. To let them download layer data, turn on Viewer permissions: Export data in the map's settings.

    The token is the security boundary, and it's scoped to a map. To keep one customer's data away from another's, give each customer their own map and mint tokens only for the map that customer is allowed to see. A common pattern is a template map that you duplicate per customer with the REST API (POST /api/v2/maps/{map_id}/duplicate), then point at that customer's data.

    Filters set with setLayerFilters on a shared map change what's displayed, not what's accessible. Use them to focus a view, never to hide one customer's data from another.

    • Every embed load counts as a map view, authenticated or not, against your plan's monthly allowance. When the workspace reaches its map-view limit, embeds show an over-limit page until the month resets or you add capacity. See Plans, access and limits.

    • Token viewers don't use viewer spots and need no seats.

    Symptom
    Cause
    Fix

    401 with "Embed tokens need the Platform add-on" when minting

    The workspace doesn't have Platform.

    Add Platform in your workspace's billing settings.

    401 invalid_access_token when minting

    The API token is missing, revoked, or from a different workspace than the map.

    Use a token created in the map's workspace. See .

    Felt.embed rejects after a few seconds with "Failed to load Felt map"

    Either the workspace has no SDK access (the map appears but can't be controlled), or the workspace is over its map-view limit (the embed shows an over-limit page).

    Check that Platform is active and that the workspace is under its map-view limit.

    Requires the Platform add-on, and included in the free trial. See Platform.

    Public and unlisted maps don't need a token, and standard embeds don't need Platform.

    How it works

    {
      "token": "felt_et_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
      "expires_at": "2026-10-06T21:04:11"
    }
    import { Felt } from "@feltmaps/js-sdk";
    
    const { mapId, token } = await fetch("/api/felt-token").then((r) => r.json());
    
    const felt = await Felt.embed(document.getElementById("map"), mapId, {
      token,
      uiControls: { cooperativeGestures: false },
    });
    
    // The full SDK is available: listen to events and control the map.
    felt.onSelectionChange({
      handler: ({ selection }) => showDetailsInMyApp(selection),
    });
    <iframe src="https://felt.com/embed/map/MAP_ID?token=TOKEN" width="100%" height="600"></iframe>

    Step 1: mint a token on your server

    Step 2: embed the map with the token

    Token lifetime and authorization

    Serving each customer their own data

    Usage and limits

    Troubleshooting

    ViewportState — fires continuously during movement, including during animations and inertia.

    onViewportMoveEnd

    —

    ViewportState — fires once when dragging, zooming, animations, and inertia have finished.

    onMapIdle

    —

    Nothing. Fires when the map is fully idle: no transitions, no interaction, all tiles loaded, fades complete.

    onBasemapChange

    —

    Basemap — the new basemap.

    Listener
    Scoping options
    Handler receives

    onElementCreate

    —

    { element: Element | null, isBeingCreated: boolean } — fires repeatedly while the user draws (isBeingCreated: true), then a final time with isBeingCreated: false.

    onElementCreateEnd

    —

    { element: Element } — fires once, when creation is finished.

    onElementChange

    { id }

    { element: Element | null, isBeingCreated: boolean } — element is null if it was removed.

    Listener
    Scoping options
    Handler receives

    onLayerChange

    { id }

    { layer: Layer | null }

    onLayerGroupChange

    { id }

    { layerGroup: LayerGroup | null }

    onLegendItemChange

    { id, layerId }

    { legendItem: LegendItem | null }

    Listener
    Scoping options
    Handler receives

    onPointerClick

    —

    MapInteractionEvent — { coordinate, point, features, rasterValues }. features and rasterValues are arrays (empty when nothing is under the pointer).

    onPointerMove

    —

    MapInteractionEvent

    onSelectionChange

    —

    { selection: EntityNode[] } — see .

    Listener
    Scoping options
    Handler receives

    onToolChange

    —

    ToolType | null — the newly selected tool, or null when no tool is active.

    onToolSettingsChange

    —

    ToolSettingsChangeEvent — a discriminated union: check the tool field to narrow to that tool's settings.

    For payload type details, follow each method's entry in the API reference.

    const unsubscribe = felt.onLayerChange({
      options: { id: "layer-1" },
      handler: ({ layer }) => console.log(layer.bounds),
    });
    
    // ...later, when you no longer need the listener
    unsubscribe();

    onViewportMove

    Viewport and map state

    —

    Annotations (elements)

    Layers and legends

    Pointer and selection

    Tools

    Via the REST API — read a layer's style field and update it with POST /update_style.

  • Via the JS SDK — apply session-only style changes with setLayerStyle.

  • Every style needs a version and a type. Here is a complete, minimal style that draws a point layer in green with a visible stroke:

    Paste this into Actions > Edit style language on any point layer and the points turn green immediately. From here, styling is incremental: change "type" to "categorical" or "numeric" to drive color or size from your data, add steps or categories to config, and swap literal colors for @palette shortcuts.

    Key
    Purpose

    version

    The FSL version the style is written against. Use "2.3.1" (current). Older versions are accepted and migrated automatically.

    type

    The visualization type: simple, categorical, numeric, heatmap, h3, or hillshade. See .

    config

    Data configuration: which attribute drives the visualization, class breaks, categories, aggregation. See .

    paint

    How geometries and pixels are drawn: colors, sizes, strokes, opacity, icons. See .

    label

    Learn how to define and configure the code blocks that compose the Felt Style Language

    Learn about visualization types, including simple, categorical, numeric (color by & size by), heatmaps, H3, and raster (imagery, numeric, categorical, and hillshade).

    Shared building blocks referenced throughout the language: smart "auto" colors and named palettes, the icon catalog, and the classification methods used to turn numbers into classes.

    Vary paint and label properties with the map's zoom level using interpolators.

    Details on how to customize legends on a per-layer basis.

    Definitions for errors raised when validating the Felt Style Language.

    A compact gallery with one worked example per visualization type.

    Where you use FSL

    {
      "version": "2.3.1",
      "type": "simple",
      "config": {},
      "paint": {
        "color": "#28A745",
        "size": 8,
        "strokeColor": "auto",
        "strokeWidth": 1
      },
      "legend": {},
      "label": {},
      "popup": {}
    }

    Your first style

    Anatomy of a style

    Explore the language

    Style definition blocks

    Types of visualizations

    Colors, icons & classification

    Zoom-based styling

    Legends

    Errors

    Examples

    Style definition blocks
    Types of visualizations
    Colors & palettes
    Icons
    Classification methods
    Zoom-based styling
    Legends
    Errors
    Examples

    binMode

    Used in visualizations. "fixed" (default; uses baseBinLevel at all zooms) or the zoom-adaptive modes "low", "medium"/"auto", and "high" — low means larger hexagons, high means smaller ones.

    categoricalAttribute

    Mandatory for vector categorical visualizations. The attribute that contains the categorical values that will be used. (Raster categorical layers classify raw pixel values instead and omit this field.)

    categories

    Mandatory for a categorical visualization. Either an explicit array of category values, or a shortcut: {"type": "top", "count": N} for the N most common values, {"type": "bottom", "count": N} for the N least common, or {"type": "all"} (raster) for every unique pixel value.

    labelAttribute

    Optional. Defines which dataset attribute or attributes to use for labeling. If multiple values are provided, the first available one will be used.

    method

    Optional. Used in multiband raster numeric visualizations. Maps a spectral index (NDVI/NDMI/NDWI) to its band assignments. See .

    noData

    Optional. Used in raster visualizations. A value or array of values that won’t be shown (e.g. [-9999] for voids, [0] for no-data).

    numericAttribute

    Mandatory for a numeric visualization. The attribute that contains the numeric values used.

    otherOrder

    Optional. Used in categorical visualizations. It can be set to either "below" or "above" to make features that do not match any of the defined categories render below or above the other ones. The default position is "below".

    outOfRangeValues

    Optional. Used in raster numeric visualizations. "color" clamps out-of-range pixels to the nearest class color; "hide" makes them transparent.

    rasterResampling

    Optional. Used in raster numeric (and tinted hillshade) visualizations — not valid for categorical rasters, which always resample nearest. "nearest" preserves exact pixel values; "linear" smoothly interpolates (use for continuous imagery/elevation). Set it explicitly rather than relying on a default.

    showOther

    Optional. Used in categorical visualizations. If set to true it shows all features that do not match any defined category and adds an extra entry as the last item in the legend.

    steps

    Used by numeric, H3, and tinted-hillshade visualizations. Either an explicit array of break points (at least two values), or a shortcut such as {"type": "jenks", "count": 5} or {"type": "continuous"}.

    config is always an object. The examples below show the config block in isolation.

    aggregation

    Optional, for H3 visualizations. How points are aggregated within each cell: "count" (default), "sum", "mean", "min", or "max". All values except "count" also require numericAttribute.

    band

    Optional. Used in raster numeric visualizations. The raster band (1-indexed) to read data from — a number, or an array of band numbers for multiband styling.

    baseBinLevel

    Used in visualizations. The (0–15). Country-scale ≈ 3–4, city-scale ≈ 6–7. Sets the cell size when binMode is "fixed"; in the zoom-adaptive modes it serves as the reference resolution that steps values are scaled against.

    Categorical config — explicit categories
    "config": {
      "labelAttribute": ["Wikipedia", "faa"],
      "categoricalAttribute": "faa",
      "categories": ["faa-code-1", "faa-code-2", "faa-code-3"],
      "showOther": true,
      "otherOrder": "above"
    }
    Categorical config — top-N shortcut
    "config": {
      "categoricalAttribute": "surface",
      "categories": {"type": "top", "count": 5},
      "showOther": true
    }
    Vector numeric config — automatic classification
    "config": {
      "numericAttribute": "percentage",
      "steps": {"type": "jenks", "count": 5}
    }
    Raster numeric config — single band
    "config": {
      "band": 1,
      "steps": {"type": "continuous"},
      "noData": [-9999],
      "rasterResampling": "nearest"
    }
    H3 config — aggregate points into hexes
    "config": {
      "aggregation": "sum",
      "numericAttribute": "capacity_mw",
      "baseBinLevel": 4,
      "binMode": "medium",
      "steps": {"type": "quantiles", "count": 5}
    }

    Examples

    Description

    iconImage

    string | string[]

    An icon slug from the catalog below, or an emoji in the form "emoji::name:".

    iconFrame

    string

    "none", "frame-circle", or "frame-square". Built-in icons only (not emojis).

    iconRotation

    number | string

    Rotation in degrees, or the name of a column to rotate by.

    iconHideOnZoom

    number

    Zoom level below which icons are drawn as plain points instead. Optional.

    When iconImage is set, color fills the icon and size scales it (the same size you would use for a circle radius).

    A single icon marker, framed in a circle:

    To give each category its own icon, make iconImage an array — see the icon-per-category example in Categorical visualizations.

    • Shapes: dot, square, diamond, triangle, x, plus, circle-line, circle-slash, star, heart, hexagon, octagon

    • Arrows & directions: arrow-up, chevron-up, double-chevron-up, direction-up (combine with iconRotation to point them anywhere)

    • Transportation: pedestrian, bicycle, wheelchair, airport, car, bus, train, truck, ferry, sailboat, electric-service

    • Activities & places: person, restroom, house, work, letter, hotel, factory, hospital, religious-facility, school, government

    • Infrastructure: zap, battery-full, battery-half, battery-low, boom, radar, wind-turbine, solar-panel, antenna, telephone-pole, oil-well

    • Nature: tree, flower, leaf, fire, mountain, snowy-mountain, volcano, island, wave, hot-springs, water

    • Weather: sun, moon, cloud, partial-sun, rain, lightning, snowflake, wind, snow, fog, sleet

    • Signs: warning, parking, info, circle-exclamation

    To use an emoji as a marker, write it as "emoji::name:" — note the double colon after emoji and the trailing colon. For example: "emoji::fire:", "emoji::tree:". iconFrame does not apply to emojis. Prefer built-in icons unless an emoji is specifically requested.

    Icon paint properties

    simple
    categorical
    numeric
    {
      "version": "2.3.1",
      "type": "simple",
      "paint": {
        "iconImage": "hospital",
        "iconFrame": "frame-circle",
        "color": "#E74C3C",
        "size": 4,
        "opacity": 0.9,
        "isClickable": true
      },
      "legend": {}
    }
    {
      "version": "2.3.1",
      "type": "simple",
      "paint": {
        "iconImage": "emoji::fire:",
        "size": 6
      },
      "legend": {}
    }

    Examples

    Available icons

    Use only the icon slugs listed here. Invented names will not render.

    Emojis

    Listening to updates using webhooks

    Requires Business or Enterprise, and included in the free trial. See Plans, access and limits.

    A great way of building data-driven apps using Felt is by triggering a workflow whenever something changes on a map, like someone drawing a polygon around an area of interest or updating the details on a pin.

    Instead of polling by listing annotations, comments or data layers on a fixed interval, set up a webhook and Felt will send your endpoint a notification any time a map is updated. This allows you to build integrations on top, such as sending a Slack message or recalculating statistics for a newly-drawn area.

    How webhooks work

    Each webhook is attached to a single map. When someone changes the map in the Felt app (drawing or editing annotations, editing layers or features, changing settings or sharing) or adds a comment or reply, Felt sends a POST request with a JSON body to your webhook URL:

    {
      "attributes": {
        "type": "map:update",
        "map_id": "Jzjr8gMKSrCOxZ1OSMT49CB",
        "updated_at": "2024-04-29T12:16:46"
      }
    }

    A few things to know about the delivery model:

    • Event types. map:update is currently the only event type. The payload tells you which map changed and when, but not what changed — use the , layers, or comments endpoints to fetch the current state when you receive an event.

    • Deliveries are coalesced. A rapid burst of edits to the same map may result in a single notification rather than one per edit. Treat each delivery as "this map changed, re-read it", not as a per-edit event stream.

    • What doesn't trigger a webhook. Changes made through the REST API or the MCP server, resolving, editing or deleting comments, layers finishing processing, and scheduled refreshes don't currently send a notification. If your integration makes changes through the API, it already knows about them.

    • Retries. If your endpoint does not respond with a 2xx status, Felt makes up to 10 delivery attempts in total, with exponential backoff. Felt does not retry a 4xx status other than 408 or 429. Delivery is at least once: your handler should be idempotent. Redirects are not followed.

    • Creation is UI-only. Webhooks are created in workspace settings (see below); there are no REST endpoints for managing them.

    Every webhook has a signing key, shown in the workspace settings UI when you create it. Felt signs each delivery with a felt-signature HTTP header containing the Base64-encoded HMAC-SHA256 of the raw JSON body, computed with that signing key. Use the key exactly as shown, as a string; don't base64-decode it first.

    Verify the signature before acting on a payload — it proves the request came from Felt and not from a third party who discovered your URL:

    Compute the HMAC over the raw request body exactly as received — re-serializing the parsed JSON can change key order or whitespace and produce a different signature.

    Two things are needed in order to make use of webhooks:

    1. A Felt map which will serve as the basis for the webhook. Updates will be sent whenever something on this map changes.

    2. A webhook URL where the updates will be sent in the form of POST requests.

    Workspace admins and editors can set up webhooks in the .

    Simply click on Create a new webhook, select a map to listen to changes and paste in a webhook URL where the updates will be sent to.

    In order to use webhooks effectively, a receiving service must be set up to trigger actions based on the updates sent by the Felt API. Here are some examples of how to set up a webhook using Felt and an external service.

    General concepts

    This guide covers the mental model and the common patterns used throughout the Felt SDK. Understanding these once makes every other page predictable.

    The Felt controller

    Everything you do with the SDK goes through a controller object — named felt in all the examples in these docs. How you get it depends on where your code runs:

    • Embeds — your code runs in your page, and the map lives in an iframe. Felt.embed(container, mapId, options) creates the iframe and returns a controller for it. You can also use Felt.connect(iframe.contentWindow) to attach a controller to a Felt iframe you've already placed on the page. See Controlling maps and Embed options.

    • Extensions — your code runs inside the Felt app, and receives a ready-made controller: no embedding required. See the .

    The controller communicates with the map via message passing, which is why every read is asynchronous (see promises below). The same controller API is available in both contexts.

    A crucial rule for building on the SDK: changes made via the SDK are visible only to the current session — they are not saved to the map. This applies to:

    • Annotations created with

    • Layers created with

    • Style changes made with setLayerStyle

    • Filters set with

    This makes the SDK safe for building per-visitor experiences on shared maps: ten visitors can each see their own filters and drawings without affecting each other or the underlying map. These changes affect what's displayed, not what a visitor can access. To keep one customer's data away from another, give each customer their own map; see . To make persistent changes to a map, use the .

    Methods that read from or write to the map are asynchronous and return Promises, so use await or .then() when calling them. A few methods that only send an instruction return void and need no await: setViewport, fitViewportToBounds, setViewportConstraints, setTool, setToolSettings, chooseBasemap, updateUiControls, setOnMapInteractionsUi

    The SDK follows a consistent pattern for getting entities. For each entity type, there are usually two getters:

    1. A singular getter for retrieving one entity by ID:

    1. A plural getter that accepts constraints for retrieving multiple entities:

    The plural getters also allow you to pass no constraints, in which case they'll return all entities of that type:

    Singular getters return null when the entity doesn't exist, and plural getters can contain null entries — always check before using the result:

    When you need multiple entities, use the plural methods with constraints rather than making multiple individual calls:

    Each entity type has a corresponding change listener method following the pattern on{EntityType}Change:

    There are also various other setters and getters in the Felt SDK that follow this convention as much as possible. For example, selection:

    And layer filters — note that this particular listener receives the filters value directly, with no wrapper object:

    For the full list of listeners and their payloads, see the .

    All change listeners return an unsubscribe function that should be called when you no longer need the listener:

    This is particularly important in frameworks like React where you should clean up listeners when components unmount:

    Change listeners always take a single object parameter containing both options and handler. This structure makes it easier to add new options in the future without breaking existing code:

    When dealing with mixed collections of entities (like in selection events), each entity is wrapped in an EntityNode object that includes type information:

    Working with annotations

    References have been updated in the app and documentation, while REST API endpoint and JS SDK method naming remain unchanged.

    Annotations sit on top of all data layers on a map. They are usually drawn in the Felt app, but can also be created and updated via the API.

    Combining annotations with is a great way to create interactive data apps in Felt: when someone draws or edits an annotation in the Felt app, your webhook hears about it. Annotations created through the API don't trigger webhooks.

    Listing all annotations on a map

    Annotations are returned as a GeoJSON Feature Collection.

    # Your API token and map ID should look like this:
    # FELT_API_TOKEN="felt_pat_ABCDEFUDQPAGGNBmX40YNhkCRvvLI3f8/BCwD/g8"
    # MAP_ID="CjU1CMJPTAGofjOK3ICf1D"
    FELT_API_TOKEN
    
    import requests
    
    # Your API token and map ID should look like this:
    # api_token = "felt_pat_ABCDEFUDQPAGGNBmX40YNhkCRvvLI3f8/BCwD/g8"
    
    import os
    
    from felt_python import list_elements
    
    # Setting your API token as an env variable can save
    # you from repeating it in every function call
    os.environ["FELT_API_TOKEN"] = "<YOUR_API_TOKEN>"
    
    map_id = "<YOUR_MAP_ID>"
    
    list_elements(map_id)

    Listing all annotation groups

    Returns a list of GeoJSON Feature Collections, one for each annotation group.

    curl \
      -H "Authorization: Bearer ${FELT_API_TOKEN}" \
      "https://felt.com/api/v2/maps/${MAP_ID}/element_groups"
    r = requests.get(
      f"https://felt.com/api/v2/maps/{map_id}/element_groups",
      headers={"Authorization": f"Bearer {api_token}"}
    )
    assert r.ok
    print(r.json())
    from felt_python import list_element_groups
    
    list_element_groups(map_id)

    Create or update annotations

    Each annotation is represented by a feature in the POSTed GeoJSON Feature Collection.

    For each feature, including an existing annotation ID (felt:id) will result in the annotation being updated on the map. If the ID is omitted or does not match an existing annotation, a new annotation is created.

    Styling is controlled with felt:-prefixed properties on each feature — for example felt:color, felt:opacity, felt:strokeWidth, felt:strokeStyle, felt:size, and felt:text for text annotations. Properties without the felt: prefix are stored as the annotation's data attributes. Request bodies are limited to 1 MB, and very complex geometries may be simplified on import.

    Delete an annotation by its ID. Annotation IDs are returned as the felt:id property when .

    Working with layers

    The Felt SDK allows you to add GeoJSON data to your maps from various sources:

    • Remote URLs

    • Local files

    • Programmatically generated GeoJSON data

    GeoJSON layers created via the SDK are temporary and session-specific - they're not permanently added to the map and won't be visible to other users.

    When creating a GeoJSON layer, you can specify different styles for each geometry type (Point, Line, Polygon) that might be found in the source. Each geometry type will create its own layer. GeoJSON layers added via the SDK can be filtered with setLayerFilters, and getFeatures can page through their features if every feature has a top-level id. They don't support statistics (getAggregates, getCategoryData, getHistogramData), or getFeatures with filters, sorting, search or boundary.

    Use the method to add GeoJSON layers to your map. This method accepts different source types depending on where your GeoJSON data comes from.

    To create a layer from a GeoJSON file at a remote URL:

    To create a layer from a GeoJSON file on the user's device:

    To create a layer from GeoJSON data that you've generated or processed in your application. This approach is useful when you need to dynamically generate GeoJSON data based on user interactions or other app states:

    When creating GeoJSON layers, you can specify different styles for each geometry type that might be found in your data. The SDK will create separate layers for each geometry type:

    Each style should be a valid (Felt Style Language) style. If you don't specify styles, Felt will apply default styles based on the geometry type.

    To remove a GeoJSON layer:

    Note that this only works for layers created via the SDK's createLayersFromGeoJson method, not for layers added through the Felt UI.

    For GeoJSON layers created from URLs, you can set automatic refreshing:

    At Creation Time: By setting the refreshInterval parameter when creating the layer. The refreshInterval parameter is optional and specifies how frequently (in milliseconds) the layer should be automatically refreshed from the URL. Valid values range from 250ms to 5 minutes (300,000ms). If set to null or omitted, the layer won't refresh automatically.

    Manual refresh: Replace the source property of any layer you have created, using the method to update the source data:

    Sample application

    This is a sample application showing how to use the Felt SDK to build an app with the following features:

    • listing the map's layers

    • toggling layer visibility

    • moving the viewport to center it on predefined city locations

    The sample Felt SDK Application

    The commented code in its entirety is shown below.

    <!doctype html>
    <html lang="en">
      <head>
        <title>Felt JS SDK</title>
        <style>
          body {
            margin: 0;
            padding: 0;
            font-family: sans-serif;
            font-size: 13px;
          }
    
          .container {
            display: grid;
            grid-template-columns: 1fr 240px;
            height: 100vh;
          }
    
          iframe {
            display: block;
          }
    
          #sidebar {
            padding: 1rem;
            user-select: none;
          }
    
          #markers {
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #ccc;
          }
    
          .marker {
            cursor: pointer;
            padding: 0.25rem 0;
          }
    
          .layer-toggles_toggle {
            padding: 0.25rem 0;
            margin-left: -4px;
            display: flex;
            align-items: center;
            gap: 0.25rem;
          }
    
          h3 {
            margin: 0;
            margin-bottom: 0.5rem;
          }
        </style>
      </head>
      <body>
        <div class="container">
          <div id="mapContainer"></div>
          <div id="sidebar">
            <div id="markers">
              <h3>Cities</h3>
            </div>
            <div id="layers">
              <h3>Layers</h3>
            </div>
          </div>
        </div>
    
        <script type="module">
          // Load the Felt SDK from the jsDelivr CDN
          import { Felt } from "https://esm.run/@feltmaps/js-sdk";
    
          // Get the map and sidebar elements
          const container = document.getElementById("mapContainer");
          const markerContainer = document.getElementById("markers");
          const layerContainer = document.getElementById("layers");
    
          // Embed the map — replace this ID with your own map's ID
          const felt = await Felt.embed(container, "u49BWs5EtSI29CpwuwB9CzRiC", {
            uiControls: {
              showLegend: false,
              cooperativeGestures: false,
              fullScreenButton: false,
            },
          });
    
          // Add some cities to the sidebar
          const locations = [
            { name: "Oakland", lat: 37.8044, lng: -122.271 },
            { name: "New York", lat: 40.7128, lng: -74.006 },
            { name: "Los Angeles", lat: 34.0522, lng: -118.2437 },
            { name: "Chicago", lat: 41.8781, lng: -87.6298 },
            { name: "Houston", lat: 29.7604, lng: -95.3698 },
            { name: "Phoenix", lat: 33.4484, lng: -112.074 },
          ];
    
          locations.forEach((location) => {
            // create a DOM element with the city name
            const marker = document.createElement("div");
            marker.classList.add("marker");
            marker.innerText = location.name;
    
            // center the viewport on the city when the marker is clicked
            marker.addEventListener("click", () => {
              felt.setViewport({
                center: {
                  latitude: location.lat,
                  longitude: location.lng,
                },
                zoom: 10,
              });
            });
    
            // add the marker to the sidebar
            markerContainer.appendChild(marker);
          });
    
          // get all the layers
          felt.getLayers().then((layers) => {
            layers.forEach((layer) => {
              // create a DOM element to represent the layer
              const layerElement = document.createElement("div");
              layerElement.classList.add("layer-toggles_toggle");
              layerElement.innerHTML = `
                <input type="checkbox" id="${layer.id}" ${
                  layer.visible ? "checked" : ""
                }>
                <label for="${layer.id}">${layer.name}</label>
              `;
    
              // toggle the layer's visibility when the checkbox changes
              const checkbox = layerElement.querySelector("input");
              checkbox.addEventListener("change", () => {
                felt.setLayerVisibility(
                  checkbox.checked ? { show: [layer.id] } : { hide: [layer.id] },
                );
              });
    
              // let the map be the source of truth: keep the checkbox in
              // sync if the layer's visibility changes for any other reason
              felt.onLayerChange({
                options: { id: layer.id },
                handler: ({ layer }) => {
                  if (layer) checkbox.checked = layer.visible;
                },
              });
    
              // add the layer element to the container
              layerContainer.appendChild(layerElement);
            });
          });
        </script>
      </body>
    </html>

    Building custom charts

    The Felt SDK provides powerful methods to analyze your geospatial data and transform it into informative visualizations. You can calculate statistics on entire datasets or focus on specific areas using boundaries and filters, allowing you to create custom charts that reveal insights about your spatial data.

    Statistics are available for layers that have been uploaded to and processed by Felt — layers created at runtime with cannot be queried for statistics.

    The SDK offers three complementary approaches to analyze your map data:

    Calculate one or more values (count, sum, average, and so on) across your dataset or a filtered subset. aggregation.methods is required and takes a list, so you can compute several values in one call. attribute must be a numeric attribute, and can be omitted when the only method is "count". The result is an object keyed by method; a value is null when no features match.

    Group features by unique attribute values and calculate a statistic for each group. Each group comes back as { key, value }

    Numeric visualizations (color & size)

    Numeric visualizations use a numeric attribute to either vary colors or sizes between ranges of values and are defined in FSL with "type": "numeric".

    Ranges are calculated across discrete steps using a classification method, or on a continuous scale between an attribute’s min and max values. See for the full list (jenks, quantiles, equal-intervals, stddev, geo-intervals, continuous) and how to express steps.

    Color numeric values in your data using the color property.

    Stepped color

    This map shows the percent of renter occupied housing units by US county. Each county is colored according to the step of ranges it falls into using a sequential color palette where light colors are assigned to low values and darker colors for high values.

    The style for this map is defined

    ,
    gas-service
    ,
    blood-clinic
    ,
    badge
    ,
    traffic-light
    ,
    traffic-cone
    ,
    road-sign-caution
    ,
    university
    ,
    library
    ,
    bank
    ,
    landmark
    ,
    museum
    ,
    clothing
    ,
    shopping
    ,
    store
    ,
    bar
    ,
    pub
    ,
    cafe
    ,
    food
    ,
    park
    ,
    amusement-park
    ,
    camping-tent
    ,
    cabin
    ,
    picnic
    ,
    water-refill
    ,
    trailhead
    ,
    guidepost
    ,
    viewpoint
    ,
    camera
    ,
    us-football
    ,
    football
    ,
    tennis
    ,
    binoculars
    ,
    swimming
    ,
    oil-barrel
    ,
    railroad-track
    ,
    bridge
    ,
    lighthouse
    ,
    lock-closed
    ,
    lock-open
    ,
    wifi
    ,
    trash
    ,
    recycle
    ,
    lake
    ,
    ocean
    ,
    animal
    ,
    bird
    ,
    duck
    ,
    dog
    ,
    fish
    ,
    beach
    ,
    wetland
    ,
    hurricane
    "
    Authorization: Bearer
    ${
    FELT_API_TOKEN
    }"
    \
    "https://felt.com/api/v2/maps/${MAP_ID}/embed_token?user_email=jane%40example.com"
    ,
    requireLogin
    ,
    async
    (
    req
    ,
    res
    )
    =>
    {
    const mapId = mapIdForCustomer(req.user.customerId); // your own lookup
    const url = new URL(`https://felt.com/api/v2/maps/${mapId}/embed_token`);
    url.searchParams.set("user_email", req.user.email);
    const r = await fetch(url, {
    method: "POST",
    headers: { Authorization: `Bearer ${process.env.FELT_API_TOKEN}` },
    });
    if (!r.ok) {
    console.error(r.status, await r.text());
    return res.status(502).json({ error: "Could not load the map" });
    }
    const { token, expires_at } = await r.json();
    res.json({ mapId, token, expiresAt: expires_at });
    });
    mint_embed_token
    (
    map_id
    :
    str
    ,
    user_email
    :
    str
    )
    ->
    dict
    :
    r = requests.post(
    f"https://felt.com/api/v2/maps/{map_id}/embed_token",
    params={"user_email": user_email},
    headers={"Authorization": f"Bearer {os.environ['FELT_API_TOKEN']}"},
    )
    r.raise_for_status()
    return r.json() # {"token": "...", "expires_at": "..."}

    The embed asks the visitor to refresh

    The token expired.

    Mint a new token on page load.

    A blank area where the map should be

    The container has no height, or the iframe URL uses /map/ instead of /embed/map/.

    Set a height. Only /embed/map/… URLs can be framed by other sites.

    Authentication

    onElementDelete

    { id }

    Nothing.

    onElementGroupChange

    { id }

    { elementGroup: ElementGroup | null }

    onLayerFiltersChange

    { layerId }

    LayerFilters — the bare filters object ({ style, components, ephemeral, combined }), with no wrapper. See Layer filters.

    onLayerBoundariesChange

    { layerId }

    LayerBoundaries | null

    Working with selection

    Feature labels: fonts, halos, placement, zoom range. See The label block.

    popup

    What clicking a feature shows. See The popup block.

    attributes

    Display names and number formatting for attributes. See The attributes block.

    filters

    Which features are visible. See The filters block.

    legend

    Legend labels. See Legends.

    Types of visualizations
    The config block
    The paint block
    H3
    H3 cell resolution
    H3
    Raster visualizations
    classification
    AI agents and MCP
    API Reference
    Felt Style Language
    ,
    deletePanel
    ,
    deletePanelElements
    ,
    deleteActionTrigger
    and
    deleteFeatureAction
    . Event listeners (
    on…
    ) return an unsubscribe function synchronously.

    Session-only vs persisted changes

    Use of promises

    Getting entities

    Getters can return null

    Batch your reads

    Change listeners

    Cleanup functions

    Handler and options structure

    Entity nodes

    extensions documentation
    createElement
    createLayersFromGeoJson
    setLayerFilters
    Authenticated embeds
    REST API
    Events reference
    =
    "
    <YOUR_API_TOKEN>
    "
    MAP_ID="<YOUR_MAP_ID>"
    curl \
    -H "Authorization: Bearer ${FELT_API_TOKEN}" \
    "https://felt.com/api/v2/maps/${MAP_ID}/elements"
    api_token = "<YOUR_API_TOKEN>"
    map_id = "<YOUR_MAP_ID>"
    r = requests.get(
    f"https://felt.com/api/v2/maps/{map_id}/elements",
    headers={"Authorization": f"Bearer {api_token}"}
    )
    assert r.ok
    print(r.json())

    Delete an annotation

    Note: Annotations were previously referred to as Elements.

    listing annotations
    webhooks

    Creating GeoJSON layers

    From a URL

    From a local file

    From GeoJSON data

    Styling by geometry type

    Deleting layers

    Refreshing GeoJSON layers

    createLayersFromGeoJson
    FSL
    updateLayer
    :
    key
    is the attribute value and
    value
    is the count (or the aggregation you ask for in
    values
    ).

    Create bins for numeric data and calculate a statistic for each range. Each bin comes back as { min, max, value }. steps is either an array of break points, { type: "equal-intervals", count }, or, for date attributes, { type: "time-interval", interval }.

    You can apply filters in two powerful ways:

    1. At the top level - Affects both which data is included and how values are calculated

    2. In the values configuration - Only affects the calculated values while keeping all categories/bins

    This two-level filtering is especially useful for creating comparative visualizations while maintaining consistent groupings.

    Comparing building types by floor area (Categories)

    Comparing building heights across time periods (Histograms)

    Comparing neighborhood density (Aggregates)

    Here's how you might integrate these analysis methods with an interactive chart:

    This example demonstrates how a user clicking on a pie chart slice could apply a filter to the map, highlighting only the buildings of that type. It also shows how you could fetch additional statistics based on the user's selection to enrich the visualization experience.

    Data analysis methods

    1. Aggregates: single statistics

    2. Categories: group by values

    createLayersFromGeoJson

    3. Histograms: group by numeric ranges

    Working with filters

    Advanced filtering examples

    Interactive visualization example

    import { Felt } from "@feltmaps/js-sdk";
    
    const felt = await Felt.embed(
      document.getElementById("container"),
      FELT_MAP_ID,
    );
    const layer = await felt.getLayer("layer-1");
    felt.getElements().then(elements => {
      console.log(elements);
    });
    const layer = await felt.getLayer("layer-1");
    const element = await felt.getElement("element-1");
    const layers = await felt.getLayers({ ids: ["layer-1", "layer-2"] });
    const legendItems = await felt.getLegendItems({ layerIds: ["layer-1", "layer-2"] });
    const layers = await felt.getLayers();
    const legendItems = await felt.getLegendItems();
    const layer = await felt.getLayer("layer-1");
    if (layer) {
      // Layer exists, safe to use
      console.log(layer.visible);
    } else {
      console.log("Layer not found");
    }
    // Better approach
    const layers = await felt.getLayers({ ids: ["layer-1", "layer-2"] });
    
    // Less efficient approach
    const layer1 = await felt.getLayer("layer-1");
    const layer2 = await felt.getLayer("layer-2");
    const unsubscribe = felt.onLayerChange({
      options: { id: "layer-1" },
      handler: ({ layer }) => {
        console.log("Layer updated:", layer);
      }
    });
    const selection = await felt.getSelection();
    const unsubscribe = felt.onSelectionChange({
      handler: ({ selection }) => {
        console.log("Selection updated:", selection);
      }
    });
    const filters = await felt.getLayerFilters("layer-1");
    await felt.setLayerFilters({
      layerId: "layer-1",
      filters: ["name", "eq", "Jane"],
    });
    const unsubscribe = felt.onLayerFiltersChange({
      options: { layerId: "layer-1" },
      handler: (filters) => console.log(filters.combined),
    });
    const unsubscribe = felt.onLayerChange({
      options: { id: "layer-1" },
      handler: ({ layer }) => {
        console.log("Layer changed:", layer);
      }
    });
    
    // Later, when you're done listening:
    unsubscribe();
    useEffect(() => {
      const unsubscribe = felt.onViewportMove({
        handler: (viewport) => {
          console.log("Viewport changed:", viewport);
        }
      });
    
      // Clean up when the component unmounts
      return () => unsubscribe();
    }, []);
    // Current API
    felt.onElementChange({
      options: { id: "element-1" },
      handler: ({ element }) => { /* ... */ }
    });
    
    // If we need to add new options later, no breaking changes:
    felt.onElementChange({
      options: { 
        id: "element-1",
        newOption: "value" // Can add new options without breaking existing code
      },
      handler: ({ element }) => { /* ... */ }
    });
    felt.onSelectionChange({
      handler: ({ selection }) => {
        selection.forEach(node => {
          console.log(node.type);    // e.g., "element", "layer", "feature", ...
          console.log(node.entity);  // The actual entity object
          
          if (node.type === "element") {
            // TypeScript knows this is an Element
            console.log(node.entity.attributes);
          }
        });
      }
    });
    curl \
      -X POST \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer ${FELT_API_TOKEN}" \
      "https://felt.com/api/v2/maps/${MAP_ID}/elements" \
      -d '{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"coordinates":[[[15.478752514432728,15.576176978045694],[15.478752514432728,4.005934587045303],[29.892174099255755,4.005934587045303],[29.892174099255755,15.576176978045694],[15.478752514432728,15.576176978045694]]],"type":"Polygon"}}]}'
    new_elements = {
      "type": "FeatureCollection",
      "features": [
        {
          "type": "Feature",
          # Include "felt:id" in properties to update an existing annotation.
          # "felt:" properties control styling; anything else is stored as data.
          "properties": {"felt:color": "#2674BA"},
          "geometry": {
            "coordinates": [
              [
                [
                  15.478752514432728,
                  15.576176978045694
                ],
                [
                  15.478752514432728,
                  4.005934587045303
                ],
                [
                  29.892174099255755,
                  4.005934587045303
                ],
                [
                  29.892174099255755,
                  15.576176978045694
                ],
                [
                  15.478752514432728,
                  15.576176978045694
                ]
              ]
            ],
            "type": "Polygon"
          }
        }
      ]
    }
    
    r = requests.post(
      f"https://felt.com/api/v2/maps/{map_id}/elements",
      headers={"Authorization": f"Bearer {api_token}"},
      json=new_elements
    )
    assert r.ok
    print(r.json())
    from felt_python import upsert_elements
    
    new_elements = {
      "type": "FeatureCollection",
      "features": [
        {
          "type": "Feature",
          "properties": {},
          "geometry": {
            "coordinates": [
              [
                [
                  15.478752514432728,
                  15.576176978045694
                ],
                [
                  15.478752514432728,
                  4.005934587045303
                ],
                [
                  29.892174099255755,
                  4.005934587045303
                ],
                [
                  29.892174099255755,
                  15.576176978045694
                ],
                [
                  15.478752514432728,
                  15.576176978045694
                ]
              ]
            ],
            "type": "Polygon"
          }
        }
      ]
    }
    
    upsert_elements(map_id, new_elements)
    curl \
      -X DELETE \
      -H "Authorization: Bearer ${FELT_API_TOKEN}" \
      "https://felt.com/api/v2/maps/${MAP_ID}/elements/${ELEMENT_ID}"
    element_id = "<YOUR_ELEMENT_ID>"
    
    r = requests.delete(
      f"https://felt.com/api/v2/maps/{map_id}/elements/{element_id}",
      headers={"Authorization": f"Bearer {api_token}"},
    )
    assert r.ok
    from felt_python import delete_element
    
    element_id = "<YOUR_ELEMENT_ID>"
    
    delete_element(map_id, element_id)
    const layerResult = await felt.createLayersFromGeoJson({
      source: {
        type: "geoJsonUrl",
        url: "https://example.com/data/neighborhoods.geojson",
        // Optional: Auto-refresh every 30 seconds
        refreshInterval: 30000
      },
      name: "Neighborhoods",
      caption: "Neighborhood boundaries for the city", // Optional
      description: "This layer shows the official neighborhood boundaries" // Optional
    });
    
    if (layerResult) {
      console.log("Created layer group:", layerResult.layerGroup);
      console.log("Created layers:", layerResult.layers);
    }
    // Assuming you have a File object from a file input
    const fileInput = document.getElementById('geojson-upload');
    const file = fileInput.files[0];
    
    const layerResult = await felt.createLayersFromGeoJson({
      source: {
        type: "geoJsonFile",
        file: file
      },
      name: "User Uploaded Data"
    });
    
    if (layerResult) {
      // Store the layer ID for later reference
      const layerId = layerResult.layers[0].id;
    }
    const geojsonData = {
      type: "FeatureCollection",
      features: [
        {
          type: "Feature",
          geometry: {
            type: "Point",
            coordinates: [-122.4194, 37.7749]
          },
          properties: {
            name: "San Francisco",
            population: 874961
          }
        },
        // Additional features...
      ]
    };
    
    const layerResult = await felt.createLayersFromGeoJson({
      source: {
        type: "geoJsonData",
        data: geojsonData
      },
      name: "Dynamic Points"
    });
    const layerResult = await felt.createLayersFromGeoJson({
      name: "Styled Features",
      source: {
        type: "geoJsonUrl",
        url: "https://example.com/data/mixed-features.geojson"
      },
      geometryStyles: {
        Point: {
          paint: { 
            color: "red", 
            size: 8 
          }
        },
        Line: {
          paint: { 
            color: "blue", 
            size: 4 
          },
          config: { 
            labelAttribute: ["name"] 
          },
          label: { 
            minZoom: 0 
          }
        },
        Polygon: {
          paint: { 
            color: "green", 
            strokeColor: "darkgreen",
            fillOpacity: 0.5
          }
        }
      }
    });
    await felt.deleteLayer("layer-1");
    const layerResult = await felt.createLayersFromGeoJson({
      source: {
        type: "geoJsonUrl",
        url: "https://example.com/data/realtime-sensors.geojson",
        refreshInterval: 60000  // Refresh every minute
      },
      name: "Live Sensor Data"
    });
    await felt.updateLayer({
      id: layer.id,
      source: {
        type: "geoJsonData",
        data: updatedFeatureCollection,
      },
    });
    // Count all residential buildings
    const residentialCount = await felt.getAggregates({
        layerId: "buildings",
        filters: ["type", "eq", "residential"],
        aggregation: { methods: ["count"] }
    });
    // returns { count: 427 }
    
    // Average and maximum home value in a specific neighborhood
    const homeValues = await felt.getAggregates({
        layerId: "buildings",
        boundary: [-122.43, 47.60, -122.33, 47.62], // neighborhood boundary
        aggregation: {
            methods: ["avg", "max"],
            attribute: "assessed_value"
        }
    });
    // returns { avg: 652850.32, max: 2450000 }
    // Basic grouping: Count of buildings by type
    const buildingsByType = await felt.getCategoryData({
        layerId: "buildings",
        attribute: "type"
    });
    /* returns:
    [
      { key: "residential", value: 427 },
      { key: "commercial", value: 82 },
      { key: "mixed-use", value: 38 },
      { key: "industrial", value: 15 }
    ]
    */
    // Basic histogram: building heights in 5 equal-width bins
    const buildingHeights = await felt.getHistogramData({
        layerId: "buildings",
        attribute: "height",
        steps: { type: "equal-intervals", count: 5 }
    });
    /* returns:
    [
      { min: 0, max: 100, value: 520 },
      { min: 100, max: 200, value: 36 },
      { min: 200, max: 300, value: 4 },
      { min: 300, max: 400, value: 1 },
      { min: 400, max: 500, value: 1 }
    ]
    */
    // Advanced: Show all building types, but only sum floor area of recent buildings
    const recentBuildingAreaByType = await felt.getCategoryData({
        layerId: "buildings",
        attribute: "type",
        values: {
            filters: ["year_built", "ge", 2000],
            aggregation: {
                method: "sum",
                attribute: "floor_area"
            }
        }
    });
    /* returns:
    [
      { key: "residential", value: 1250000 },
      { key: "commercial", value: 750000 },
      { key: "mixed-use", value: 350000 },
      { key: "industrial", value: 120000 }
    ]
    */
    // Compare old vs new buildings using the same height ranges
    const oldBuildingHeights = await felt.getHistogramData({
        layerId: "buildings",
        attribute: "height",
        steps: [0, 20, 50, 100, 200, 500],
        values: {
            filters: ["year_built", "lt", 1950]
        }
    });
    /* returns:
    [
      { min: 0, max: 20, value: 96 },
      { min: 20, max: 50, value: 104 },
      { min: 50, max: 100, value: 37 },
      { min: 100, max: 200, value: 12 },
      { min: 200, max: 500, value: 1 }
    ]
    */
    
    const newBuildingHeights = await felt.getHistogramData({
        layerId: "buildings",
        attribute: "height",
        steps: [0, 20, 50, 100, 200, 500], // Same ranges as above
        values: {
            filters: ["year_built", "ge", 1950]
        }
    });
    /* returns:
    [
      { min: 0, max: 20, value: 79 },
      { min: 20, max: 50, value: 99 },
      { min: 50, max: 100, value: 105 },
      { min: 100, max: 200, value: 24 },
      { min: 200, max: 500, value: 5 }
    ]
    */
    // Find average residential density across different neighborhoods
    const downtownDensity = await felt.getAggregates({
        layerId: "buildings",
        boundary: [-122.335, 47.600, -122.330, 47.610], // downtown boundary
        filters: ["type", "eq", "residential"],
        aggregation: {
            methods: ["avg"],
            attribute: "units_per_acre"
        }
    });
    // returns { avg: 124.7 }
    
    const suburbanDensity = await felt.getAggregates({
        layerId: "buildings",
        boundary: [-122.200, 47.650, -122.150, 47.700], // suburban boundary
        filters: ["type", "eq", "residential"],
        aggregation: {
            methods: ["avg"],
            attribute: "units_per_acre"
        }
    });
    // returns { avg: 8.2 }
    // Create a pie chart showing building type distribution
    async function createBuildingTypePieChart() {
        // Get data for the chart
        const data = await felt.getCategoryData({
            layerId: "buildings",
            attribute: "type"
        });
        
        // Render pie chart (using a hypothetical chart library)
        const chart = renderPieChart(data, {
            valuePath: "value",
            labelPath: "key",
            onSliceClick: handleSliceClick
        });
        
        return chart;
    }
    
    // Handle user interaction with the chart
    async function handleSliceClick(slice) {
        const buildingType = slice.label;
        
        // Apply filter to highlight this building type on the map
        await felt.setLayerFilters({
            layerId: "buildings",
            filters: ["type", "eq", buildingType],
            note: `Showing ${buildingType} buildings only`
        });
        
        // Get additional statistics for this building type
        const stats = await felt.getAggregates({
            layerId: "buildings",
            filters: ["type", "eq", buildingType],
            aggregation: {
                methods: ["avg"],
                attribute: "year_built"
            }
        });
        
        // Update the UI with these statistics
        updateStatsPanel(`Average ${buildingType} year built: ${Math.round(stats.avg)}`);
    }
    
    // Initialize the chart when the page loads
    createBuildingTypePieChart();
  • with the visualization type: numeric

  • numericAttribute: "Renter occupied (%)" and the computed steps using Jenks Natural Breaks over 5 classes

  • the sequential @galaxy palette, which Felt expands to one color per class — light colors for low values, dark for high

  • Continuous Color

    The map below shows average accumulated precipitation in the State of California between the years 1900 - 1960 and is colored along a continuous range between the min and max of the precipitation values.

    Map link: Average annual precipitation

    In this case, the numeric style is applied using a continuous method.

    • In the config block, numericAttribute: PRECIP uses the {"type": "continuous"} steps shortcut, so values scale across the attribute's full min–max range

    • The color property uses the sequential @purpYl palette, whose colors are interpolated to give each precipitation value a unique color

    Numeric color also works on raster datasets, using band instead of numericAttribute — see Raster visualizations.

    Size numeric values in your point or line data using the size property.

    Stepped size

    The map below shows earthquakes over the past year sized with 5 manually defined steps.

    In this case, the numeric style is applied using a classed method.

    • In the config block, the numericAttribute: mag has manually-defined steps for 5 classes

    • The size property has an array of five sizes, one for each defined class

    Map link: Earthquakes Stepped Size

    Continuous size

    The map below shows tonnes of corn that have been exported from Ukraine since August 2022 under the UN’s Black Sea Grain Initiative. The symbol size for each country is proportionate to its value in the data.

    Map link: Black Sea Grain Initiative

    To do this the min and max steps from the numericAttribute: tonnes are interpolated to be proportionately sized between a min and max point size — size:[5,48]

    • Let Felt compute breaks when you don't have the data in front of you: "steps": {"type": "jenks", "count": 5}. Provide explicit breaks ([0, 3, 5, 7, 9]) when you know the values you want. See Classification methods.

    • Classed arrays carry one value per class. With N break points you get N − 1 classes, so explicit color/size arrays need N − 1 entries.

    • Continuous size is written as [min, max] (e.g. [3, 30]) and scales smoothly; proportional-symbol sizes typically range 3–30 px for points. On lines, size is width in pixels (typically 1–20 px), not a radius.

    • Continuous size legends use inverted indices for historical reasons: "0" labels the maximum value, "1" the midpoint, and "2" the minimum (as in the example above). Continuous color legends run the intuitive way: "0" is the minimum. See .

    • Icons can vary by value too — set iconImage and let size (or color) carry the numeric variable:

    Vary color or size, not both at once — pick the single visual variable that best carries your message. Color reads as a choropleth; size reads as proportional symbols ("bigger = more"). Polygons support color only.

    Color

    Classification methods
    Map link: Percent renter occupied housing by county
    {
      "version": "2.3.1",
      "type": "numeric",
      "config": {
        "numericAttribute": "Renter occupied (%)",
        "steps": {"type": "jenks", "count": 5}
      },
      "paint": {
        "color": "@galaxy",
        "opacity": 0.9,
        "strokeColor": "auto",
        "strokeWidth": 0.5,
        "isSandwiched": true
      },
      "legend": {"displayName": "auto"}
    }
    {
      "version": "2.3.1",
      "type": "numeric",
      "config": {
        "numericAttribute": "PRECIP",
        "steps": {"type": "continuous"}
      },
      "paint": {
        "color": "@purpYl",
        "opacity": 0.9,
        "strokeColor": "auto",
        "strokeWidth": 0,
        "isClickable": false,
        "isSandwiched": true
      },
      "legend": {"displayName": "auto"}
    }
    {
      "version": "2.3.1",
      "type": "numeric",
      "config": {"numericAttribute": "mag", "steps": [4.5, 5.5, 6, 7, 7.5, 8.2]},
      "legend": {"displayName": "auto"},
      "paint": {
        "size": [5, 10, 12, 14, 16],
        "color": "hsl(0, 13%, 45%)",
        "opacity": 0.9,
        "strokeColor": "hsl(0, 13%, 88%)",
        "strokeWidth": 1.5
      }
    }
    {
      "version": "2.3.1",
      "type": "numeric",
      "config": {
        "steps": [33000, 2344684],
        "numericAttribute": "tonnes",
        "labelAttribute": ["category"]
      },
      "label": {
        "minZoom": 1,
        "color": "#5a5a5a",
        "fontSize": 14,
        "fontStyle": "Normal",
        "fontWeight": 500,
        "haloColor": "#d0d0d0",
        "haloWidth": 1.5,
        "offset": [8, 0]
      },
      "legend": {"displayName": {"0": "2.34M", "1": "714.65K", "2": "33K"}},
      "paint": {
        "size": [5, 48],
        "color": "hsl(22, 78%, 65%)",
        "opacity": 0.9,
        "strokeColor": "hsl(22, 78%, 88%)",
        "strokeWidth": 1.5
      }
    }
    {
      "version": "2.3.1",
      "type": "numeric",
      "config": {"numericAttribute": "beds", "steps": {"type": "jenks", "count": 4}},
      "paint": {
        "iconImage": "hospital",
        "iconFrame": "frame-circle",
        "color": "#E74C3C",
        "size": [3, 4, 5, 6],
        "opacity": 0.9,
        "isClickable": true
      },
      "legend": {"displayName": "auto"}
    }

    Any time there are fewer colors than values in a numeric style, they are interpolated in the ().

    Size

    Notes on steps, color, and size

    import base64
    import hashlib
    import hmac
    
    def verify_felt_signature(signing_key: str, raw_body: bytes, signature_header: str) -> bool:
        expected = base64.b64encode(
            hmac.new(signing_key.encode(), raw_body, hashlib.sha256).digest()
        ).decode()
        return hmac.compare_digest(expected, signature_header)
    import { createHmac, timingSafeEqual } from "node:crypto";
    
    function verifyFeltSignature(signingKey, rawBody, signatureHeader) {
      const expected = createHmac("sha256", signingKey).update(rawBody).digest("base64");
      return timingSafeEqual(Buffer.from(expected), Buffer.from(signatureHeader));
    }

    Verifying webhook signatures

    Requirements

    Generating a new webhook

    Using your new webhook

    Setting up an example webhook using Pipedream

    Pipedream's RequestBin is an easy way to collect webhook requests and even run custom code as a result.

    1. Create a free Pipedream account

    2. On the left-hand sidebar, navigate to Sources, then click on New source in the top-right corner.

    3. Select HTTP / Webhook, then New Requests (Payload Only), and give your newly-created source a name.

    4. Copy the endpoint URL. It will look like https://XXX.m.pipedream.net

    5. In Felt, navigate to the and click on Create new webhook

    6. Paste the endpoint URL from Pipedream into the Webhook URL text field, select your map in the dropdown and click Create.

    To test your webhook:

    1. Navigate to the Felt map that's linked to the webhook

    2. Make any change: add a pin, draw with the marker, change the color of a polygon, update sharing permissions...

    3. Back in Pipedream, verify that new events appear for the new source. Note that Pipedream wraps the request in its own envelope — the body field shown by Pipedream is the payload Felt sent:

    1. You may also configure a script to run using the above input.

    Setting up an example webhook using an AWS Lambda

    Serverless functions like AWS Lambda or Google Cloud Functions are an excellent way of triggering code after a map update by setting them to run after a specific HTTP call.

    1. In the AWS console, navigate to Lambda and click on Create function

    2. Choose a name and runtime and, under Advanced Settings, make sure to check Enable function URL

    3. Set Auth type to NONE and click on Create function

    4. In the next screen, copy the Function URL. It should look like https://{LAMBDA_ID}.lambda-url.{REGION}.on.aws

    5. Continue configuring your Lambda function as usual by editing the code that will run on map updates

    In Felt:

    1. Navigate to the and click on Create new webhook

    2. Paste the function URL from AWS into the Webhook URL text field, select your map in the dropdown and click Create.

    Since the function URL uses Auth type: NONE, anyone who discovers the URL can invoke it — make sure your function before doing any work.

    annotations
    Developers tab of the Workspace Settings page

    Raster visualizations

    Raster layers are styled with one of five type values. They share a common set of config options and never support popups or labels.

    Legends
    hcl color space
    Developers tab of your workspace settings
    Developers tab of your workspace settings
    verifies the felt-signature header
    {
      "body": {
        "attributes": {
          "type": "map:update",
          "updated_at": "2024-04-29T12:16:46",
          "map_id": "Jzjr8gMKSrCOxZ1OSMT49CB"
        }
      }
    }

    Classify one band (elevation, temperature, a hazard index)

    numeric

    Compute a spectral index (NDVI, NDMI, NDWI) from several bands

    categorical

    Discrete pixel classes (land cover, soil types)

    hillshade

    Relief shading from elevation, optionally tinted

    Option
    Notes

    band

    Which band to read (1-indexed). Numeric/hillshade.

    steps

    Classification — see . {"type": "continuous"} for smooth, or breaks like [0, 500, 1000].

    method

    Spectral-index formula and band mapping (multiband only).

    categories

    Categorical only — {"type": "all"} for every pixel value, or an explicit array.

    noData

    Value(s) to exclude, e.g. [-9999] for voids or [0] for no-data.

    In paint, color takes a raster palette or an explicit color array, plus opacity and isSandwiched (render below basemap water/roads).

    Renders the image with no classification — just opacity and resampling.

    Classify one band. Prefer continuous for smooth data (elevation, temperature); use breaks for discrete groups (hazard levels).

    A style is classed when steps has more than two break points — the color array then needs one entry per class (N break points produce N − 1 classes; extra colors are ignored). With exactly two steps ([min, max], as below), the style is continuous: the whole color array is interpolated smoothly across the range:

    Compute a derived index from multiple bands before classifying. The config.method names the index and maps its inputs to band numbers, and band lists every band used. Supported indices:

    • NDVI — (NIR − R) / (NIR + R), vegetation health. Requires NIR, R.

    • NDMI — (NIR − SWIR) / (NIR + SWIR), moisture. Requires NIR, SWIR.

    • NDWI — (G − NIR) / (G + NIR), water. Requires G, NIR.

    Band numbers are 1-indexed and sensor-specific (Landsat 8/9: R=4, G=3, NIR=5, SWIR=6 · Sentinel-2: R=4, G=3, NIR=8, SWIR=11).

    NDVI output ranges from −1 (water/bare) to 1 (dense vegetation); classify it with explicit breaks (e.g. [-1, -0.2, 0, 0.2, 0.4, 0.6, 1]) for labelled classes. Good starting points: NDVI → [-0.5, 0.5] with @cbRedYlGrn; NDWI → [-0.5, 0.25] and NDMI → [-0.5, 0.5] with @feltVibrant.

    Raster categories are raw pixel values (integers), so there is no categoricalAttribute. Use {"type": "all"} when you don't know the values, or an explicit array when you do, with one color per value. Don't set rasterResampling here — categorical rasters always use nearest resampling automatically (the property is rejected on this type), since linear interpolation would blend category codes into invalid values.

    For raster categorical, use the vector categorical palettes (@catPalette1…@catPalette7). A fully-transparent class can be expressed as "rgba(0, 0, 0, 0)".

    Simulates light and shadow on terrain. Plain hillshade is grayscale relief (config carries just band; paint carries source and intensity). Tinted hillshade overlays a hypsometric color ramp — add steps to config and color to paint; only do this when elevation coloring is wanted.

    Paint property
    Default
    Notes

    source

    315

    Light azimuth in degrees (0 = North, 90 = East). 315 (northwest) is standard.

    intensity

    0.5

    Shadow intensity 0–1; higher = more dramatic relief.

    color

    —

    Raster palette or color array (tinted only), low → high elevation.

    Tinted, classifying elevation like any numeric raster (use rasterResampling: "linear" and noData for voids):

    Mode

    type

    Use it for

    Image

    simple

    Display the raster as-is (satellite, aerial, base tiles)

    Numeric — single band

    numeric

    {
      "version": "2.3.1",
      "type": "simple",
      "config": {},
      "paint": {"opacity": 0.93, "isSandwiched": false}
    }
    {
      "version": "2.3.1",
      "type": "numeric",
      "config": {
        "band": 1,
        "steps": {"type": "continuous"},
        "noData": [-9999],
        "rasterResampling": "linear"
      },
      "paint": {"color": "@mplVirdis", "opacity": 1, "isSandwiched": false},
      "legend": {"displayName": "auto"}
    }
    {
      "version": "2.3.1",
      "type": "numeric",
      "config": {"band": 1, "steps": [-154.46, 7987.46]},
      "legend": {"displayName": {"0": "-154.46", "1": "7.99K"}},
      "paint": {
        "opacity": 1,
        "isSandwiched": false,
        "color": ["#454b9f", "#2d79a4", "#18a2a9", "#8cc187", "#e5d96c", "#eab459", "#ef8b45", "#e66250", "#db2d5e"]
      }
    }
    {
      "version": "2.3.1",
      "type": "numeric",
      "config": {
        "method": {"NDVI": {"NIR": 5, "R": 4}},
        "band": [5, 4],
        "steps": {"type": "continuous"},
        "noData": [0],
        "rasterResampling": "nearest",
        "outOfRangeValues": "hide"
      },
      "paint": {"color": "@cbRedYlGrn", "opacity": 1, "isSandwiched": false},
      "legend": {"displayName": "auto"}
    }
    {
      "version": "2.3.1",
      "type": "categorical",
      "config": {"categories": [1, 2, 3, 4, 5]},
      "paint": {
        "color": ["#228B22", "#4682B4", "#DAA520", "#8B4513", "#808080"],
        "opacity": 0.85,
        "isSandwiched": true
      },
      "legend": {
        "displayName": {"1": "Forest", "2": "Water", "3": "Cropland", "4": "Bare Soil", "5": "Urban"}
      }
    }
    {
      "version": "2.3.1",
      "type": "hillshade",
      "config": {"band": 1},
      "paint": {"source": 315, "intensity": 0.5, "isSandwiched": true},
      "legend": {}
    }
    {
      "version": "2.3.1",
      "type": "hillshade",
      "config": {
        "band": 1,
        "steps": {"type": "quantiles", "count": 6},
        "noData": [-9999],
        "rasterResampling": "linear"
      },
      "paint": {"color": "@terrain", "source": 315, "intensity": 0.5, "isSandwiched": true},
      "legend": {"displayName": "auto"}
    }

    Shared config options

    Image (simple)

    Numeric — single band

    Numeric — multiband (raster algebra)

    Categorical

    Hillshade

    Drawing annotations

    References have been updated in the app and documentation, while REST API endpoint and JS SDK method naming remain unchanged.

    The Felt SDK provides two main approaches for creating annotations on your maps:

    1. Interactive Drawing: Configure and activate drawing tools for users to create annotations manually

    2. Programmatic Creation: Create and modify annotations directly through code

    Annotations created via the SDK are session-specific - they're not persisted to the map and won't be visible to other users.

    Interactive drawing with tools

    The methods on the ToolsController enable you to programmatically activate drawing tools for your users, as well as setting various options for the tools, such as color, line width, etc.

    Use the setTool method to activate a particular tool.

    Use the setToolSettings method to configure the options for a specific tool.

    Use the and to be notified of changes to the above, or read them instantaneously with the and methods.

    As the user creates annotations with the tools, you can be notified of them being created and updated using the and listeners. See for more details.

    Tool name
    Annotation Type
    Description

    If you want to create annotations programmatically instead of letting your users draw them interactively on the map, use the methods in the .

    To create annotations, use the method.

    To update annotations, use the method.

    To delete annotations, use the method.

    When annotations are created programmatically, they also trigger notifications about the corresponding changes to annotations, via onElementCreate, onElementChange and onElementDelete.

    Extract the geometric representation of annotations using the method.

    The geometry is returned in GeoJSON geometry format, which can be quite different to the way the annotation is specified in Felt. For example, Circle annotations in Felt have their geometry converted into a polygon, representing the area covered by the circle.

    Note: Text, Note, and Image annotations do not return geometry as they are considered screen annotations rather than true "geospatial" annotations.

    Every change that is made to the annotations on a map results in a call to either , or .

    There are two different ways for listening to annotations being created, and the one you use depends on how the annotation is being created, and at what point you want to know about an annotation's creation.

    When the user is creating annotations with tools, they are often created in a number of steps, such as drawing a marker stroke or creating a polygon with many vertices.

    When you want to know when the user has finished creating the annotation (e.g. the polygon was closed or the marker stroke ended) then you should use the listener.

    When annotations are created programmatically, they do not trigger the event.

    Annotations created using Tools or will trigger the event, with an extra property stating whether the annotation is still being created.

    Here is an example showing the power of the Felt SDK, where in just a few lines of code you can allow your users to draw annotations and have them sent to your own backend systems for persistence or analysis.

    Assuming you have embedded your Felt map as described in , and in your own UI you have added a polygon-tool button and a reset-tool button, all you need is the following:

    UI components

    The Felt SDK enables you to extend Felt maps with custom UI components that integrate seamlessly with the native interface. These extensions allow you to add interactive controls and custom workflows directly within the map experience.

    Felt provides two primary ways to add custom UI to your maps:

    Action Triggers appear as buttons in the left sidebar and provide quick access to custom actions. Think of them as shortcuts that users can click to trigger specific functionality in your application.

    Custom Panels appear in the right sidebar and offer a full canvas for complex UI. These panels can contain forms, controls, and interactive elements that work together to create sophisticated user experiences.

    Action triggers are simple button controls that execute custom functions when clicked. They're perfect for actions that don't require additional user input - like applying filters, running calculations, or enabling an interaction mode.

    Custom panels provide a structured way to build complex UI within Felt. Each panel consists of three main sections that serve different purposes:

    Header - Contains the panel title, and an optional close button.

    Body

    Errors

    Felt validates a style before it applies it. Where the errors show up depends on how you set the style:

    • In-app style editor: errors appear as a banner, one message per line.

    • REST API (): the request fails with 422. The error has the title Invalid style format and the detail The provided style is an invalid Felt Style Language document. The individual validation messages are in that error's own errors

    rasterResampling

    Numeric and tinted hillshade only — categorical rasters reject it (they always resample nearest). "nearest" keeps exact pixel values; "linear" interpolates (use for continuous imagery/elevation).

    outOfRangeValues

    "color" clamps to the nearest class color; "hide" makes them transparent.

    Numeric — multiband / raster algebra
    Categorical
    Hillshade
    Classification methods

    polygon

    Polygon

    Creates an enclosed area with straight edges

    circle

    Circle

    A circle is defined by its center and radius.

    marker

    Marker

    Freeform drawing with a pen-like rendering. Different sizes can be set for the pen. The geometry produced is in world-space, so as you zoom the map, the pen strokes remain in place.

    highlighter

    Highlighter

    Represents an area of interest, created by drawing with a thick pen. By default, drawing an enclosed shape fills the interior.

    text

    Text

    A label placed on the map with no background color.

    note

    Note

    A label placed on the map with a rectangular background color and either white or black text.

    pin

    Place

    Creates a single point on a map, with a symbol and optional label

    line

    Line

    Creates a sequence of straight lines through the points that the user clicks

    route

    Line

    Creates a line that follows the routing logic depending on the mode of transport selected. For instance, walking, driving and cycling routes follow applicable roads and pathways to reach the waypoints the user provides. Flying routes follow great circle paths.

    Tool types

    Example

    Programmatic annotation creation

    Example

    Retrieving annotation geometry

    Listening for changes

    Listening for annotation creation

    Sample application: sending annotations drawn by users to your backend

    Note: Annotations were previously referred to as Elements.

    onToolChange
    onToolSettingsChange
    getTool
    getToolSettings
    onElementCreate
    onElementChange
    ElementsController
    createElement
    updateElement
    deleteElement
    getElementGeometry
    onElementCreate
    onElementDelete
    onElementChange
    onElementCreateEnd
    onElementCreateEnd
    createElement
    onElementCreate
    Getting started
    Listening for annotation creation
    // Configure the line tool
    felt.setToolSettings({
      tool: "line",
      strokeWidth: 8,
      color: "#448C2A"
    });
    
    // Activate the line tool
    felt.setTool("line");
    
    // Later, deactivate the tool
    felt.setTool(null);
    
    // Create a polygon
    const polygonElement = await felt.createElement({
      type: "Polygon",
      coordinates: [
        [
          [-122.42, 37.78],
          [-122.41, 37.78],
          [-122.41, 37.77],
          [-122.42, 37.77],
          [-122.42, 37.78]
        ]
      ],
      color: "#FF5733",
      fillOpacity: 0.5
    });
    
    
    // Update its properties
    await felt.updateElement({
      id: polygonElement.id,
      
      // note that we pass the type here, too in order to get correct
      // TypeScript type-checking and autocompletion.
      type: "Polygon",
      
      color: "#ABC123",
      fillOpacity: 0.5,
      strokeWidth: 2
    });
    
    // Finally delete the element
    await felt.deleteElement(polygonElement.id)
    // Get an element's geometry in GeoJSON format
    const geometry = await felt.getElementGeometry("element-1");
    console.log(geometry?.type, geometry?.coordinates);
    // Set up a listener for changes to a polygon
    const unsubscribeChange = felt.onElementChange({
      options: { id: polygonElement.id },
      handler: ({element}) => {
        console.log("Polygon was updated:", element);
      }
    });
    
    // Set up a listener for deletion
    const unsubscribeDelete = felt.onElementDelete({
      options: { id: polygonElement.id },
      handler: () => {
        console.log("Polygon was deleted");
      }
    });
    
    // Later, clean up listeners
    unsubscribeChange();
    unsubscribeDelete();
    // Listen for any element creation
    const unsubscribe = felt.onElementCreate({
      handler: ({ element, isBeingCreated }) => {
        console.log(`New element created with ID: ${element?.id}`);
    
        // Check if the element is still being drawn
        if (isBeingCreated) {
          console.log("User is still creating this element");
        }
      }
    });
    
    // Or listen for when element creation is completed with a tool
    const unsubscribeEnd = felt.onElementCreateEnd({
      handler: ({element}) => {
        console.log(`Element ${element.id} creation finished`);
      }
    });
    
    // Later, clean up listeners
    unsubscribe();
    unsubscribeEnd();
    // Set your initial tool settings in a style that suits your application
    felt.setToolSettings({
      tool: "polygon",
      strokeWidth: 2,
      color: "#FF5733",
      fillOpacity: 0.3,
    });
      
    // Activate the tool when the user clicks a button in your UI
    document.getElementById("polygon-tool").addEventListener("click", () => {
      felt.setTool("polygon");
    });
    
    // Disable the tool when the user clicks a button in your UI
    document.getElementById("reset-tool").addEventListener("click", () => {
      felt.setTool(null);
    });
    
    // Listen for completed polygons
    felt.onElementCreateEnd({
      handler: async ({element}) => {
        // get the polygon geometry that the user just drew
        const geometry = await felt.getElementGeometry(element.id);
        
        // send the polygon to your own backend system
        sendToServer(geometry);
      }
    });
    - Houses the main interactive elements like forms, selectors, and content areas. This is where users spend most of their time interacting with your custom functionality.

    Footer - Typically contains primary action buttons like "Save", "Cancel", or "Apply". This creates a consistent pattern users expect from dialog-style interfaces. The footer sticks to the bottom of the panel, with a divider separating it from the body.

    Create a panel by first generating an ID, then specifying its contents. You can control where panels appear using the initialPlacement parameter. When onClickClose is specified, a close button will be rendered in the header.

    Custom panels support a variety of interactive and display elements that can be combined to create rich user experiences:

    Text elements display formatted content and support full Markdown rendering, allowing you to include headings, lists, links, and formatting within your panels.

    TextInput elements allow users to enter custom values like names, descriptions, or numeric parameters.

    Control elements allow users to choose from predefined options:

    Available control elements include Select, CheckboxGroup, RadioGroup, and ToggleGroup. Each element supports similar properties. Select and RadioGroup hold a single selected value, so value is a string. CheckboxGroup and ToggleGroup allow several selections, so value is an array of strings (use [] for none) and onChange receives an array:

    Button elements trigger actions and come in different styles to communicate their importance and effect. Buttons can have different variants (filled, outlined, and transparent) and tints (primary, accent, danger and default):

    Primary filled buttons highlight the most important action in a context. Use sparingly - typically one per panel section.

    Group related buttons together to create clear action hierarchies:

    Button rows automatically handle spacing and alignment, ensuring your panels look polished and consistent.

    The grid element helps organize elements within panels to create complex layouts. It uses a grid property that follows the same syntax as the CSS shorthand grid property, and includes verticalAlignment and horizontalDistribution properties for precise control over layout positioning.

    iframe elements allow you to embed external content by providing a URL to charts, dashboards, or other web applications directly within your panels.

    Divider elements provide visual separation between sections of content in your panels.

    A panel is identified by its ID, which must be created using createPanelId. Custom IDs are not supported to prevent conflicts with other panels. Use createOrUpdatePanel for most panel scenarios. This declarative method lets you specify what the panel should contain, and it handles both creating new panels and updating existing ones with the same API call.

    Use updatePanelElements for granular control when you want to modify individual elements. Elements need IDs to be targeted for updates. You can also use createPanelElements to add elements and deletePanelElements to remove elements by their IDs.

    await felt.createActionTrigger({
      actionTrigger: {
        label: "Check solar potential",
        onTrigger: async () => {
          // Enable polygon tool to allow a user to select a region
          await felt.setTool("polygon");
          // ...
        },
      }
    });

    Action triggers and custom panels

    UI extension points

    Action triggers

    Custom panels

    Panel structure

    const panelId = await felt.createPanelId();
    await felt.createOrUpdatePanel({
      panel: {
        id: panelId,
        title: "Add report",
        body: [
          { type: "Select", placeholder: "Choose a neighborhood", options: [{ label: "Downtown", value: "downtown" }], onChange: setNeighborhood },
          { type: "Select", placeholder: "Choose a severity", options: [{ label: "Low", value: "low" }, { label: "High", value: "high" }], onChange: setSeverity },
          { type: "TextInput", placeholder: "Email", value: "", onBlur: storeEmail },
        ],
        footer: [
          {
            type: "ButtonRow",
            align: "end",
            items: [
              { type: "Button", label: "Back", variant: "transparent", tint: "default", onClick: handleBack },
              { type: "Button", label: "Done", variant: "filled", tint: "primary", onClick: handleDone }
            ]
          }
        ],
        onClickClose: async () => {
          // Clean up
          await felt.deletePanel(panelId);
        }
      },
      initialPlacement: { at: "start" } // Optional: control panel positioning
    });
    {
      type: "Text",
      content: "**Welcome!** This is a *formatted* text element with [links](https://felt.com).",
    }
    {
      type: "TextInput",
      placeholder: "First name",
      value: "",
      onChange: (args) => {
        console.log("New value:", args.value);
      },
    }
    // Select dropdown
    {
      type: "Select", // or "CheckboxGroup" | "RadioGroup" | "ToggleGroup"
      label: "Year",
      options: [
        { value: "2025", label: "2025" },
        { value: "2024", label: "2024" },
      ],
      value: "", // CheckboxGroup and ToggleGroup take an array, e.g. ["2025"]
      onChange: (args) => {
        console.log("Selected:", args.value);
      }
    }
    {
      type: "Button",
      label: "Submit",
      variant: "filled", // "transparent" | "outlined"
      tint: "primary", // "default" | "accent" | "danger"
      onClick: async () => {
        // Handle button click
      }
    }
    {
      type: "ButtonRow",
      align: "end",
      items: [
        { type: "Button", label: "Clear", variant: "transparent", tint: "default", onClick: handleClear },
        { type: "Button", label: "Send report", variant: "filled", tint: "primary", onClick: handleSend }
      ]
    }
    {
      type: "Grid",
      grid: "auto-flow / 2fr 1fr", // CSS grid shorthand
      verticalAlignment: "top", // "center" | "bottom"
      horizontalDistribution: "start", // "center" | "end" | "space-between" | "space-around" | "space-evenly"
      items: [
        { type: "Text", content: "![image](https://example.com/image1.png)" },
        { type: "Text", content: "![image](https://example.com/image2.png) \n ![image](https://example.com/image3.png)" },
      ]
    }
    {
      type: "Iframe",
      url: "https://example.com/dashboard",
      height: 400,
    }
    {
      type: "Divider",
    }
    const panelId = await felt.createPanelId();
    const greetingElement = { id: "greeting", type: "Text" as const, content: "Hello" };
    
    // Initial state
    await felt.createOrUpdatePanel({
      panel: {
        id: panelId,
        title: "My Panel",
        body: [greetingElement]
      }
    });
    
    // Update using destructuring
    await felt.createOrUpdatePanel({
      panel: {
        id: panelId,
        title: "My Panel",
        body: [{ ...greetingElement, content: "Hello World" }]
      }
    });
    const panelId = await felt.createPanelId();
    
    // Create panel with multiple elements
    await felt.createOrUpdatePanel({
      panel: {
        id: panelId,
        title: "Data Panel",
        body: [
          { id: "status-text", type: "Text", content: "Ready" },
          { 
            id: "layer-select", 
            type: "Select", 
            label: "Choose Layer",
            options: [
              { value: "layer1", label: "Population" },
              { value: "layer2", label: "Income" }
            ],
            onChange: handleLayerChange
          }
        ]
      }
    });
    
    // Update only the text element
    await felt.updatePanelElements({
      panelId,
      elements: [{
        element: {
          id: "status-text",
          type: "Text",
          content: "Processing data..."
        }
      }]
    });
    
    // Add a new element to the panel
    await felt.createPanelElements({
      panelId,
      elements: [{
        element: { 
          id: "progress-text", 
          type: "Text", 
          content: "Progress: 50%" 
        },
        container: "body",
        placement: { at: "end" }
      }]
    });
    
    // Remove an element from the panel
    await felt.deletePanelElements({
      panelId,
      elements: ["progress-text"]
    });

    Getting started with panels

    Panel elements

    Text elements

    TextInput elements

    Control elements

    Button elements

    Button rows

    Grid elements

    iframe elements

    Divider elements

    Panel state management

    Creating and updating panels

    Targeted panel element updates

    array:
  • JS SDK: setLayerStyle rejects with an Error whose message is the validation messages joined by newlines.

  • Felt MCP server and AI tools: the tool returns Invalid FSL: followed by the messages, separated by ; . These tools also run strict checks that the editor, REST API and SDK don't run.

  • In the messages below, <attribute> is the property name you set (for example strokeWidth), and <value> is the value you gave it.

    Problem: The style isn't valid JSON, or it's missing something Felt needs to read it.

    Solution: Check the JSON syntax, and make sure the style has a version (currently "2.3.1").

    Error messages:

    • The style must be a valid JSON object (style editor)

    • The style is missing some required properties (style editor)

    • Style must have 'version' attribute (style editor)

    • Style 'version' definition must be a string

    • Style 'version' value must be one of 1.0, 1.1, 1.2, 1.2.1, 1.2.2, 1.3, 1.3.1, 1.3.2, 2.0, 2.1, 2.1.1, 2.2, 2.3, 2.3.1

    • Visualization has an invalid type. The type must be one of simple, categorical, numeric, heatmap, hillshade or h3.

    Problem: One of the values in the style has an unsupported value or an invalid type.

    Solution: Change the value to one the message lists, or to the type it names. See the paint block and the label block for each property's accepted values.

    Error messages:

    • Visualization: Attribute '<attribute>' is not a number. Applies to strokeWidth, opacity, haloWidth, lineHeight, letterSpacing, maxLineChars, repeatDistance and offset.

    • Visualization: Attribute '<attribute>' is not a string. Applies to color, strokeColor, highlightColor, highlightStrokeColor, and the label color, haloColor, fontStyle and textTransform.

    • Visualization: Attribute 'size' is not a number or string

    • Visualization: Attribute 'fontSize' is not a number or an object

    • Visualization: Attribute 'lineCap' is not a supported value. Supported values are butt, round, square

    • Visualization: Attribute 'lineJoin' is not a supported value. Supported values are bevel, round, miter

    • Visualization dashArray has to be an array with even length

    • Visualization: Attribute 'placement' contains a not supported value <value>. Supported values are N, NE, E, SE, S, SW, W, NW, Center, auto. This is the point-label form, where placement is an array or "auto".

    • Visualization: Attribute 'placement' is not a supported value. Supported values are Above, Center, Below, AboveCenter. This is the line-label form, where placement is a single string.

    • Visualization: Attribute 'justify' contains a not supported value <value>. Supported values are auto, left, right, center

    • Visualization: Attribute 'iconOverlap' contains a not supported value <value>. Supported values are never, always, cooperative

    • <block> '<attribute>' must be of type <type>. For example, Style 'isClickable' must be of type boolean or label 'padding' must be of type number. Felt uses this message for the boolean options (isClickable, isHoverable, renderAsLines, showAboveBasemap, antialiasing), for minZoom, maxZoom and the label

    Problem: An interpolator is incomplete, or a property that only takes fixed values was given a smooth interpolator.

    Solution: Give the interpolator its stops (and, for step, its first output value; for exp, its base). For lineCap, lineJoin and dashArray, use a step interpolator.

    Error messages:

    • Visualization: Linear interpolator: Not enough stops defined

    • Visualization: Step interpolator: Missing output0

    • Visualization: Step interpolator: Not enough stops defined

    • Visualization: Exp interpolator: Missing base value

    • Visualization: Exp interpolator: Not enough stops defined

    • Visualization: Attribute '<attribute>' only supports step interpolators

    • Some of the step values are not a supported value. Supported values are <values>

    • Some of the step values are not a supported value. Only two-number array values are supported. This applies to dashArray.

    Problem: A value in the config block isn't one Felt supports.

    Solution: Use one of the values the message lists.

    Error messages:

    • Visualization 'labelAttribute' has to be a string

    • Visualization: All values in 'labelAttribute' must be a string

    • Visualization: Attribute 'aggregation' contains a not supported value <value>. Supported values are count, sum, min, max, mean

    • Visualization: Attribute 'binMode' contains a not supported value <value>. Supported values are fixed, low, medium, high. "auto" is also accepted, although the message doesn't list it.

    Problem: The style defines a categorical visualization, but categories or otherOrder is set incorrectly.

    Solution: Set categories to an array of values or to a top, bottom or all shortcut, and set otherOrder to "above" or "below".

    Error messages:

    • Categories or showOther required. The categories array is empty and showOther isn't set.

    • Categories must be an array of strings, numbers or booleans

    • Categories type must be one of 'top', 'bottom' or 'all'

    • Categories type "<type>" must have a count. The top and bottom shortcuts need a count.

    • 'showOther' must be one of [above, below]. Despite the wording, this message refers to the otherOrder field. showOther itself is a boolean, while otherOrder must be "above" or "below".

    Problem: The style defines a numeric visualization, but numericAttribute or steps is set incorrectly.

    Solution: Set numericAttribute to a numeric column, and give steps at least two values or a valid classification shortcut.

    Error messages:

    • numericAttribute required (style editor)

    • steps must have at least 2 values

    • Steps type must be one of 'continuous', 'jenks', 'quantiles', 'equal-intervals', 'stddev' or 'geo-intervals'

    • Steps type "<type>" must have a count. Every shortcut except continuous needs a count.

    Problem: A raster style refers to a band that doesn't exist, or its band-math method is set incorrectly.

    Solution: Use band numbers that exist in the raster, starting at 1. Give method exactly one of NDVI, NDMI or NDWI, with numeric band indexes for the bands that method needs: NIR and R for NDVI, NIR and SWIR for NDMI, and NIR and G for NDWI.

    Error messages:

    • Band out of bounds. Valid values are [1, <number of bands>]

    • Method must be an object

    • Method must define a single raster algebra op

    • Method must be one of NDMI, NDVI, NDWI

    • <method> must be an object

    • Band <band> is not supported. Must be one of G, NIR, R, SWIR

    • Band <band> must be a number

    • "<band>" band is required for <method>

    • outOfRangeValue must be one of 'color' or 'hide

    • Raster algebra visualizations only support continuous and equal-intervals steps types

    • Invalid color inteprolation method. Valid values are "rgb", "hcl"

    • Visualization: Attribute 'rasterResampling' is not a supported value. Supported values are nearest, linear

    • rasterResampling property is not supported for categorical rasters

    Problem: A hillshade value is out of range.

    Solution: Set source (the light direction) between 0 and 359, and intensity between 0 and 1.

    Error messages:

    • Visualization: Attribute 'source' should be a number between 0 and 359

    • Visualization: Attribute 'intensity' should be a number between 0 and 1

    Problem: A value in the legend, attributes or popup block has the wrong shape.

    Solution: Use the shape the message names.

    Error messages:

    • Legend "displayName" can only be "auto" or an object

    • Legend "displayName" can only be "auto" when "steps" or "categories" are set

    • Attribute "<column>" format must be an object

    • Attribute "<column>" format must be a valid Numbro format

    • Popup 'popupLayout' must be of type string

    • Popup 'popupLayout' must be 'table' or 'list'

    Problem: The Felt MCP server's style tools and Felt's AI tools reject keys and filters that the editor, REST API and SDK accept without complaint. For example, a misspelled key such as strokewidth is ignored by the REST API but rejected here.

    Solution: Remove or correct the key, palette variable or filter that the message names. See the filters block for filter syntax.

    Error messages:

    • Unknown key "<key>". Valid top-level keys are: version, type, config, paint, label, legend, popup, attributes, filters

    • Unknown key "<key>" in <block>. The block is config, paint, label, legend or popup.

    • Unknown key "<key>" in attributes["<column>"]. Valid keys are: displayName, format

    • Unknown palette variable: <value>. A color or strokeColor refers to an @ palette that doesn't exist.

    • Filter<path>: compound filters must be nested pairs, not a flat list. Use [a, "and", [b, "and", c]] instead of [a, "and", b, "and", c]. Got <filter>

    • Filter<path>: expected exactly 3 elements ([column, operator, value] or [expr, "and"|"or", expr]), got <count>: <filter>

    • Filter<path>: unknown operator/logic gate "<operator>". Valid operators are: lt, gt, le, ge, eq, ne, cn, nc, in, ni, is, isnt. Valid logic gates are: and, or. Got <filter>

    • Filter<path>: operator "<operator>" requires an array value (or null), got <value>. This applies to in and ni.

    • Filter<path>: operator "<operator>" only checks for null/existence and requires a null value. To compare against a value, use "eq"/"ne" instead. Got <value>. This applies to is and isnt.

    • Filter<path>: operator "<operator>" requires a string, number, boolean, or null value, got <value>

    • Filter<path>: attribute (first element) must be a string column name or null, got <value>

    • Filter<path>: expected a [column, operator, value] expression, a [expr, "and"|"or", expr] compound, or null/true/false, got <filter>

    <path> is empty for the top-level filter, and locates the nested expression otherwise, for example [0][2].

    update_style
    {
      "errors": [
        {
          "title": "Invalid style format",
          "detail": "The provided style is an invalid Felt Style Language document",
          "source": { "pointer": "/style" },
          "errors": [
            "Visualization: Attribute 'lineCap' is not a supported value. Supported values are butt, round, square"
          ]
        }
      ]
    }

    Most paint and label value checks run only for categorical, numeric, heatmap, hillshade and h3 styles. For simple styles, Felt checks version, the config

    Malformed style

    Unexpected value or type

    Zoom-based values

    The config block

    Categorical visualization not working

    Numeric visualization not working

    Raster visualization not working

    Hillshade visualization not working

    Legend, attributes and popup blocks

    Strict validation (Felt MCP server and AI tools)

    The paint block

    Color properties (color, strokeColor) accept a literal color or a @palette shortcut, and strokeColor additionally accepts the smart keyword "auto" — see . Point layers can be drawn as icons via iconImage — see . For data-driven (categorical, numeric, h3) visualizations, paint properties may be arrays, one value per category/class.

    Properties common to all visualization types.

    Colors & palettes

    Colors appear throughout the Felt Style Language — in paint (color, strokeColor), in label (color, haloColor), and in legends. There are three ways to express a color:

    1. A literal color — a hex, HSL, or RGB string.

    padding
    , and for the popup's
    keyAttributes
    (array),
    titleAttribute
    and
    imageAttribute
    (string).
    ,
    legend
    ,
    attributes
    and
    popup
    blocks, and the boolean and icon options in
    paint
    and
    label
    , but it doesn't check values like
    color
    ,
    strokeWidth
    or
    lineCap
    . An invalid value in a
    simple
    style may be accepted and then fail to render.
    Type
    Default
    Description

    isClickable

    boolean

    true

    Optional. A flag to tell if features should be clickable

    isHoverable

    boolean

    false

    Optional. A flag to tell if features should be hoverable

    isSandwiched

    The following properties are available for the simple type of visualization

    Type
    Applies to
    Description

    color

    string |

    Points, lines and polygons

    Optional. The color to be used

    dashArray

    number[]

    Lines

    Optional. The dash line definition — an array of dash/gap lengths with an even number of entries, e.g. [2, 1]

    See default values for the default values of these attributes on each geometry type.

    categorical and numeric visualizations use the same color, opacity, size, strokeColor, strokeWidth, and line properties listed above (highlightColor/highlightStrokeColor are simple-only). The difference is that each property may be an array: a single value applies to every category/class, or one value per category/class. See the categorical and numeric pages for worked examples.

    When a point layer should be drawn as icons instead of circles, set iconImage in the paint block. The icon takes on the layer's color and size. See Icons for the full catalog and examples.

    Type
    Description

    iconImage

    string | string[]

    An icon slug, or an emoji as "emoji::name:". Array form assigns an icon per category/class.

    iconFrame

    "none" | "frame-circle" | "frame-square"

    A frame drawn behind built-in icons (not emojis).

    iconRotation

    number | string

    Rotation in degrees, or a column name to rotate by.

    The paint property can be an array of paint objects for layered rendering. The layers render last-to-first (the last entry is the bottom layer, the first is on top). This is most often used for road-style casing: a wide dark outline beneath a narrower colored fill.

    Paint arrays work on all geometries but are most useful for line casing.

    Label rendering is configured separately, in the label block. See The label block for the full property reference, defaults, and placement-by-geometry guidance.

    Name
    Points
    Polygons
    Lines

    color

    "#EE4D5A"

    "#826DBA"

    "#4CC8A3"

    highlightColor

    "#EA3891"

    "hsla(329,81%,64%, 0.5)"

    "#EA3891"

    The paint block defines how feature geometries and raster pixels are rendered.

    Colors & palettes
    Icons
    {
      "version": "2.3.1",
      "type": "simple",
      "paint": [
        {"color": "#3B82F6", "size": 4, "opacity": 1.0, "lineCap": "round", "lineJoin": "round"},
        {"color": "#1E3A5F", "size": 8, "opacity": 1.0, "lineCap": "round", "lineJoin": "round"}
      ],
      "legend": {}
    }

    Simple visualizations

    Categorical and numeric visualizations

    Icon properties (points)

    Paint arrays (casing & layered rendering)

    Label block reference

    Default values

    A smart color — the keyword "auto", which Felt resolves to a contrasting color at render time.

  • A palette shortcut — a named, multi-color ramp like @galaxy, used by data-driven (categorical, numeric, heatmap, H3) visualizations.

  • Any of these string formats are accepted wherever a single color is expected:

    rgba(...) is also supported and is handy for fully-transparent fills (for example, a transparent "Other"/background class in a categorical raster: "rgba(0, 0, 0, 0)").

    "auto" computes a contrasting color automatically, based on the current map theme and the colors around it. It keeps strokes and label halos legible without hard-coding a value that might clash on a dark basemap or against a particular fill.

    Prefer "auto" for:

    • strokeColor on points and polygons

    • color and haloColor on labels

    …unless a specific color has been requested.

    For any data-driven visualization, prefer a named palette over a hand-built color array. Palettes are referenced with an @ prefix (for example "color": "@galaxy") and Felt expands them to the right number of colors for your classes or categories.

    Used by categorical, numeric, heatmap, and H3 visualizations on points, lines, and polygons.

    Palette
    Description

    @galaxy

    Pale yellow-green to dark teal

    @ylRed

    Yellow to red

    @ylGrn

    Yellow to green

    @purpYl

    Yellow to purple

    @pinkYl

    Palette
    Description

    @bluRd

    Blue to red

    @tealOr

    Teal to orange (colorblind-safe)

    @bluBr

    Blue to brown

    @grnOr

    Green to orange

    @purGrn

    Purple to green

    Palette
    Description

    @catPalette1 … @catPalette7

    Categorical color schemes

    @catPalettePT1

    Paul Tol categorical palette 1

    @catPalettePT2

    Paul Tol categorical palette 2

    Sequential and diverging vector palettes also come in numbered variants that request a specific number of colors — for example @galaxy7, @galaxy8, @galaxy9. Every sequential and diverging vector palette has variants for 2 through 9 colors. The unnumbered name lets Felt pick the right count for you, which is usually what you want.

    Used by heatmap visualizations, ordered from least to most density.

    Palette
    Description

    @geyser

    Green → beige → orange → red

    @redOrHeat

    Yellow → orange → red → magenta

    @purpYlHeat

    Light yellow → coral → pink → purple

    @lightningHeat

    Purple → teal → green → yellow

    @ylGrnHeat

    Used by numeric, hillshade, and raster-algebra visualizations.

    Palette
    Description

    @feltGrays

    Grayscale gradient

    @cbBlues

    ColorBrewer blues

    @cbPurples

    ColorBrewer purples

    @feltPinks

    Pink gradient

    @cmOceanGreens

    Palette
    Description

    @feltWeath

    Felt weather gradient

    @feltHeat

    Felt heat gradient

    @feltVibrant

    Felt vibrant gradient

    @nclBlOrRed

    NCL blue-orange-red diverging

    @cbRedYlGrn

    ColorBrewer red-yellow-green diverging

    Palette
    Description

    @terrain

    Terrain elevation gradient

    @rTerrain

    R terrain gradient

    @feltHypso

    Felt hypsometric tints

    @wikiTerrain

    Wikipedia terrain gradient

    Palette
    Description

    @nasaNDVI

    NASA NDVI vegetation index

    For raster categorical layers, use the vector categorical palettes above (@catPalette1 … @catPalette7, @catPalettePT1, @catPalettePT2).

    Raster palettes also support numbered variants to request a specific number of steps — for example @feltGrays2, @feltGrays3, … @feltGrays9.

    When a palette or color array drives a data-driven visualization, the number of colors should line up with the number of classes or categories:

    • Categorical: one color per category. With showOther: true and an explicit categories array, provide N + 1 colors — the extra one styles the "Other" bucket.

    • Classed numeric: N break points produce N − 1 classes, so an explicit color array needs N − 1 entries.

    • Continuous: provide 2 or more colors and Felt interpolates smoothly between them in the HCL color space.

    A palette shortcut handles all of this for you — Felt expands @galaxy to exactly the colors it needs. Reach for explicit arrays only when you want precise control over each color.

    {
      "color": "#3B82F6",
      "strokeColor": "hsl(217, 80%, 40%)",
      "haloColor": "rgb(38, 113, 0)"
    }
    {
      "paint": {
        "color": "#8F7EBF",
        "strokeColor": "auto",
        "strokeWidth": 1
      },
      "label": {
        "color": "auto",
        "haloColor": "auto",
        "haloWidth": 1.5
      }
    }

    Literal colors

    Smart color: "auto"

    Palette shortcuts

    Only the palette names listed below are valid. Use sequential palettes for single-direction data (population, elevation), and diverging palettes for data with a meaningful midpoint (change from a baseline, temperature anomaly). Reserve literal hex/HSL colors for simple (uniform) styles or when a specific color is requested.

    The families below are guidance, not rules: Felt doesn't check a palette against the visualization type, so any palette name works in any color property.

    Vector palettes

    Sequential (low → high)

    Diverging (two directions from a center)

    Categorical (distinct colors)

    Heatmap palettes

    Raster palettes

    Sequential

    Diverging

    Terrain

    Vegetation

    How colors map to classes

    The label block

    The label block defines how feature labels are rendered.

    These are the properties available to define label rendering. Point and line features are labeled directly; polygon labels are anchored at each polygon's centroid (or along lines with renderAsLines).

    Type
    Applies to
    Description

    color

    string | auto |

    In addition, lines support maxAngle (number, default 30), the maximum angle change in degrees between adjacent characters of text following a curved line. Sharper turns aren't placed. See .

    See of these attributes on each label type.

    placement is shaped differently depending on the geometry being labeled:

    • Points: an array of compass directions to try, e.g. ["E"] (right of the point), ["E", "W"], or ["Center"]. Felt uses the first placement that doesn't collide.

    • Lines: a single string relative to the line — "Above", "Center", or "Below". Tune repeatDistance

    A feature with a label value can still render no label. Three rules decide:

    • Collision. A label that overlaps one already placed is dropped rather than moved. padding sets how much space around the text counts as an overlap. Zooming in usually brings the label back.

    • Line length. Line labels are anchored every repeatDistance pixels and need enough of the run on screen to fit their glyphs. Short segments get nothing. A smaller fontSize or a lower repeatDistance makes room.

    If a feature never labels at any zoom, check its value. Null or empty draws nothing.

    If using a categorical or numeric visualization, the properties above may be arrays. If there's a single value in the array, that value is used in all categories. If there are as many values as categories, the corresponding value will be used for each category. You can see an example of a categorical viz .

    Name
    Points
    Lines
    Centroids

    Yellow to pink

    @lightning

    Lightning gradient

    @copper

    Copper gradient

    @spruce

    Spruce green

    @riverine

    Water gradient

    @neptune

    Blue gradient

    @violet

    Violet gradient

    @purple

    Purple gradient

    @weath

    Weather gradient

    Dark teal → green → yellow

    @bluRdHeat

    Blue → gray → red (diverging feel)

    @tealRedHeat

    Teal → green → yellow → orange → pink

    @purpYlPink

    Purple → teal → yellow → orange → red/pink

    Ocean greens gradient

    @pattFeltOcean

    Teal ocean gradient

    @cmOceanDeep

    Deep ocean gradient

    @mpaInferno

    Matplotlib inferno — note the spelling: mpa, not mpl

    @mplPlasma

    Matplotlib plasma

    @mplVirdis

    Matplotlib viridis, perceptually uniform — note the spelling: Virdis, not Viridis

    @cividis

    Cividis — colorblind-safe

    @feltYlRed

    Felt red to yellow

    @veg

    Vegetation gradient

    @cbBrBG

    ColorBrewer brown-blue-green diverging

    boolean

    false

    Optional. A flag to tell if features affected by this visualization need to be rendered below the basemap road and water layers. Only applies to polygon features, point and line features are already rendered on top of the basemap

    maxZoom

    number

    24

    Optional. The maximum zoom level at which the visualization will be shown

    minZoom

    number

    0

    Optional. The minimum zoom level at which the visualization will be shown

    renderAsLines

    boolean

    false

    Optional. Decides if a polygon dataset should be rendered as lines thus making them render above the basemap. Note that using this requires that the style uses line properties instead of polygon ones.

    paintPropertyOverrides

    object

    Optional. An escape hatch: raw MapLibre paint or layout properties applied to the generated layer. Keys that are not valid for the underlying MapLibre layer type are silently ignored. Also available on the label block. See here for more.

    highlightColor

    string

    Points, lines and polygons

    Optional. The color to be used when a feature is selected

    highlightStrokeColor

    string

    Points, lines and polygons

    Optional. The stroke color to be used when a feature is selected

    highlightStrokeWidth

    number | Interpolator

    Points and polygons

    Optional. The stroke width when a feature is selected

    lineCap

    "butt" | "round" | "square"| Interpolator

    Lines

    Optional. The shape used to draw the end points of lines

    lineJoin

    "bevel" | "round"| "miter"| Interpolator

    Lines

    Optional. The shape used to join two line segments when they meet

    opacity

    number | Interpolator

    Points, lines and polygons

    Optional. The opacity to use from 0 to 1

    size

    number | Interpolator

    Points and lines

    Optional. Point radius or line width in pixels

    strokeColor

    string | Interpolator | auto

    Points and polygons

    Optional. Stroke color

    strokeWidth

    number | Interpolator

    Points and polygons

    Optional. Stroke width in pixels

    iconHideOnZoom

    number

    Zoom level below which icons render as plain points.

    highlightStrokeColor

    "#EA3891"

    "hsla(329,81%,64%, 0.8)"

    -

    dashArray

    -

    -

    lineCap

    -

    -

    "round"

    lineJoin

    -

    -

    "round"

    opacity

    0.9

    0.8

    1

    isSandwiched

    -

    false

    -

    size

    4

    -

    2

    strokeColor

    "#F9F8Fb"

    "#777777"

    -

    strokeWidth

    1

    1

    -

    Interpolator
    (pixels between repeated labels) and
    maxAngle
    for curved text.
  • Polygons: ["Center"] places the label at the polygon's centroid.

  • Curvature. maxAngle caps the angle change between adjacent characters, not the overall bend of the line. Sharper turns aren't placed, so tight meanders often go unlabeled at the default 30.

    fontSize

    13

    13

    13

    fontStyle

    "Normal"

    "Normal"

    "Normal"

    fontWeight

    500

    400

    500

    haloColor

    "#fbfcfb"

    "#fbfcfb"

    "#fbfcfb"

    haloWidth

    1

    1

    1

    justify

    "auto"

    "auto"

    "auto"

    letterSpacing

    0

    0

    0

    lineHeight

    1.2

    1.2

    1.2

    maxLineChars

    10

    -

    10

    maxAngle

    -

    30

    -

    maxZoom

    24

    24

    24

    minZoom

    24

    24

    24

    offset

    [8, 8]

    0

    -

    padding

    2

    1

    0

    placement

    "auto"

    "Above"

    "Center"

    repeatDistance

    -

    250

    -

    textTransform

    "none"

    "none"

    "none"

    Points and lines

    Optional. The label color

    fontFamily

    string

    Points and lines

    Optional. Currently ignored: labels always use Felt's label font (Atlas Grotesk, with Noto Sans as a fallback). Use fontWeight and fontStyle to vary it.

    fontSize

    number | Interpolator

    Points and lines

    Optional. The font size in pixels

    fontStyle

    "normal" | "italic"

    Points and lines

    Optional. The font style (case-insensitive). Values other than italic render as normal

    fontWeight

    number

    Points and lines

    Optional. The font weight: 400 (regular), 500 (medium) or 700 (bold). Other values render as regular.

    haloColor

    string | Interpolator

    Points and lines

    Optional. The label halo color

    haloWidth

    number | Interpolator

    Points and lines

    Optional. The label halo width in pixels

    justify

    "auto" | "left" | "right" | "center"

    Points and lines

    Optional. Text justification for multi-line labels

    letterSpacing

    number

    Points and lines

    Optional. Horizontal spacing behaviour between text characters

    lineHeight

    number

    Points and lines

    Optional. Sets the height of a line box

    maxLineChars

    number | Interpolator

    Points and lines

    Optional. Defines the max number of characters before a line break

    maxZoom

    number

    Points and lines

    Optional. The maximum zoom level at which the label will be shown. Defaults to 24

    minZoom

    number

    Points and lines

    Optional. The minimum zoom level at which the label will be shown. Defaults to 24 (see note below)

    offset

    [number, number] | number

    Points and lines

    Optional. In the case of points, this value must be an array of two numeric offsets that will be applied on the positive X and Y axis defined by the label placement (i.e. an offset of [3,4] with a label placement of NE moves the label 3pixels to the right and 4 pixels above of the anchor point. An offset of [3,4] with a label placement of SW moves the label 3pixels to the left and 4 pixels below of the anchor point). In case of lines, this value is a single number that moves the label following the label position (i.e. an offset of 3 with a label position of Above will move the label 3 pixels above the line following the line normal. An offset of 3 with a label position of Below will mode the label 3 pixels under the line following the line normal)

    padding

    number

    Points and lines

    Optional. Adds invisible padding around the label that's used to compute label collisions

    placement

    string[] | "auto" | string

    Points and lines

    Optional. On points: an array of placements to try ("N", "NE", "E", "SE", "S", "SW", "W", "NW", "Center") or "auto"; if all placements collide with existing labels, the label is not shown. On lines: a single placement relative to the line — "Above", "Center" or "Below"

    renderAsLines

    boolean

    Polygons

    Optional. Renders labels along lines instead of using the centroids

    repeatDistance

    number

    Lines

    Optional. The distance in pixels between label repetitions on a line

    textTransform

    "none" | "uppercase" | "lowercase"

    Points and lines

    Optional. Specifies how to capitalize the label

    isClickable

    boolean

    Points, Lines and Polygons

    Optional. A flag to tell if labels should be clickable

    isHoverable

    boolean

    Points, Lines and Polygons

    Optional. A flag to tell if labels should be hoverable

    color

    "#333333"

    "#333333"

    "#333333"

    fontFamily

    "Atlas Grotesk LC"

    "Atlas Grotesk LC"

    "Atlas Grotesk LC"

    Placement by geometry

    When a label isn't rendered

    Prefer "color": "auto" and "haloColor": "auto" so labels stay legible across themes and basemaps. See Colors & palettes.

    Default values

    The default minZoom and maxZoom are both 24 — an empty range, which is how labels are hidden by default. To show labels, set a real zoom range on the label block.

    when a label isn't rendered
    default values
    config.labelAttribute
    here
    Interpolator

    Get current user

    get

    Retrieve profile information and settings for the authenticated user.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Responses
    200

    User

    application/json
    emailstringOptional
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    namestringOptional
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/user
    GET /api/v2/user HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "email": "text",
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "name": "text"
    }
    post

    Create a new layer from an existing data source connection (database, API, or file).

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired
    Body
    dataset_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    fromstring · enumRequiredPossible values:
    or
    fromstring · enumRequiredPossible values:
    querystringRequired
    source_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    or
    fromstring · enumRequiredPossible values:
    source_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    stac_asset_urlstringRequired
    Responses
    202

    AddSourceLayerAccepted

    application/json
    layer_groupstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/KFFhKAbvS4anD3wxtwNEpD
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC
    statusstring · enumOptionalPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/add_source_layer
    POST /api/v2/maps/{map_id}/add_source_layer HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 56
    
    {
      "dataset_id": "luCHyMruTQ6ozGk3gPJfEB",
      "from": "dataset"
    }
    {
      "links": {
        "layer_group": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/KFFhKAbvS4anD3wxtwNEpD",
        "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC"
      },
      "status": "accepted"
    }
    post

    Upload a file or import data from a URL to create a new layer on the map.

    The /upload endpoint can be used for both URL and file uploads:

    • For URL uploads, simply making a single POST request to the upload endpoint is enough

    • For file uploads, the response of the initial POST request contain information you will use to upload the file to Amazon S3

    Check our docs to see what URLs are supported.

    Uploading the file to Amazon S3

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map to upload the layer to.

    Body
    latstringRequired
    lngstringRequired
    or
    lat_lngstringRequired
    or
    full_addressstringRequired
    or
    countrystringOptional

    ex: USA

    localitystringOptional

    ex: Oakland

    postal_codestringOptional

    ex: 94612

    regionstringOptional

    ex: California

    street_addressstringRequired

    ex: 1904 Franklin St

    or
    countrystringOptional

    ex: USA

    localitystringRequired

    ex: Oakland

    regionstringOptional

    ex: California

    or
    wkt_wkb_literalstringRequired
    or
    us_census_tract_2020stringRequired
    or
    us_cbsa_2020stringRequired
    or
    us_state_2020stringRequired
    or
    us_county_2020stringRequired
    or
    us_zip_code_2022stringRequired
    or
    eu_lau_2021stringRequired
    or
    eu_nuts_1_2021stringRequired
    or
    eu_nuts_2_2021stringRequired
    or
    eu_nuts_3_2021stringRequired
    or
    aus_postal_area_2021stringRequired
    or
    admin_0stringRequired
    or
    admin_1stringRequired
    or
    timezonestringRequired
    or
    h3stringRequired
    import_urlstringOptional

    A public URL containing geodata to upload, in place of a file.

    latnumberOptional

    (Image uploads only) The latitude of the image center.

    lngnumberOptional

    (Image uploads only) The longitude of the image center.

    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired

    The display name for the new layer.

    zoomnumberOptional

    (Image uploads only) The zoom level of the image.

    Responses
    200

    Upload layer response

    application/json
    layer_group_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    layer_idstring · felt_idOptional

    The ID of the layer created by this upload. If multiple layers are included in the upload, this is the ID of the first layer in the layer group.

    Example: luCHyMruTQ6ozGk3gPJfEB
    presigned_attributesobject · nullableOptional

    If provided, the presigned attributes to attach to the post request

    typestring · enumOptionalPossible values:
    urlstring · nullableOptional

    If provided, the URL to post the file to

    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/upload
    POST /api/v2/maps/{map_id}/upload HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 311
    
    {
      "hints": [
        {
          "attributes": {
            "lat": "text",
            "lng": "text"
          }
        }
      ],
      "import_url": "text",
      "lat": 1,
      "lng": 1,
      "metadata": {
        "attribution_text": "text",
        "attribution_url": "text",
        "description": "text",
        "license": "text",
        "source_abbreviation": "text",
        "source_name": "text",
        "source_url": "text",
        "updated_at": "2025-03-24"
      },
      "name": "text",
      "zoom": 1
    }
    {
      "layer_group_id": "luCHyMruTQ6ozGk3gPJfEB",
      "layer_id": "luCHyMruTQ6ozGk3gPJfEB",
      "presigned_attributes": {},
      "type": "upload_response",
      "url": "text"
    }
    post

    Trigger a data refresh for a layer from its original data source to pull in the latest updates.

    After uploading a file or URL, you may want to update the resulting layer with new data. The process is quite similar to the upload:

    • For URL uploads, simply making a single POST request to the refresh endpoint is enough

    • For file refreshes, the response of the initial POST request will include a URL and some pre-signed attributes, which will be used to upload the new file to Amazon S3.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map hosting the layer to refresh

    layer_idstringRequired

    The ID of the layer to refresh

    Responses
    200

    Refresh response

    application/json
    layer_group_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    layer_idstring · felt_idOptional

    The ID of the layer created by this upload. If multiple layers are included in the upload, this is the ID of the first layer in the layer group.

    Example: luCHyMruTQ6ozGk3gPJfEB
    presigned_attributesobject · nullableOptional

    If provided, the presigned attributes to attach to the post request

    typestring · enumOptionalPossible values:
    urlstring · nullableOptional

    If provided, the URL to post the file to

    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/layers/{layer_id}/refresh
    POST /api/v2/maps/{map_id}/layers/{layer_id}/refresh HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "layer_group_id": "luCHyMruTQ6ozGk3gPJfEB",
      "layer_id": "luCHyMruTQ6ozGk3gPJfEB",
      "presigned_attributes": {},
      "type": "upload_response",
      "url": "text"
    }
    post

    Update project properties including name and visibility settings.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    project_idstringRequired

    The ID of the project to update

    Body
    max_inherited_permissionstring · enumOptional

    The maximum permission level workspace members inherit on team-visible projects. Only applicable when visibility is "workspace".

    Example: view_onlyPossible values:
    namestringOptional

    The name to be used for the Project

    visibilitystring · enumOptional

    Either viewable by all members of the workspace, or private to users who are invited.

    Possible values:
    Responses
    200

    Project

    application/json
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    created_atstring · date_timeRequiredExample: 2024-05-25T15:51:34
    folder_idstring · nullableRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC
    project_idstringRequired
    public_accessstring · enumRequiredPossible values:
    thumbnail_urlstring · nullableRequired

    A static thumbnail image of the map

    titlestringRequired
    typestring · enumRequiredPossible values:
    urlstringRequired
    visited_atstring · date_time · nullableRequired
    max_inherited_permissionstring · enumRequired

    The maximum permission level workspace members inherit on team-visible projects.

    Example: view_onlyPossible values:
    namestringRequired
    typestring · enumRequiredPossible values:
    visibilitystring · enumRequiredPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/projects/{project_id}/update
    POST /api/v2/projects/{project_id}/update HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 79
    
    {
      "max_inherited_permission": "view_only",
      "name": "text",
      "visibility": "workspace"
    }
    {
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "maps": [
        {
          "created_at": "2024-05-25T15:51:34",
          "folder_id": "text",
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "links": {
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC"
          },
          "project_id": "text",
          "public_access": "private",
          "thumbnail_url": "text",
          "title": "text",
          "type": "map_reference",
          "url": "text",
          "visited_at": "text"
        }
      ],
      "max_inherited_permission": "view_only",
      "name": "text",
      "type": "project",
      "visibility": "workspace"
    }
    get

    Retrieve all projects accessible to the authenticated user within the workspace.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Query parameters
    workspace_idstringOptional

    Only needed when using the API as part of a plugin

    Responses
    200

    Projects

    application/json
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    selfstringOptionalExample: https://felt.com/api/v2/projects/V0dnOMOuTd9B9BOsL9C0UjmqC
    max_inherited_permissionstring · enumRequired

    The maximum permission level workspace members inherit on team-visible projects.

    Example: view_onlyPossible values:
    namestringRequired
    typestring · enumRequiredPossible values:
    visibilitystring · enumRequiredPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/projects
    GET /api/v2/projects HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    [
      {
        "id": "luCHyMruTQ6ozGk3gPJfEB",
        "links": {
          "self": "https://felt.com/api/v2/projects/V0dnOMOuTd9B9BOsL9C0UjmqC"
        },
        "max_inherited_permission": "view_only",
        "name": "text",
        "type": "project_reference",
        "visibility": "workspace"
      }
    ]
    post

    Create a new project with specified name and visibility settings within the workspace.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Body
    max_inherited_permissionstring · enumOptional

    The maximum permission level workspace members inherit on team-visible projects. Only applicable when visibility is "workspace".

    Example: view_onlyPossible values:
    namestringRequired

    The name to be used for the Project

    visibilitystring · enumRequired

    Either viewable by all members of the workspace, or private to users who are invited.

    Possible values:
    Responses
    200

    Project

    application/json
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    created_atstring · date_timeRequiredExample: 2024-05-25T15:51:34
    folder_idstring · nullableRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC
    project_idstringRequired
    public_accessstring · enumRequiredPossible values:
    thumbnail_urlstring · nullableRequired

    A static thumbnail image of the map

    titlestringRequired
    typestring · enumRequiredPossible values:
    urlstringRequired
    visited_atstring · date_time · nullableRequired
    max_inherited_permissionstring · enumRequired

    The maximum permission level workspace members inherit on team-visible projects.

    Example: view_onlyPossible values:
    namestringRequired
    typestring · enumRequiredPossible values:
    visibilitystring · enumRequiredPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/projects
    POST /api/v2/projects HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 79
    
    {
      "max_inherited_permission": "view_only",
      "name": "text",
      "visibility": "workspace"
    }
    {
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "maps": [
        {
          "created_at": "2024-05-25T15:51:34",
          "folder_id": "text",
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "links": {
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC"
          },
          "project_id": "text",
          "public_access": "private",
          "thumbnail_url": "text",
          "title": "text",
          "type": "map_reference",
          "url": "text",
          "visited_at": "text"
        }
      ],
      "max_inherited_permission": "view_only",
      "name": "text",
      "type": "project",
      "visibility": "workspace"
    }

    Get project

    get

    Retrieve detailed information about a specific project including metadata, permissions, and references to the maps in the project.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    project_idstringRequired
    Responses
    200

    Project

    application/json
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    created_atstring · date_timeRequiredExample: 2024-05-25T15:51:34
    folder_idstring · nullableRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC
    project_idstringRequired
    public_accessstring · enumRequiredPossible values:
    thumbnail_urlstring · nullableRequired

    A static thumbnail image of the map

    titlestringRequired
    typestring · enumRequiredPossible values:
    urlstringRequired
    visited_atstring · date_time · nullableRequired
    max_inherited_permissionstring · enumRequired

    The maximum permission level workspace members inherit on team-visible projects.

    Example: view_onlyPossible values:
    namestringRequired
    typestring · enumRequiredPossible values:
    visibilitystring · enumRequiredPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/projects/{project_id}
    GET /api/v2/projects/{project_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "maps": [
        {
          "created_at": "2024-05-25T15:51:34",
          "folder_id": "text",
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "links": {
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC"
          },
          "project_id": "text",
          "public_access": "private",
          "thumbnail_url": "text",
          "title": "text",
          "type": "map_reference",
          "url": "text",
          "visited_at": "text"
        }
      ],
      "max_inherited_permission": "view_only",
      "name": "text",
      "type": "project",
      "visibility": "workspace"
    }

    Delete project

    delete

    Permanently delete a project and all its contained maps and folders.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    project_idstringRequired

    The ID of the Project to delete. Note: This will delete all Folders and Maps inside the project!

    Responses
    204

    No Content

    No content

    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    delete/api/v2/projects/{project_id}
    DELETE /api/v2/projects/{project_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    

    No content

    post

    Create a new map with optional customization options.

    Several aspects can be customized when creating a new map, including:

    • Title

    • Initial location (latitude, longitude and zoom level)

    • Sharing permissions (defaults to viewing and commenting for users with the map URL)

    • An array of URLs to import on map creation

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Body
    basemapstringOptional

    The basemap to use for the new map. Defaults to "default". Valid values are "default", "light", "dark", "satellite", a valid raster tile URL with {x}, {y}, and {z} parameters, or a hex color string like #ff0000.

    descriptionstringOptional

    A description to display in the map legend

    latnumberOptional

    If no data has been uploaded to the map, the initial latitude to center the map display on.

    layer_urlsstring[]Optional

    An array of urls to use to create layers in the map. Only tile URLs for raster layers are supported at the moment.

    lonnumberOptional

    If no data has been uploaded to the map, the initial longitude to center the map display on.

    public_accessstring · enumOptional

    The level of access to grant to the map. Defaults to "view_only".

    Possible values:
    titlestringOptional

    The title to be used for the map. Defaults to "Untitled Map"

    workspace_idstringOptional

    The workspace to create the map in. Defaults to the latest used workspace

    zoomnumberOptional

    If no data has been uploaded to the map, the initial zoom level for the map to display.

    Responses
    200

    Map

    application/json
    basemapstringOptional
    created_atstring · date_timeRequiredExample: 2024-05-25T15:51:34
    felt:idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    felt:parentIdstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    propertiesobjectOptional
    typestring · enumOptionalPossible values:
    typestring · enumRequiredPossible values:
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    namestring · nullableOptional
    felt:idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    felt:parentIdstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    propertiesobjectOptional
    typestring · enumOptionalPossible values:
    typestring · enumRequiredPossible values:
    folder_idstring · nullableOptional
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    captionstring · nullableRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    legend_visibilitystring · enum · nullableOptional

    Controls how the layer group is displayed in the legend. Defaults to "show".

    Possible values:
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D
    namestringRequired
    ordering_keyintegerOptional

    A sort order key used for ordering layers and layer groups in the legend

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    typestring · enumRequiredPossible values:
    visibility_interactionstring · enumRequired

    Controls how the layer group is displayed in the legend. Defaults to "default".

    Possible values:
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC
    project_idstringRequired
    public_accessstring · enumRequiredPossible values:
    default_table_layer_idstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    viewers_can_open_tablebooleanOptional

    Whether viewers can open the data table

    thumbnail_urlstring · nullableRequired

    A static thumbnail image of the map

    titlestringRequired
    typestring · enumRequiredPossible values:
    urlstringRequired
    can_duplicate_mapbooleanOptional

    Whether viewers can duplicate the map and data

    can_export_databooleanOptional

    Whether viewers can export map data

    can_see_map_presencebooleanOptional

    Whether viewers can see who else is viewing the map

    visited_atstring · date_time · nullableRequired
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps
    POST /api/v2/maps HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 149
    
    {
      "basemap": "text",
      "description": "text",
      "lat": 1,
      "layer_urls": [
        "text"
      ],
      "lon": 1,
      "public_access": "private",
      "title": "text",
      "workspace_id": "text",
      "zoom": 1
    }
    {
      "basemap": "text",
      "created_at": "2024-05-25T15:51:34",
      "element_groups": [
        {
          "elements": {
            "features": [
              {
                "geometry": {
                  "felt:id": "luCHyMruTQ6ozGk3gPJfEB",
                  "felt:parentId": "luCHyMruTQ6ozGk3gPJfEB"
                },
                "properties": {},
                "type": "Feature"
              }
            ],
            "type": "FeatureCollection"
          },
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "name": "text"
        }
      ],
      "elements": {
        "features": [
          {
            "geometry": {
              "felt:id": "luCHyMruTQ6ozGk3gPJfEB",
              "felt:parentId": "luCHyMruTQ6ozGk3gPJfEB"
            },
            "properties": {},
            "type": "Feature"
          }
        ],
        "type": "FeatureCollection"
      },
      "folder_id": "text",
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "layer_groups": [
        {
          "caption": "text",
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "layers": [
            {
              "attributes": [
                {
                  "name": "text",
                  "type": "INTEGER"
                }
              ],
              "caption": "text",
              "geometry_type": "Line",
              "hide_from_legend": true,
              "id": "luCHyMruTQ6ozGk3gPJfEB",
              "is_spreadsheet": true,
              "last_refreshed_at": "2026-01-01T00:00:00.000Z",
              "legend_display": "default",
              "legend_visibility": "hide",
              "links": {
                "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
                "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
              },
              "metadata": {
                "attribution_text": "text",
                "attribution_url": "text",
                "description": "text",
                "license": "text",
                "source_abbreviation": "text",
                "source_name": "text",
                "source_url": "text",
                "updated_at": "2025-03-24"
              },
              "name": "text",
              "next_refresh_at": "2026-01-01T00:00:00.000Z",
              "ordering_key": 1,
              "paused_reason": "consecutive_failures",
              "progress": 1,
              "refresh_period": "15 min",
              "refresh_status": "active",
              "status": "uploading",
              "style": {},
              "tile_url": "text",
              "type": "layer"
            }
          ],
          "legend_visibility": "hide",
          "links": {
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D"
          },
          "name": "text",
          "ordering_key": 1,
          "type": "layer_group",
          "visibility_interaction": "default"
        }
      ],
      "layers": [
        {
          "attributes": [
            {
              "name": "text",
              "type": "INTEGER"
            }
          ],
          "caption": "text",
          "geometry_type": "Line",
          "hide_from_legend": true,
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "is_spreadsheet": true,
          "last_refreshed_at": "2026-01-01T00:00:00.000Z",
          "legend_display": "default",
          "legend_visibility": "hide",
          "links": {
            "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
          },
          "metadata": {
            "attribution_text": "text",
            "attribution_url": "text",
            "description": "text",
            "license": "text",
            "source_abbreviation": "text",
            "source_name": "text",
            "source_url": "text",
            "updated_at": "2025-03-24"
          },
          "name": "text",
          "next_refresh_at": "2026-01-01T00:00:00.000Z",
          "ordering_key": 1,
          "paused_reason": "consecutive_failures",
          "progress": 1,
          "refresh_period": "15 min",
          "refresh_status": "active",
          "status": "uploading",
          "style": {},
          "tile_url": "text",
          "type": "layer"
        }
      ],
      "links": {
        "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC"
      },
      "project_id": "text",
      "public_access": "private",
      "table_settings": {
        "default_table_layer_id": "luCHyMruTQ6ozGk3gPJfEB",
        "viewers_can_open_table": true
      },
      "thumbnail_url": "text",
      "title": "text",
      "type": "map",
      "url": "text",
      "viewer_permissions": {
        "can_duplicate_map": true,
        "can_export_data": true,
        "can_see_map_presence": true
      },
      "visited_at": "text"
    }

    Move map

    post

    Move a map to a different project or folder within the same workspace. Project IDs and Folder IDs can be found inside map settings.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired
    Body
    project_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    or
    folder_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    Responses
    200

    Map

    application/json
    basemapstringOptional
    created_atstring · date_timeRequiredExample: 2024-05-25T15:51:34
    felt:idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    felt:parentIdstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    propertiesobjectOptional
    typestring · enumOptionalPossible values:
    typestring · enumRequiredPossible values:
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    namestring · nullableOptional
    felt:idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    felt:parentIdstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    propertiesobjectOptional
    typestring · enumOptionalPossible values:
    typestring · enumRequiredPossible values:
    folder_idstring · nullableOptional
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    captionstring · nullableRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    legend_visibilitystring · enum · nullableOptional

    Controls how the layer group is displayed in the legend. Defaults to "show".

    Possible values:
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D
    namestringRequired
    ordering_keyintegerOptional

    A sort order key used for ordering layers and layer groups in the legend

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    typestring · enumRequiredPossible values:
    visibility_interactionstring · enumRequired

    Controls how the layer group is displayed in the legend. Defaults to "default".

    Possible values:
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC
    project_idstringRequired
    public_accessstring · enumRequiredPossible values:
    default_table_layer_idstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    viewers_can_open_tablebooleanOptional

    Whether viewers can open the data table

    thumbnail_urlstring · nullableRequired

    A static thumbnail image of the map

    titlestringRequired
    typestring · enumRequiredPossible values:
    urlstringRequired
    can_duplicate_mapbooleanOptional

    Whether viewers can duplicate the map and data

    can_export_databooleanOptional

    Whether viewers can export map data

    can_see_map_presencebooleanOptional

    Whether viewers can see who else is viewing the map

    visited_atstring · date_time · nullableRequired
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/move
    POST /api/v2/maps/{map_id}/move HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 39
    
    {
      "project_id": "luCHyMruTQ6ozGk3gPJfEB"
    }
    {
      "basemap": "text",
      "created_at": "2024-05-25T15:51:34",
      "element_groups": [
        {
          "elements": {
            "features": [
              {
                "geometry": {
                  "felt:id": "luCHyMruTQ6ozGk3gPJfEB",
                  "felt:parentId": "luCHyMruTQ6ozGk3gPJfEB"
                },
                "properties": {},
                "type": "Feature"
              }
            ],
            "type": "FeatureCollection"
          },
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "name": "text"
        }
      ],
      "elements": {
        "features": [
          {
            "geometry": {
              "felt:id": "luCHyMruTQ6ozGk3gPJfEB",
              "felt:parentId": "luCHyMruTQ6ozGk3gPJfEB"
            },
            "properties": {},
            "type": "Feature"
          }
        ],
        "type": "FeatureCollection"
      },
      "folder_id": "text",
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "layer_groups": [
        {
          "caption": "text",
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "layers": [
            {
              "attributes": [
                {
                  "name": "text",
                  "type": "INTEGER"
                }
              ],
              "caption": "text",
              "geometry_type": "Line",
              "hide_from_legend": true,
              "id": "luCHyMruTQ6ozGk3gPJfEB",
              "is_spreadsheet": true,
              "last_refreshed_at": "2026-01-01T00:00:00.000Z",
              "legend_display": "default",
              "legend_visibility": "hide",
              "links": {
                "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
                "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
              },
              "metadata": {
                "attribution_text": "text",
                "attribution_url": "text",
                "description": "text",
                "license": "text",
                "source_abbreviation": "text",
                "source_name": "text",
                "source_url": "text",
                "updated_at": "2025-03-24"
              },
              "name": "text",
              "next_refresh_at": "2026-01-01T00:00:00.000Z",
              "ordering_key": 1,
              "paused_reason": "consecutive_failures",
              "progress": 1,
              "refresh_period": "15 min",
              "refresh_status": "active",
              "status": "uploading",
              "style": {},
              "tile_url": "text",
              "type": "layer"
            }
          ],
          "legend_visibility": "hide",
          "links": {
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D"
          },
          "name": "text",
          "ordering_key": 1,
          "type": "layer_group",
          "visibility_interaction": "default"
        }
      ],
      "layers": [
        {
          "attributes": [
            {
              "name": "text",
              "type": "INTEGER"
            }
          ],
          "caption": "text",
          "geometry_type": "Line",
          "hide_from_legend": true,
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "is_spreadsheet": true,
          "last_refreshed_at": "2026-01-01T00:00:00.000Z",
          "legend_display": "default",
          "legend_visibility": "hide",
          "links": {
            "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
          },
          "metadata": {
            "attribution_text": "text",
            "attribution_url": "text",
            "description": "text",
            "license": "text",
            "source_abbreviation": "text",
            "source_name": "text",
            "source_url": "text",
            "updated_at": "2025-03-24"
          },
          "name": "text",
          "next_refresh_at": "2026-01-01T00:00:00.000Z",
          "ordering_key": 1,
          "paused_reason": "consecutive_failures",
          "progress": 1,
          "refresh_period": "15 min",
          "refresh_status": "active",
          "status": "uploading",
          "style": {},
          "tile_url": "text",
          "type": "layer"
        }
      ],
      "links": {
        "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC"
      },
      "project_id": "text",
      "public_access": "private",
      "table_settings": {
        "default_table_layer_id": "luCHyMruTQ6ozGk3gPJfEB",
        "viewers_can_open_table": true
      },
      "thumbnail_url": "text",
      "title": "text",
      "type": "map",
      "url": "text",
      "viewer_permissions": {
        "can_duplicate_map": true,
        "can_export_data": true,
        "can_see_map_presence": true
      },
      "visited_at": "text"
    }
    post

    Create a copy of a map with all its layers, elements, and configuration.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map to duplicate

    Body
    destinationone ofOptional
    project_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    or
    folder_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    titlestringOptional

    Title for the duplicated map. If not provided, will default to '[Original Title] (copy)'

    Responses
    200

    Duplicated Map

    application/json
    basemapstringOptional
    created_atstring · date_timeRequiredExample: 2024-05-25T15:51:34
    felt:idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    felt:parentIdstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    propertiesobjectOptional
    typestring · enumOptionalPossible values:
    typestring · enumRequiredPossible values:
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    namestring · nullableOptional
    felt:idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    felt:parentIdstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    propertiesobjectOptional
    typestring · enumOptionalPossible values:
    typestring · enumRequiredPossible values:
    folder_idstring · nullableOptional
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    captionstring · nullableRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    legend_visibilitystring · enum · nullableOptional

    Controls how the layer group is displayed in the legend. Defaults to "show".

    Possible values:
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D
    namestringRequired
    ordering_keyintegerOptional

    A sort order key used for ordering layers and layer groups in the legend

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    typestring · enumRequiredPossible values:
    visibility_interactionstring · enumRequired

    Controls how the layer group is displayed in the legend. Defaults to "default".

    Possible values:
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC
    project_idstringRequired
    public_accessstring · enumRequiredPossible values:
    default_table_layer_idstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    viewers_can_open_tablebooleanOptional

    Whether viewers can open the data table

    thumbnail_urlstring · nullableRequired

    A static thumbnail image of the map

    titlestringRequired
    typestring · enumRequiredPossible values:
    urlstringRequired
    can_duplicate_mapbooleanOptional

    Whether viewers can duplicate the map and data

    can_export_databooleanOptional

    Whether viewers can export map data

    can_see_map_presencebooleanOptional

    Whether viewers can see who else is viewing the map

    visited_atstring · date_time · nullableRequired
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/duplicate
    POST /api/v2/maps/{map_id}/duplicate HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 70
    
    {
      "destination": {
        "project_id": "luCHyMruTQ6ozGk3gPJfEB"
      },
      "title": "text"
    }
    {
      "basemap": "text",
      "created_at": "2024-05-25T15:51:34",
      "element_groups": [
        {
          "elements": {
            "features": [
              {
                "geometry": {
                  "felt:id": "luCHyMruTQ6ozGk3gPJfEB",
                  "felt:parentId": "luCHyMruTQ6ozGk3gPJfEB"
                },
                "properties": {},
                "type": "Feature"
              }
            ],
            "type": "FeatureCollection"
          },
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "name": "text"
        }
      ],
      "elements": {
        "features": [
          {
            "geometry": {
              "felt:id": "luCHyMruTQ6ozGk3gPJfEB",
              "felt:parentId": "luCHyMruTQ6ozGk3gPJfEB"
            },
            "properties": {},
            "type": "Feature"
          }
        ],
        "type": "FeatureCollection"
      },
      "folder_id": "text",
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "layer_groups": [
        {
          "caption": "text",
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "layers": [
            {
              "attributes": [
                {
                  "name": "text",
                  "type": "INTEGER"
                }
              ],
              "caption": "text",
              "geometry_type": "Line",
              "hide_from_legend": true,
              "id": "luCHyMruTQ6ozGk3gPJfEB",
              "is_spreadsheet": true,
              "last_refreshed_at": "2026-01-01T00:00:00.000Z",
              "legend_display": "default",
              "legend_visibility": "hide",
              "links": {
                "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
                "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
              },
              "metadata": {
                "attribution_text": "text",
                "attribution_url": "text",
                "description": "text",
                "license": "text",
                "source_abbreviation": "text",
                "source_name": "text",
                "source_url": "text",
                "updated_at": "2025-03-24"
              },
              "name": "text",
              "next_refresh_at": "2026-01-01T00:00:00.000Z",
              "ordering_key": 1,
              "paused_reason": "consecutive_failures",
              "progress": 1,
              "refresh_period": "15 min",
              "refresh_status": "active",
              "status": "uploading",
              "style": {},
              "tile_url": "text",
              "type": "layer"
            }
          ],
          "legend_visibility": "hide",
          "links": {
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D"
          },
          "name": "text",
          "ordering_key": 1,
          "type": "layer_group",
          "visibility_interaction": "default"
        }
      ],
      "layers": [
        {
          "attributes": [
            {
              "name": "text",
              "type": "INTEGER"
            }
          ],
          "caption": "text",
          "geometry_type": "Line",
          "hide_from_legend": true,
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "is_spreadsheet": true,
          "last_refreshed_at": "2026-01-01T00:00:00.000Z",
          "legend_display": "default",
          "legend_visibility": "hide",
          "links": {
            "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
          },
          "metadata": {
            "attribution_text": "text",
            "attribution_url": "text",
            "description": "text",
            "license": "text",
            "source_abbreviation": "text",
            "source_name": "text",
            "source_url": "text",
            "updated_at": "2025-03-24"
          },
          "name": "text",
          "next_refresh_at": "2026-01-01T00:00:00.000Z",
          "ordering_key": 1,
          "paused_reason": "consecutive_failures",
          "progress": 1,
          "refresh_period": "15 min",
          "refresh_status": "active",
          "status": "uploading",
          "style": {},
          "tile_url": "text",
          "type": "layer"
        }
      ],
      "links": {
        "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC"
      },
      "project_id": "text",
      "public_access": "private",
      "table_settings": {
        "default_table_layer_id": "luCHyMruTQ6ozGk3gPJfEB",
        "viewers_can_open_table": true
      },
      "thumbnail_url": "text",
      "title": "text",
      "type": "map",
      "url": "text",
      "viewer_permissions": {
        "can_duplicate_map": true,
        "can_export_data": true,
        "can_see_map_presence": true
      },
      "visited_at": "text"
    }

    Get map

    get

    Retrieve a map with its metadata including title, URL, thumbnail, and timestamps.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired
    Responses
    200

    Map

    application/json
    basemapstringOptional
    created_atstring · date_timeRequiredExample: 2024-05-25T15:51:34
    felt:idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    felt:parentIdstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    propertiesobjectOptional
    typestring · enumOptionalPossible values:
    typestring · enumRequiredPossible values:
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    namestring · nullableOptional
    felt:idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    felt:parentIdstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    propertiesobjectOptional
    typestring · enumOptionalPossible values:
    typestring · enumRequiredPossible values:
    folder_idstring · nullableOptional
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    captionstring · nullableRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    legend_visibilitystring · enum · nullableOptional

    Controls how the layer group is displayed in the legend. Defaults to "show".

    Possible values:
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D
    namestringRequired
    ordering_keyintegerOptional

    A sort order key used for ordering layers and layer groups in the legend

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    typestring · enumRequiredPossible values:
    visibility_interactionstring · enumRequired

    Controls how the layer group is displayed in the legend. Defaults to "default".

    Possible values:
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC
    project_idstringRequired
    public_accessstring · enumRequiredPossible values:
    default_table_layer_idstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    viewers_can_open_tablebooleanOptional

    Whether viewers can open the data table

    thumbnail_urlstring · nullableRequired

    A static thumbnail image of the map

    titlestringRequired
    typestring · enumRequiredPossible values:
    urlstringRequired
    can_duplicate_mapbooleanOptional

    Whether viewers can duplicate the map and data

    can_export_databooleanOptional

    Whether viewers can export map data

    can_see_map_presencebooleanOptional

    Whether viewers can see who else is viewing the map

    visited_atstring · date_time · nullableRequired
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/maps/{map_id}
    GET /api/v2/maps/{map_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "basemap": "text",
      "created_at": "2024-05-25T15:51:34",
      "element_groups": [
        {
          "elements": {
            "features": [
              {
                "geometry": {
                  "felt:id": "luCHyMruTQ6ozGk3gPJfEB",
                  "felt:parentId": "luCHyMruTQ6ozGk3gPJfEB"
                },
                "properties": {},
                "type": "Feature"
              }
            ],
            "type": "FeatureCollection"
          },
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "name": "text"
        }
      ],
      "elements": {
        "features": [
          {
            "geometry": {
              "felt:id": "luCHyMruTQ6ozGk3gPJfEB",
              "felt:parentId": "luCHyMruTQ6ozGk3gPJfEB"
            },
            "properties": {},
            "type": "Feature"
          }
        ],
        "type": "FeatureCollection"
      },
      "folder_id": "text",
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "layer_groups": [
        {
          "caption": "text",
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "layers": [
            {
              "attributes": [
                {
                  "name": "text",
                  "type": "INTEGER"
                }
              ],
              "caption": "text",
              "geometry_type": "Line",
              "hide_from_legend": true,
              "id": "luCHyMruTQ6ozGk3gPJfEB",
              "is_spreadsheet": true,
              "last_refreshed_at": "2026-01-01T00:00:00.000Z",
              "legend_display": "default",
              "legend_visibility": "hide",
              "links": {
                "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
                "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
              },
              "metadata": {
                "attribution_text": "text",
                "attribution_url": "text",
                "description": "text",
                "license": "text",
                "source_abbreviation": "text",
                "source_name": "text",
                "source_url": "text",
                "updated_at": "2025-03-24"
              },
              "name": "text",
              "next_refresh_at": "2026-01-01T00:00:00.000Z",
              "ordering_key": 1,
              "paused_reason": "consecutive_failures",
              "progress": 1,
              "refresh_period": "15 min",
              "refresh_status": "active",
              "status": "uploading",
              "style": {},
              "tile_url": "text",
              "type": "layer"
            }
          ],
          "legend_visibility": "hide",
          "links": {
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D"
          },
          "name": "text",
          "ordering_key": 1,
          "type": "layer_group",
          "visibility_interaction": "default"
        }
      ],
      "layers": [
        {
          "attributes": [
            {
              "name": "text",
              "type": "INTEGER"
            }
          ],
          "caption": "text",
          "geometry_type": "Line",
          "hide_from_legend": true,
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "is_spreadsheet": true,
          "last_refreshed_at": "2026-01-01T00:00:00.000Z",
          "legend_display": "default",
          "legend_visibility": "hide",
          "links": {
            "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
          },
          "metadata": {
            "attribution_text": "text",
            "attribution_url": "text",
            "description": "text",
            "license": "text",
            "source_abbreviation": "text",
            "source_name": "text",
            "source_url": "text",
            "updated_at": "2025-03-24"
          },
          "name": "text",
          "next_refresh_at": "2026-01-01T00:00:00.000Z",
          "ordering_key": 1,
          "paused_reason": "consecutive_failures",
          "progress": 1,
          "refresh_period": "15 min",
          "refresh_status": "active",
          "status": "uploading",
          "style": {},
          "tile_url": "text",
          "type": "layer"
        }
      ],
      "links": {
        "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC"
      },
      "project_id": "text",
      "public_access": "private",
      "table_settings": {
        "default_table_layer_id": "luCHyMruTQ6ozGk3gPJfEB",
        "viewers_can_open_table": true
      },
      "thumbnail_url": "text",
      "title": "text",
      "type": "map",
      "url": "text",
      "viewer_permissions": {
        "can_duplicate_map": true,
        "can_export_data": true,
        "can_see_map_presence": true
      },
      "visited_at": "text"
    }

    Delete map

    delete

    Permanently delete a map and all its associated data.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map to delete

    Responses
    204

    No Content

    No content

    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    delete/api/v2/maps/{map_id}
    DELETE /api/v2/maps/{map_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    

    No content

    post

    Update map properties including title, description, and access permissions.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map to update

    Body
    basemapstringOptional

    The basemap to use for the map. Defaults to "default". Valid values are "default", "light", "dark", "satellite", a valid raster tile URL with {x}, {y}, and {z} parameters, or a hex color string like #ff0000.

    descriptionstringOptional

    A description to display in the map legend

    public_accessstring · enumOptional

    The level of access to grant to the map. Defaults to "view_only".

    Possible values:
    default_table_layer_idstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    viewers_can_open_tablebooleanOptional

    Whether viewers can open the data table

    titlestringOptional

    The new title for the map

    can_duplicate_mapbooleanOptional

    Whether viewers can duplicate the map and data

    can_export_databooleanOptional

    Whether viewers can export map data

    can_see_map_presencebooleanOptional

    Whether viewers can see who else is viewing the map

    Responses
    200

    Map

    application/json
    basemapstringOptional
    created_atstring · date_timeRequiredExample: 2024-05-25T15:51:34
    felt:idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    felt:parentIdstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    propertiesobjectOptional
    typestring · enumOptionalPossible values:
    typestring · enumRequiredPossible values:
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    namestring · nullableOptional
    felt:idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    felt:parentIdstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    propertiesobjectOptional
    typestring · enumOptionalPossible values:
    typestring · enumRequiredPossible values:
    folder_idstring · nullableOptional
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    captionstring · nullableRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    legend_visibilitystring · enum · nullableOptional

    Controls how the layer group is displayed in the legend. Defaults to "show".

    Possible values:
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D
    namestringRequired
    ordering_keyintegerOptional

    A sort order key used for ordering layers and layer groups in the legend

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    typestring · enumRequiredPossible values:
    visibility_interactionstring · enumRequired

    Controls how the layer group is displayed in the legend. Defaults to "default".

    Possible values:
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC
    project_idstringRequired
    public_accessstring · enumRequiredPossible values:
    default_table_layer_idstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    viewers_can_open_tablebooleanOptional

    Whether viewers can open the data table

    thumbnail_urlstring · nullableRequired

    A static thumbnail image of the map

    titlestringRequired
    typestring · enumRequiredPossible values:
    urlstringRequired
    can_duplicate_mapbooleanOptional

    Whether viewers can duplicate the map and data

    can_export_databooleanOptional

    Whether viewers can export map data

    can_see_map_presencebooleanOptional

    Whether viewers can see who else is viewing the map

    visited_atstring · date_time · nullableRequired
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/update
    POST /api/v2/maps/{map_id}/update HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 278
    
    {
      "basemap": "text",
      "description": "text",
      "public_access": "private",
      "table_settings": {
        "default_table_layer_id": "luCHyMruTQ6ozGk3gPJfEB",
        "viewers_can_open_table": true
      },
      "title": "text",
      "viewer_permissions": {
        "can_duplicate_map": true,
        "can_export_data": true,
        "can_see_map_presence": true
      }
    }
    {
      "basemap": "text",
      "created_at": "2024-05-25T15:51:34",
      "element_groups": [
        {
          "elements": {
            "features": [
              {
                "geometry": {
                  "felt:id": "luCHyMruTQ6ozGk3gPJfEB",
                  "felt:parentId": "luCHyMruTQ6ozGk3gPJfEB"
                },
                "properties": {},
                "type": "Feature"
              }
            ],
            "type": "FeatureCollection"
          },
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "name": "text"
        }
      ],
      "elements": {
        "features": [
          {
            "geometry": {
              "felt:id": "luCHyMruTQ6ozGk3gPJfEB",
              "felt:parentId": "luCHyMruTQ6ozGk3gPJfEB"
            },
            "properties": {},
            "type": "Feature"
          }
        ],
        "type": "FeatureCollection"
      },
      "folder_id": "text",
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "layer_groups": [
        {
          "caption": "text",
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "layers": [
            {
              "attributes": [
                {
                  "name": "text",
                  "type": "INTEGER"
                }
              ],
              "caption": "text",
              "geometry_type": "Line",
              "hide_from_legend": true,
              "id": "luCHyMruTQ6ozGk3gPJfEB",
              "is_spreadsheet": true,
              "last_refreshed_at": "2026-01-01T00:00:00.000Z",
              "legend_display": "default",
              "legend_visibility": "hide",
              "links": {
                "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
                "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
              },
              "metadata": {
                "attribution_text": "text",
                "attribution_url": "text",
                "description": "text",
                "license": "text",
                "source_abbreviation": "text",
                "source_name": "text",
                "source_url": "text",
                "updated_at": "2025-03-24"
              },
              "name": "text",
              "next_refresh_at": "2026-01-01T00:00:00.000Z",
              "ordering_key": 1,
              "paused_reason": "consecutive_failures",
              "progress": 1,
              "refresh_period": "15 min",
              "refresh_status": "active",
              "status": "uploading",
              "style": {},
              "tile_url": "text",
              "type": "layer"
            }
          ],
          "legend_visibility": "hide",
          "links": {
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D"
          },
          "name": "text",
          "ordering_key": 1,
          "type": "layer_group",
          "visibility_interaction": "default"
        }
      ],
      "layers": [
        {
          "attributes": [
            {
              "name": "text",
              "type": "INTEGER"
            }
          ],
          "caption": "text",
          "geometry_type": "Line",
          "hide_from_legend": true,
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "is_spreadsheet": true,
          "last_refreshed_at": "2026-01-01T00:00:00.000Z",
          "legend_display": "default",
          "legend_visibility": "hide",
          "links": {
            "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
          },
          "metadata": {
            "attribution_text": "text",
            "attribution_url": "text",
            "description": "text",
            "license": "text",
            "source_abbreviation": "text",
            "source_name": "text",
            "source_url": "text",
            "updated_at": "2025-03-24"
          },
          "name": "text",
          "next_refresh_at": "2026-01-01T00:00:00.000Z",
          "ordering_key": 1,
          "paused_reason": "consecutive_failures",
          "progress": 1,
          "refresh_period": "15 min",
          "refresh_status": "active",
          "status": "uploading",
          "style": {},
          "tile_url": "text",
          "type": "layer"
        }
      ],
      "links": {
        "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC"
      },
      "project_id": "text",
      "public_access": "private",
      "table_settings": {
        "default_table_layer_id": "luCHyMruTQ6ozGk3gPJfEB",
        "viewers_can_open_table": true
      },
      "thumbnail_url": "text",
      "title": "text",
      "type": "map",
      "url": "text",
      "viewer_permissions": {
        "can_duplicate_map": true,
        "can_export_data": true,
        "can_see_map_presence": true
      },
      "visited_at": "text"
    }
    post

    Render the map to a PNG, JPG, PDF or SVG image at a chosen size and view — what the app's "Export as image" produces, without a browser.

    The request waits up to 55 seconds and returns 200 with a completed export. Follow download_url to download the file before expires_at. Invalid requests return 4xx; rendering failures return 503, and a render that exceeds the request deadline returns 504. There is no polling endpoint.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map to export

    Body

    Output settings, geographic view and legend options for a map image export.

    show_componentsbooleanOptional

    Include the map's layer components (charts, statistics) in the legend card. Defaults to true.

    Default: true
    show_descriptionbooleanOptional

    Include the map's description under the title. Defaults to true.

    Default: true
    show_titlebooleanOptional

    Head the legend card with the map's title. Defaults to true.

    Default: true
    visiblebooleanOptional

    Draw the legend card over the map. Ignored when the map has no legend. Defaults to true.

    Default: true
    formatstring · enumOptional

    Output format. JPG is much smaller for satellite imagery. Defaults to png.

    Default: pngExample: pngPossible values:
    height_pxinteger · min: 96 · max: 16384Required

    Height of the output image file, in pixels.

    Example: 1500
    jpg_qualitynumber · max: 1Optional

    JPG quality, 0–1. Only used when format is jpg. Defaults to 0.9.

    Default: 0.9Example: 0.9
    pixel_ratiointeger · enumOptional

    Output pixels per CSS pixel of the map canvas (the app's Resolution setting). The canvas is width_px / pixel_ratio × height_px / pixel_ratio, so raising this at a fixed output size covers less ground. Defaults to 2.

    Default: 2Example: 2Possible values:
    width_pxinteger · min: 96 · max: 16384Required

    Width of the output image file, in pixels.

    Example: 2000
    show_scale_barbooleanOptional

    Draw the scale bar. Attribution is always drawn. Defaults to true.

    Default: true
    unitsstring · enumOptional

    Units for the scale bar. Defaults to the requesting user's saved unit preference, and to us_standard where none is set.

    Possible values:
    viewone ofOptional

    Choose exactly one of bounds or viewport. Omit view to use the map's default view.

    boundsnumber[] · min: 4 · max: 4Required

    [west, south, east, north] in degrees. The image is zoomed so the whole box is visible; the box is centered and the shorter axis is padded. The response's rendered_bounds reports the resulting frame. Latitudes must be within -85.051129..85.051129. A box that cannot fit at the supported zoom levels is rejected.

    Example: [-122.52,37.7,-122.35,37.83]
    or
    latitudenumber · min: -85.051129 · max: 85.051129RequiredExample: 37.77
    longitudenumber · min: -180 · max: 180RequiredExample: -122.43
    zoomnumber · min: 1 · max: 23RequiredExample: 12.5
    Responses
    200

    Completed image export

    application/json
    download_urlstringRequired

    A URL for the finished image; it redirects to the file, so follow redirects. Expires at expires_at.

    Example: https://felt.com/map-image-exports/auFxn9BO4RrGGiKrGfaS7ZB/download
    expires_atstring · date-timeRequired

    When download_url stops working.

    Example: 2026-08-28T19:04:11Z
    filenamestringRequiredExample: My map.png
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    formatstring · enumOptional

    Output format. JPG is much smaller for satellite imagery. Defaults to png.

    Default: pngExample: pngPossible values:
    height_pxinteger · min: 96 · max: 16384Required

    Height of the output image file, in pixels.

    Example: 1500
    jpg_qualitynumber · max: 1Optional

    JPG quality, 0–1. Only used when format is jpg. Defaults to 0.9.

    Default: 0.9Example: 0.9
    pixel_ratiointeger · enumOptional

    Output pixels per CSS pixel of the map canvas (the app's Resolution setting). The canvas is width_px / pixel_ratio × height_px / pixel_ratio, so raising this at a fixed output size covers less ground. Defaults to 2.

    Default: 2Example: 2Possible values:
    width_pxinteger · min: 96 · max: 16384Required

    Width of the output image file, in pixels.

    Example: 2000
    rendered_boundsnumber[] · min: 4 · max: 4Required

    The [west, south, east, north] the image actually covers — the requested view.bounds fitted to the canvas's aspect ratio, or the viewport's frame. Adjust framing from this rather than by measuring pixels. An east west of west crosses the antimeridian.

    Example: [-129,41.25,-116.1,47.03]
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    503

    ServiceUnavailableError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    504

    Gateway timeout

    application/json
    codestringOptional
    detailstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/image_exports
    POST /api/v2/maps/{map_id}/image_exports HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 271
    
    {
      "legend": {
        "show_components": true,
        "show_description": true,
        "show_title": true,
        "visible": true
      },
      "output": {
        "format": "png",
        "height_px": 1500,
        "jpg_quality": 0.9,
        "pixel_ratio": 2,
        "width_px": 2000
      },
      "show_scale_bar": true,
      "units": "metric",
      "view": {
        "bounds": [
          -122.52,
          37.7,
          -122.35,
          37.83
        ]
      }
    }
    {
      "download_url": "https://felt.com/map-image-exports/auFxn9BO4RrGGiKrGfaS7ZB/download",
      "expires_at": "2026-08-28T19:04:11Z",
      "filename": "My map.png",
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "output": {
        "format": "png",
        "height_px": 1500,
        "jpg_quality": 0.9,
        "pixel_ratio": 2,
        "width_px": 2000
      },
      "rendered_bounds": [
        -129,
        41.25,
        -116.1,
        47.03
      ]
    }
    post

    Update existing authentication credentials for a data source connection.

    Sensitive fields in credentials, like SourceCredential-KeyPair.private_key, will be returned as felt:redacted.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    source_idstringRequired

    The ID of the source that the credential belongs to

    credential_idstringRequired

    The ID of the credential

    Body
    credentialone ofOptional
    role_arnstringOptional
    role_session_namestringOptional
    typestring · enumRequiredPossible values:
    or
    connection_stringstringOptional
    typestring · enumRequiredPossible values:
    or
    namestringRequired

    The header name

    sensitivebooleanRequired

    Whether or not the header is sensitive. If it is marked as sensitive, then felt:redacted will be returned when viewing this header

    valuestringRequired

    The header value

    typestring · enumRequiredPossible values:
    or
    service_account_filenamestringOptional
    service_account_jsonone ofOptional
    objectOptional
    or
    stringOptional
    typestring · enumRequiredPossible values:
    or
    private_keystringOptional
    private_key_namestringOptional
    private_key_passphrasestringOptional
    typestring · enumRequiredPossible values:
    or
    tokenstringOptional
    typestring · enumRequiredPossible values:
    namestringOptional
    use_casestring · enumOptionalPossible values:
    Responses
    202

    Source credential updated

    application/json
    created_atinteger · nullableRequired
    credentialone ofRequired
    role_arnstringRequired
    role_session_namestringRequired
    typestring · enumRequiredPossible values:
    or
    connection_stringstringRequired
    typestring · enumRequiredPossible values:
    or
    namestringRequired

    The header name

    sensitivebooleanRequired

    Whether or not the header is sensitive. If it is marked as sensitive, then felt:redacted will be returned when viewing this header

    valuestringRequired

    The header value

    typestring · enumRequiredPossible values:
    or
    service_account_filenamestringRequired
    service_account_jsonone ofRequired
    objectOptional
    or
    stringOptional
    typestring · enumRequiredPossible values:
    or
    private_keystringRequired
    private_key_namestringRequired
    private_key_passphrasestringOptional
    typestring · enumRequiredPossible values:
    or
    tokenstringRequired
    typestring · enumRequiredPossible values:
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    namestringRequired
    source_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    updated_atinteger · nullableRequired
    use_casestring · enumRequiredPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/sources/{source_id}/credentials/{credential_id}/update
    POST /api/v2/sources/{source_id}/credentials/{credential_id}/update HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 137
    
    {
      "credential": {
        "role_arn": "text",
        "role_session_name": "text",
        "type": "aws_assume_role"
      },
      "name": "text",
      "use_case": "stac_api_authentication"
    }
    {
      "created_at": 1,
      "credential": {
        "role_arn": "text",
        "role_session_name": "text",
        "type": "aws_assume_role"
      },
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "name": "text",
      "source_id": "luCHyMruTQ6ozGk3gPJfEB",
      "updated_at": 1,
      "use_case": "stac_api_authentication"
    }
    get

    Retrieve detailed configuration and connection information for a specific data source.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    source_idstringRequired

    The ID of the source to show

    Responses
    200

    Source

    application/json
    automatic_syncstring · enumOptionalPossible values:
    connectionone of · nullableOptional
    blob_storage_urlstringOptional
    created_atinteger · nullableOptional
    credentialone ofOptional
    connection_stringstringRequired
    typestring · enumRequiredPossible values:
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    namestringOptional
    source_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    updated_atinteger · nullableOptional
    use_casestring · enumOptionalPossible values:
    typestring · enumOptionalPossible values:
    or
    datasetstring · nullableOptional

    BigQuery dataset to index. If omitted all datasets will be indexed

    projectstringOptional

    BigQuery project to index

    typestring · enumOptionalPossible values:
    or
    catalogstring · nullableOptional
    created_atinteger · nullableOptional
    credentialone ofOptional
    client_idstringRequired
    client_secretstringRequired
    typestring · enumRequiredPossible values:
    or
    tokenstringRequired
    typestring · enumRequiredPossible values:
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    namestringOptional
    source_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    updated_atinteger · nullableOptional
    use_casestring · enumOptionalPossible values:
    http_pathstringOptional
    schemastring · nullableOptional
    server_hostnamestringOptional
    typestring · enumOptionalPossible values:
    or
    typestring · enumOptionalPossible values:
    urlstringOptional
    or
    created_atinteger · nullableOptional
    credentialone ofOptional
    service_account_filenamestringRequired
    service_account_jsonone ofRequired
    objectOptional
    or
    stringOptional
    typestring · enumRequiredPossible values:
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    namestringOptional
    source_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    updated_atinteger · nullableOptional
    use_casestring · enumOptionalPossible values:
    gs_uristringOptional
    typestring · enumOptionalPossible values:
    or
    databasestringOptional
    hoststringOptional
    portinteger · nullableOptional
    typestring · enumOptionalPossible values:
    userstringOptional
    or
    databasestringOptional
    hoststringOptional
    portinteger · nullableOptional
    schemastring · nullableOptional
    typestring · enumOptionalPossible values:
    userstringOptional
    or
    databasestringOptional
    hoststringOptional
    portinteger · nullableOptional
    typestring · enumOptionalPossible values:
    userstringOptional
    or
    created_atinteger · nullableOptional
    credentialone ofOptional
    role_arnstringRequired
    role_session_namestringRequired
    typestring · enumRequiredPossible values:
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    namestringOptional
    source_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    updated_atinteger · nullableOptional
    use_casestring · enumOptionalPossible values:
    s3_uristringOptional
    typestring · enumOptionalPossible values:
    or
    account_idstringOptional
    created_atinteger · nullableOptional
    credentialone ofOptional
    tokenstringRequired
    typestring · enumRequiredPossible values:
    or
    private_keystringRequired
    private_key_namestringRequired
    private_key_passphrasestringOptional
    typestring · enumRequiredPossible values:
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    namestringOptional
    source_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    updated_atinteger · nullableOptional
    use_casestring · enumOptionalPossible values:
    databasestringOptional
    rolestring · nullableOptional
    schemastring · nullableOptional
    typestring · enumOptionalPossible values:
    userstringOptional
    warehousestring · nullableOptional
    or
    created_atinteger · nullableOptional
    credentialone ofOptional
    service_account_filenamestringRequired
    service_account_jsonone ofRequired
    objectOptional
    or
    stringOptional
    typestring · enumRequiredPossible values:
    or
    connection_stringstringRequired
    typestring · enumRequiredPossible values:
    or
    role_arnstringRequired
    role_session_namestringRequired
    typestring · enumRequiredPossible values:
    or
    namestringRequired

    The header name

    sensitivebooleanRequired

    Whether or not the header is sensitive. If it is marked as sensitive, then felt:redacted will be returned when viewing this header

    valuestringRequired

    The header value

    typestring · enumRequiredPossible values:
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    namestringOptional
    source_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    updated_atinteger · nullableOptional
    use_casestring · enumOptionalPossible values:
    typestring · enumOptionalPossible values:
    urlstringOptional
    or
    typestring · enumOptionalPossible values:
    urlstringOptional
    or
    typestring · enumOptionalPossible values:
    urlstringOptional
    created_atinteger · nullableOptional
    created_atintegerOptional
    descriptionstring · nullableOptional
    geometry_typestring · enumOptionalPossible values:
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    inspection_statusstring · enumOptionalPossible values:
    namestringOptional
    typestring · enumOptionalPossible values:
    updated_atintegerOptional
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    last_synced_atinteger · nullableOptional
    namestringOptional
    owner_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    permissionsone ofOptional
    typestring · enumRequiredPossible values:
    or
    typestring · enumRequiredPossible values:
    or
    project_idsstring · felt_id[]RequiredExample: luCHyMruTQ6ozGk3gPJfEB
    typestring · enumRequiredPossible values:
    sync_statusstring · enumOptionalPossible values:
    typestring · enumOptionalPossible values:
    updated_atinteger · nullableOptional
    workspace_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/sources/{source_id}
    GET /api/v2/sources/{source_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "automatic_sync": "enabled",
      "connection": {
        "blob_storage_url": "text",
        "credentials": [
          {
            "created_at": 1,
            "credential": {
              "connection_string": "text",
              "type": "azure_storage_connection_string"
            },
            "id": "luCHyMruTQ6ozGk3gPJfEB",
            "name": "text",
            "source_id": "luCHyMruTQ6ozGk3gPJfEB",
            "updated_at": 1,
            "use_case": "source_authentication"
          }
        ],
        "type": "abs_bucket"
      },
      "created_at": 1,
      "datasets": [
        {
          "created_at": 1,
          "description": "text",
          "geometry_type": "polygon",
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "inspection_status": "completed",
          "name": "text",
          "type": "dataset",
          "updated_at": 1
        }
      ],
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "last_synced_at": 1,
      "name": "text",
      "owner_id": "luCHyMruTQ6ozGk3gPJfEB",
      "permissions": {
        "type": "workspace_editors"
      },
      "sync_status": "syncing",
      "type": "source",
      "updated_at": 1,
      "workspace_id": "luCHyMruTQ6ozGk3gPJfEB"
    }

    Delete source

    delete

    Permanently delete a data source connection and all its associated layers and data.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    source_idstringRequired

    The ID of the source to delete

    Responses
    204

    No Content

    No content

    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    delete/api/v2/sources/{source_id}
    DELETE /api/v2/sources/{source_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    

    No content

    Delete source credential

    delete

    Remove authentication credentials from a data source connection.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    source_idstringRequired

    The ID of the source that the credential belongs to

    credential_idstringRequired

    The ID of the credential to delete

    Responses
    204

    No Content

    No content

    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    delete/api/v2/sources/{source_id}/credentials/{credential_id}
    DELETE /api/v2/sources/{source_id}/credentials/{credential_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    

    No content

    get

    Retrieve all data sources accessible to the authenticated user within the workspace.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Query parameters
    workspace_idstringOptional

    Only needed when using the API as part of a plugin

    Responses
    200

    Source references

    application/json
    automatic_syncstring · enumOptionalPossible values:
    connection_typestring · enumOptionalPossible values:
    created_atinteger · nullableOptional
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    last_synced_atinteger · nullableOptional
    selfstringOptionalExample: https://felt.com/api/v2/sources/V0dnOMOuTd9B9BOsL9C0UjmqC
    namestringOptional
    owner_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    permissionsone ofOptional
    typestring · enumRequiredPossible values:
    or
    typestring · enumRequiredPossible values:
    or
    project_idsstring · felt_id[]RequiredExample: luCHyMruTQ6ozGk3gPJfEB
    typestring · enumRequiredPossible values:
    sync_statusstring · enumOptionalPossible values:
    typestring · enumOptionalPossible values:
    updated_atinteger · nullableOptional
    workspace_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/sources
    GET /api/v2/sources HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    [
      {
        "automatic_sync": "enabled",
        "connection_type": "abs_bucket",
        "created_at": 1,
        "id": "luCHyMruTQ6ozGk3gPJfEB",
        "last_synced_at": 1,
        "links": {
          "self": "https://felt.com/api/v2/sources/V0dnOMOuTd9B9BOsL9C0UjmqC"
        },
        "name": "text",
        "owner_id": "luCHyMruTQ6ozGk3gPJfEB",
        "permissions": {
          "type": "workspace_editors"
        },
        "sync_status": "syncing",
        "type": "source_reference",
        "updated_at": 1,
        "workspace_id": "luCHyMruTQ6ozGk3gPJfEB"
      }
    ]
    post

    Create a new data source connection with authentication credentials and access permissions.

    Connecting the Source and inspecting its datasets will happen asynchronously after the API response is returned. To determine when the inspection process has completed, poll the Show Source endpoint and check for sync_status: completed.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Body
    connectionone ofRequired
    blob_storage_urlstringRequired

    ABS blob storage URL

    connection_stringstringRequired
    typestring · enumRequiredPossible values:
    namestringRequired
    use_casestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    or
    base64_encoded_service_accountstring · nullableOptional

    BigQuery credentials - Base 64 encoded Service account JSON

    datasetstring · nullableOptional

    BigQuery dataset

    projectstringRequired

    BigQuery project

    typestring · enumRequiredPossible values:
    or
    catalogstring · nullableOptional

    Databricks catalog

    credentialone ofRequired
    tokenstringRequired
    typestring · enumRequiredPossible values:
    or
    client_idstringRequired
    client_secretstringRequired
    typestring · enumRequiredPossible values:
    namestringRequired
    use_casestring · enumRequiredPossible values:
    http_pathstringRequired

    Databricks server HTTP path

    schemastring · nullableOptional

    Databricks schema

    server_hostnamestringRequired

    Databricks server hostname

    typestring · enumRequiredPossible values:
    or
    tokenstring · nullableOptional

    ESRI server token

    typestring · enumRequiredPossible values:
    urlstringRequired

    ESRI FeatureServer, MapServer, or ImageServer URL

    or
    service_account_filenamestringRequired
    service_account_jsonone ofRequired
    objectOptional
    or
    stringOptional
    typestring · enumRequiredPossible values:
    namestringRequired
    use_casestring · enumRequiredPossible values:
    gs_uristringRequired

    GCS URI

    typestring · enumRequiredPossible values:
    or
    databasestringRequired

    MSSQL database name

    hoststringRequired

    MSSQL host

    passwordstringRequired

    MSSQL password

    portinteger · nullableOptional

    MSSQL port

    typestring · enumRequiredPossible values:
    userstringRequired

    MSSQL user name

    or
    databasestringRequired

    Postgres database name

    hoststringRequired

    Postgres host

    passwordstringRequired

    Postgres password

    portinteger · nullableOptional

    Postgres port

    schemastringOptional

    Postgres schema

    typestring · enumRequiredPossible values:
    userstringRequired

    Postgres user name

    or
    databasestringRequired

    Redshift database name

    hoststringRequired

    Redshift host

    passwordstringRequired

    Redshift password

    portinteger · nullableOptional

    Redshift port

    typestring · enumRequiredPossible values:
    userstringRequired

    Redshift user name

    or
    role_arnstringRequired
    role_session_namestringRequired
    typestring · enumRequiredPossible values:
    namestringRequired
    use_casestring · enumRequiredPossible values:
    s3_uristringRequired

    S3 URI

    typestring · enumRequiredPossible values:
    or
    account_idstringRequired

    Snowflake account ID

    credentialone ofRequired
    private_keystringRequired
    private_key_namestringRequired
    private_key_passphrasestringOptional
    typestring · enumRequiredPossible values:
    or
    tokenstringRequired
    typestring · enumRequiredPossible values:
    namestringRequired
    use_casestring · enumRequiredPossible values:
    databasestringRequired

    Snowflake database name

    passwordstringOptional

    Snowflake password

    rolestring · nullableOptional

    Snowflake role

    schemastring · nullableOptional

    Snowflake database schema

    typestring · enumRequiredPossible values:
    userstringRequired

    Snowflake user name

    warehousestring · nullableOptional

    Snowflake warehouse

    or
    credentialone ofRequired
    role_arnstringRequired
    role_session_namestringRequired
    typestring · enumRequiredPossible values:
    or
    connection_stringstringRequired
    typestring · enumRequiredPossible values:
    or
    service_account_filenamestringRequired
    service_account_jsonone ofRequired
    objectOptional
    or
    stringOptional
    typestring · enumRequiredPossible values:
    or
    namestringRequired

    The header name

    sensitivebooleanRequired

    Whether or not the header is sensitive. If it is marked as sensitive, then felt:redacted will be returned when viewing this header

    valuestringRequired

    The header value

    typestring · enumRequiredPossible values:
    namestringRequired
    use_casestring · enumRequiredPossible values:
    tokenstring · nullableOptional

    STAC token

    typestring · enumRequiredPossible values:
    urlstringRequired

    STAC server / asset URL

    or
    typestring · enumRequiredPossible values:
    urlstringRequired

    WFS URL

    or
    typestring · enumRequiredPossible values:
    urlstringRequired

    WMS/WMTS URL

    namestringRequired
    permissionsone ofOptional
    typestring · enumRequiredPossible values:
    or
    typestring · enumRequiredPossible values:
    or
    project_idsstring · felt_id[]RequiredExample: luCHyMruTQ6ozGk3gPJfEB
    typestring · enumRequiredPossible values:
    Responses
    202

    Source reference

    application/json
    automatic_syncstring · enumOptionalPossible values:
    connection_typestring · enumOptionalPossible values:
    created_atinteger · nullableOptional
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    last_synced_atinteger · nullableOptional
    selfstringOptionalExample: https://felt.com/api/v2/sources/V0dnOMOuTd9B9BOsL9C0UjmqC
    namestringOptional
    owner_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    permissionsone ofOptional
    typestring · enumRequiredPossible values:
    or
    typestring · enumRequiredPossible values:
    or
    project_idsstring · felt_id[]RequiredExample: luCHyMruTQ6ozGk3gPJfEB
    typestring · enumRequiredPossible values:
    sync_statusstring · enumOptionalPossible values:
    typestring · enumOptionalPossible values:
    updated_atinteger · nullableOptional
    workspace_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/sources
    POST /api/v2/sources HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 269
    
    {
      "connection": {
        "blob_storage_url": "text",
        "credentials": [
          {
            "credential": {
              "connection_string": "text",
              "type": "azure_storage_connection_string"
            },
            "name": "text",
            "use_case": "source_authentication"
          }
        ],
        "type": "abs_bucket"
      },
      "name": "text",
      "permissions": {
        "type": "workspace_editors"
      }
    }
    {
      "automatic_sync": "enabled",
      "connection_type": "abs_bucket",
      "created_at": 1,
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "last_synced_at": 1,
      "links": {
        "self": "https://felt.com/api/v2/sources/V0dnOMOuTd9B9BOsL9C0UjmqC"
      },
      "name": "text",
      "owner_id": "luCHyMruTQ6ozGk3gPJfEB",
      "permissions": {
        "type": "workspace_editors"
      },
      "sync_status": "syncing",
      "type": "source_reference",
      "updated_at": 1,
      "workspace_id": "luCHyMruTQ6ozGk3gPJfEB"
    }
    post

    Add authentication credentials to an existing data source for secure access.

    Some sources may need to be configured with additional credentials to work with Felt. Access to S3 Buckets, for example, may be protected by IAM policies. Adding a SourceCredential-AwsAssumeRole credential to your S3 Bucket source allows Felt to connect to a private source.

    Sensitive fields in credentials, like SourceCredential-KeyPair.private_key, will be returned as felt:redacted.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    source_idstringRequired

    The ID of the source to attach the credential

    Body
    credentialone ofRequired
    role_arnstringRequired
    role_session_namestringRequired
    typestring · enumRequiredPossible values:
    or
    connection_stringstringRequired
    typestring · enumRequiredPossible values:
    or
    namestringRequired

    The header name

    sensitivebooleanRequired

    Whether or not the header is sensitive. If it is marked as sensitive, then felt:redacted will be returned when viewing this header

    valuestringRequired

    The header value

    typestring · enumRequiredPossible values:
    or
    service_account_filenamestringRequired
    service_account_jsonone ofRequired
    objectOptional
    or
    stringOptional
    typestring · enumRequiredPossible values:
    or
    private_keystringRequired
    private_key_namestringRequired
    private_key_passphrasestringOptional
    typestring · enumRequiredPossible values:
    or
    tokenstringRequired
    typestring · enumRequiredPossible values:
    namestringRequired
    use_casestring · enumRequiredPossible values:
    Responses
    202

    Source credential created

    application/json
    created_atinteger · nullableRequired
    credentialone ofRequired
    role_arnstringRequired
    role_session_namestringRequired
    typestring · enumRequiredPossible values:
    or
    connection_stringstringRequired
    typestring · enumRequiredPossible values:
    or
    namestringRequired

    The header name

    sensitivebooleanRequired

    Whether or not the header is sensitive. If it is marked as sensitive, then felt:redacted will be returned when viewing this header

    valuestringRequired

    The header value

    typestring · enumRequiredPossible values:
    or
    service_account_filenamestringRequired
    service_account_jsonone ofRequired
    objectOptional
    or
    stringOptional
    typestring · enumRequiredPossible values:
    or
    private_keystringRequired
    private_key_namestringRequired
    private_key_passphrasestringOptional
    typestring · enumRequiredPossible values:
    or
    tokenstringRequired
    typestring · enumRequiredPossible values:
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    namestringRequired
    source_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    updated_atinteger · nullableRequired
    use_casestring · enumRequiredPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/sources/{source_id}/credentials
    POST /api/v2/sources/{source_id}/credentials HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 137
    
    {
      "credential": {
        "role_arn": "text",
        "role_session_name": "text",
        "type": "aws_assume_role"
      },
      "name": "text",
      "use_case": "stac_api_authentication"
    }
    {
      "created_at": 1,
      "credential": {
        "role_arn": "text",
        "role_session_name": "text",
        "type": "aws_assume_role"
      },
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "name": "text",
      "source_id": "luCHyMruTQ6ozGk3gPJfEB",
      "updated_at": 1,
      "use_case": "stac_api_authentication"
    }

    Refresh source

    post

    Refresh the source's list of datasets.

    The refresh happens asynchronously after the API response is returned. To determine when it has completed, poll the Show Source endpoint and check for sync_status: completed.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    source_idstringRequired

    The ID of the source to refresh

    Responses
    202

    Source reference

    application/json
    automatic_syncstring · enumOptionalPossible values:
    connection_typestring · enumOptionalPossible values:
    created_atinteger · nullableOptional
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    last_synced_atinteger · nullableOptional
    selfstringOptionalExample: https://felt.com/api/v2/sources/V0dnOMOuTd9B9BOsL9C0UjmqC
    namestringOptional
    owner_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    permissionsone ofOptional
    typestring · enumRequiredPossible values:
    or
    typestring · enumRequiredPossible values:
    or
    project_idsstring · felt_id[]RequiredExample: luCHyMruTQ6ozGk3gPJfEB
    typestring · enumRequiredPossible values:
    sync_statusstring · enumOptionalPossible values:
    typestring · enumOptionalPossible values:
    updated_atinteger · nullableOptional
    workspace_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/sources/{source_id}/sync
    POST /api/v2/sources/{source_id}/sync HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "automatic_sync": "enabled",
      "connection_type": "abs_bucket",
      "created_at": 1,
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "last_synced_at": 1,
      "links": {
        "self": "https://felt.com/api/v2/sources/V0dnOMOuTd9B9BOsL9C0UjmqC"
      },
      "name": "text",
      "owner_id": "luCHyMruTQ6ozGk3gPJfEB",
      "permissions": {
        "type": "workspace_editors"
      },
      "sync_status": "syncing",
      "type": "source_reference",
      "updated_at": 1,
      "workspace_id": "luCHyMruTQ6ozGk3gPJfEB"
    }
    post

    Update data source connection settings, access permissions, or configuration details.

    Connecting the Source and inspecting its datasets will happen asynchronously after the API response is returned. To determine when the inspection process has completed, poll the Show Source endpoint and check for sync_status: completed.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    source_idstringRequired

    The ID of the source to update

    Body
    connectionone ofOptional
    blob_storage_urlstringOptional

    ABS blob storage URL

    typestring · enumRequiredPossible values:
    or
    base64_encoded_service_accountstring · nullableOptional

    BigQuery credentials - Base 64 encoded Service account JSON

    datasetstring · nullableOptional

    BigQuery dataset

    projectstringOptional

    BigQuery project

    typestring · enumRequiredPossible values:
    or
    catalogstring · nullableOptional

    Databricks catalog

    http_pathstringOptional

    Databricks server HTTP path

    schemastring · nullableOptional

    Databricks schema

    server_hostnamestringOptional

    Databricks server hostname

    typestring · enumRequiredPossible values:
    or
    tokenstring · nullableOptional

    ESRI server token

    typestring · enumRequiredPossible values:
    urlstringOptional

    ESRI FeatureServer, MapServer, or ImageServer URL

    or
    gs_uristringOptional

    GCS URI

    typestring · enumRequiredPossible values:
    or
    databasestringOptional

    MSSQL database name

    hoststringOptional

    MSSQL host

    passwordstringOptional

    MSSQL password

    portinteger · nullableOptional

    MSSQL port

    typestring · enumRequiredPossible values:
    userstringOptional

    MSSQL user name

    or
    databasestringOptional

    Postgres database name

    hoststringOptional

    Postgres host

    passwordstringOptional

    Postgres password

    portinteger · nullableOptional

    Postgres port

    schemastringOptional

    Postgres schema

    typestring · enumRequiredPossible values:
    userstringOptional

    Postgres user name

    or
    databasestringOptional

    Redshift database name

    hoststringOptional

    Redshift host

    passwordstringOptional

    Redshift password

    portinteger · nullableOptional

    Redshift port

    typestring · enumRequiredPossible values:
    userstringOptional

    Redshift user name

    or
    s3_uristringOptional

    S3 URI

    typestring · enumRequiredPossible values:
    or
    account_idstringOptional

    Snowflake account ID

    databasestringOptional

    Snowflake database name

    passwordstringOptional

    Snowflake password

    rolestring · nullableOptional

    Snowflake role

    schemastring · nullableOptional

    Snowflake database schema

    typestring · enumRequiredPossible values:
    userstringOptional

    Snowflake user name

    warehousestring · nullableOptional

    Snowflake warehouse

    or
    tokenstring · nullableOptional

    STAC token

    typestring · enumRequiredPossible values:
    urlstringOptional

    STAC server / asset URL

    or
    typestring · enumRequiredPossible values:
    urlstringOptional

    WFS URL

    or
    typestring · enumRequiredPossible values:
    urlstringOptional

    WMS/WMTS URL

    namestringOptional
    permissionsone ofOptional
    typestring · enumRequiredPossible values:
    or
    typestring · enumRequiredPossible values:
    or
    project_idsstring · felt_id[]RequiredExample: luCHyMruTQ6ozGk3gPJfEB
    typestring · enumRequiredPossible values:
    Responses
    202

    Source reference

    application/json
    automatic_syncstring · enumOptionalPossible values:
    connection_typestring · enumOptionalPossible values:
    created_atinteger · nullableOptional
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    last_synced_atinteger · nullableOptional
    selfstringOptionalExample: https://felt.com/api/v2/sources/V0dnOMOuTd9B9BOsL9C0UjmqC
    namestringOptional
    owner_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    permissionsone ofOptional
    typestring · enumRequiredPossible values:
    or
    typestring · enumRequiredPossible values:
    or
    project_idsstring · felt_id[]RequiredExample: luCHyMruTQ6ozGk3gPJfEB
    typestring · enumRequiredPossible values:
    sync_statusstring · enumOptionalPossible values:
    typestring · enumOptionalPossible values:
    updated_atinteger · nullableOptional
    workspace_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/sources/{source_id}/update
    POST /api/v2/sources/{source_id}/update HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 119
    
    {
      "connection": {
        "blob_storage_url": "text",
        "type": "abs_bucket"
      },
      "name": "text",
      "permissions": {
        "type": "workspace_editors"
      }
    }
    {
      "automatic_sync": "enabled",
      "connection_type": "abs_bucket",
      "created_at": 1,
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "last_synced_at": 1,
      "links": {
        "self": "https://felt.com/api/v2/sources/V0dnOMOuTd9B9BOsL9C0UjmqC"
      },
      "name": "text",
      "owner_id": "luCHyMruTQ6ozGk3gPJfEB",
      "permissions": {
        "type": "workspace_editors"
      },
      "sync_status": "syncing",
      "type": "source_reference",
      "updated_at": 1,
      "workspace_id": "luCHyMruTQ6ozGk3gPJfEB"
    }
    post

    Copy layers or layer groups to other maps, preserving styling and configuration.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Bodyone of[]
    destination_map_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    source_layer_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    or
    destination_map_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    source_layer_group_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    Responses
    200

    Duplicate Layers Response

    application/json
    captionstring · nullableRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    legend_visibilitystring · enum · nullableOptional

    Controls how the layer group is displayed in the legend. Defaults to "show".

    Possible values:
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D
    namestringRequired
    ordering_keyintegerOptional

    A sort order key used for ordering layers and layer groups in the legend

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    typestring · enumRequiredPossible values:
    visibility_interactionstring · enumRequired

    Controls how the layer group is displayed in the legend. Defaults to "default".

    Possible values:
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/duplicate_layers
    POST /api/v2/duplicate_layers HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 92
    
    [
      {
        "destination_map_id": "luCHyMruTQ6ozGk3gPJfEB",
        "source_layer_id": "luCHyMruTQ6ozGk3gPJfEB"
      }
    ]
    {
      "layer_groups": [
        {
          "caption": "text",
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "layers": [
            {
              "attributes": [
                {
                  "name": "text",
                  "type": "INTEGER"
                }
              ],
              "caption": "text",
              "geometry_type": "Line",
              "hide_from_legend": true,
              "id": "luCHyMruTQ6ozGk3gPJfEB",
              "is_spreadsheet": true,
              "last_refreshed_at": "2026-01-01T00:00:00.000Z",
              "legend_display": "default",
              "legend_visibility": "hide",
              "links": {
                "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
                "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
              },
              "metadata": {
                "attribution_text": "text",
                "attribution_url": "text",
                "description": "text",
                "license": "text",
                "source_abbreviation": "text",
                "source_name": "text",
                "source_url": "text",
                "updated_at": "2025-03-24"
              },
              "name": "text",
              "next_refresh_at": "2026-01-01T00:00:00.000Z",
              "ordering_key": 1,
              "paused_reason": "consecutive_failures",
              "progress": 1,
              "refresh_period": "15 min",
              "refresh_status": "active",
              "status": "uploading",
              "style": {},
              "tile_url": "text",
              "type": "layer"
            }
          ],
          "legend_visibility": "hide",
          "links": {
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D"
          },
          "name": "text",
          "ordering_key": 1,
          "type": "layer_group",
          "visibility_interaction": "default"
        }
      ],
      "layers": [
        {
          "attributes": [
            {
              "name": "text",
              "type": "INTEGER"
            }
          ],
          "caption": "text",
          "geometry_type": "Line",
          "hide_from_legend": true,
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "is_spreadsheet": true,
          "last_refreshed_at": "2026-01-01T00:00:00.000Z",
          "legend_display": "default",
          "legend_visibility": "hide",
          "links": {
            "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
          },
          "metadata": {
            "attribution_text": "text",
            "attribution_url": "text",
            "description": "text",
            "license": "text",
            "source_abbreviation": "text",
            "source_name": "text",
            "source_url": "text",
            "updated_at": "2025-03-24"
          },
          "name": "text",
          "next_refresh_at": "2026-01-01T00:00:00.000Z",
          "ordering_key": 1,
          "paused_reason": "consecutive_failures",
          "progress": 1,
          "refresh_period": "15 min",
          "refresh_status": "active",
          "status": "uploading",
          "style": {},
          "tile_url": "text",
          "type": "layer"
        }
      ]
    }

    Get map layer group

    get

    Retrieve detailed information about a specific layer group including its layers and configuration.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired
    layer_group_idstringRequired
    Responses
    200

    Layer Group

    application/json
    captionstring · nullableRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    legend_visibilitystring · enum · nullableOptional

    Controls how the layer group is displayed in the legend. Defaults to "show".

    Possible values:
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D
    namestringRequired
    ordering_keyintegerOptional

    A sort order key used for ordering layers and layer groups in the legend

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    typestring · enumRequiredPossible values:
    visibility_interactionstring · enumRequired

    Controls how the layer group is displayed in the legend. Defaults to "default".

    Possible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/maps/{map_id}/layer_groups/{layer_group_id}
    GET /api/v2/maps/{map_id}/layer_groups/{layer_group_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "caption": "text",
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "layers": [
        {
          "attributes": [
            {
              "name": "text",
              "type": "INTEGER"
            }
          ],
          "caption": "text",
          "geometry_type": "Line",
          "hide_from_legend": true,
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "is_spreadsheet": true,
          "last_refreshed_at": "2026-01-01T00:00:00.000Z",
          "legend_display": "default",
          "legend_visibility": "hide",
          "links": {
            "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
          },
          "metadata": {
            "attribution_text": "text",
            "attribution_url": "text",
            "description": "text",
            "license": "text",
            "source_abbreviation": "text",
            "source_name": "text",
            "source_url": "text",
            "updated_at": "2025-03-24"
          },
          "name": "text",
          "next_refresh_at": "2026-01-01T00:00:00.000Z",
          "ordering_key": 1,
          "paused_reason": "consecutive_failures",
          "progress": 1,
          "refresh_period": "15 min",
          "refresh_status": "active",
          "status": "uploading",
          "style": {},
          "tile_url": "text",
          "type": "layer"
        }
      ],
      "legend_visibility": "hide",
      "links": {
        "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D"
      },
      "name": "text",
      "ordering_key": 1,
      "type": "layer_group",
      "visibility_interaction": "default"
    }
    post

    Update layer group properties including name, visibility, and organization settings.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired
    layer_group_idstringRequired
    Body
    captionstringOptionalExample: A very interesting group
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    legend_visibilitystring · enumOptional

    Controls how the layer group is displayed in the legend

    Possible values:
    namestringOptionalExample: My Layer Group
    ordering_keyintegerOptional
    subtitlestringOptionalDeprecated

    Deprecated: use caption instead.

    visibility_interactionstring · enum · nullableOptional

    Controls how the layer group is displayed in the legend. Defaults to "default".

    Possible values:
    Responses
    200

    LayerGroup

    application/json
    captionstring · nullableRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    legend_visibilitystring · enum · nullableOptional

    Controls how the layer group is displayed in the legend. Defaults to "show".

    Possible values:
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D
    namestringRequired
    ordering_keyintegerOptional

    A sort order key used for ordering layers and layer groups in the legend

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    typestring · enumRequiredPossible values:
    visibility_interactionstring · enumRequired

    Controls how the layer group is displayed in the legend. Defaults to "default".

    Possible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/layer_groups/{layer_group_id}
    POST /api/v2/maps/{map_id}/layer_groups/{layer_group_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 171
    
    {
      "caption": "A very interesting group",
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "legend_visibility": "hide",
      "name": "My Layer Group",
      "ordering_key": 1,
      "visibility_interaction": "default"
    }
    {
      "caption": "text",
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "layers": [
        {
          "attributes": [
            {
              "name": "text",
              "type": "INTEGER"
            }
          ],
          "caption": "text",
          "geometry_type": "Line",
          "hide_from_legend": true,
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "is_spreadsheet": true,
          "last_refreshed_at": "2026-01-01T00:00:00.000Z",
          "legend_display": "default",
          "legend_visibility": "hide",
          "links": {
            "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
          },
          "metadata": {
            "attribution_text": "text",
            "attribution_url": "text",
            "description": "text",
            "license": "text",
            "source_abbreviation": "text",
            "source_name": "text",
            "source_url": "text",
            "updated_at": "2025-03-24"
          },
          "name": "text",
          "next_refresh_at": "2026-01-01T00:00:00.000Z",
          "ordering_key": 1,
          "paused_reason": "consecutive_failures",
          "progress": 1,
          "refresh_period": "15 min",
          "refresh_status": "active",
          "status": "uploading",
          "style": {},
          "tile_url": "text",
          "type": "layer"
        }
      ],
      "legend_visibility": "hide",
      "links": {
        "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D"
      },
      "name": "text",
      "ordering_key": 1,
      "type": "layer_group",
      "visibility_interaction": "default"
    }
    delete

    Permanently remove a layer group and all its contained layers from a map.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map to delete the layer group from

    layer_group_idstringRequired

    The ID of the layer group to delete

    Responses
    204

    No Content

    No content

    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    delete/api/v2/maps/{map_id}/layer_groups/{layer_group_id}
    DELETE /api/v2/maps/{map_id}/layer_groups/{layer_group_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    

    No content

    Get map layer

    get

    Retrieve detailed information about a specific layer including data source, styling, and configuration.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired
    layer_idstringRequired
    Responses
    200

    Layer

    application/json
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/maps/{map_id}/layers/{layer_id}
    GET /api/v2/maps/{map_id}/layers/{layer_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "attributes": [
        {
          "name": "text",
          "type": "INTEGER"
        }
      ],
      "caption": "text",
      "geometry_type": "Line",
      "hide_from_legend": true,
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "is_spreadsheet": true,
      "last_refreshed_at": "2026-01-01T00:00:00.000Z",
      "legend_display": "default",
      "legend_visibility": "hide",
      "links": {
        "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
        "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
      },
      "metadata": {
        "attribution_text": "text",
        "attribution_url": "text",
        "description": "text",
        "license": "text",
        "source_abbreviation": "text",
        "source_name": "text",
        "source_url": "text",
        "updated_at": "2025-03-24"
      },
      "name": "text",
      "next_refresh_at": "2026-01-01T00:00:00.000Z",
      "ordering_key": 1,
      "paused_reason": "consecutive_failures",
      "progress": 1,
      "refresh_period": "15 min",
      "refresh_status": "active",
      "status": "uploading",
      "style": {},
      "tile_url": "text",
      "type": "layer"
    }

    Delete map layer

    delete

    Permanently remove a layer from a map.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map to delete the layer from

    layer_idstringRequired

    The ID of the layer to delete

    Responses
    204

    No Content

    No content

    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    delete/api/v2/maps/{map_id}/layers/{layer_id}
    DELETE /api/v2/maps/{map_id}/layers/{layer_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    

    No content

    post

    Update the visual styling properties of a layer including colors, symbols, and rendering options.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map where the layer is located

    layer_idstringRequired

    The ID of the layer to update the style of

    Body
    styleobjectRequired

    The new layer style, specified in Felt Style Language format

    Responses
    200

    Layer

    application/json
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/layers/{layer_id}/update_style
    POST /api/v2/maps/{map_id}/layers/{layer_id}/update_style HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 12
    
    {
      "style": {}
    }
    {
      "attributes": [
        {
          "name": "text",
          "type": "INTEGER"
        }
      ],
      "caption": "text",
      "geometry_type": "Line",
      "hide_from_legend": true,
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "is_spreadsheet": true,
      "last_refreshed_at": "2026-01-01T00:00:00.000Z",
      "legend_display": "default",
      "legend_visibility": "hide",
      "links": {
        "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
        "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
      },
      "metadata": {
        "attribution_text": "text",
        "attribution_url": "text",
        "description": "text",
        "license": "text",
        "source_abbreviation": "text",
        "source_name": "text",
        "source_url": "text",
        "updated_at": "2025-03-24"
      },
      "name": "text",
      "next_refresh_at": "2026-01-01T00:00:00.000Z",
      "ordering_key": 1,
      "paused_reason": "consecutive_failures",
      "progress": 1,
      "refresh_period": "15 min",
      "refresh_status": "active",
      "status": "uploading",
      "style": {},
      "tile_url": "text",
      "type": "layer"
    }
    get

    Retrieve all layers from a map, including uploaded files and connected data sources.

    Every layer you have created is listed, so a layer whose upload has not finished comes back with "status": "uploading" even though the map does not show it yet — an upload that never arrives can be cleaned up by deleting the layer. Pass include_uploading=false for just the layers the map shows.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired
    Query parameters
    include_uploadingbooleanOptional

    Set to false to leave out the layers whose upload has not finished, matching what the map shows.

    Default: true
    Responses
    200

    Layers list

    application/json
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/maps/{map_id}/layers
    GET /api/v2/maps/{map_id}/layers HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    [
      {
        "attributes": [
          {
            "name": "text",
            "type": "INTEGER"
          }
        ],
        "caption": "text",
        "geometry_type": "Line",
        "hide_from_legend": true,
        "id": "luCHyMruTQ6ozGk3gPJfEB",
        "is_spreadsheet": true,
        "last_refreshed_at": "2026-01-01T00:00:00.000Z",
        "legend_display": "default",
        "legend_visibility": "hide",
        "links": {
          "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
          "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
        },
        "metadata": {
          "attribution_text": "text",
          "attribution_url": "text",
          "description": "text",
          "license": "text",
          "source_abbreviation": "text",
          "source_name": "text",
          "source_url": "text",
          "updated_at": "2025-03-24"
        },
        "name": "text",
        "next_refresh_at": "2026-01-01T00:00:00.000Z",
        "ordering_key": 1,
        "paused_reason": "consecutive_failures",
        "progress": 1,
        "refresh_period": "15 min",
        "refresh_status": "active",
        "status": "uploading",
        "style": {},
        "tile_url": "text",
        "type": "layer"
      }
    ]
    post

    Update layer properties including styling, visibility, grouping, and other configuration options.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired
    Bodyobject · LayerUpdateParams[]
    captionstringOptionalExample: A very interesting dataset
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    layer_group_idstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    legend_displaystring · enumOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enumOptional

    Controls whether or not the layer is displayed in the legend.

    Possible values:
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringOptionalExample: My Layer
    ordering_keyintegerOptional
    refresh_periodstring · enumOptional

    How often the layer refreshes. Rates faster than the workspace plan allows return a 422.

    Possible values:
    subtitlestringOptionalDeprecated

    Deprecated: use caption instead.

    Responses
    200

    Layer list

    application/json
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/layers
    POST /api/v2/maps/{map_id}/layers HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 427
    
    [
      {
        "caption": "A very interesting dataset",
        "id": "luCHyMruTQ6ozGk3gPJfEB",
        "layer_group_id": "luCHyMruTQ6ozGk3gPJfEB",
        "legend_display": "default",
        "legend_visibility": "hide",
        "metadata": {
          "attribution_text": "text",
          "attribution_url": "text",
          "description": "text",
          "license": "text",
          "source_abbreviation": "text",
          "source_name": "text",
          "source_url": "text",
          "updated_at": "2025-03-24"
        },
        "name": "My Layer",
        "ordering_key": 1,
        "refresh_period": "15 min"
      }
    ]
    [
      {
        "attributes": [
          {
            "name": "text",
            "type": "INTEGER"
          }
        ],
        "caption": "text",
        "geometry_type": "Line",
        "hide_from_legend": true,
        "id": "luCHyMruTQ6ozGk3gPJfEB",
        "is_spreadsheet": true,
        "last_refreshed_at": "2026-01-01T00:00:00.000Z",
        "legend_display": "default",
        "legend_visibility": "hide",
        "links": {
          "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
          "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
        },
        "metadata": {
          "attribution_text": "text",
          "attribution_url": "text",
          "description": "text",
          "license": "text",
          "source_abbreviation": "text",
          "source_name": "text",
          "source_url": "text",
          "updated_at": "2025-03-24"
        },
        "name": "text",
        "next_refresh_at": "2026-01-01T00:00:00.000Z",
        "ordering_key": 1,
        "paused_reason": "consecutive_failures",
        "progress": 1,
        "refresh_period": "15 min",
        "refresh_status": "active",
        "status": "uploading",
        "style": {},
        "tile_url": "text",
        "type": "layer"
      }
    ]
    get

    Retrieve all layer groups from a map to see how layers are organized.

    Every layer group you have created is listed, including one whose upload has not finished and which the map does not show yet. Pass include_uploading=false for just the layer groups the map shows.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired
    Query parameters
    include_uploadingbooleanOptional

    Set to false to leave out the layer groups whose upload has not finished, matching what the map shows.

    Default: true
    Responses
    200

    Layers Groups

    application/json
    captionstring · nullableRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    legend_visibilitystring · enum · nullableOptional

    Controls how the layer group is displayed in the legend. Defaults to "show".

    Possible values:
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D
    namestringRequired
    ordering_keyintegerOptional

    A sort order key used for ordering layers and layer groups in the legend

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    typestring · enumRequiredPossible values:
    visibility_interactionstring · enumRequired

    Controls how the layer group is displayed in the legend. Defaults to "default".

    Possible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/maps/{map_id}/layer_groups
    GET /api/v2/maps/{map_id}/layer_groups HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    [
      {
        "caption": "text",
        "id": "luCHyMruTQ6ozGk3gPJfEB",
        "layers": [
          {
            "attributes": [
              {
                "name": "text",
                "type": "INTEGER"
              }
            ],
            "caption": "text",
            "geometry_type": "Line",
            "hide_from_legend": true,
            "id": "luCHyMruTQ6ozGk3gPJfEB",
            "is_spreadsheet": true,
            "last_refreshed_at": "2026-01-01T00:00:00.000Z",
            "legend_display": "default",
            "legend_visibility": "hide",
            "links": {
              "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
              "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
            },
            "metadata": {
              "attribution_text": "text",
              "attribution_url": "text",
              "description": "text",
              "license": "text",
              "source_abbreviation": "text",
              "source_name": "text",
              "source_url": "text",
              "updated_at": "2025-03-24"
            },
            "name": "text",
            "next_refresh_at": "2026-01-01T00:00:00.000Z",
            "ordering_key": 1,
            "paused_reason": "consecutive_failures",
            "progress": 1,
            "refresh_period": "15 min",
            "refresh_status": "active",
            "status": "uploading",
            "style": {},
            "tile_url": "text",
            "type": "layer"
          }
        ],
        "legend_visibility": "hide",
        "links": {
          "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D"
        },
        "name": "text",
        "ordering_key": 1,
        "type": "layer_group",
        "visibility_interaction": "default"
      }
    ]
    post

    Update properties for multiple layer groups in a single request for efficient bulk operations.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired
    Bodyobject · LayerGroupParams[]
    captionstringOptionalExample: A very interesting group
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    legend_visibilitystring · enumOptional

    Controls how the layer group is displayed in the legend

    Possible values:
    namestringRequiredExample: My Layer Group
    ordering_keyintegerOptional
    subtitlestringOptionalDeprecated

    Deprecated: use caption instead.

    visibility_interactionstring · enum · nullableOptional

    Controls how the layer group is displayed in the legend. Defaults to "default".

    Possible values:
    Responses
    200

    LayerGroup list

    application/json
    captionstring · nullableRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    legend_visibilitystring · enum · nullableOptional

    Controls how the layer group is displayed in the legend. Defaults to "show".

    Possible values:
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D
    namestringRequired
    ordering_keyintegerOptional

    A sort order key used for ordering layers and layer groups in the legend

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    typestring · enumRequiredPossible values:
    visibility_interactionstring · enumRequired

    Controls how the layer group is displayed in the legend. Defaults to "default".

    Possible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/layer_groups
    POST /api/v2/maps/{map_id}/layer_groups HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 173
    
    [
      {
        "caption": "A very interesting group",
        "id": "luCHyMruTQ6ozGk3gPJfEB",
        "legend_visibility": "hide",
        "name": "My Layer Group",
        "ordering_key": 1,
        "visibility_interaction": "default"
      }
    ]
    [
      {
        "caption": "text",
        "id": "luCHyMruTQ6ozGk3gPJfEB",
        "layers": [
          {
            "attributes": [
              {
                "name": "text",
                "type": "INTEGER"
              }
            ],
            "caption": "text",
            "geometry_type": "Line",
            "hide_from_legend": true,
            "id": "luCHyMruTQ6ozGk3gPJfEB",
            "is_spreadsheet": true,
            "last_refreshed_at": "2026-01-01T00:00:00.000Z",
            "legend_display": "default",
            "legend_visibility": "hide",
            "links": {
              "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
              "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
            },
            "metadata": {
              "attribution_text": "text",
              "attribution_url": "text",
              "description": "text",
              "license": "text",
              "source_abbreviation": "text",
              "source_name": "text",
              "source_url": "text",
              "updated_at": "2025-03-24"
            },
            "name": "text",
            "next_refresh_at": "2026-01-01T00:00:00.000Z",
            "ordering_key": 1,
            "paused_reason": "consecutive_failures",
            "progress": 1,
            "refresh_period": "15 min",
            "refresh_status": "active",
            "status": "uploading",
            "style": {},
            "tile_url": "text",
            "type": "layer"
          }
        ],
        "legend_visibility": "hide",
        "links": {
          "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D"
        },
        "name": "text",
        "ordering_key": 1,
        "type": "layer_group",
        "visibility_interaction": "default"
      }
    ]
    get

    Check a print page export's status and the pages it prints, in order. in_progress means the export is still rendering; completed and failed are final, so stop polling on either. Once status is completed, the response includes a download_url for the file; when it is failed, error says why. A completed export's download link lasts 24 hours; after that download_url is null and error says to export again.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map

    export_idstringRequired

    The ID of the export

    Responses
    200

    Print export status

    application/json
    download_urlstring · nullableRequired

    Set once status is completed, until the link expires 24 hours later. It redirects to the file, so follow redirects.

    Example: https://felt.com/print-page-exports/auFxn9BO4RrGGiKrGfaS7ZB/download
    errorstring · nullableRequired

    Why there is no file: the export failed, or its download link expired.

    Example: The print export timed out. Try again, or print the map from Felt.
    expires_atstring · date-time · nullableRequired

    When download_url stops working.

    Example: 2026-08-28T19:04:11Z
    export_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    filenamestring · nullableRequiredExample: My map.pdf
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    namestringRequiredExample: Board handout
    statusstring · enumRequiredExample: in_progressPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/maps/{map_id}/print_page_exports/{export_id}
    GET /api/v2/maps/{map_id}/print_page_exports/{export_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "download_url": "https://felt.com/print-page-exports/auFxn9BO4RrGGiKrGfaS7ZB/download",
      "error": "The print export timed out. Try again, or print the map from Felt.",
      "expires_at": "2026-08-28T19:04:11Z",
      "export_id": "luCHyMruTQ6ozGk3gPJfEB",
      "filename": "My map.pdf",
      "pages": [
        {
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "name": "Board handout"
        }
      ],
      "status": "in_progress"
    }
    get

    List the pages designed on a map in Felt's print editor, in the editor's order. Each page is a fixed composition in its own size and units, and prints to the format and resolution set on it.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map

    Responses
    200

    Print pages

    application/json

    A page designed in Felt's print editor: a fixed composition, laid out by hand, of maps, locator maps, legends, text and images on a page of a set size.

    imagesintegerRequired

    Uploaded images, such as logos.

    Example: 1
    legendsintegerRequiredExample: 1
    locatorsintegerRequired

    Locator maps: small overview maps.

    Example: 1
    mapsstring[]Required

    The names of the page's maps. Each has its own view and visible layers.

    Example: ["Map 1","Downtown inset"]
    sectionsintegerRequired

    Background sections: filled boxes.

    Example: 0
    textstring[]Required

    The page's text as authored. Text can hold Liquid tokens that are filled in when the page is printed: {{ map.title }}, {{ map.description }} and {{ date }} (the print date).

    Example: ["{{ map.title }}","Prepared for the March board meeting"]
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    namestring · nullableRequiredExample: Board handout
    dpiinteger · enumOptional

    The page's print resolution, for a page designed in physical units. A page too large to render at this resolution prints at the highest one the renderer supports.

    Example: 300Possible values:
    formatstring · enumRequiredExample: pdfPossible values:
    jpg_qualitynumber · max: 1Optional

    Only for jpg.

    Example: 0.9
    pixel_ratiointeger · enumOptional

    Output pixels per CSS pixel, for a page designed in px.

    Example: 2Possible values:
    heightnumberRequired

    Page height in units.

    Example: 8.5
    orientationstring · enumRequiredExample: landscapePossible values:
    sizestring · enumRequiredExample: letterPossible values:
    unitsstring · enumRequired

    The units the page was designed in. px are CSS pixels, 96 to the inch.

    Example: inPossible values:
    widthnumberRequired

    Page width in units.

    Example: 11
    urlstringRequired

    Opens the page in Felt's print editor, for people who can edit the map.

    Example: https://felt.com/map/Board-handout-Tm9Da8X3TbqsZrrRbVZ2gA?print_page=3cBXP9CSSDW2rPZk9CjzQZD
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/maps/{map_id}/print_pages
    GET /api/v2/maps/{map_id}/print_pages HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    [
      {
        "contents": {
          "images": 1,
          "legends": 1,
          "locators": 1,
          "maps": [
            "Map 1",
            "Downtown inset"
          ],
          "sections": 0,
          "text": [
            "{{ map.title }}",
            "Prepared for the March board meeting"
          ]
        },
        "id": "luCHyMruTQ6ozGk3gPJfEB",
        "name": "Board handout",
        "output": {
          "dpi": 300,
          "format": "pdf",
          "jpg_quality": 0.9,
          "pixel_ratio": 2
        },
        "page": {
          "height": 8.5,
          "orientation": "landscape",
          "size": "letter",
          "units": "in",
          "width": 11
        },
        "url": "https://felt.com/map/Board-handout-Tm9Da8X3TbqsZrrRbVZ2gA?print_page=3cBXP9CSSDW2rPZk9CjzQZD"
      }
    ]
    post

    Create a print page, blank or from a layout (see GET /maps/:map_id/print_layouts). A layout's maps show the map's saved view and visible layers unless map_view says otherwise, and items adds to or edits the result in the same request.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map

    Body
    alignstring · enumOptionalPossible values:
    background_colorstring · nullableOptional

    Hex color, #RRGGBB, or #RRGGBBAA with alpha.

    Pattern: ^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$
    basemap_themestring · enumOptional

    Locator: basemap style.

    Possible values:
    colorstring · nullableOptional

    Hex color, #RRGGBB, or #RRGGBBAA with alpha.

    Pattern: ^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$
    width_pxnumber · max: 50Optional
    colorstring · nullableOptional

    Hex color, #RRGGBB, or #RRGGBBAA with alpha.

    Pattern: ^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$
    font_size_ptnumber · min: 1 · max: 288Optional

    Text or legend: type size in points. A legend's names its largest text.

    font_weightinteger · enumOptionalPossible values:
    heightnumberOptional
    widthnumberOptional
    xnumberOptional
    ynumberOptional
    graticule_degreesnumber · enum · nullableOptional

    Map: latitude/longitude grid spacing; null for none.

    Possible values:
    height_modestring · enumOptional

    Legend: auto grows to fit; fixed keeps the frame height, shrinking text to 6 pt and reflowing into up to 6 columns, then cutting off what still doesn't fit. Setting frame.height without height_mode makes it fixed.

    Possible values:
    idstringOptional

    An existing item to update. Omit to create one.

    layer_group_idsstring[]Optional

    Map: whole layer groups to show, added to layer_ids.

    layer_idsstring[]Optional

    Map: the layers it shows, replacing the current set. Defaults to the layers visible on the map.

    line_heightnumber · min: 0.5 · max: 4Optional

    Text: multiple of the font size.

    namestring · max: 200Optional

    Map: label shown in the editor's pickers.

    outline_colorstringOptional

    Locator: color of the target map's outline.

    Pattern: ^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$
    outline_width_pxnumber · max: 20Optional
    rendered_boundsnumber[] · min: 4 · max: 4Optional

    Read-only, as returned for a map or locator; ignored on write.

    show_componentsbooleanOptional

    Legend: list layer components (charts, statistics) under their layers.

    show_north_arrowbooleanOptional

    Map: north arrow below the map.

    show_scale_barbooleanOptional

    Map: scale bar below the map.

    target_map_item_idstring · nullableOptional

    Locator or legend: the id of the map item on this page it describes. Null leaves a locator unbound, and makes a legend follow the page's first map.

    textstring · max: 10000Optional

    Text: content. Can hold Liquid tokens filled in when printed: {{ map.title }}, {{ map.description }}, {{ date }}.

    typestring · enumOptional

    Required when creating. map is a view of this map; locator is a small reference map outlining another map's extent; legend lists a map item's layers; text is a text box; image is a picture; section is a filled/bordered rectangle drawn behind other items.

    Possible values:
    urlstring · nullableOptional

    Image: a Felt-hosted image URL, such as one from another image item. Null leaves an empty placeholder.

    bearingnumber · min: -360 · max: 360Optional

    Rotation in degrees, clockwise.

    boundsnumber[] · min: 4 · max: 4Optional

    [west, south, east, north] in degrees, fitted inside the map's area on the page. An east west of west crosses the antimeridian.

    latitudenumber · min: -85.051129 · max: 85.051129Required
    longitudenumber · min: -180 · max: 180Required
    zoomnumber · max: 23Required

    Web-map zoom at the item's printed size (96 CSS px per inch), so a small item showing a wide area goes below 0. Prefer bounds to frame an area.

    z_indexinteger · min: -9007199254740991 · max: 9007199254740991Optional

    Stacking order, higher on top. New items go on top (sections at the back).

    layout_idstringOptional

    A layout from the layout list to start from. Omit for a blank page.

    bearingnumber · min: -360 · max: 360Optional

    Rotation in degrees, clockwise.

    boundsnumber[] · min: 4 · max: 4Optional

    [west, south, east, north] in degrees, fitted inside the map's area on the page. An east west of west crosses the antimeridian.

    latitudenumber · min: -85.051129 · max: 85.051129Required
    longitudenumber · min: -180 · max: 180Required
    zoomnumber · max: 23Required

    Web-map zoom at the item's printed size (96 CSS px per inch), so a small item showing a wide area goes below 0. Prefer bounds to frame an area.

    namestring · max: 200Optional
    dpiinteger · enumOptional

    Print resolution of a page in physical units.

    Default: 300Possible values:
    formatstring · enumOptional

    svg keeps map data layers, legends and text as vectors, over a raster basemap.

    Default: pdfPossible values:
    jpg_qualitynumber · max: 1OptionalDefault: 0.9
    pixel_ratiointeger · enumOptional

    Output pixels per CSS pixel, for a page in px units.

    Default: 2Possible values:
    heightnumberOptional

    Custom page height in units.

    orientationstring · enumOptionalPossible values:
    sizestring · enumOptional

    Paper size. tabloid is 11 × 17 in. custom uses width and height.

    Possible values:
    unitsstring · enumOptional

    Length unit for the page's dimensions and every item frame: in, cm, mm, or px (CSS pixels at 96 per inch).

    Possible values:
    widthnumberOptional

    Custom page width in units. Giving width or height makes the size custom.

    Responses
    200

    Print page

    application/json

    A print page and the items on it. Item frames are in the page's units, measured from its top-left corner; warnings flags likely layout problems such as items off the page.

    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    alignstring · enumOptionalPossible values:
    background_colorstring · nullableOptional
    basemap_themestring · enumOptionalPossible values:
    colorstring · nullableRequired
    width_pxnumberRequired
    colorstring · nullableOptional
    font_size_ptnumberOptional
    font_weightinteger · enumOptionalPossible values:
    heightnumberRequired
    widthnumberRequired
    xnumberRequired
    ynumberRequired
    graticule_degreesnumber · enum · nullableOptionalPossible values:
    height_modestring · enumOptionalPossible values:
    idstringRequired
    layer_idsstring[]Optional
    line_heightnumberOptional
    namestringOptional
    outline_colorstringOptional
    outline_width_pxnumberOptional
    rendered_boundsnumber[] · min: 4 · max: 4Optional

    [west, south, east, north] the map area covers, ignoring bearing. Read-only.

    show_componentsbooleanOptional
    show_north_arrowbooleanOptional
    show_scale_barbooleanOptional
    target_map_item_idstring · nullableOptional

    Null: a locator is unbound, and a legend follows the page's first map.

    textstringOptional
    typestring · enumRequiredPossible values:
    urlstring · nullableOptional
    bearingnumberRequired
    latitudenumberRequired
    longitudenumberRequired
    zoomnumberRequired
    z_indexnumberRequired
    namestring · nullableRequiredExample: Board handout
    dpiinteger · enumOptional

    The page's print resolution, for a page designed in physical units. A page too large to render at this resolution prints at the highest one the renderer supports.

    Example: 300Possible values:
    formatstring · enumRequiredExample: pdfPossible values:
    jpg_qualitynumber · max: 1Optional

    Only for jpg.

    Example: 0.9
    pixel_ratiointeger · enumOptional

    Output pixels per CSS pixel, for a page designed in px.

    Example: 2Possible values:
    heightnumberRequired

    Page height in units.

    Example: 8.5
    orientationstring · enumRequiredExample: landscapePossible values:
    sizestring · enumRequiredExample: letterPossible values:
    unitsstring · enumRequired

    The units the page was designed in. px are CSS pixels, 96 to the inch.

    Example: inPossible values:
    widthnumberRequired

    Page width in units.

    Example: 11
    urlstringRequired

    Opens the page in Felt's print editor.

    warningsstring[]Required
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/print_pages
    POST /api/v2/maps/{map_id}/print_pages HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 263
    
    {
      "items": [
        {
          "font_size_pt": 36,
          "frame": {
            "x": 0.5,
            "y": 0.5
          },
          "text": "{{ map.title }}",
          "type": "text"
        },
        {
          "frame": {
            "height": 14,
            "width": 10,
            "x": 0.5,
            "y": 1.5
          },
          "type": "map"
        }
      ],
      "name": "Poster",
      "output": {
        "dpi": 300,
        "format": "pdf"
      },
      "page": {
        "orientation": "portrait",
        "size": "tabloid"
      }
    }
    {
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "items": [
        {
          "align": "left",
          "background_color": "text",
          "basemap_theme": "light",
          "border": {
            "color": "text",
            "width_px": 1
          },
          "color": "text",
          "font_size_pt": 1,
          "font_weight": 400,
          "frame": {
            "height": 1,
            "width": 1,
            "x": 1,
            "y": 1
          },
          "graticule_degrees": 0.01,
          "height_mode": "auto",
          "id": "text",
          "layer_ids": [
            "text"
          ],
          "line_height": 1,
          "name": "text",
          "outline_color": "text",
          "outline_width_px": 1,
          "rendered_bounds": [
            1
          ],
          "show_components": true,
          "show_north_arrow": true,
          "show_scale_bar": true,
          "target_map_item_id": "text",
          "text": "text",
          "type": "map",
          "url": "text",
          "view": {
            "bearing": 1,
            "viewport": {
              "latitude": 1,
              "longitude": 1,
              "zoom": 1
            }
          },
          "z_index": 1
        }
      ],
      "name": "Board handout",
      "output": {
        "dpi": 300,
        "format": "pdf",
        "jpg_quality": 0.9,
        "pixel_ratio": 2
      },
      "page": {
        "height": 8.5,
        "orientation": "landscape",
        "size": "letter",
        "units": "in",
        "width": 11
      },
      "url": "text",
      "warnings": [
        "text"
      ]
    }
    post

    Rename a workspace layout, or replace its contents with a page's (page_id). The change applies on every map in the workspace. Built-in layouts can't change.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map

    layout_idstringRequired

    The ID of a workspace layout. Built-in layouts have plain-word IDs such as standard.

    Body
    namestringOptional

    A new name for the layout.

    page_idstringOptional

    A print page whose contents replace the layout's, as the editor's "Replace" does.

    Responses
    200

    Print layout

    application/json
    imagesnumberRequired
    legendsnumberRequired
    locatorsnumberRequired
    mapsstring[]Required

    The names of the layout's maps, as on a page's contents.

    sectionsnumberRequired
    textstring[]Required

    Text as authored, Liquid tokens included.

    idstringRequired
    kindstring · enumRequired

    built_in layouts fit any page; workspace layouts were saved from a page.

    Possible values:
    namestringRequired
    orientationstring · enum · nullableRequired

    A workspace layout's saved orientation; null for built-ins, which fit either.

    Possible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/print_layouts/{layout_id}
    POST /api/v2/maps/{map_id}/print_layouts/{layout_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 32
    
    {
      "name": "text",
      "page_id": "text"
    }
    {
      "contents": {
        "images": 1,
        "legends": 1,
        "locators": 1,
        "maps": [
          "text"
        ],
        "sections": 1,
        "text": [
          "text"
        ]
      },
      "id": "text",
      "kind": "built_in",
      "name": "text",
      "orientation": "portrait"
    }

    Delete print layout

    delete

    Delete a workspace layout from the workspace's library, for every map in the workspace. Pages already made from it keep their contents. Built-in layouts can't be deleted.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map

    layout_idstringRequired

    The ID of a workspace layout. Built-in layouts have plain-word IDs such as standard.

    Responses
    204

    No Content

    No content

    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    delete/api/v2/maps/{map_id}/print_layouts/{layout_id}
    DELETE /api/v2/maps/{map_id}/print_layouts/{layout_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    

    No content

    get

    A print page and the print page items on it: each item's type, frame and settings, in the page's units. warnings flags likely layout problems, such as an item off the page.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map

    page_idstringRequired

    The ID of the print page

    Responses
    200

    Print page

    application/json

    A print page and the items on it. Item frames are in the page's units, measured from its top-left corner; warnings flags likely layout problems such as items off the page.

    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    alignstring · enumOptionalPossible values:
    background_colorstring · nullableOptional
    basemap_themestring · enumOptionalPossible values:
    colorstring · nullableRequired
    width_pxnumberRequired
    colorstring · nullableOptional
    font_size_ptnumberOptional
    font_weightinteger · enumOptionalPossible values:
    heightnumberRequired
    widthnumberRequired
    xnumberRequired
    ynumberRequired
    graticule_degreesnumber · enum · nullableOptionalPossible values:
    height_modestring · enumOptionalPossible values:
    idstringRequired
    layer_idsstring[]Optional
    line_heightnumberOptional
    namestringOptional
    outline_colorstringOptional
    outline_width_pxnumberOptional
    rendered_boundsnumber[] · min: 4 · max: 4Optional

    [west, south, east, north] the map area covers, ignoring bearing. Read-only.

    show_componentsbooleanOptional
    show_north_arrowbooleanOptional
    show_scale_barbooleanOptional
    target_map_item_idstring · nullableOptional

    Null: a locator is unbound, and a legend follows the page's first map.

    textstringOptional
    typestring · enumRequiredPossible values:
    urlstring · nullableOptional
    bearingnumberRequired
    latitudenumberRequired
    longitudenumberRequired
    zoomnumberRequired
    z_indexnumberRequired
    namestring · nullableRequiredExample: Board handout
    dpiinteger · enumOptional

    The page's print resolution, for a page designed in physical units. A page too large to render at this resolution prints at the highest one the renderer supports.

    Example: 300Possible values:
    formatstring · enumRequiredExample: pdfPossible values:
    jpg_qualitynumber · max: 1Optional

    Only for jpg.

    Example: 0.9
    pixel_ratiointeger · enumOptional

    Output pixels per CSS pixel, for a page designed in px.

    Example: 2Possible values:
    heightnumberRequired

    Page height in units.

    Example: 8.5
    orientationstring · enumRequiredExample: landscapePossible values:
    sizestring · enumRequiredExample: letterPossible values:
    unitsstring · enumRequired

    The units the page was designed in. px are CSS pixels, 96 to the inch.

    Example: inPossible values:
    widthnumberRequired

    Page width in units.

    Example: 11
    urlstringRequired

    Opens the page in Felt's print editor.

    warningsstring[]Required
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/maps/{map_id}/print_pages/{page_id}
    GET /api/v2/maps/{map_id}/print_pages/{page_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "items": [
        {
          "align": "left",
          "background_color": "text",
          "basemap_theme": "light",
          "border": {
            "color": "text",
            "width_px": 1
          },
          "color": "text",
          "font_size_pt": 1,
          "font_weight": 400,
          "frame": {
            "height": 1,
            "width": 1,
            "x": 1,
            "y": 1
          },
          "graticule_degrees": 0.01,
          "height_mode": "auto",
          "id": "text",
          "layer_ids": [
            "text"
          ],
          "line_height": 1,
          "name": "text",
          "outline_color": "text",
          "outline_width_px": 1,
          "rendered_bounds": [
            1
          ],
          "show_components": true,
          "show_north_arrow": true,
          "show_scale_bar": true,
          "target_map_item_id": "text",
          "text": "text",
          "type": "map",
          "url": "text",
          "view": {
            "bearing": 1,
            "viewport": {
              "latitude": 1,
              "longitude": 1,
              "zoom": 1
            }
          },
          "z_index": 1
        }
      ],
      "name": "Board handout",
      "output": {
        "dpi": 300,
        "format": "pdf",
        "jpg_quality": 0.9,
        "pixel_ratio": 2
      },
      "page": {
        "height": 8.5,
        "orientation": "landscape",
        "size": "letter",
        "units": "in",
        "width": 11
      },
      "url": "text",
      "warnings": [
        "text"
      ]
    }
    post

    Rename a page, move it in the page list, or change its size and output. A size change rescales what is on the page, as the editor does.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map

    page_idstringRequired

    The ID of the print page

    Body
    namestring · max: 200Optional
    dpiinteger · enumOptional

    Print resolution of a page in physical units.

    Possible values:
    formatstring · enumOptional

    svg keeps map data layers, legends and text as vectors, over a raster basemap.

    Possible values:
    jpg_qualitynumber · max: 1Optional
    pixel_ratiointeger · enumOptional

    Output pixels per CSS pixel, for a page in px units.

    Possible values:
    heightnumberOptional

    Custom page height in units.

    orientationstring · enumOptionalPossible values:
    sizestring · enumOptional

    Paper size. tabloid is 11 × 17 in. custom uses width and height.

    Possible values:
    unitsstring · enumOptional

    Length unit for the page's dimensions and every item frame: in, cm, mm, or px (CSS pixels at 96 per inch).

    Possible values:
    widthnumberOptional

    Custom page width in units. Giving width or height makes the size custom.

    positioninteger · max: 9007199254740991Optional

    Place in the map's page list, 0 for first.

    Responses
    200

    Print page

    application/json

    A print page and the items on it. Item frames are in the page's units, measured from its top-left corner; warnings flags likely layout problems such as items off the page.

    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    alignstring · enumOptionalPossible values:
    background_colorstring · nullableOptional
    basemap_themestring · enumOptionalPossible values:
    colorstring · nullableRequired
    width_pxnumberRequired
    colorstring · nullableOptional
    font_size_ptnumberOptional
    font_weightinteger · enumOptionalPossible values:
    heightnumberRequired
    widthnumberRequired
    xnumberRequired
    ynumberRequired
    graticule_degreesnumber · enum · nullableOptionalPossible values:
    height_modestring · enumOptionalPossible values:
    idstringRequired
    layer_idsstring[]Optional
    line_heightnumberOptional
    namestringOptional
    outline_colorstringOptional
    outline_width_pxnumberOptional
    rendered_boundsnumber[] · min: 4 · max: 4Optional

    [west, south, east, north] the map area covers, ignoring bearing. Read-only.

    show_componentsbooleanOptional
    show_north_arrowbooleanOptional
    show_scale_barbooleanOptional
    target_map_item_idstring · nullableOptional

    Null: a locator is unbound, and a legend follows the page's first map.

    textstringOptional
    typestring · enumRequiredPossible values:
    urlstring · nullableOptional
    bearingnumberRequired
    latitudenumberRequired
    longitudenumberRequired
    zoomnumberRequired
    z_indexnumberRequired
    namestring · nullableRequiredExample: Board handout
    dpiinteger · enumOptional

    The page's print resolution, for a page designed in physical units. A page too large to render at this resolution prints at the highest one the renderer supports.

    Example: 300Possible values:
    formatstring · enumRequiredExample: pdfPossible values:
    jpg_qualitynumber · max: 1Optional

    Only for jpg.

    Example: 0.9
    pixel_ratiointeger · enumOptional

    Output pixels per CSS pixel, for a page designed in px.

    Example: 2Possible values:
    heightnumberRequired

    Page height in units.

    Example: 8.5
    orientationstring · enumRequiredExample: landscapePossible values:
    sizestring · enumRequiredExample: letterPossible values:
    unitsstring · enumRequired

    The units the page was designed in. px are CSS pixels, 96 to the inch.

    Example: inPossible values:
    widthnumberRequired

    Page width in units.

    Example: 11
    urlstringRequired

    Opens the page in Felt's print editor.

    warningsstring[]Required
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/print_pages/{page_id}
    POST /api/v2/maps/{map_id}/print_pages/{page_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 180
    
    {
      "name": "text",
      "output": {
        "dpi": 150,
        "format": "pdf",
        "jpg_quality": 1,
        "pixel_ratio": 1
      },
      "page": {
        "height": 1,
        "orientation": "portrait",
        "size": "letter",
        "units": "in",
        "width": 1
      },
      "position": 1
    }
    {
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "items": [
        {
          "align": "left",
          "background_color": "text",
          "basemap_theme": "light",
          "border": {
            "color": "text",
            "width_px": 1
          },
          "color": "text",
          "font_size_pt": 1,
          "font_weight": 400,
          "frame": {
            "height": 1,
            "width": 1,
            "x": 1,
            "y": 1
          },
          "graticule_degrees": 0.01,
          "height_mode": "auto",
          "id": "text",
          "layer_ids": [
            "text"
          ],
          "line_height": 1,
          "name": "text",
          "outline_color": "text",
          "outline_width_px": 1,
          "rendered_bounds": [
            1
          ],
          "show_components": true,
          "show_north_arrow": true,
          "show_scale_bar": true,
          "target_map_item_id": "text",
          "text": "text",
          "type": "map",
          "url": "text",
          "view": {
            "bearing": 1,
            "viewport": {
              "latitude": 1,
              "longitude": 1,
              "zoom": 1
            }
          },
          "z_index": 1
        }
      ],
      "name": "Board handout",
      "output": {
        "dpi": 300,
        "format": "pdf",
        "jpg_quality": 0.9,
        "pixel_ratio": 2
      },
      "page": {
        "height": 8.5,
        "orientation": "landscape",
        "size": "letter",
        "units": "in",
        "width": 11
      },
      "url": "text",
      "warnings": [
        "text"
      ]
    }

    Delete print page

    delete
    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map

    page_idstringRequired

    The ID of the print page

    Responses
    204

    No Content

    No content

    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    delete/api/v2/maps/{map_id}/print_pages/{page_id}
    DELETE /api/v2/maps/{map_id}/print_pages/{page_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    

    No content

    post

    Exports every print page of the map as one PDF, in the editor's order, in the background. To export some pages, or a different order, pass page_ids: those pages, in that order, up to 100. Each page keeps its own size and resolution, and the file is always a PDF, whatever format the pages are set to; to export one page in its own format, use POST /api/v2/maps/{map_id}/print_pages/{page_id}/exports.

    The request returns 202 at once with an export_id and a poll_endpoint, which is also the Location header. Poll it, waiting Retry-After seconds between requests, until status is completed or failed

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map

    Body
    page_idsstring[] · min: 1 · max: 100Optional

    The print pages to export, in the order they appear in the PDF. Leave it out to export every page in the editor's order.

    Example: ["auFxn9BO4RrGGiKrGfaS7ZB","7kF9Cfz45TUWIiuuWV8uZ7A"]
    Responses
    202

    Print export started

    application/json
    LocationstringOptional

    The export's poll_endpoint.

    Retry-AfterintegerOptional

    Seconds to wait before polling.

    Example: 5
    export_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    poll_endpointstringRequiredExample: https://felt.com/api/v2/maps/vAbZ5eKqRoGe4sCH8nHW8D/print_page_exports/auFxn9BO4RrGGiKrGfaS7ZB
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    503

    ServiceUnavailableError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/print_page_exports
    POST /api/v2/maps/{map_id}/print_page_exports HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 66
    
    {
      "page_ids": [
        "auFxn9BO4RrGGiKrGfaS7ZB",
        "7kF9Cfz45TUWIiuuWV8uZ7A"
      ]
    }
    {
      "export_id": "luCHyMruTQ6ozGk3gPJfEB",
      "poll_endpoint": "https://felt.com/api/v2/maps/vAbZ5eKqRoGe4sCH8nHW8D/print_page_exports/auFxn9BO4RrGGiKrGfaS7ZB"
    }

    List print layouts

    get

    The layouts a new print page can start from: Felt's built-in layouts, which fit any page size and orientation, and the workspace's own, saved from pages on any of its maps. Like the editor's layout picker, this needs edit access to the map.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map

    Responses
    200

    Print layouts

    application/json
    imagesnumberRequired
    legendsnumberRequired
    locatorsnumberRequired
    mapsstring[]Required

    The names of the layout's maps, as on a page's contents.

    sectionsnumberRequired
    textstring[]Required

    Text as authored, Liquid tokens included.

    idstringRequired
    kindstring · enumRequired

    built_in layouts fit any page; workspace layouts were saved from a page.

    Possible values:
    namestringRequired
    orientationstring · enum · nullableRequired

    A workspace layout's saved orientation; null for built-ins, which fit either.

    Possible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/maps/{map_id}/print_layouts
    GET /api/v2/maps/{map_id}/print_layouts HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    [
      {
        "contents": {
          "images": 1,
          "legends": 1,
          "locators": 1,
          "maps": [
            "text"
          ],
          "sections": 1,
          "text": [
            "text"
          ]
        },
        "id": "text",
        "kind": "built_in",
        "name": "text",
        "orientation": "portrait"
      }
    ]

    Save print page as layout

    post

    Save a page as a workspace layout, as the editor's "Save as layout" does. New pages on any of the workspace's maps can then start from it.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map

    Body
    namestringOptional

    Defaults to the page's name.

    Example: Quarterly report
    page_idstringRequired

    The print page to save as a layout.

    Responses
    200

    Print layout

    application/json
    imagesnumberRequired
    legendsnumberRequired
    locatorsnumberRequired
    mapsstring[]Required

    The names of the layout's maps, as on a page's contents.

    sectionsnumberRequired
    textstring[]Required

    Text as authored, Liquid tokens included.

    idstringRequired
    kindstring · enumRequired

    built_in layouts fit any page; workspace layouts were saved from a page.

    Possible values:
    namestringRequired
    orientationstring · enum · nullableRequired

    A workspace layout's saved orientation; null for built-ins, which fit either.

    Possible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/print_layouts
    POST /api/v2/maps/{map_id}/print_layouts HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 44
    
    {
      "name": "Quarterly report",
      "page_id": "text"
    }
    {
      "contents": {
        "images": 1,
        "legends": 1,
        "locators": 1,
        "maps": [
          "text"
        ],
        "sections": 1,
        "text": [
          "text"
        ]
      },
      "id": "text",
      "kind": "built_in",
      "name": "text",
      "orientation": "portrait"
    }

    Delete print page item

    delete

    Remove one item from a page. A locator that pointed at a removed map is unbound.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map

    page_idstringRequired

    The ID of the print page

    item_idstringRequired

    The ID of the print page item

    Responses
    204

    No Content

    No content

    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    delete/api/v2/maps/{map_id}/print_pages/{page_id}/items/{item_id}
    DELETE /api/v2/maps/{map_id}/print_pages/{page_id}/items/{item_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    

    No content

    post

    Print a page designed in Felt's print editor to the file set on the page: a PNG, JPG, PDF or SVG at the page's size and resolution, drawn exactly as designed.

    The request waits up to 55 seconds and returns 200 with a completed export. Follow download_url to download the file before expires_at. Rendering failures return 503. A render that exceeds the request deadline returns 504 with the export_id and a poll_endpoint, so the export can still be collected by polling. To start an export without waiting, or to export every page as one PDF, use POST /api/v2/maps/{map_id}/print_page_exports.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map

    page_idstringRequired

    The ID of the print page

    Responses
    200

    Completed print page export

    application/json
    download_urlstringRequired

    A URL for the finished file; it redirects to the file, so follow redirects. Expires at expires_at.

    Example: https://felt.com/print-page-exports/auFxn9BO4RrGGiKrGfaS7ZB/download
    expires_atstring · date-timeRequired

    When download_url stops working.

    Example: 2026-08-28T19:04:11Z
    filenamestringRequiredExample: My map.pdf
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    dpiinteger · enumOptional

    The page's print resolution, for a page designed in physical units. A page too large to render at this resolution prints at the highest one the renderer supports.

    Example: 300Possible values:
    formatstring · enumRequiredExample: pdfPossible values:
    jpg_qualitynumber · max: 1Optional

    Only for jpg.

    Example: 0.9
    pixel_ratiointeger · enumOptional

    Output pixels per CSS pixel, for a page designed in px.

    Example: 2Possible values:
    page_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    503

    ServiceUnavailableError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    504

    Gateway timeout

    application/json
    LocationstringOptional

    The export's poll_endpoint.

    Retry-AfterintegerOptional

    Seconds to wait before polling.

    Example: 5
    codestringOptional
    detailstringOptional
    titlestringOptional
    export_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    poll_endpointstringRequiredExample: https://felt.com/api/v2/maps/vAbZ5eKqRoGe4sCH8nHW8D/print_page_exports/auFxn9BO4RrGGiKrGfaS7ZB
    post/api/v2/maps/{map_id}/print_pages/{page_id}/exports
    POST /api/v2/maps/{map_id}/print_pages/{page_id}/exports HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "download_url": "https://felt.com/print-page-exports/auFxn9BO4RrGGiKrGfaS7ZB/download",
      "expires_at": "2026-08-28T19:04:11Z",
      "filename": "My map.pdf",
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "output": {
        "dpi": 300,
        "format": "pdf",
        "jpg_quality": 0.9,
        "pixel_ratio": 2
      },
      "page_id": "luCHyMruTQ6ozGk3gPJfEB"
    }
    post

    Add print page items to a page (no id, a type) or edit existing ones by id; fields left out keep their values. Frames are in the page's units. Returns the whole page.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map

    page_idstringRequired

    The ID of the print page

    Body
    alignstring · enumOptionalPossible values:
    background_colorstring · nullableOptional

    Hex color, #RRGGBB, or #RRGGBBAA with alpha.

    Pattern: ^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$
    basemap_themestring · enumOptional

    Locator: basemap style.

    Possible values:
    colorstring · nullableOptional

    Hex color, #RRGGBB, or #RRGGBBAA with alpha.

    Pattern: ^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$
    width_pxnumber · max: 50Optional
    colorstring · nullableOptional

    Hex color, #RRGGBB, or #RRGGBBAA with alpha.

    Pattern: ^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$
    font_size_ptnumber · min: 1 · max: 288Optional

    Text or legend: type size in points. A legend's names its largest text.

    font_weightinteger · enumOptionalPossible values:
    heightnumberOptional
    widthnumberOptional
    xnumberOptional
    ynumberOptional
    graticule_degreesnumber · enum · nullableOptional

    Map: latitude/longitude grid spacing; null for none.

    Possible values:
    height_modestring · enumOptional

    Legend: auto grows to fit; fixed keeps the frame height, shrinking text to 6 pt and reflowing into up to 6 columns, then cutting off what still doesn't fit. Setting frame.height without height_mode makes it fixed.

    Possible values:
    idstringOptional

    An existing item to update. Omit to create one.

    layer_group_idsstring[]Optional

    Map: whole layer groups to show, added to layer_ids.

    layer_idsstring[]Optional

    Map: the layers it shows, replacing the current set. Defaults to the layers visible on the map.

    line_heightnumber · min: 0.5 · max: 4Optional

    Text: multiple of the font size.

    namestring · max: 200Optional

    Map: label shown in the editor's pickers.

    outline_colorstringOptional

    Locator: color of the target map's outline.

    Pattern: ^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$
    outline_width_pxnumber · max: 20Optional
    rendered_boundsnumber[] · min: 4 · max: 4Optional

    Read-only, as returned for a map or locator; ignored on write.

    show_componentsbooleanOptional

    Legend: list layer components (charts, statistics) under their layers.

    show_north_arrowbooleanOptional

    Map: north arrow below the map.

    show_scale_barbooleanOptional

    Map: scale bar below the map.

    target_map_item_idstring · nullableOptional

    Locator or legend: the id of the map item on this page it describes. Null leaves a locator unbound, and makes a legend follow the page's first map.

    textstring · max: 10000Optional

    Text: content. Can hold Liquid tokens filled in when printed: {{ map.title }}, {{ map.description }}, {{ date }}.

    typestring · enumOptional

    Required when creating. map is a view of this map; locator is a small reference map outlining another map's extent; legend lists a map item's layers; text is a text box; image is a picture; section is a filled/bordered rectangle drawn behind other items.

    Possible values:
    urlstring · nullableOptional

    Image: a Felt-hosted image URL, such as one from another image item. Null leaves an empty placeholder.

    bearingnumber · min: -360 · max: 360Optional

    Rotation in degrees, clockwise.

    boundsnumber[] · min: 4 · max: 4Optional

    [west, south, east, north] in degrees, fitted inside the map's area on the page. An east west of west crosses the antimeridian.

    latitudenumber · min: -85.051129 · max: 85.051129Required
    longitudenumber · min: -180 · max: 180Required
    zoomnumber · max: 23Required

    Web-map zoom at the item's printed size (96 CSS px per inch), so a small item showing a wide area goes below 0. Prefer bounds to frame an area.

    z_indexinteger · min: -9007199254740991 · max: 9007199254740991Optional

    Stacking order, higher on top. New items go on top (sections at the back).

    Responses
    200

    Print page

    application/json

    A print page and the items on it. Item frames are in the page's units, measured from its top-left corner; warnings flags likely layout problems such as items off the page.

    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    alignstring · enumOptionalPossible values:
    background_colorstring · nullableOptional
    basemap_themestring · enumOptionalPossible values:
    colorstring · nullableRequired
    width_pxnumberRequired
    colorstring · nullableOptional
    font_size_ptnumberOptional
    font_weightinteger · enumOptionalPossible values:
    heightnumberRequired
    widthnumberRequired
    xnumberRequired
    ynumberRequired
    graticule_degreesnumber · enum · nullableOptionalPossible values:
    height_modestring · enumOptionalPossible values:
    idstringRequired
    layer_idsstring[]Optional
    line_heightnumberOptional
    namestringOptional
    outline_colorstringOptional
    outline_width_pxnumberOptional
    rendered_boundsnumber[] · min: 4 · max: 4Optional

    [west, south, east, north] the map area covers, ignoring bearing. Read-only.

    show_componentsbooleanOptional
    show_north_arrowbooleanOptional
    show_scale_barbooleanOptional
    target_map_item_idstring · nullableOptional

    Null: a locator is unbound, and a legend follows the page's first map.

    textstringOptional
    typestring · enumRequiredPossible values:
    urlstring · nullableOptional
    bearingnumberRequired
    latitudenumberRequired
    longitudenumberRequired
    zoomnumberRequired
    z_indexnumberRequired
    namestring · nullableRequiredExample: Board handout
    dpiinteger · enumOptional

    The page's print resolution, for a page designed in physical units. A page too large to render at this resolution prints at the highest one the renderer supports.

    Example: 300Possible values:
    formatstring · enumRequiredExample: pdfPossible values:
    jpg_qualitynumber · max: 1Optional

    Only for jpg.

    Example: 0.9
    pixel_ratiointeger · enumOptional

    Output pixels per CSS pixel, for a page designed in px.

    Example: 2Possible values:
    heightnumberRequired

    Page height in units.

    Example: 8.5
    orientationstring · enumRequiredExample: landscapePossible values:
    sizestring · enumRequiredExample: letterPossible values:
    unitsstring · enumRequired

    The units the page was designed in. px are CSS pixels, 96 to the inch.

    Example: inPossible values:
    widthnumberRequired

    Page width in units.

    Example: 11
    urlstringRequired

    Opens the page in Felt's print editor.

    warningsstring[]Required
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/print_pages/{page_id}/items
    POST /api/v2/maps/{map_id}/print_pages/{page_id}/items HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 644
    
    {
      "items": [
        {
          "align": "left",
          "background_color": "text",
          "basemap_theme": "light",
          "border": {
            "color": "text",
            "width_px": 1
          },
          "color": "text",
          "font_size_pt": 1,
          "font_weight": 400,
          "frame": {
            "height": 1,
            "width": 1,
            "x": 1,
            "y": 1
          },
          "graticule_degrees": 0.01,
          "height_mode": "auto",
          "id": "text",
          "layer_group_ids": [
            "text"
          ],
          "layer_ids": [
            "text"
          ],
          "line_height": 1,
          "name": "text",
          "outline_color": "text",
          "outline_width_px": 1,
          "rendered_bounds": [
            1
          ],
          "show_components": true,
          "show_north_arrow": true,
          "show_scale_bar": true,
          "target_map_item_id": "text",
          "text": "text",
          "type": "map",
          "url": "text",
          "view": {
            "bearing": 1,
            "bounds": [
              1
            ],
            "viewport": {
              "latitude": 1,
              "longitude": 1,
              "zoom": 1
            }
          },
          "z_index": 1
        }
      ]
    }
    {
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "items": [
        {
          "align": "left",
          "background_color": "text",
          "basemap_theme": "light",
          "border": {
            "color": "text",
            "width_px": 1
          },
          "color": "text",
          "font_size_pt": 1,
          "font_weight": 400,
          "frame": {
            "height": 1,
            "width": 1,
            "x": 1,
            "y": 1
          },
          "graticule_degrees": 0.01,
          "height_mode": "auto",
          "id": "text",
          "layer_ids": [
            "text"
          ],
          "line_height": 1,
          "name": "text",
          "outline_color": "text",
          "outline_width_px": 1,
          "rendered_bounds": [
            1
          ],
          "show_components": true,
          "show_north_arrow": true,
          "show_scale_bar": true,
          "target_map_item_id": "text",
          "text": "text",
          "type": "map",
          "url": "text",
          "view": {
            "bearing": 1,
            "viewport": {
              "latitude": 1,
              "longitude": 1,
              "zoom": 1
            }
          },
          "z_index": 1
        }
      ],
      "name": "Board handout",
      "output": {
        "dpi": 300,
        "format": "pdf",
        "jpg_quality": 0.9,
        "pixel_ratio": 2
      },
      "page": {
        "height": 8.5,
        "orientation": "landscape",
        "size": "letter",
        "units": "in",
        "width": 11
      },
      "url": "text",
      "warnings": [
        "text"
      ]
    }
    get

    Returns all components on a layer, ordered as they appear in the app.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map the layer belongs to.

    layer_idstringRequired

    The ID of the layer the components belong to.

    Responses
    200

    Layer components list

    application/json
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Numeric attribute to bin into the distribution.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Numeric attribute to bin into the distribution.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.domain. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    domainstringRequired

    Numeric attribute the line is plotted against — the horizontal axis.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    domainstringRequired

    Numeric attribute the line is plotted against — the horizontal axis.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Attribute whose values become the categories.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Attribute whose values become the categories.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Date or datetime attribute which drives the time axis.

    intervalstring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Date or datetime attribute which drives the time axis.

    intervalstring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    control_typestring · enumRequired

    The type of rendered interactive component. slider only works with numeric attributes.

    Default: dropdownPossible values:
    pluralitystring · enumOptional

    Whether the dropdown allows filtering on multiple values or just one.

    Possible values:
    selectionanyOptional

    Selected values of data.filter_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    sortingstring · enumOptional

    The rendered order of dropdown options.

    Possible values:
    filter_bystringRequired

    Attribute to filter values from.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title. Defaults to data.filter_by.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.domain. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    domainstringRequired

    The band whose pixels are charted.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    group_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    control_typestring · enumOptional

    The type of rendered interactive component. A dropdown lists the band's values, so it needs a categorical band. Defaults to the band's control: dropdown for a categorical band, slider otherwise.

    Possible values:
    pluralitystring · enumOptional

    Whether the dropdown allows filtering on multiple values or just one.

    Possible values:
    selectionanyOptional

    Selected values of data.filter_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    sortingstring · enumOptional

    The rendered order of dropdown options.

    Possible values:
    filter_bystringRequired

    A band id such as band:1.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title. Defaults to the band's name.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/maps/{map_id}/layers/{layer_id}/components
    GET /api/v2/maps/{map_id}/layers/{layer_id}/components HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    [
      {
        "config": {
          "reactive": true,
          "viewport_mode": "global"
        },
        "data": {
          "aggregate": "count",
          "format": null
        },
        "id": "text",
        "layer_id": "text",
        "layer_type": "vector",
        "title": "text",
        "type": "statistic"
      }
    ]
    post

    Creates a component on a layer.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map the layer belongs to.

    layer_idstringRequired

    The ID of the layer the component belongs to.

    Body
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired

    How the statistic is computed.

    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    layer_typestring · enumOptional

    The kind of layer this component is attached to.

    Default: vectorPossible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired

    How to compute the histogram distribution.

    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Numeric attribute to bin into the distribution.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Numeric attribute to bin into the distribution.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    layer_typestring · enumOptional

    The kind of layer this component is attached to.

    Default: vectorPossible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.domain. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired

    How to compute the line's distribution.

    aggregatestring · enumRequired

    Count features.

    Possible values:
    domainstringRequired

    Numeric attribute the line is plotted against — the horizontal axis.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    domainstringRequired

    Numeric attribute the line is plotted against — the horizontal axis.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    layer_typestring · enumOptional

    The kind of layer this component is attached to.

    Default: vectorPossible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired

    How to compute the resulting categories.

    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Attribute whose values become the categories.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Attribute whose values become the categories.

    layer_typestring · enumOptional

    The kind of layer this component is attached to.

    Default: vectorPossible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired

    How to aggregate the chosen attribute into a time series.

    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Date or datetime attribute which drives the time axis.

    intervalstring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Date or datetime attribute which drives the time axis.

    intervalstring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    layer_typestring · enumOptional

    The kind of layer this component is attached to.

    Default: vectorPossible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    control_typestring · enumOptional

    The type of rendered interactive component. slider only works with numeric attributes.

    Default: dropdownPossible values:
    pluralitystring · enumOptional

    Whether the dropdown allows filtering on multiple values or just one.

    Possible values:
    selectionanyOptional

    Selected values of data.filter_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    sortingstring · enumOptional

    The rendered order of dropdown options.

    Possible values:
    filter_bystringRequired

    Attribute to filter values from.

    layer_typestring · enumOptional

    The kind of layer this component is attached to.

    Default: vectorPossible values:
    titlestringOptional

    Display title. Defaults to data.filter_by.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.domain. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    domainstringRequired

    The band whose pixels are charted.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    group_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    control_typestring · enumOptional

    The type of rendered interactive component. A dropdown lists the band's values, so it needs a categorical band. Defaults to the band's control: dropdown for a categorical band, slider otherwise.

    Possible values:
    pluralitystring · enumOptional

    Whether the dropdown allows filtering on multiple values or just one.

    Possible values:
    selectionanyOptional

    Selected values of data.filter_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    sortingstring · enumOptional

    The rendered order of dropdown options.

    Possible values:
    filter_bystringRequired

    A band id such as band:1.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title. Defaults to the band's name.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    Responses
    200

    Layer component

    application/json
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Numeric attribute to bin into the distribution.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Numeric attribute to bin into the distribution.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.domain. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    domainstringRequired

    Numeric attribute the line is plotted against — the horizontal axis.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    domainstringRequired

    Numeric attribute the line is plotted against — the horizontal axis.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Attribute whose values become the categories.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Attribute whose values become the categories.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Date or datetime attribute which drives the time axis.

    intervalstring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Date or datetime attribute which drives the time axis.

    intervalstring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    control_typestring · enumRequired

    The type of rendered interactive component. slider only works with numeric attributes.

    Default: dropdownPossible values:
    pluralitystring · enumOptional

    Whether the dropdown allows filtering on multiple values or just one.

    Possible values:
    selectionanyOptional

    Selected values of data.filter_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    sortingstring · enumOptional

    The rendered order of dropdown options.

    Possible values:
    filter_bystringRequired

    Attribute to filter values from.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title. Defaults to data.filter_by.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.domain. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    domainstringRequired

    The band whose pixels are charted.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    group_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    control_typestring · enumOptional

    The type of rendered interactive component. A dropdown lists the band's values, so it needs a categorical band. Defaults to the band's control: dropdown for a categorical band, slider otherwise.

    Possible values:
    pluralitystring · enumOptional

    Whether the dropdown allows filtering on multiple values or just one.

    Possible values:
    selectionanyOptional

    Selected values of data.filter_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    sortingstring · enumOptional

    The rendered order of dropdown options.

    Possible values:
    filter_bystringRequired

    A band id such as band:1.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title. Defaults to the band's name.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/layers/{layer_id}/components
    POST /api/v2/maps/{map_id}/layers/{layer_id}/components HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 215
    
    {
      "config": {
        "selection": [
          "zoning",
          "in",
          [
            "residential"
          ]
        ]
      },
      "data": {
        "aggregate": "sum",
        "aggregate_by": "area_sqm",
        "format": {
          "thousandSeparated": true
        },
        "group_by": "zoning"
      },
      "title": "Total area by zoning",
      "type": "bar_chart"
    }
    {
      "config": {
        "reactive": true,
        "viewport_mode": "global"
      },
      "data": {
        "aggregate": "count",
        "format": null
      },
      "id": "text",
      "layer_id": "text",
      "layer_type": "vector",
      "title": "text",
      "type": "statistic"
    }

    Get layer component

    get

    Returns a single layer component. Includes all fields.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map the layer belongs to.

    layer_idstringRequired

    The ID of the layer the component belongs to.

    component_idstringRequired

    The ID of the layer component.

    Responses
    200

    Layer component

    application/json
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Numeric attribute to bin into the distribution.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Numeric attribute to bin into the distribution.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.domain. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    domainstringRequired

    Numeric attribute the line is plotted against — the horizontal axis.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    domainstringRequired

    Numeric attribute the line is plotted against — the horizontal axis.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Attribute whose values become the categories.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Attribute whose values become the categories.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Date or datetime attribute which drives the time axis.

    intervalstring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Date or datetime attribute which drives the time axis.

    intervalstring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    control_typestring · enumRequired

    The type of rendered interactive component. slider only works with numeric attributes.

    Default: dropdownPossible values:
    pluralitystring · enumOptional

    Whether the dropdown allows filtering on multiple values or just one.

    Possible values:
    selectionanyOptional

    Selected values of data.filter_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    sortingstring · enumOptional

    The rendered order of dropdown options.

    Possible values:
    filter_bystringRequired

    Attribute to filter values from.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title. Defaults to data.filter_by.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.domain. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    domainstringRequired

    The band whose pixels are charted.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    group_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    control_typestring · enumOptional

    The type of rendered interactive component. A dropdown lists the band's values, so it needs a categorical band. Defaults to the band's control: dropdown for a categorical band, slider otherwise.

    Possible values:
    pluralitystring · enumOptional

    Whether the dropdown allows filtering on multiple values or just one.

    Possible values:
    selectionanyOptional

    Selected values of data.filter_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    sortingstring · enumOptional

    The rendered order of dropdown options.

    Possible values:
    filter_bystringRequired

    A band id such as band:1.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title. Defaults to the band's name.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/maps/{map_id}/layers/{layer_id}/components/{component_id}
    GET /api/v2/maps/{map_id}/layers/{layer_id}/components/{component_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "config": {
        "reactive": true,
        "viewport_mode": "global"
      },
      "data": {
        "aggregate": "count",
        "format": null
      },
      "id": "text",
      "layer_id": "text",
      "layer_type": "vector",
      "title": "text",
      "type": "statistic"
    }
    post

    Partially update the provided fields of a component.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map the layer belongs to.

    layer_idstringRequired

    The ID of the layer the component belongs to.

    component_idstringRequired

    The ID of the layer component.

    Body
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Possible values:
    dataany ofOptional

    Change how the component computes its result. data replaces as a unit when provided. Partial updates are not supported.

    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    layer_typestring · enumOptional

    The kind of layer this component is attached to.

    Default: vectorPossible values:
    titlestringOptional

    Display title.

    or
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block. Pass null to clear the selection.

    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Possible values:
    dataany ofOptional

    Change how the component computes its result. data replaces as a unit when provided. Partial updates are not supported.

    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Numeric attribute to bin into the distribution.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Numeric attribute to bin into the distribution.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    layer_typestring · enumOptional

    The kind of layer this component is attached to.

    Default: vectorPossible values:
    titlestringOptional

    Display title.

    or
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    selectionanyOptional

    Selected values of data.domain. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block. Pass null to clear the selection.

    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Possible values:
    dataany ofOptional

    Change how the component computes its result. data replaces as a unit when provided. Partial updates are not supported.

    aggregatestring · enumRequired

    Count features.

    Possible values:
    domainstringRequired

    Numeric attribute the line is plotted against — the horizontal axis.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    domainstringRequired

    Numeric attribute the line is plotted against — the horizontal axis.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    layer_typestring · enumOptional

    The kind of layer this component is attached to.

    Default: vectorPossible values:
    titlestringOptional

    Display title.

    or
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block. Pass null to clear the selection.

    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Possible values:
    dataany ofOptional

    Change how the component computes its result. data replaces as a unit when provided. Partial updates are not supported.

    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Attribute whose values become the categories.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Attribute whose values become the categories.

    layer_typestring · enumOptional

    The kind of layer this component is attached to.

    Default: vectorPossible values:
    titlestringOptional

    Display title.

    or
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block. Pass null to clear the selection.

    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Possible values:
    dataany ofOptional

    Change how the component computes its result. data replaces as a unit when provided. Partial updates are not supported.

    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Date or datetime attribute which drives the time axis.

    intervalstring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Date or datetime attribute which drives the time axis.

    intervalstring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    layer_typestring · enumOptional

    The kind of layer this component is attached to.

    Default: vectorPossible values:
    titlestringOptional

    Display title.

    or
    control_typestring · enumOptional

    The type of rendered interactive component. slider only works with numeric attributes.

    Possible values:
    pluralitystring · enumOptional

    Whether the dropdown allows filtering on multiple values or just one.

    Possible values:
    selectionanyOptional

    Selected values of data.filter_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block. Pass null to clear the selection.

    sortingstring · enumOptional

    The rendered order of dropdown options.

    Possible values:
    filter_bystringRequired

    Attribute to filter values from.

    layer_typestring · enumOptional

    The kind of layer this component is attached to.

    Default: vectorPossible values:
    titlestringOptional

    Display title.

    or
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Possible values:
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    or
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block. Pass null to clear the selection.

    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    or
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    selectionanyOptional

    Selected values of data.domain. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block. Pass null to clear the selection.

    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Possible values:
    domainstringRequired

    The band whose pixels are charted.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    or
    reactivebooleanOptional

    Whether this component reacts to other components' selections, filtering its result to match.

    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block. Pass null to clear the selection.

    viewport_modestring · enumOptional

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Possible values:
    group_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    or
    control_typestring · enumOptional

    The type of rendered interactive component. A dropdown lists the band's values, so it needs a categorical band.

    Possible values:
    pluralitystring · enumOptional

    Whether the dropdown allows filtering on multiple values or just one.

    Possible values:
    selectionanyOptional

    Selected values of data.filter_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block. Pass null to clear the selection.

    sortingstring · enumOptional

    The rendered order of dropdown options.

    Possible values:
    filter_bystringRequired

    A band id such as band:1.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    Responses
    200

    Layer component

    application/json
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Numeric attribute to bin into the distribution.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Numeric attribute to bin into the distribution.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.domain. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    domainstringRequired

    Numeric attribute the line is plotted against — the horizontal axis.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    domainstringRequired

    Numeric attribute the line is plotted against — the horizontal axis.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Attribute whose values become the categories.

    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Attribute whose values become the categories.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    dataany ofRequired
    aggregatestring · enumRequired

    Count features.

    Possible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Date or datetime attribute which drives the time axis.

    intervalstring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    or
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    Attribute to aggregate.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    Date or datetime attribute which drives the time axis.

    intervalstring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    control_typestring · enumRequired

    The type of rendered interactive component. slider only works with numeric attributes.

    Default: dropdownPossible values:
    pluralitystring · enumOptional

    Whether the dropdown allows filtering on multiple values or just one.

    Possible values:
    selectionanyOptional

    Selected values of data.filter_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    sortingstring · enumOptional

    The rendered order of dropdown options.

    Possible values:
    filter_bystringRequired

    Attribute to filter values from.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title. Defaults to data.filter_by.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    aggregatestring · enumRequired

    The statistic to compute over aggregate_by.

    Possible values:
    aggregate_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    group_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    countinteger · max: 9007199254740991Required

    Number of equal-width bins across the attribute's range.

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.domain. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    domainstringRequired

    The band whose pixels are charted.

    formatanyOptional

    numbrojs format object. See the numbrojs format documentation.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    reactivebooleanRequired

    Whether this component reacts to other components' selections, filtering its result to match.

    Default: true
    selectionanyOptional

    Selected values of data.group_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    viewport_modestring · enumRequired

    Compute over the whole layer (global) or only the features in the current viewport (viewport).

    Default: globalPossible values:
    group_bystringRequired

    A band id such as band:1 or the styled index band index:0.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    or
    control_typestring · enumOptional

    The type of rendered interactive component. A dropdown lists the band's values, so it needs a categorical band. Defaults to the band's control: dropdown for a categorical band, slider otherwise.

    Possible values:
    pluralitystring · enumOptional

    Whether the dropdown allows filtering on multiple values or just one.

    Possible values:
    selectionanyOptional

    Selected values of data.filter_by. The visualized map layer and other components are filtered to match. Uses the same format as the FSL filters block.

    sortingstring · enumOptional

    The rendered order of dropdown options.

    Possible values:
    filter_bystringRequired

    A band id such as band:1.

    idstringRequired

    Server-assigned component id.

    layer_idstringRequired

    The layer this component is bound to.

    layer_typestring · enumRequired

    The kind of layer this component is attached to.

    Possible values:
    titlestringOptional

    Display title. Defaults to the band's name.

    typestring · enumRequired

    The component type. Immutable after creation.

    Possible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/layers/{layer_id}/components/{component_id}
    POST /api/v2/maps/{map_id}/layers/{layer_id}/components/{component_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 133
    
    {
      "config": {
        "reactive": true,
        "viewport_mode": "global"
      },
      "data": {
        "aggregate": "count",
        "format": null
      },
      "layer_type": "vector",
      "title": "text"
    }
    {
      "config": {
        "reactive": true,
        "viewport_mode": "global"
      },
      "data": {
        "aggregate": "count",
        "format": null
      },
      "id": "text",
      "layer_id": "text",
      "layer_type": "vector",
      "title": "text",
      "type": "statistic"
    }

    Delete layer component

    delete

    Deletes a component from the layer.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map the layer belongs to.

    layer_idstringRequired

    The ID of the layer the component belongs to.

    component_idstringRequired

    The ID of the layer component.

    Responses
    204

    No Content

    No content

    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    delete/api/v2/maps/{map_id}/layers/{layer_id}/components/{component_id}
    DELETE /api/v2/maps/{map_id}/layers/{layer_id}/components/{component_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    

    No content

    post

    Start a custom export with specific format and filter options for layer data.

    Export requests are asynchronous. A successful response will return a poll_endpoint to check the status of the export using the poll custom export endpoint.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map where the layer is located

    layer_idstringRequired

    The ID of the layer to export

    Body
    email_on_completionbooleanOptional

    Send an email to the requesting user when the export completes. Defaults to true

    itemsanyOptional
    output_formatstring · enumRequiredExample: csvPossible values:
    Responses
    200

    Custom export response

    application/json
    export_request_idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    poll_endpointstringRequiredExample: http://felt.com/api/v2/maps/vAbZ5eKqRoGe4sCH8nHW8D/layers/7kF9Cfz45TUWIiuuWV8uZ7A/custom_exports/auFxn9BO4RrGGiKrGfaS7ZB
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    503

    ServiceUnavailableError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/layers/{layer_id}/custom_export
    POST /api/v2/maps/{map_id}/layers/{layer_id}/custom_export HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 63
    
    {
      "email_on_completion": true,
      "filters": [],
      "output_format": "csv"
    }
    {
      "export_request_id": "luCHyMruTQ6ozGk3gPJfEB",
      "poll_endpoint": "http://felt.com/api/v2/maps/vAbZ5eKqRoGe4sCH8nHW8D/layers/7kF9Cfz45TUWIiuuWV8uZ7A/custom_exports/auFxn9BO4RrGGiKrGfaS7ZB"
    }
    get

    Check the processing status and download availability of a custom export request.

    If the export is successful, the response will include a download_url for accessing the exported data.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map where the layer is located

    layer_idstringRequired

    The ID of the layer to export

    export_idstringRequired

    The ID of the export

    Responses
    200

    Custom export request status

    application/json
    download_urlstring · nullableRequiredExample: https://us1.data-pipeline.felt.com/fcdfd96c-06fa-40b9-9ae9-ad034b5a66df/Felt-Export.zip
    export_idstringRequiredExample: FZWQjWZJSZWvW3yn9BeV9AyA
    itemsanyOptional
    statusstring · enumRequiredExample: completedPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/maps/{map_id}/layers/{layer_id}/custom_exports/{export_id}
    GET /api/v2/maps/{map_id}/layers/{layer_id}/custom_exports/{export_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "download_url": "https://us1.data-pipeline.felt.com/fcdfd96c-06fa-40b9-9ae9-ad034b5a66df/Felt-Export.zip",
      "export_id": "FZWQjWZJSZWvW3yn9BeV9AyA",
      "filters": [],
      "status": "completed"
    }
    get

    Generate a direct download link for layer data export.

    Get a link to export a layer as a GeoPackage (vector layers) or GeoTIFF (raster layers).

    The request waits for the export to finish. If it takes too long, the request returns 202 with a poll_endpoint, which is also the Location header; poll it, waiting Retry-After seconds between requests.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map where the layer is located

    layer_idstringRequired

    The ID of the layer to export

    Responses
    200

    Export link

    application/json
    export_linkstringRequired
    202

    Export still processing

    application/json
    LocationstringOptional

    The export's poll_endpoint.

    Retry-AfterintegerOptional

    Seconds to wait before polling.

    Example: 5
    messagestringRequired
    poll_endpointstringRequiredExample: https://felt.com/api/v2/maps/vAbZ5eKqRoGe4sCH8nHW8D/layers/7kF9Cfz45TUWIiuuWV8uZ7A/custom_exports/auFxn9BO4RrGGiKrGfaS7ZB
    statusstring · enumRequiredPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    503

    ServiceUnavailableError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/maps/{map_id}/layers/{layer_id}/get_export_link
    GET /api/v2/maps/{map_id}/layers/{layer_id}/get_export_link HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "export_link": "text"
    }

    Get map element group

    get

    Retrieve all elements from a specific group as GeoJSON.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map.

    group_idstringRequired

    The ID of the element group.

    Responses
    200

    GeoJSON

    application/json
    felt:idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    felt:parentIdstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    propertiesobjectOptional
    typestring · enumOptionalPossible values:
    typestring · enumRequiredPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/maps/{map_id}/element_groups/{group_id}
    GET /api/v2/maps/{map_id}/element_groups/{group_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "features": [
        {
          "geometry": {
            "felt:id": "luCHyMruTQ6ozGk3gPJfEB",
            "felt:parentId": "luCHyMruTQ6ozGk3gPJfEB"
          },
          "properties": {},
          "type": "Feature"
        }
      ],
      "type": "FeatureCollection"
    }

    Delete map element

    delete

    Permanently delete an element from a map.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map to delete the element from.

    element_idstringRequired

    The ID of the element to delete.

    Responses
    204

    No Content

    No content

    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    delete/api/v2/maps/{map_id}/elements/{element_id}
    DELETE /api/v2/maps/{map_id}/elements/{element_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    

    No content

    List map elements

    get

    Returns a GeoJSON FeatureCollection containing all the elements in a map that are not in an element group.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map to list elements from.

    Responses
    200

    GeoJSON

    application/json
    felt:idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    felt:parentIdstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    propertiesobjectOptional
    typestring · enumOptionalPossible values:
    typestring · enumRequiredPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/maps/{map_id}/elements
    GET /api/v2/maps/{map_id}/elements HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "features": [
        {
          "geometry": {
            "felt:id": "luCHyMruTQ6ozGk3gPJfEB",
            "felt:parentId": "luCHyMruTQ6ozGk3gPJfEB"
          },
          "properties": {},
          "type": "Feature"
        }
      ],
      "type": "FeatureCollection"
    }
    post

    Create new elements or update existing ones on a map using GeoJSON data. Each element is represented by a feature in the POST'ed GeoJSON Feature Collection. For each feature, including an existing element id will result in the element being updated on the map. If no element id is provided (or a non-existent one), a new element will be created.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map to create the elements in

    Body
    felt:idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    felt:parentIdstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    propertiesobjectOptional
    typestring · enumOptionalPossible values:
    typestring · enumRequiredPossible values:
    Responses
    200

    GeoJSON

    application/json
    felt:idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    felt:parentIdstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    propertiesobjectOptional
    typestring · enumOptionalPossible values:
    typestring · enumRequiredPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/elements
    POST /api/v2/maps/{map_id}/elements HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 165
    
    {
      "features": [
        {
          "geometry": {
            "felt:id": "luCHyMruTQ6ozGk3gPJfEB",
            "felt:parentId": "luCHyMruTQ6ozGk3gPJfEB"
          },
          "properties": {},
          "type": "Feature"
        }
      ],
      "type": "FeatureCollection"
    }
    {
      "features": [
        {
          "geometry": {
            "felt:id": "luCHyMruTQ6ozGk3gPJfEB",
            "felt:parentId": "luCHyMruTQ6ozGk3gPJfEB"
          },
          "properties": {},
          "type": "Feature"
        }
      ],
      "type": "FeatureCollection"
    }
    get

    Returns a list of GeoJSON FeatureCollections, one for each element group in the map.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map to list groups from.

    Responses
    200

    ElementGroupList

    application/json
    colorstringRequired

    The color of the element group symbol.

    felt:idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    felt:parentIdstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    propertiesobjectOptional
    typestring · enumOptionalPossible values:
    typestring · enumRequiredPossible values:
    idstringRequired

    The ID of the element group.

    namestring · nullableRequired

    The name of the element group.

    symbolstring · nullableRequired

    The symbol used to represent the element group.

    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/maps/{map_id}/element_groups
    GET /api/v2/maps/{map_id}/element_groups HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    [
      {
        "color": "text",
        "elements": {
          "features": [
            {
              "geometry": {
                "felt:id": "luCHyMruTQ6ozGk3gPJfEB",
                "felt:parentId": "luCHyMruTQ6ozGk3gPJfEB"
              },
              "properties": {},
              "type": "Feature"
            }
          ],
          "type": "FeatureCollection"
        },
        "id": "text",
        "name": "text",
        "symbol": "text"
      }
    ]
    post

    Create new element groups or update existing ones.

    For each Element Group, including an existing Element Group id will result in the Element Group being updated. If no id is provided, a new Element Group will be created.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map to create the group in

    Bodyobject · ElementGroupParams[]
    colorstringOptionalDefault: #C93535
    idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    namestringRequiredExample: My Element Group
    symbolstringOptionalDefault: dot
    Responses
    200

    Element group list

    application/json
    colorstringRequired

    The color of the element group symbol.

    felt:idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    felt:parentIdstring · felt_id · nullableOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    propertiesobjectOptional
    typestring · enumOptionalPossible values:
    typestring · enumRequiredPossible values:
    idstringRequired

    The ID of the element group.

    namestring · nullableRequired

    The name of the element group.

    symbolstring · nullableRequired

    The symbol used to represent the element group.

    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/element_groups
    POST /api/v2/maps/{map_id}/element_groups HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 92
    
    [
      {
        "color": "#C93535",
        "id": "luCHyMruTQ6ozGk3gPJfEB",
        "name": "My Element Group",
        "symbol": "dot"
      }
    ]
    [
      {
        "color": "text",
        "elements": {
          "features": [
            {
              "geometry": {
                "felt:id": "luCHyMruTQ6ozGk3gPJfEB",
                "felt:parentId": "luCHyMruTQ6ozGk3gPJfEB"
              },
              "properties": {},
              "type": "Feature"
            }
          ],
          "type": "FeatureCollection"
        },
        "id": "text",
        "name": "text",
        "symbol": "text"
      }
    ]
    post

    Publish a layer to a Felt Server so members of your workspace can reuse it.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map where the layer is located

    layer_idstringRequired

    The ID of the layer to publish

    Body
    feltServerIdstring · uuidOptional

    The Felt Server to publish into. Defaults to the workspace's default Felt Server.

    Example: 8f9a2b1c-3d4e-5f60-7a8b-9c0d1e2f3a4b
    namestringOptional

    The name to publish the layer under

    Example: My Layer
    Responses
    200

    Publish layer response

    application/json
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/layers/{layer_id}/publish
    POST /api/v2/maps/{map_id}/layers/{layer_id}/publish HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 73
    
    {
      "feltServerId": "8f9a2b1c-3d4e-5f60-7a8b-9c0d1e2f3a4b",
      "name": "My Layer"
    }
    {
      "attributes": [
        {
          "name": "text",
          "type": "INTEGER"
        }
      ],
      "caption": "text",
      "geometry_type": "Line",
      "hide_from_legend": true,
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "is_spreadsheet": true,
      "last_refreshed_at": "2026-01-01T00:00:00.000Z",
      "legend_display": "default",
      "legend_visibility": "hide",
      "links": {
        "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
        "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
      },
      "metadata": {
        "attribution_text": "text",
        "attribution_url": "text",
        "description": "text",
        "license": "text",
        "source_abbreviation": "text",
        "source_name": "text",
        "source_url": "text",
        "updated_at": "2025-03-24"
      },
      "name": "text",
      "next_refresh_at": "2026-01-01T00:00:00.000Z",
      "ordering_key": 1,
      "paused_reason": "consecutive_failures",
      "progress": 1,
      "refresh_period": "15 min",
      "refresh_status": "active",
      "status": "uploading",
      "style": {},
      "tile_url": "text",
      "type": "layer"
    }
    get

    List all layers published to your workspace's Felt Servers, or the Global Library.

    You can add one of these layers to a map by using the "Duplicate layers" API endpoint (POST /api/v2/duplicate_layers) and the layer id provided by this endpoint.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Query parameters
    sourcestring · enumOptional

    Defaults to listing layers published to your "workspace". Use "felt" to list layers from the Global Library. Use "all" to list layers from both sources.

    Default: workspacePossible values:
    Responses
    200

    LayerLibrary

    application/json
    captionstring · nullableRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    legend_visibilitystring · enum · nullableOptional

    Controls how the layer group is displayed in the legend. Defaults to "show".

    Possible values:
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D
    namestringRequired
    ordering_keyintegerOptional

    A sort order key used for ordering layers and layer groups in the legend

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    typestring · enumRequiredPossible values:
    visibility_interactionstring · enumRequired

    Controls how the layer group is displayed in the legend. Defaults to "default".

    Possible values:
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    typestring · enumRequiredPossible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/library
    GET /api/v2/library HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "layer_groups": [
        {
          "caption": "text",
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "layers": [
            {
              "attributes": [
                {
                  "name": "text",
                  "type": "INTEGER"
                }
              ],
              "caption": "text",
              "geometry_type": "Line",
              "hide_from_legend": true,
              "id": "luCHyMruTQ6ozGk3gPJfEB",
              "is_spreadsheet": true,
              "last_refreshed_at": "2026-01-01T00:00:00.000Z",
              "legend_display": "default",
              "legend_visibility": "hide",
              "links": {
                "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
                "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
              },
              "metadata": {
                "attribution_text": "text",
                "attribution_url": "text",
                "description": "text",
                "license": "text",
                "source_abbreviation": "text",
                "source_name": "text",
                "source_url": "text",
                "updated_at": "2025-03-24"
              },
              "name": "text",
              "next_refresh_at": "2026-01-01T00:00:00.000Z",
              "ordering_key": 1,
              "paused_reason": "consecutive_failures",
              "progress": 1,
              "refresh_period": "15 min",
              "refresh_status": "active",
              "status": "uploading",
              "style": {},
              "tile_url": "text",
              "type": "layer"
            }
          ],
          "legend_visibility": "hide",
          "links": {
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D"
          },
          "name": "text",
          "ordering_key": 1,
          "type": "layer_group",
          "visibility_interaction": "default"
        }
      ],
      "layers": [
        {
          "attributes": [
            {
              "name": "text",
              "type": "INTEGER"
            }
          ],
          "caption": "text",
          "geometry_type": "Line",
          "hide_from_legend": true,
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "is_spreadsheet": true,
          "last_refreshed_at": "2026-01-01T00:00:00.000Z",
          "legend_display": "default",
          "legend_visibility": "hide",
          "links": {
            "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
          },
          "metadata": {
            "attribution_text": "text",
            "attribution_url": "text",
            "description": "text",
            "license": "text",
            "source_abbreviation": "text",
            "source_name": "text",
            "source_url": "text",
            "updated_at": "2025-03-24"
          },
          "name": "text",
          "next_refresh_at": "2026-01-01T00:00:00.000Z",
          "ordering_key": 1,
          "paused_reason": "consecutive_failures",
          "progress": 1,
          "refresh_period": "15 min",
          "refresh_status": "active",
          "status": "uploading",
          "style": {},
          "tile_url": "text",
          "type": "layer"
        }
      ],
      "type": "layer_library"
    }
    post

    Publish a layer group to a Felt Server so members of your workspace can reuse it.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map where the layer group is located

    layer_group_idstringRequired

    The ID of the layer group to publish

    Body
    feltServerIdstring · uuidOptional

    The Felt Server to publish into. Defaults to the workspace's default Felt Server.

    Example: 8f9a2b1c-3d4e-5f60-7a8b-9c0d1e2f3a4b
    namestringOptional

    The name to publish the layer group under

    Example: My Layer
    Responses
    200

    Publish layer group response

    application/json
    captionstring · nullableRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    namestringRequired

    The name of the attribute

    typestring · enumOptional

    The type of the attribute

    Possible values:
    captionstring · nullableRequired
    geometry_typestring · enum · nullableRequiredPossible values:
    hide_from_legendbooleanRequired
    idstring · felt_idRequiredExample: luCHyMruTQ6ozGk3gPJfEB
    is_spreadsheetboolean · nullableOptional
    last_refreshed_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the layer's data was last updated. This includes scheduled refreshes, manual refreshes, and direct feature edits.

    legend_displaystring · enum · nullableOptional

    Controls how the layer is displayed in the legend.

    Possible values:
    legend_visibilitystring · enum · nullableOptional

    Controls whether or not the layer is displayed in the legend. Defaults to "show".

    Possible values:
    componentsstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA
    attribution_textstring · nullableOptional
    attribution_urlstring · nullableOptional
    descriptionstring · nullableOptional
    licensestring · nullableOptional
    source_abbreviationstring · nullableOptional
    source_namestring · nullableOptional
    source_urlstring · nullableOptional
    updated_atstring · date · nullableOptionalExample: 2025-03-24
    namestringRequired
    next_refresh_atstring · date-time · nullableOptional

    ISO 8601 timestamp of when the next scheduled refresh will occur. When refresh_period is faster than the workspace plan allows, layers refresh at the plan's fastest rate and this reflects that schedule. Null if refresh is disabled or paused, or the plan doesn't include live layers.

    ordering_keyinteger · nullableOptional

    A sort order key used for ordering layers and layer groups in the legend

    paused_reasonstring · enum · nullableOptional

    Why the layer's refresh is paused. Null when not paused.

    Possible values:
    progressnumber · floatRequired
    refresh_periodstring · enumRequired

    The saved refresh rate. It can be faster than the plan allows after a downgrade; see next_refresh_at.

    Possible values:
    refresh_statusstring · enumRequired

    Whether scheduled refresh is active, paused (due to failures), or disabled

    Possible values:
    statusstring · enumRequiredPossible values:
    styleobjectRequired

    The Felt Style Language style for the layer

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    tile_urlstring · nullableOptional

    The tile URL for this layer

    typestring · enumRequiredPossible values:
    legend_visibilitystring · enum · nullableOptional

    Controls how the layer group is displayed in the legend. Defaults to "show".

    Possible values:
    selfstringOptionalExample: https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D
    namestringRequired
    ordering_keyintegerOptional

    A sort order key used for ordering layers and layer groups in the legend

    subtitlestring · nullableOptionalDeprecated

    Deprecated: use caption instead.

    typestring · enumRequiredPossible values:
    visibility_interactionstring · enumRequired

    Controls how the layer group is displayed in the legend. Defaults to "default".

    Possible values:
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/layer_groups/{layer_group_id}/publish
    POST /api/v2/maps/{map_id}/layer_groups/{layer_group_id}/publish HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Content-Type: application/json
    Accept: */*
    Content-Length: 73
    
    {
      "feltServerId": "8f9a2b1c-3d4e-5f60-7a8b-9c0d1e2f3a4b",
      "name": "My Layer"
    }
    {
      "caption": "text",
      "id": "luCHyMruTQ6ozGk3gPJfEB",
      "layers": [
        {
          "attributes": [
            {
              "name": "text",
              "type": "INTEGER"
            }
          ],
          "caption": "text",
          "geometry_type": "Line",
          "hide_from_legend": true,
          "id": "luCHyMruTQ6ozGk3gPJfEB",
          "is_spreadsheet": true,
          "last_refreshed_at": "2026-01-01T00:00:00.000Z",
          "legend_display": "default",
          "legend_visibility": "hide",
          "links": {
            "components": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA/components",
            "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layers/k441enUxQUOnZqc1ZvNsDA"
          },
          "metadata": {
            "attribution_text": "text",
            "attribution_url": "text",
            "description": "text",
            "license": "text",
            "source_abbreviation": "text",
            "source_name": "text",
            "source_url": "text",
            "updated_at": "2025-03-24"
          },
          "name": "text",
          "next_refresh_at": "2026-01-01T00:00:00.000Z",
          "ordering_key": 1,
          "paused_reason": "consecutive_failures",
          "progress": 1,
          "refresh_period": "15 min",
          "refresh_status": "active",
          "status": "uploading",
          "style": {},
          "tile_url": "text",
          "type": "layer"
        }
      ],
      "legend_visibility": "hide",
      "links": {
        "self": "https://felt.com/api/v2/maps/V0dnOMOuTd9B9BOsL9C0UjmqC/layer_groups/v13k4Ae9BRjCHHdPP5Fcm6D"
      },
      "name": "text",
      "ordering_key": 1,
      "type": "layer_group",
      "visibility_interaction": "default"
    }

    Export map comments

    get

    Export all comments and replies from a map in CSV, JSON, or GeoJSON format.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map to export comments from.

    Query parameters
    formatstringOptional

    The format to export the comments in: 'csv', 'json' (default), or 'geojson'

    Responses
    200

    Comment export response

    application/json

    Comment Thread

    itemsanyOptional

    Comment Thread

    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    get/api/v2/maps/{map_id}/comments/export
    GET /api/v2/maps/{map_id}/comments/export HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    []

    Resolve map comment

    post

    Mark a comment thread as resolved.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map that contains the comment.

    comment_idstringRequired

    The ID of the comment to resolve.

    Responses
    200

    Comment resolved response

    application/json
    comment_idstring · felt_idOptionalExample: luCHyMruTQ6ozGk3gPJfEB
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/comments/{comment_id}/resolve
    POST /api/v2/maps/{map_id}/comments/{comment_id}/resolve HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "comment_id": "luCHyMruTQ6ozGk3gPJfEB"
    }

    Delete map comment

    delete

    Permanently delete a comment or reply from the map.

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired

    The ID of the map that contains the comment.

    comment_idstringRequired

    The ID of the comment to delete.

    Responses
    204

    No Content

    No content

    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    delete/api/v2/maps/{map_id}/comments/{comment_id}
    DELETE /api/v2/maps/{map_id}/comments/{comment_id} HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    

    No content

    post

    Creates a token, valid for 12 hours, for authenticating a visitor to view a private embedded map view without being logged into Felt. You must provide a user_email to associate the token with the end user that will be viewing the map. Each end user should be a member of your Felt workspace with a viewer, editor, or admin role assigned.

    Mint a fresh token for each page load. The 12 hours cover a full working session in one open tab — reconnects included — and when they run out the embed asks the visitor to refresh, at which point your page should mint again.

    • Generate a token by making a call to this API from your server

    • Securely pass the token to your frontend client

    • Include the token as a query parameter on the Embed URL in an iframe

    Authorizations
    AuthorizationstringRequired
    Bearer authentication header of the form Bearer <token>.
    Path parameters
    map_idstringRequired
    Query parameters
    user_emailstringRequired

    Each token must be associated with the email address of the user who will use it.

    Responses
    200

    EmbedToken

    application/json
    expires_atstring · date_timeOptionalExample: 2024-05-25T15:51:34
    tokenstringOptional
    401

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    403

    UnauthorizedError

    application/json
    detailstringOptional
    headerstring · enumOptionalPossible values:
    titlestringOptional
    404

    NotFoundError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    422

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    429

    Unprocessable Entity

    application/json
    detailstringRequiredExample: null value where string expected
    pointerstringRequiredExample: /data/attributes/petName
    titlestringRequiredExample: Invalid value
    500

    InternalServerError

    application/json
    detailstringOptional
    parameterstringOptional
    titlestringOptional
    post/api/v2/maps/{map_id}/embed_token
    POST /api/v2/maps/{map_id}/embed_token?user_email=text HTTP/1.1
    Host: felt.com
    Authorization: Bearer YOUR_SECRET_TOKEN
    Accept: */*
    
    {
      "expires_at": "2024-05-25T15:51:34",
      "token": "text"
    }

    Update project

    List projects

    Create project

    Caution: Deleting a project deletes all of the folders and maps inside!

    Create map

    Duplicate map

    This action cannot be undone. The map and all its layers, elements, and comments will be permanently removed.

    Update map

    Export map as image

    Update source credential

    Get source

    Any layers created from the Source will remain after it is deleted, but they will no longer be refreshed.

    List sources

    Create source

    Create source credential

    Update source

    Duplicate map layers

    Update map layer group

    Delete map layer group

    This action cannot be undone. The layer group and all its contained layers will be permanently removed from the map.

    This action cannot be undone. The layer and all its data will be permanently removed from the map.

    Update layer style

    List map layers

    Update map layer

    List map layer groups

    Update map layer groups

    , then follow
    download_url
    before
    expires_at
    . Rendering takes up to 60 seconds plus 10 seconds a page, capped at 10 minutes. An export whose renderer never answers reads as
    in_progress
    for up to about 25 minutes before it is marked
    failed
    . An unknown or deleted page in
    page_ids
    returns
    404
    , and nothing is exported. Returns
    503
    when the export can't be started.

    Check print export status

    List print pages

    Create print page

    Update print layout

    Get print page

    Update print page

    Export print pages

    Export print page

    Create or update print page items

    List layer components

    Create layer component

    The component type is set at creation and cannot be changed later.

    Update layer component

    Omitted fields keep their current value. A component's type is immutable and is not part of the update body.

    This cannot be undone.

    Create custom layer export

    Check custom export status

    Create layer export link

    This action cannot be undone. The element will be permanently removed from the map.

    Create or update map elements

    The maximum payload size for any POST to the Felt API is 1MB. Additionally, complex element geometry may be automatically simplified. If you require large, complex geometries, consider uploading your data as a Data Layer.

    List map element groups

    Create or update map element groups

    The maximum payload size for any POST to the Felt API is 1MB. Additionally, complex element geometry may be automatically simplified. If you require large, complex geometries, consider uploading your data as a Data Layer.

    Publish map layer

    List Felt Server and Global Library layers

    Publish map layer group

    This action cannot be undone. The comment or reply will be permanently removed from the map.

    Enabling Layer Export

    You can allow EmbedToken based page views to export layer data.

    • Turn on "Viewer permissions: Export data" in Map settings

    Create an Embed Token

    Usage

    <iframe src="https://felt.com/embed/map/{mapId}?token={token}"></iframe>
    Layer files aren't uploaded directly to the Felt API. Instead, they are uploaded to an S3 bucket.

    The response to this API request will include a URL and pre-signed params for you to use to upload your file. Only a single file may be uploaded — if you wish to upload several files at once, consider wrapping them in a zip file.

    To upload the file, you must perform a multipart upload, and include the file contents in the file field.

    Add layer from data source

    Upload map layer

    Refresh map layer

    With the felt_python library, you can refresh a layer with a simple function call:

    Add data from URLs
    from felt_python import (refresh_file_layer, refresh_url_layer)
    
    refresh_file_layer(map_id, layer_id, file_name="features.geojson")
    refresh_url_layer(map_id, layer_id)

    With the felt_python library, you can upload a file with a simple function call:

    from felt_python import upload_file
    
    upload_file(map_id
    ,
    file_name
    =
    "
    features.geojson
    "
    ,
    layer_name
    =
    "
    My new layer
    "
    )