# Send Broadcast

POST

/

broadcasts

/

:broadcast\_id

/

send

:::code-group
```typescript title="Node.js"
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.broadcasts.send(
  '559ac32e-9ef5-46fb-82a1-b76b840c0f7b',
  {
    scheduledAt: 'in 1 min',
  },
);
```

```php title="PHP"
$resend = Resend::client('re_xxxxxxxxx');

$resend->broadcasts->send('559ac32e-9ef5-46fb-82a1-b76b840c0f7b', [
  'scheduled_at' => 'in 1 min',
]);
```

```python title="Python"
import resend

resend.api_key = "re_xxxxxxxxx"

params: resend.Broadcasts.SendParams = {
  "broadcast_id": "559ac32e-9ef5-46fb-82a1-b76b840c0f7b",
  "scheduled_at": "in 1 min"
}
resend.Broadcasts.send(params)
```

```ruby title="Ruby"
require "resend"

Resend.api_key = "re_xxxxxxxxx"

params = {
  broadcast_id: "559ac32e-9ef5-46fb-82a1-b76b840c0f7b",
  scheduled_at: "in 1 min"
}
Resend::Broadcasts.send(params)
```

```go title="Go"
package main

import "github.com/resend/resend-go/v4"

func main() {
	client := resend.NewClient("re_xxxxxxxxx")

	sendParams := &resend.SendBroadcastRequest{
		BroadcastId: "559ac32e-9ef5-46fb-82a1-b76b840c0f7b",
		ScheduledAt: "in 1 min",
	}

	client.Broadcasts.Send(sendParams)
}
```

```rust title="Rust"
use resend_rs::{types::SendBroadcastOptions, Resend, Result};

#[tokio::main]
async fn main() -> Result<()> {
  let resend = Resend::new("re_xxxxxxxxx");

  let opts =
    SendBroadcastOptions::new("559ac32e-9ef5-46fb-82a1-b76b840c0f7b").with_scheduled_at("in 1 min");

  let _broadcast = resend.broadcasts.send(opts).await?;

  Ok(())
}
```

```java title="Java"
import com.resend.Resend;
import com.resend.services.broadcasts.model.SendBroadcastOptions;
import com.resend.services.broadcasts.model.SendBroadcastResponseSuccess;

Resend resend = new Resend("re_xxxxxxxxx");

SendBroadcastOptions params = SendBroadcastOptions.builder()
    .scheduledAt("in 1 min")
    .build();

SendBroadcastResponseSuccess data = resend.broadcasts().send(params,
    "498ee8e4-7aa2-4eb5-9f04-4194848049d1");
```

```csharp title=".NET"
using Resend;

IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DI

// Send now
await resend.BroadcastSendAsync( new Guid( "559ac32e-9ef5-46fb-82a1-b76b840c0f7b" ) );

// Send in 5 mins
await resend.BroadcastScheduleAsync(
    new Guid( "559ac32e-9ef5-46fb-82a1-b76b840c0f7b" ),
    DateTime.UtcNow.AddMinutes( 5 ) );
```

```shellscript title="cURL"
curl -X POST 'https://api.resend.com/broadcasts/559ac32e-9ef5-46fb-82a1-b76b840c0f7b/send' \
     -H 'Authorization: Bearer re_xxxxxxxxx' \
     -H 'Content-Type: application/json' \
     -d $'{
  "scheduled_at": "in 1 min"
}'
```

```shellscript title="CLI"
resend broadcasts send 559ac32e-9ef5-46fb-82a1-b76b840c0f7b --scheduled-at "in 1 min"
```
:::

:::code-group
```json title="Response"
{
  "id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
}
```
:::

:::callout{intent="note"}
You can send broadcasts only if they were created via the API.
:::

## Path Parameters

## Body Parameters

:::code-group
```typescript title="Node.js"
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.broadcasts.send(
  '559ac32e-9ef5-46fb-82a1-b76b840c0f7b',
  {
    scheduledAt: 'in 1 min',
  },
);
```

