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

# Get product setup readiness

GET https://api.runtype.com/v1/products/{id}/setup

Get structured, headless-first next steps to make a product live: pending secrets plus every surface's install steps, folded into a product-level readiness result. A sibling of the secrets-only configuration endpoint.

Reference: https://docs.runtype.com/api-reference/runtype-api/products/get-product-setup-readiness

## Authentication

- `Authorization` header (bearer token, required) — API key or Clerk session token

## Servers

- `https://api.runtype.com` (Production, default)
- `https://api.runtype-staging.com` (Staging)

## Request

### Path parameters

- `id` (string, required)

## Response

### 200

Product setup readiness

- `pendingCount` (integer, required)
- `productId` (string, required)
- `productName` (string, required)
- `state` (enum, required)
  - Allowed values: `ready`, `needs_setup`
- `steps` (list of V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItems, required)
- `surfaces` (list of V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItems, required)
- `handoff` (V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaHandoff, optional)

## Errors

### 400 Bad Request Error

Invalid product ID

- `error` (string, required)
- `code` (string, optional) — Stable error code. `insufficient_scope` marks an API key that lacks a scope this request needs.
- `details` (list of ErrorDetailsItems, optional)
- `requiredScopes` (list of string, optional) — On `insufficient_scope`: every API key scope this request needs.

### 401 Unauthorized Error

Unauthorized

- `error` (string, required)
- `code` (string, optional) — Stable error code. `insufficient_scope` marks an API key that lacks a scope this request needs.
- `details` (list of ErrorDetailsItems, optional)
- `requiredScopes` (list of string, optional) — On `insufficient_scope`: every API key scope this request needs.

### 404 Not Found Error

Product not found

- `error` (string, required)
- `code` (string, optional) — Stable error code. `insufficient_scope` marks an API key that lacks a scope this request needs.
- `details` (list of ErrorDetailsItems, optional)
- `requiredScopes` (list of string, optional) — On `insufficient_scope`: every API key scope this request needs.

### 500 Internal Server Error

Internal server error

- `error` (string, required)
- `code` (string, optional) — Stable error code. `insufficient_scope` marks an API key that lacks a scope this request needs.
- `details` (list of ErrorDetailsItems, optional)
- `requiredScopes` (list of string, optional) — On `insufficient_scope`: every API key scope this request needs.

## Types

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItems

- `fulfillment` (V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsFulfillment, required)
- `id` (string, required)
- `kind` (enum, required)
  - Allowed values: `secret`, `surface_install`
- `required` (boolean, required)
- `status` (enum, required)
  - Allowed values: `satisfied`, `pending`
- `title` (string, required)
- `alternatives` (list of V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsAlternativesItems, optional)
- `docsUrl` (string, optional)
- `helpText` (string, optional)
- `secretKey` (string, optional)
- `surfaceId` (string, optional)
- `surfaceType` (string, optional)

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItems

- `name` (string, required)
- `pendingCount` (integer, required)
- `state` (enum, required)
  - Allowed values: `ready`, `needs_setup`
- `steps` (list of V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItems, required)
- `surfaceId` (string, required)
- `surfaceType` (string, required)

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaHandoff

- `reason` (string, required)
- `rung` (enum, required)
  - Allowed values: `browser`
- `summary` (string, required)
- `url` (string, required)

### ErrorDetailsItems

- `message` (string, required)
- `code` (string, optional) — Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM).
- `path` (string, optional) — Dotted JSON path to the offending field.
- `suggestion` (string, optional) — Actionable hint (allowed values, accepted range, …).

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsFulfillment

- V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsFulfillment0
- V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsFulfillment1
- V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsFulfillment2
- V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsFulfillment3

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsAlternativesItems

- V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsAlternativesItems0
- V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsAlternativesItems1
- V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsAlternativesItems2
- V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsAlternativesItems3

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItems

- `fulfillment` (V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsFulfillment, required)
- `id` (string, required)
- `kind` (enum, required)
  - Allowed values: `secret`, `surface_install`
- `required` (boolean, required)
- `status` (enum, required)
  - Allowed values: `satisfied`, `pending`
- `title` (string, required)
- `alternatives` (list of V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsAlternativesItems, optional)
- `docsUrl` (string, optional)
- `helpText` (string, optional)
- `secretKey` (string, optional)
- `surfaceId` (string, optional)
- `surfaceType` (string, optional)

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsFulfillment0

- `args` (map from string to any, required)
- `rung` (enum, required)
  - Allowed values: `mcp_tool`
- `summary` (string, required)
- `tool` (string, required)
- `pendingArgs` (map from string to string, optional)

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsFulfillment1

- `endpoint` (string, required)
- `method` (enum, required)
  - Allowed values: `PATCH`, `POST`, `PUT`
- `rung` (enum, required)
  - Allowed values: `rest`
- `summary` (string, required)

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsFulfillment2

- `reason` (string, required)
- `rung` (enum, required)
  - Allowed values: `browser`
- `summary` (string, required)
- `url` (string, required)

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsFulfillment3

