Rollbar · Example Payload

Rollbar Create Item Example

Report an error occurrence to Rollbar from a server-side application

Error TrackingMonitoringDebuggingDevOpsApplication Performance

Rollbar Create Item Example is an example object payload from Rollbar, with 5 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationsummarydescriptionrequestresponse

Example Payload

Raw ↑
{
  "operation": "createItem",
  "summary": "Create an Item",
  "description": "Report an error occurrence to Rollbar from a server-side application",
  "request": {
    "method": "POST",
    "url": "https://api.rollbar.com/api/1/item/",
    "headers": {
      "X-Rollbar-Access-Token": "post_server_item_token",
      "Content-Type": "application/json"
    },
    "body": {
      "access_token": "post_server_item_token",
      "data": {
        "environment": "production",
        "body": {
          "trace": {
            "frames": [
              {
                "filename": "app/controllers/orders_controller.rb",
                "lineno": 47,
                "method": "create",
                "code": "order = Order.create!(order_params)"
              },
              {
                "filename": "app/models/order.rb",
                "lineno": 23,
                "method": "validate_inventory",
                "code": "raise InsufficientInventoryError, \"SKU #{sku} has only #{available} units available\""
              }
            ],
            "exception": {
              "class": "InsufficientInventoryError",
              "message": "SKU ABC-123 has only 2 units available"
            }
          }
        },
        "level": "error",
        "timestamp": 1746144000,
        "code_version": "v2.4.1",
        "platform": "linux",
        "language": "ruby",
        "framework": "rails",
        "request": {
          "url": "https://shop.example.com/orders",
          "method": "POST",
          "headers": {
            "Accept": "application/json",
            "User-Agent": "Mozilla/5.0"
          },
          "user_ip": "203.0.113.42",
          "params": {
            "sku": "ABC-123",
            "quantity": 5
          }
        },
        "person": {
          "id": "user-9876",
          "username": "alice",
          "email": "alice@example.com"
        },
        "server": {
          "host": "web-prod-01",
          "root": "/var/www/shop",
          "branch": "main",
          "code_version": "a1b2c3d"
        }
      }
    }
  },
  "response": {
    "status": 200,
    "body": {
      "err": 0,
      "result": {
        "id": "abc123def456",
        "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
      }
    }
  }
}

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/rollbar-create-item-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 form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

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