```php title="PHP"
$resend = Resend::client('re_xxxxxxxxx');

$resend->broadcasts->send('559ac32e-9ef5-46fb-82a1-b76b840c0f7b', [
  'scheduled_at' => 'in 1 min',
]);
```

```python title="Python"
import resend

resend.api_key = "re_xxxxxxxxx"

params: resend.Broadcasts.SendParams = {
  "broadcast_id": "559ac32e-9ef5-46fb-82a1-b76b840c0f7b",
  "scheduled_at": "in 1 min"
}
resend.Broadcasts.send(params)
```

```ruby title="Ruby"
require "resend"

Resend.api_key = "re_xxxxxxxxx"

params = {
  broadcast_id: "559ac32e-9ef5-46fb-82a1-b76b840c0f7b",
  scheduled_at: "in 1 min"
}
Resend::Broadcasts.send(params)
```

```go title="Go"
package main

import "github.com/resend/resend-go/v4"

func main() {
	client := resend.NewClient("re_xxxxxxxxx")

	sendParams := &resend.SendBroadcastRequest{
		BroadcastId: "559ac32e-9ef5-46fb-82a1-b76b840c0f7b",
		ScheduledAt: "in 1 min",
	}

	client.Broadcasts.Send(sendParams)
}
```

```rust title="Rust"
use resend_rs::{types::SendBroadcastOptions, Resend, Result};

#[tokio::main]
async fn main() -> Result<()> {
  let resend = Resend::new("re_xxxxxxxxx");

  let opts =
    SendBroadcastOptions::new("559ac32e-9ef5-46fb-82a1-b76b840c0f7b").with_scheduled_at("in 1 min");

  let _broadcast = resend.broadcasts.send(opts).await?;

  Ok(())
}
```

```java title="Java"
import com.resend.Resend;
import com.resend.services.broadcasts.model.SendBroadcastOptions;
import com.resend.services.broadcasts.model.SendBroadcastResponseSuccess;

Resend resend = new Resend("re_xxxxxxxxx");

SendBroadcastOptions params = SendBroadcastOptions.builder()
    .scheduledAt("in 1 min")
    .build();

SendBroadcastResponseSuccess data = resend.broadcasts().send(params,
    "498ee8e4-7aa2-4eb5-9f04-4194848049d1");
```

```csharp title=".NET"
using Resend;

IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DI

// Send now
await resend.BroadcastSendAsync( new Guid( "559ac32e-9ef5-46fb-82a1-b76b840c0f7b" ) );

// Send in 5 mins
await resend.BroadcastScheduleAsync(
    new Guid( "559ac32e-9ef5-46fb-82a1-b76b840c0f7b" ),
    DateTime.UtcNow.AddMinutes( 5 ) );
```

```shellscript title="cURL"
curl -X POST 'https://api.resend.com/broadcasts/559ac32e-9ef5-46fb-82a1-b76b840c0f7b/send' \
     -H 'Authorization: Bearer re_xxxxxxxxx' \
     -H 'Content-Type: application/json' \
     -d $'{
  "scheduled_at": "in 1 min"
}'
```

```shellscript title="CLI"
resend broadcasts send 559ac32e-9ef5-46fb-82a1-b76b840c0f7b --scheduled-at "in 1 min"
```
:::

```json
{
  "id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
}
```

Was this page helpful?

⌘I

## Related pages

- [Account Management](./account-management-index.md)
- [API Keys](./api-keys-2-index.md)
- [API Keys](./api-keys-index.md)
- [API Reference](./api-reference-index.md)
- [AudiencesDEPRECATED](./audiencesdeprecated-index.md)
- [Authorized Apps](./authorized-apps-index.md)
- [Automations](./automations-index.md)
- [Broadcasts](./broadcasts-index.md)
- [Build with AI](./build-with-ai-index.md)
- [Changelog](../changelog.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