- `rung` (enum, required)
  - Allowed values: `satisfied`

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsAlternativesItems0

- `args` (map from string to any, required)
- `rung` (enum, required)
  - Allowed values: `mcp_tool`
- `summary` (string, required)
- `tool` (string, required)
- `pendingArgs` (map from string to string, optional)

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsAlternativesItems1

- `endpoint` (string, required)
- `method` (enum, required)
  - Allowed values: `PATCH`, `POST`, `PUT`
- `rung` (enum, required)
  - Allowed values: `rest`
- `summary` (string, required)

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsAlternativesItems2

- `reason` (string, required)
- `rung` (enum, required)
  - Allowed values: `browser`
- `summary` (string, required)
- `url` (string, required)

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaStepsItemsAlternativesItems3

- `rung` (enum, required)
  - Allowed values: `satisfied`

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsFulfillment

- V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsFulfillment0
- V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsFulfillment1
- V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsFulfillment2
- V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsFulfillment3

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsAlternativesItems

- V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsAlternativesItems0
- V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsAlternativesItems1
- V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsAlternativesItems2
- V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsAlternativesItems3

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsFulfillment0

- `args` (map from string to any, required)
- `rung` (enum, required)
  - Allowed values: `mcp_tool`
- `summary` (string, required)
- `tool` (string, required)
- `pendingArgs` (map from string to string, optional)

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsFulfillment1

- `endpoint` (string, required)
- `method` (enum, required)
  - Allowed values: `PATCH`, `POST`, `PUT`
- `rung` (enum, required)
  - Allowed values: `rest`
- `summary` (string, required)

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsFulfillment2

- `reason` (string, required)
- `rung` (enum, required)
  - Allowed values: `browser`
- `summary` (string, required)
- `url` (string, required)

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsFulfillment3

- `rung` (enum, required)
  - Allowed values: `satisfied`

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsAlternativesItems0

- `args` (map from string to any, required)
- `rung` (enum, required)
  - Allowed values: `mcp_tool`
- `summary` (string, required)
- `tool` (string, required)
- `pendingArgs` (map from string to string, optional)

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsAlternativesItems1

- `endpoint` (string, required)
- `method` (enum, required)
  - Allowed values: `PATCH`, `POST`, `PUT`
- `rung` (enum, required)
  - Allowed values: `rest`
- `summary` (string, required)

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsAlternativesItems2

- `reason` (string, required)
- `rung` (enum, required)
  - Allowed values: `browser`
- `summary` (string, required)
- `url` (string, required)

### V1ProductsIdSetupGetResponsesContentApplicationJsonSchemaSurfacesItemsStepsItemsAlternativesItems3

- `rung` (enum, required)
  - Allowed values: `satisfied`

## Examples

**Response**

```json
{
  "pendingCount": 1,
  "productId": "string",
  "productName": "string",
  "state": "ready",
  "steps": [
    {
      "fulfillment": {
        "args": {},
        "pendingArgs": {},
        "rung": "mcp_tool",
        "summary": "string",
        "tool": "string"
      },
      "id": "string",
      "kind": "secret",
      "required": true,
      "status": "satisfied",
      "title": "string",
      "alternatives": [
        {
          "args": {},
          "pendingArgs": {},
          "rung": "mcp_tool",
          "summary": "string",
          "tool": "string"
        }
      ],
      "docsUrl": "string",
      "helpText": "string",
      "secretKey": "string",
      "surfaceId": "string",
      "surfaceType": "string"
    }
  ],
  "surfaces": [
    {
      "name": "string",
      "pendingCount": 1,
      "state": "ready",
      "steps": [
        {
          "fulfillment": {
            "args": {},
            "pendingArgs": {},
            "rung": "mcp_tool",
            "summary": "string",
            "tool": "string"
          },
          "id": "string",
          "kind": "secret",
          "required": true,
          "status": "satisfied",
          "title": "string",
          "alternatives": [
            {
              "args": {},
              "pendingArgs": {},
              "rung": "mcp_tool",
              "summary": "string",
              "tool": "string"
            }
          ],
          "docsUrl": "string",
          "helpText": "string",
          "secretKey": "string",
          "surfaceId": "string",
          "surfaceType": "string"
        }
      ],
      "surfaceId": "string",
      "surfaceType": "string"
    }
  ],
  "handoff": {
    "reason": "string",
    "rung": "browser",
    "summary": "string",
    "url": "string"
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.runtype.com/v1/products/id/setup"

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

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

print(response.json())
```

```javascript
const url = 'https://api.runtype.com/v1/products/id/setup';
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
package main

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

func main() {

	url := "https://api.runtype.com/v1/products/id/setup"

	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
require 'uri'
require 'net/http'

url = URI("https://api.runtype.com/v1/products/id/setup")

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
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.runtype.com/v1/products/id/setup")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.runtype.com/v1/products/id/setup', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.runtype.com/v1/products/id/setup");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.runtype.com/v1/products/id/setup")! 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()
```