# List Inbox entries

- **OpenAPI Version:** `3.2.0`
- **API Version:** `3.1.0`
- **Contact:** Syndai <https://syndai.ai>

## Contents

**Operations**

- [GET /api/v1/external/coding/customers/{customer\_id}/submissions](#scalar-operation-get-apiv1externalcodingcustomerscustomer-idsubmissions)

**Schemas**

- [SubmissionPageResponse](#scalar-schema-submissionpageresponse)
- [SubmissionItem](#scalar-schema-submissionitem)
- [OrderRead](#scalar-schema-orderread)
- [OrderLineRead](#scalar-schema-orderlineread)
- [TurnRead](#scalar-schema-turnread)
- [ProblemDetail](#scalar-schema-problemdetail)
- [ExternalErrorCode](#scalar-schema-externalerrorcode)

<a id="scalar-context-global-servers"></a>

## Servers

- **URL:** `https://api.syndai.ai`

<a id="scalar-context-global-authentication"></a>

## Authentication

- **CustomerApiKey**: HTTP bearer (`API Key`)

  Customer API key sent as a bearer token

## Tags

### Apps

Beta: may change without notice. Publishing a repository as a hosted app: publish, unpublish, read and update a publication, its deployments, custom domain, runtime and monthly AI limit, export its data or waitlist, and read the Slack channel its Inbox notices go to.

## Operations

<a id="scalar-operation-get-apiv1externalcodingcustomerscustomer-idsubmissions"></a>

### List Inbox entries

- **Method:** `GET`
- **Path:** `/api/v1/external/coding/customers/{customer_id}/submissions`
- **Operation ID:** `listInboxEntries`
- **Tags:** Apps

One newest-first page of the Inbox: form messages, orders and chat handoffs from your sites, with their follow-up state and draft reply; q searches the view. The text is what visitors wrote. A signed-in owner or admin only; an API key is refused.

**Servers:** [Inherited servers](#scalar-context-global-servers)

**Authentication:** [Global authentication](#scalar-context-global-authentication)

#### Path parameters

- **`customer_id` (required)**: `string`, format: `uuid`

#### Query parameters

- **`view`**: `string`, possible values: `"open", "done", "signups"`, default: `"open"`
- **`repository_id`**: `string | null`, format: `uuid`
- **`cursor`**: `string | null`
- **`limit`**: `integer`, default: `50`
- **`q`**: `string | null`

#### Responses

##### 200 Request fulfilled, document follows

**Content type:** `application/json`

[SubmissionPageResponse](#scalar-schema-submissionpageresponse)

<a id="scalar-example-1"></a>

**Generated example:**

```json
{
  "items": [
    {
      "app_name": "",
      "booked": false,
      "created_at": "",
      "delivery": "",
      "email": "",
      "fields": {
        "additionalProperty": ""
      },
      "follow_up": "",
      "gap": "",
      "gap_label": "",
      "host": "",
      "id": "",
      "kind": "",
      "news": true,
      "order": {
        "amount_refunded": 1,
        "amount_total": 1,
        "currency": "",
        "lines": [
          {
            "name": "",
            "qty": 1,
            "unit_amount": 1
          }
        ],
        "payment_status": "",
        "stripe_url": "",
        "summary": ""
      },
      "page": "",
      "publication_id": "",
      "reason": "",
      "reply_draft": "",
      "reply_ok": true,
      "repository_id": "",
      "title_viewer": "",
      "turns": [
        {
          "role": "",
          "text": "",
          "text_en": "",
          "text_visitor": "",
          "via": "chat"
        }
      ]
    }
  ],
  "next_cursor": ""
}
```

##### 400, 401, 403, 404

- `400` Bad request syntax or unsupported method
- `401` Invalid or missing customer API key
- `403` Insufficient scope or forbidden customer access
- `404` Resource not found

**Content type:** `application/problem+json`

[ProblemDetail](#scalar-schema-problemdetail)

RFC 7807 problem detail returned for public CaaS errors.

<a id="scalar-example-2"></a>

**Generated example:**

```json
{
  "code": "BUDGET_EXHAUSTED",
  "detail": null,
  "existing_run_id": null,
  "instance": null,
  "status": 1,
  "title": "",
  "type": "about:blank",
  "additionalProperty": "anything"
}
```

##### 429 Rate limit exceeded

**Headers:**

- **`Retry-After`**

  Seconds to wait before retrying the request

  `integer`

**Content type:** `application/problem+json`

[ProblemDetail](#scalar-schema-problemdetail)

RFC 7807 problem detail returned for public CaaS errors.

[Generated example](#scalar-example-2)

##### default Unexpected error

**Content type:** `application/problem+json`

[ProblemDetail](#scalar-schema-problemdetail)

<a id="scalar-example-3"></a>

**Generated example:**

```json
null
```

## Schemas

<a id="scalar-schema-submissionpageresponse"></a>

### SubmissionPageResponse

**Type:** `object`

- **`items` (required)**: array of [SubmissionItem](#scalar-schema-submissionitem)
- **`next_cursor`**: `string | null`

<a id="scalar-example-4"></a>

**Generated example:**

```json
{
  "items": [
    {
      "app_name": "",
      "booked": false,
      "created_at": "",
      "delivery": "",
      "email": "",
      "fields": {
        "additionalProperty": ""
      },
      "follow_up": "",
      "gap": "",
      "gap_label": "",
      "host": "",
      "id": "",
      "kind": "",
      "news": true,
      "order": {
        "amount_refunded": 1,
        "amount_total": 1,
        "currency": "",
        "lines": [
          {
            "name": "",
            "qty": 1,
            "unit_amount": 1
          }
        ],
        "payment_status": "",
        "stripe_url": "",
        "summary": ""
      },
      "page": "",
      "publication_id": "",
      "reason": "",
      "reply_draft": "",
      "reply_ok": true,
      "repository_id": "",
      "title_viewer": "",
      "turns": [
        {
          "role": "",
          "text": "",
          "text_en": "",
          "text_visitor": "",
          "via": "chat"
        }
      ]
    }
  ],
  "next_cursor": ""
}
```

<a id="scalar-schema-submissionitem"></a>

### SubmissionItem

**Type:** `object`

- **`app_name` (required)**: `string`
- **`created_at` (required)**: `string`
- **`fields` (required)**: `object`

  **Additional properties:**

  `string`
- **`follow_up` (required)**: `string`
- **`host` (required)**: `string`
- **`id` (required)**: `string`
- **`kind` (required)**: `string`
- **`news` (required)**: `boolean`
- **`publication_id` (required)**: `string`
- **`reply_ok` (required)**: `boolean`
- **`repository_id` (required)**: `string`
- **`booked`**: `boolean`, default: `false`
- **`delivery`**: `string | null`
- **`email`**: `string | null`
- **`gap`**: `string | null`
- **`gap_label`**: `string | null`
- **`order`**: [OrderRead](#scalar-schema-orderread) | `null`
- **`page`**: `string | null`
- **`reason`**: `string | null`
- **`reply_draft`**: `string | null`
- **`title_viewer`**: `string | null`
- **`turns`**: array of [TurnRead](#scalar-schema-turnread)

<a id="scalar-example-5"></a>

**Generated example:**

```json
{
  "app_name": "",
  "booked": false,
  "created_at": "",
  "delivery": "",
  "email": "",
  "fields": {
    "additionalProperty": ""
  },
  "follow_up": "",
  "gap": "",
  "gap_label": "",
  "host": "",
  "id": "",
  "kind": "",
  "news": true,
  "order": {
    "amount_refunded": 1,
    "amount_total": 1,
    "currency": "",
    "lines": [
      {
        "name": "",
        "qty": 1,
        "unit_amount": 1
      }
    ],
    "payment_status": "",
    "stripe_url": "",
    "summary": ""
  },
  "page": "",
  "publication_id": "",
  "reason": "",
  "reply_draft": "",
  "reply_ok": true,
  "repository_id": "",
  "title_viewer": "",
  "turns": [
    {
      "role": "",
      "text": "",
      "text_en": "",
      "text_visitor": "",
      "via": "chat"
    }
  ]
}
```

<a id="scalar-schema-orderread"></a>

### OrderRead

**Type:** `object`

- **`lines` (required)**: array of [OrderLineRead](#scalar-schema-orderlineread)
- **`payment_status` (required)**: `string`
- **`summary` (required)**: `string`
- **`amount_refunded`**: `integer | null`
- **`amount_total`**: `integer | null`
- **`currency`**: `string | null`
- **`stripe_url`**: `string | null`

<a id="scalar-example-6"></a>

**Generated example:**

```json
{
  "amount_refunded": 1,
  "amount_total": 1,
  "currency": "",
  "lines": [
    {
      "name": "",
      "qty": 1,
      "unit_amount": 1
    }
  ],
  "payment_status": "",
  "stripe_url": "",
  "summary": ""
}
```

<a id="scalar-schema-orderlineread"></a>

### OrderLineRead

**Type:** `object`

- **`name` (required)**: `string`
- **`qty` (required)**: `integer`
- **`unit_amount` (required)**: `integer`

<a id="scalar-example-7"></a>

**Generated example:**

```json
{
  "name": "",
  "qty": 1,
  "unit_amount": 1
}
```

<a id="scalar-schema-turnread"></a>

### TurnRead

**Type:** `object`

- **`role` (required)**: `string`
- **`text` (required)**: `string`
- **`text_en`**: `string | null`
- **`text_visitor`**: `string | null`
- **`via`**: `string`, default: `"chat"`

<a id="scalar-example-8"></a>

**Generated example:**

```json
{
  "role": "",
  "text": "",
  "text_en": "",
  "text_visitor": "",
  "via": "chat"
}
```

<a id="scalar-schema-problemdetail"></a>

### ProblemDetail

**Type:** `object`

RFC 7807 problem detail returned for public CaaS errors.

- **`code` (required)**: `string`, possible values: `"BUDGET_EXHAUSTED", "QUOTA_EXCEEDED", "INSUFFICIENT_CREDITS", "RUN_CONCURRENCY_LIMIT", "CUSTOMER_DISABLED", "REPO_NOT_BOUND", "REPO_ARCHIVED", "IDEMPOTENCY_REPLAY", "CONFLICT", "MISSION_BUSY_RETRY", "HITL_REQUEST_CONFLICT", "HITL_REQUEST_SETTLED", "RUN_TERMINATED_BEFORE_RESPONSE", "INVALID_POLICY", "INVALID_SCOPE", "RATE_LIMITED", "INSTALLATION_INCOMPLETE", "SUBSCRIPTION_USAGE_UNAVAILABLE", "INVALID_TOKEN", "ROLE_REQUIRED", "PLAN_UPGRADE_REQUIRED", "EMAIL_MISMATCH", "EXPIRED_TOKEN", "NOT_FOUND", "OVERSCOPE_ACK_REQUIRED", "VERIFY_FAILED", "PUBLISH_IN_FLIGHT", "PUBLISH_UNSUPPORTED_REPO", "PUBLICATION_NOT_LIVE", "NO_APP_DATA", "FEATURE_REQUESTS_NEEDS_MEMBERS", "EMPTY_UPDATE", "BAD_CURSOR", "HUMAN_APPROVAL_REQUIRED", "PROTECTED_PATHS_MANAGED_ONLY", "RUN_IN_FLIGHT", "TEXT_EDIT_REFUSED", "CLI_UPGRADE_REQUIRED", "PRODUCTION_STEP_UP_REQUIRED", "PRICES_UPDATING", "GITHUB_UNAVAILABLE", "PUBLISH_NOT_SET_UP", "PUBLISH_TAG_EXISTS", "PUBLISH_VERSION_EXISTS", "VERSION_NOT_DEPLOYED", "DATA_REFUSED", "HARNESS_MODEL_UNSUPPORTED", "ECONOMY_CONFLICTS_WITH_MODEL", "HARNESS_UNKNOWN", "INTERNAL_ERROR"`

  Stable error codes surfaced to public CaaS clients.
- **`status` (required)**: `integer`
- **`title` (required)**: `string`
- **`detail`**: `string | null`, default: `null`
- **`existing_run_id`**: `string | null`, default: `null`
- **`instance`**: `string | null`, default: `null`
- **`type`**: `string`, default: `"about:blank"`

<a id="scalar-example-9"></a>

**Generated example:**

```json
{
  "code": "BUDGET_EXHAUSTED",
  "detail": null,
  "existing_run_id": null,
  "instance": null,
  "status": 1,
  "title": "",
  "type": "about:blank",
  "additionalProperty": "anything"
}
```

<a id="scalar-schema-externalerrorcode"></a>

### ExternalErrorCode

**Type:** `string`, possible values: `"BUDGET_EXHAUSTED", "QUOTA_EXCEEDED", "INSUFFICIENT_CREDITS", "RUN_CONCURRENCY_LIMIT", "CUSTOMER_DISABLED", "REPO_NOT_BOUND", "REPO_ARCHIVED", "IDEMPOTENCY_REPLAY", "CONFLICT", "MISSION_BUSY_RETRY", "HITL_REQUEST_CONFLICT", "HITL_REQUEST_SETTLED", "RUN_TERMINATED_BEFORE_RESPONSE", "INVALID_POLICY", "INVALID_SCOPE", "RATE_LIMITED", "INSTALLATION_INCOMPLETE", "SUBSCRIPTION_USAGE_UNAVAILABLE", "INVALID_TOKEN", "ROLE_REQUIRED", "PLAN_UPGRADE_REQUIRED", "EMAIL_MISMATCH", "EXPIRED_TOKEN", "NOT_FOUND", "OVERSCOPE_ACK_REQUIRED", "VERIFY_FAILED", "PUBLISH_IN_FLIGHT", "PUBLISH_UNSUPPORTED_REPO", "PUBLICATION_NOT_LIVE", "NO_APP_DATA", "FEATURE_REQUESTS_NEEDS_MEMBERS", "EMPTY_UPDATE", "BAD_CURSOR", "HUMAN_APPROVAL_REQUIRED", "PROTECTED_PATHS_MANAGED_ONLY", "RUN_IN_FLIGHT", "TEXT_EDIT_REFUSED", "CLI_UPGRADE_REQUIRED", "PRODUCTION_STEP_UP_REQUIRED", "PRICES_UPDATING", "GITHUB_UNAVAILABLE", "PUBLISH_NOT_SET_UP", "PUBLISH_TAG_EXISTS", "PUBLISH_VERSION_EXISTS", "VERSION_NOT_DEPLOYED", "DATA_REFUSED", "HARNESS_MODEL_UNSUPPORTED", "ECONOMY_CONFLICTS_WITH_MODEL", "HARNESS_UNKNOWN", "INTERNAL_ERROR"`

Stable error codes surfaced to public CaaS clients.
