broadcasts
GET
https://linkyhub.net/api/v3 /broadcasts Scope broadcasts:writeEmail 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[]requiredHeaders
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Example
{
"error": "string",
"message": "string"
}Schema
errorstringrequiredA stable code to branch on, e.g. insufficient_scope.
messagestringrequiredA sentence to show a person.
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
POST
https://linkyhub.net/api/v3 /broadcasts Scope broadcasts:writeDraft an email to the creator’s subscribers. Nothing is sent until it is scheduled.
Request body
application/json
subjectstringrequiredbodyTextstringrequired{
"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-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /broadcasts
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
GET
https://linkyhub.net/api/v3 /broadcasts/{broadcastId} Scope broadcasts:writeOne email broadcast with its message and delivery counts.
Parameters
broadcastIdstringpathrequiredCode 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-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /broadcasts
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
PATCH
https://linkyhub.net/api/v3 /broadcasts/{broadcastId} Scope broadcasts:writeRewrite a draft broadcast. Cancel a scheduled one first, as the dashboard does.
Parameters
broadcastIdstringpathrequiredRequest body
application/json
subjectstringbodyTextstring{
"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-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /broadcasts
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
POST
https://linkyhub.net/api/v3 /broadcasts/{broadcastId}/schedule Scope broadcasts:writeSend a broadcast now, or at a time. It goes to every subscribed address.
Parameters
broadcastIdstringpathrequiredRequest 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-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /broadcasts
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
POST
https://linkyhub.net/api/v3 /broadcasts/{broadcastId}/cancel Scope broadcasts:writeStop a broadcast that has not started going out.
Parameters
broadcastIdstringpathrequiredCode 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-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /broadcasts
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
POST
https://linkyhub.net/api/v3 /broadcasts/{broadcastId}/test Scope broadcasts:writeEmail a broadcast to the creator’s own address only, marked as a test.
Parameters
broadcastIdstringpathrequiredCode 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-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Same as default · GET /broadcasts
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
Updated