broadcasts

Embed
Preview of the card
<a href="https://linkyhub.net/docs/ref-broadcasts"><img src="https://linkyhub.net/docs/_api/public/orgs/2fd2a4b7-b627-4925-af1e-1c51bf890403/spaces/c4b920fb-a433-40b5-b354-ff84bf0c3eb1/pages/c9301cf2-04e3-4bd1-becf-12d96cf8a49f/social-card.svg?v=3e7ae33eec8b" alt="broadcasts" width="600" height="315"></a>
GEThttps://linkyhub.net/api/v3/broadcastsScope broadcasts:write

Email broadcasts, newest first, with delivery counts.

Code samples

cURL
curl -X GET "https://linkyhub.net/api/v3/broadcasts" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
Example
{
  "data": [
    {}
  ]
}
Schema
dataobject[]required
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.
Example
{
  "error": "string",
  "message": "string"
}
Schema
errorstringrequired
A stable code to branch on, e.g. insufficient_scope.
messagestringrequired
A sentence to show a person.
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
POSThttps://linkyhub.net/api/v3/broadcastsScope broadcasts:write

Draft an email to the creator’s subscribers. Nothing is sent until it is scheduled.

Request body

application/json
subjectstringrequired
bodyTextstringrequired
{
  "subject": "string",
  "bodyText": "string"
}

Code samples

cURL
curl -X POST "https://linkyhub.net/api/v3/broadcasts" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"subject":"string","bodyText":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /broadcasts

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
GEThttps://linkyhub.net/api/v3/broadcasts/{broadcastId}Scope broadcasts:write

One email broadcast with its message and delivery counts.

Parameters

broadcastIdstringpathrequired

Code samples

cURL
curl -X GET "https://linkyhub.net/api/v3/broadcasts/{broadcastId}" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /broadcasts

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
PATCHhttps://linkyhub.net/api/v3/broadcasts/{broadcastId}Scope broadcasts:write

Rewrite a draft broadcast. Cancel a scheduled one first, as the dashboard does.

Parameters

broadcastIdstringpathrequired

Request body

application/json
subjectstring
bodyTextstring
{
  "subject": "string",
  "bodyText": "string"
}

Code samples

cURL
curl -X PATCH "https://linkyhub.net/api/v3/broadcasts/{broadcastId}" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"subject":"string","bodyText":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /broadcasts

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
POSThttps://linkyhub.net/api/v3/broadcasts/{broadcastId}/scheduleScope broadcasts:write

Send a broadcast now, or at a time. It goes to every subscribed address.

Parameters

broadcastIdstringpathrequired

Request body

application/json
scheduledForstring
{
  "scheduledFor": "2024-01-01T00:00:00Z"
}

Code samples

cURL
curl -X POST "https://linkyhub.net/api/v3/broadcasts/{broadcastId}/schedule" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"scheduledFor":"2024-01-01T00:00:00Z"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /broadcasts

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
POSThttps://linkyhub.net/api/v3/broadcasts/{broadcastId}/cancelScope broadcasts:write

Stop a broadcast that has not started going out.

Parameters

broadcastIdstringpathrequired

Code samples

cURL
curl -X POST "https://linkyhub.net/api/v3/broadcasts/{broadcastId}/cancel" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /broadcasts

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
POSThttps://linkyhub.net/api/v3/broadcasts/{broadcastId}/testScope broadcasts:write

Email a broadcast to the creator’s own address only, marked as a test.

Parameters

broadcastIdstringpathrequired

Code samples

cURL
curl -X POST "https://linkyhub.net/api/v3/broadcasts/{broadcastId}/test" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /broadcasts

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
Updated