---
# @generated by sylphx-gen 0.1.0 from contracts@6a1bce71c4562366bcd933dde7dec01abbf14a9dde109a6ef2c4ea7c79f1fb3a. Do not edit.
title: "Create in Bindings"
description: "`realtime.bindings.create` (POST /v1/subscription-bindings): Binds a bus Subscription's matching events to a channel: each event the Subscription matches is published to the channel, with the event's CloudEvents `type` as the message event…"
type: reference
product: realtime
summary: "Binds a bus Subscription's matching events to a channel: each event the Subscription matches is published to the channel, with the event's…"
updated: 2026-09-28
nav: false
---

Binds a bus Subscription's matching events to a channel: each event the Subscription matches is published to the channel, with the event's CloudEvents `type` as the message event and its `data` as the payload. The Subscription itself is an Events Resource (`sylphx.events.v1`); this call only names the channel it feeds, and replaces the Subscription's earlier binding.

**Not available yet.** Sylphx Realtime is declared in the registry but no backend serves it: every call answers `501` with the problem code `UNIMPLEMENTED`.

- **Path** `POST https://api.realtime.sylphx.com/v1/subscription-bindings`
- **Scope** `realtime:write`
- **Effect** `write` — a successful call changes state.
- **Collection** [bindings](/docs/api/bindings)
- **Host** `https://api.realtime.sylphx.com`

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `subscription` | `string` | The Events Subscription's resource name. Required. |
| `channel` | `string` | The channel its events are published to, `namespace:name`. Required. |

## Response

| Field | Type | What it is |
| --- | --- | --- |
| `subscription` | `string` | The Subscription bound. |
| `channel` | `string` | The channel it feeds. |

## Errors

- [`UNAUTHENTICATED`](/docs/api/errors/UNAUTHENTICATED) — No valid key or token was presented.
- [`PERMISSION_DENIED`](/docs/api/errors/PERMISSION_DENIED) — The key lacks the method's permission.
- [`INVALID_FIELD`](/docs/api/errors/INVALID_FIELD) — A field failed validation.
- [`RESOURCE_NOT_FOUND`](/docs/api/errors/RESOURCE_NOT_FOUND) — The named Resource does not exist or is not visible.

Every error arrives in the body [Errors](/docs/platform/errors) describes.

## Examples

**cURL**

```curl
curl -X POST "https://api.realtime.sylphx.com/v1/subscription-bindings" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel":"…","subscription":"…"}'
```

**TypeScript**

```ts
const response = await sylphx.realtime.bindings.create({ channel: '…', subscription: '…' })
```

**Rust**

```rust
let mut req = sylphx::realtime::BindSubscriptionRequest::default();
req.channel = "…".to_string();
req.subscription = "…".to_string();
let response = sx.realtime().bindings().create(req).await?;
```

**MCP**

```json
{ "method_id": "realtime.bindings.create", "args": {"channel":"…","subscription":"…"} }
```
