# Ramp (Sandbox Version) — Pipedream Connect

> The Ramp sandbox is a testing environment where developers and partners can safely build, test, and experiment with Ramp's API without affecting live production data. Access the live version of Ramp here.

- API slug: `ramp_sandbox` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Business Management
- Website: https://demo.ramp.com/
- Managed OAuth scopes: `transactions:read` · `cards:read` · `cards:write` · `spend_programs:read` · `spend_programs:write` · `users:read` · `users:write` · `locations:read` · `locations:write` · `limits:read` · `limits:write` · `departments:read` · `departments:write` · `business:read` · `receipts:read` · `transfers:read` · `vendors:read` · `merchants:read` · `accounting:read` · `accounting:write` · `receipts:write` · `reimbursements:read` · `funds:read` · `funds:write`
- This page (HTML): https://pipedream.com/apps/ramp-sandbox
- Tools: 18 actions · 3 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: ramp_sandbox`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "ramp_sandbox",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Create Department:
const result = await mcp.callTool({
  name: "ramp_sandbox-create-department",
  arguments: {
    name: "Name",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Ramp (Sandbox Version) endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://demo-api.ramp.com/developer/v1/business

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9kZW1vLWFwaS5yYW1wLmNvbS9kZXZlbG9wZXIvdjEvYnVzaW5lc3M?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "ramp_sandbox-create-department",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    ramp_sandbox: { authProvisionId: "apn_xxxxxxx" },
    name: "Name",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (18)

### `ramp_sandbox-create-department` — Create Department (Write)

Create a new Ramp Sandbox department (e.g. Engineering, Marketing). Use this to add an organizational unit before assigning users to it. Returns the new department's id, which you can pass to Update User to set a user's department, or use to filter List Transactions / List Users. See the…

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/create-department.md

### `ramp_sandbox-create-location` — Create Location (Write)

Create a new Ramp Sandbox location (e.g. New York HQ). Use this to add a site before assigning users to it; the returned id can be passed to Update User or used to filter List Transactions / List Users. Associating an entity is optional — set the Entity ID only for multi-entity businesses that…

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/create-location.md

### `ramp_sandbox-create-user-invite` — Create User Invite (Write)

Invite a new person to your Ramp Sandbox organization by email — use this to onboard an employee who doesn't yet have a Ramp Sandbox account. Requires their email, first and last name, and role (e.g. BUSINESS_USER); department, location, and direct manager are optional. Run List Departments and…

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/create-user-invite.md

### `ramp_sandbox-get-limit` — Get Limit (Read-only)

Retrieve a single Ramp Sandbox spend limit by ID. Run the List Limits action first to find a valid limit ID. Example: given a limit id from List Limits, returns the limit's display name, state (e.g. ACTIVE), balance, spend program, and spending restrictions. See the documentation

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/get-limit.md

### `ramp_sandbox-get-transaction` — Get Transaction (Read-only)

Retrieve a single Ramp Sandbox transaction by ID. Run the List Transactions action first to find a valid transaction ID. Example: given a transaction id from List Transactions, returns the full transaction — e.g. merchant Facebook Ads, amount $135.00, category Advertising, plus line items and…

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/get-transaction.md

### `ramp_sandbox-get-user` — Get User (Read-only)

Retrieve a single Ramp Sandbox user by ID. Run the List Users action first to find a valid user ID. Example: given a user id from List Users, returns that user's full record — name, email, role (e.g. BUSINESS_OWNER), department id, and location id. See the documentation

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/get-user.md

### `ramp_sandbox-issue-virtual-card` — Issue Virtual Card (Write)

Issue a new Ramp Sandbox virtual card (spend limit) for a user. Requires a Virtual Card Name and the user's ID (run List Users to find it). Works two ways: (1) link to an existing spend program — set Link to Existing Spend Program on and pass a Spend Program ID (run List Spend Programs), and the…

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/issue-virtual-card.md

### `ramp_sandbox-list-departments` — List Departments (Read-only)

Retrieve a list of Ramp Sandbox departments. Use this to find department IDs for other actions such as Update User and List Transactions. Example: returns { id, name } pairs such as { "id": "fffe6c22-698f-4dc5-b2b1-b35f86947d90", "name": "Engineering" } — pass the id to Update User to set a user's…

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/list-departments.md

### `ramp_sandbox-list-limits` — List Limits (Read-only)

Retrieve a paginated list of Ramp Sandbox spend limits. Returns a compact summary of each limit by default (id, display_name, state, balance, spend_program_id, created_at, is_shareable); use Get Limit for the full record, or pass fields to include specific extra fields. Use this to find limit IDs…

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/list-limits.md

### `ramp_sandbox-list-locations` — List Locations (Read-only)

Retrieve a list of Ramp Sandbox locations. Use this to find location IDs for other actions such as Update User and List Transactions. Example: returns objects like { "id": "961c6f01-5719-4f4c-8fef-4096a031f32a", "name": "New York HQ", "entity_id": "c0e5f8a2-9b1d-4e3a-8f6c-2d7b4a1e9f30" } — pass the…

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/list-locations.md

### `ramp_sandbox-list-spend-programs` — List Spend Programs (Read-only)

Retrieve a list of Ramp Sandbox spend programs. Returns a compact summary of each program by default (id, display_name, description, icon, is_shareable, issue_physical_card_if_needed); pass fields to include specific extra fields such as restrictions. Returns one page of up to pageSize results (max…

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/list-spend-programs.md

### `ramp_sandbox-list-transactions` — List Transactions (Read-only)

Retrieve a paginated list of Ramp Sandbox transactions, optionally filtered by department, location, or state. Returns a compact summary of each transaction by default (id, merchant_name, amount, merchant_amount, sk_category_name, state, card_id, limit_id, accounting_date, user_transaction_time…

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/list-transactions.md

### `ramp_sandbox-list-transfers` — List Transfers (Read-only)

Retrieve a list of Ramp Sandbox transfers, optionally filtered by status. Example: pass Status ACH_CONFIRMED to return only confirmed transfers, each with amount and status. Returns one page of up to pageSize results (max 100); a page.next value in the response means more transfers exist beyond…

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/list-transfers.md

### `ramp_sandbox-list-users` — List Users (Read-only)

Retrieve a paginated list of Ramp Sandbox users, optionally filtered by department, location, email, role, or status. Returns a compact summary of each user by default (id, first_name, last_name, email, role, status, department_id, location_id, manager_id, is_manager); use Get User for the full…

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/list-users.md

### `ramp_sandbox-terminate-limit` — Terminate Limit (Write)

Permanently terminate a Ramp Sandbox spend limit by ID. This is irreversible and takes effect immediately. Run the List Limits action to find the limit ID. Example: given a limit id from List Limits, terminates that limit and returns its final (terminated) state. See the documentation

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/terminate-limit.md

### `ramp_sandbox-update-limit` — Update Limit (Write)

Update an existing Ramp Sandbox spend limit — rename it and/or set its spending restriction. Run the List Limits action to find the limit ID. This is a partial update: fields you omit are left unchanged. Pass Display Name alone to simply rename a limit. To set a spending cap you must provide both…

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/update-limit.md

### `ramp_sandbox-update-user` — Update User (Write)

Update fields on an existing Ramp Sandbox user (role, department, location, direct manager). Run the List Users action to find the user ID, List Departments and List Locations for related IDs. Example: to move a user into a department, pass their User ID plus a Department ID from List Departments…

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/update-user.md

### `ramp_sandbox-upload-receipt` — Upload Receipt (Write)

Uploads a receipt for a given transaction and user. See the documentation

Full schema: https://pipedream.com/apps/ramp-sandbox/actions/upload-receipt.md

## Triggers (3)

### `ramp_sandbox-new-transaction-created` — New Transaction Created (Polling)

Emit new event for each new transaction created in Ramp.

Full schema: https://pipedream.com/apps/ramp-sandbox/triggers/new-transaction-created.md

### `ramp_sandbox-transaction-status-updated` — Transaction Status Updated (Polling)

Emit new event when there is a change in transaction status.

Full schema: https://pipedream.com/apps/ramp-sandbox/triggers/transaction-status-updated.md

### `ramp_sandbox-transfer-payment-updated` — Transfer Payment Updated (Polling)

Emit new event when the status of a transfer payment changes

Full schema: https://pipedream.com/apps/ramp-sandbox/triggers/transfer-payment-updated.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
