ElectricSQL · Example Payload

Electric Sql Get Shape Example

Example response from GET /v1/shape for the 'issues' table with offset=-1 (initial sync). Returns an array of shape log messages: data operations followed by an up-to-date control message.

Developer ToolsDatabaseSyncLocal-FirstPostgresReal-TimeOpen-Source

Electric Sql Get Shape Example is an example object payload from ElectricSQL, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

descriptionrequestresponse

Example Payload

Raw ↑
{
  "description": "Example response from GET /v1/shape for the 'issues' table with offset=-1 (initial sync). Returns an array of shape log messages: data operations followed by an up-to-date control message.",
  "request": {
    "method": "GET",
    "url": "http://localhost:3000/v1/shape?table=issues&offset=-1",
    "headers": {}
  },
  "response": {
    "status": 200,
    "headers": {
      "cache-control": "public, max-age=60, stale-while-revalidate=300",
      "etag": "3833821-1721812114261:0:26800584_4",
      "electric-handle": "3833821-1721812114261",
      "electric-offset": "26800584_4",
      "electric-schema": "{\"id\":{\"type\":\"int4\",\"dimensions\":0},\"title\":{\"type\":\"text\",\"dimensions\":0},\"status\":{\"type\":\"text\",\"dimensions\":0,\"max_length\":8}}"
    },
    "body": [
      {
        "headers": {
          "operation": "insert",
          "lsn": "1234",
          "op_position": 0
        },
        "key": "issue-1",
        "value": {
          "id": "1",
          "title": "Electric",
          "status": "backlog"
        }
      },
      {
        "headers": {
          "operation": "insert",
          "lsn": "1234",
          "op_position": 7
        },
        "key": "issue-2",
        "value": {
          "id": "2",
          "title": "Hello",
          "status": "backlog"
        }
      },
      {
        "headers": {
          "control": "up-to-date"
        }
      }
    ]
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/electric-sql-get-shape-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.