> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.lettbestilt.no/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.lettbestilt.no/_mcp/server.

# List your restaurants

GET https://www.lettbestilt.no/api/v1/partner/restaurants

**Partner key alone.** Lists the partner's restaurants, sorted by slug and paginated with a cursor. A test key sees only sandboxes; a live key would see only real restaurants. Archived restaurants are included (`archived: true`).

No contact details, payment status or customer data. Use `GET /partner/restaurants/{slug}` with the restaurant key for details.

This call is not written to the API log in the partner portal, because it is not about one restaurant.

Reference: https://docs.lettbestilt.no/api-reference/partner/list-partner-restaurants

## Authentication

- `Authorization` header (bearer token, required) — The partner key, sent as `Authorization: Bearer lbp_test_…`. Created in the partner portal under **Partner key**. It belongs to the partner, not to a restaurant, and only works against `/api/v1/partner`. Server to server only: a request with an `Origin` header is rejected with `403 FORBIDDEN`. A test key sees and creates only sandboxes; live partner keys are not available yet. A revoked key, a restaurant key (`lbs_…`) here, or a suspended or archived partner returns `401 UNAUTHORIZED`; an expired key returns `401 KEY_EXPIRED`.

## Request

### Query parameters

- `cursor` (string, optional) — `nextCursor` from the previous page. Leave it out for the first page.
- `limit` (integer, optional, default: 25) — Restaurants per page, 1–100. Defaults to 25.

## Response

### 200

One page of restaurants. `nextCursor` is `null` on the last page.

- `data` (list of PartnerRestaurant, required)
- `nextCursor` (string, required, nullable) — Send as `cursor` to get the next page. `null` on the last page.

## Errors

### 401 Unauthorized Error

`UNAUTHORIZED`: missing, invalid or revoked partner key, a restaurant key in `Authorization`, or a suspended or archived partner. `KEY_EXPIRED`: the partner key is past its expiry date.

- `error` (ErrorBody, required)

### 403 Forbidden Error

`FORBIDDEN`: the request has an `Origin` header; the partner API is server to server only.

- `error` (ErrorBody, required)

### 422 Unprocessable Entity Error

`VALIDATION_FAILED`: invalid `limit` or `cursor` (`error.details.issues`).

- `error` (ErrorBody, required)

### 429 Too Many Requests Error

`RATE_LIMITED`: more than 120 calls per minute for this partner key. See `Retry-After`.

- `error` (ErrorBody, required)

## Types

### PartnerRestaurant

A restaurant as the partner key alone sees it. No contact details, payment status or customer data.

- `slug` (string, required) — The restaurant's identifier everywhere in `/api/v1`.
- `name` (string, required)
- `environment` (enum, required) — `TEST` for a sandbox, `LIVE` for a real restaurant.
  - Allowed values: `TEST`, `LIVE`
- `sandbox` (boolean, required) — `true` for a sandbox.
- `live` (boolean, required) — A real restaurant that has gone live and takes orders. A new real restaurant is not live until its owner has signed and set it live. Always `false` for sandboxes; they accept test orders in `/api/v1` anyway.
- `archived` (boolean, required) — Archived with `DELETE` (real restaurants only). Only LettBestilt can restore it.
- `createdAt` (datetime, required)

### ErrorBody

- `code` (enum, required) — A machine-readable error code.
  - Allowed values: `MISSING_SLUG`, `MISSING_TOKEN`, `INVALID_JSON`, `INVALID_SUCCESS_URL`, `INVALID_CANCEL_URL`, `VALIDATION_FAILED`, `RESTAURANT_NOT_FOUND`, `ORDER_NOT_FOUND`, `RATE_LIMITED`, `BAD_REQUEST`, `UNAUTHORIZED`, `FORBIDDEN`, `INSUFFICIENT_SCOPE`, `KEY_EXPIRED`, `POPUP_NOT_AVAILABLE`, `PRICE_CHANGED`, `PAYMENT_INCOMPLETE`, `PAYMENT_PENDING`, `PAYMENT_PROVIDER_INVALID`, `FULFILLMENT_NOT_ALLOWED`, `IDEMPOTENCY_CONFLICT`, `DINE_IN_DISABLED`, `PARTY_TOO_LARGE`, `TOO_EARLY`, `INTERNAL_ERROR`, `PARTNER_AGREEMENT_REQUIRED`, `IDEMPOTENCY_KEY_REQUIRED`, `SLUG_TAKEN`, `SANDBOX_LIMIT`, `RETENTION`, `RESTAURANT_ARCHIVED`, `KEY_NOT_FOUND`, `KEY_IN_USE`, `WEBHOOK_NOT_FOUND`, `WEBHOOK_LIMIT`, `CHANGED`
- `message` (string, required) — A human-readable explanation. Often in Norwegian, and for business rules usually suitable to show the customer.
- `requestId` (string, required) — The same value as the `X-Request-Id` response header. Search for it in the API log in the partner portal, and include it when you contact LettBestilt.
- `details` (any, optional) — Extra data for some codes, for example `issues` for `VALIDATION_FAILED`, the totals for `PRICE_CHANGED` or `requiredScope` for `INSUFFICIENT_SCOPE`.

## Examples

**Response**

```json
{
  "data": [
    {
      "slug": "pizzaroma-test",
      "name": "Pizza Roma (test)",
      "environment": "TEST",
      "sandbox": true,
      "live": false,
      "archived": false,
      "createdAt": "2026-10-16T08:12:00.000Z"
    }
  ],
  "nextCursor": null
}
```

**SDK Code**

```python Partner_listPartnerRestaurants_example
import requests

url = "https://www.lettbestilt.no/api/v1/partner/restaurants"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Partner_listPartnerRestaurants_example
const url = 'https://www.lettbestilt.no/api/v1/partner/restaurants';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Partner_listPartnerRestaurants_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://www.lettbestilt.no/api/v1/partner/restaurants"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Partner_listPartnerRestaurants_example
require 'uri'
require 'net/http'

url = URI("https://www.lettbestilt.no/api/v1/partner/restaurants")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Partner_listPartnerRestaurants_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://www.lettbestilt.no/api/v1/partner/restaurants")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Partner_listPartnerRestaurants_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://www.lettbestilt.no/api/v1/partner/restaurants', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Partner_listPartnerRestaurants_example
using RestSharp;

var client = new RestClient("https://www.lettbestilt.no/api/v1/partner/restaurants");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Partner_listPartnerRestaurants_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://www.lettbestilt.no/api/v1/partner/restaurants")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```