v2.1 — Live & Stable

The Slice Public API

Build powerful integrations with Slice's pizza delivery platform. Access menus, orders, restaurants, and real-time tracking — all through a clean REST interface.

example.js
// Fetch nearby restaurants const res = await fetch(`https://api-doc.slicelife.com /v2/restaurants?lat=40.71 &lng=-74.01&radius=5`, { method: 'GET', headers: { 'Authorization': `Bearer ${API_KEY}`, 'Content-Type': 'application/json' } }); const { restaurants, total } = await res.json(); // → [ { id, name, rating, eta, ... } ]
40+
Endpoints
99.9%
Uptime SLA
REST
Architecture
OAuth2
Auth Standard
API Reference

Endpoints

Explore the full set of REST endpoints for integrating Slice delivery, menus, and order management into your application.

GET /v2/restaurants

Search and filter restaurants by location, cuisine, rating, or delivery time. Supports pagination and sorting.

Restaurants
GET /v2/restaurants/{id}/menu

Retrieve the full menu for a specific restaurant including items, prices, modifiers, and availability windows.

Menu
POST /v2/orders

Create a new order with cart items, delivery address, and payment details. Returns an order ID and ETA.

Orders
GET /v2/orders/{id}/status

Get real-time status of an existing order: pending, confirmed, preparing, out-for-delivery, or delivered.

Orders
PUT /v2/orders/{id}

Update an existing order before it's confirmed. Modify items, address, or special instructions.

Orders
DELETE /v2/orders/{id}

Cancel an order that hasn't been confirmed by the restaurant yet. Refunds are processed automatically.

Orders
POST /v2/users

Register a new user account. Requires name, email, and password. Returns an auth token on success.

Users
GET /v2/users/{id}/orders

Retrieve the order history for an authenticated user, sorted by most recent. Includes status and totals.

Users
GET /v2/tracking/{order_id}

Live GPS tracking coordinates for the delivery driver. Refreshes every 15 seconds via polling or webhook.

Tracking
Why Build with Slice

Built for developers

Everything you need to integrate pizza delivery into your product, from local restaurant search to real-time order tracking.

🍕
40,000+ Restaurants
Access thousands of independent pizzerias across the US with real-time menu and availability data.
Real-time Tracking
Live order status and GPS tracking via REST polling or webhook push. ETA updates throughout delivery.
🔐
OAuth 2.0 Auth
Industry-standard authentication with scoped API keys, refresh tokens, and role-based access control.
📦
Webhooks
Subscribe to order lifecycle events and receive instant push notifications to your server endpoint.
📄
OpenAPI 3.0 Spec
Full OpenAPI schema available for auto-generating SDKs, mock servers, and client libraries in any language.
🛠️
Sandbox Environment
Test the full order flow — from browsing to delivery — in an isolated sandbox before going live.
Authentication

Get started in minutes

Authenticate with a Bearer token passed in the Authorization header of every request.

Quick Start

Follow these steps to make your first authenticated API call and retrieve a list of nearby restaurants.

1
Create an account at developer.slicelife.com and generate your API key from the dashboard.
2
Add the Authorization header to your requests: Bearer YOUR_API_KEY
3
Test in sandbox using base URL https://sandbox-api.slicelife.com
4
Go live by switching to https://api-doc.slicelife.com when ready.
# cURL example curl -X GET \ https://api-doc.slicelife.com/v2/restaurants \ -H 'Authorization: Bearer sk_live_xxxx' \ -H 'Content-Type: application/json' \ -d '{"lat": 40.7128, "lng": -74.0060}' # Response { "restaurants": [ { "id": "rest_abc123", "name": "Joe's Pizza", "rating": 4.8, "eta_minutes": 28 } ], "total": 142 }