ViralNote Generate API
The Generate API from ViralNote, for generate.
The Generate API from ViralNote, for generate.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/viralnote-app:viralnote-app-generate-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: ViralNote Generate API
version: 1.0.0-v1
description: Versioned REST API for scheduling posts, managing media, querying analytics, and importing content on ViralNote.
contact:
name: ViralNote support
email: info@viralnote.app
url: https://www.viralnote.app/contact
termsOfService: https://www.viralnote.app/terms
license:
name: ViralNote API Terms
url: https://www.viralnote.app/terms
x-logo:
url: https://www.viralnote.app/vnlogo.png
servers:
- url: https://dashboard.viralnote.app/api/v1
description: Primary
- url: https://www.viralnote.app/api/v1
description: Alias (reverse proxy on the marketing domain)
- url: /api/v1
description: Relative
security:
- oauth2:
- posts:read
- posts:write
- posts:publish
- comments:read
- comments:reply
- comments:moderate
- analytics:read
- webhooks:manage
- credits:read
- credits:write
- apiKeyAuth: []
- bearerAuth: []
tags:
- name: Generate
paths:
/youtube:
post:
summary: Generate social media content from a YouTube video transcript
description: Fetches the transcript via Supadata, sends it to Gemini AI, and returns platform-specific post suggestions (tweets, LinkedIn, Instagram, thread, quotes, hashtags). Results are saved to Content Ideas.
security:
- oauth2:
- posts:write
- apiKeyAuth: []
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- url
properties:
brandId:
type: string
description: Owned brand to use for generation and saved ideas. Omit to use the API-key default or account default; all is not a valid write target.
platforms:
type: array
minItems: 1
uniqueItems: true
items:
type: string
enum:
- twitter
- linkedin
- instagram
description: Generate only these platforms. Omit for all three. Quotes and hashtags are included for every selection.
useBrandVoice:
type: boolean
default: false
description: 'Apply the selected brand''s saved voice: tone, audience, what it sells, writing samples, word rules, CTAs, and hashtag strategy.'
url:
type: string
description: YouTube video URL (youtube.com/watch?v=, youtu.be/, or bare video ID)
responses:
'200':
description: Transcript and AI-generated platform-tailored suggestions
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/ContentSuggestions'
requestId:
type: string
'400':
description: Invalid URL, no transcript available, or video not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded for this key. Wait `Retry-After` seconds.
headers:
Retry-After:
schema:
type: integer
description: Seconds to wait
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: generateFromYouTube
tags:
- Generate
x-required-scope: posts:write
x-required-scopes:
- posts:write
x-scope-alternatives:
- - posts:write
/article:
post:
summary: Generate social media content from a blog or article URL
description: Fetches the web page, extracts article text, sends it to Gemini AI, and returns platform-specific post suggestions. Results are saved to Content Ideas.
security:
- oauth2:
- posts:write
- apiKeyAuth: []
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- url
properties:
brandId:
type: string
description: Owned brand to use for generation and saved ideas. Omit to use the API-key default or account default; all is not a valid write target.
platforms:
type: array
minItems: 1
uniqueItems: true
items:
type: string
enum:
- twitter
- linkedin
- instagram
description: Generate only these platforms. Omit for all three. Quotes and hashtags are included for every selection.
useBrandVoice:
type: boolean
default: false
description: 'Apply the selected brand''s saved voice: tone, audience, what it sells, writing samples, word rules, CTAs, and hashtag strategy.'
url:
type: string
format: uri
description: URL of the blog post or article
responses:
'200':
description: Extracted article text and AI-generated platform-tailored suggestions
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/ContentSuggestions'
requestId:
type: string
'400':
description: Invalid URL, not an HTML page, or not enough content
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded for this key. Wait `Retry-After` seconds.
headers:
Retry-After:
schema:
type: integer
description: Seconds to wait
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: generateFromArticle
tags:
- Generate
x-required-scope: posts:write
x-required-scopes:
- posts:write
x-scope-alternatives:
- - posts:write
/text:
post:
summary: Generate social media content from a text idea or rough draft
description: Send 50-15,000 characters of raw text (notes, an article paragraph, a rough caption) and get platform-tailored post suggestions back (tweets, threads, LinkedIn, Instagram, quotes, hashtags). Set useBrandVoice=true to apply the selected brand's saved voice (see GET /brand).
security:
- oauth2:
- posts:write
- apiKeyAuth: []
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- text
properties:
brandId:
type: string
description: Owned brand to use for generation and saved ideas. Omit to use the API-key default or account default; all is not a valid write target.
platforms:
type: array
minItems: 1
uniqueItems: true
items:
type: string
enum:
- twitter
- linkedin
- instagram
description: Generate only these platforms. Omit for all three. Quotes and hashtags are included for every selection.
useBrandVoice:
type: boolean
default: false
description: 'Apply the selected brand''s saved voice: tone, audience, what it sells, writing samples, word rules, CTAs, and hashtag strategy.'
text:
type: string
minLength: 50
maxLength: 15000
description: Source text. Required.
responses:
'200':
description: Summary plus per-platform suggestions
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/ContentSuggestions'
requestId:
type: string
example:
data:
summary: Three reasons developer-facing brands win when they ship public roadmaps.
tweets:
- text: Public roadmaps build trust faster than any landing-page copy. Three patterns that work →
thread:
- text: 1/ Roadmaps are marketing.
- text: 2/ The doc is the artifact.
linkedin: We made our roadmap public last month. Three outcomes nobody warned us about…
instagram: Public > polished. Here's why builders are shipping roadmaps in the open ↓
quotes:
- Public roadmaps build trust faster than any landing-page copy.
hashtags:
- buildinpublic
- devtools
- saas
requestId: req_a8f3e21b
'400':
description: Missing text, too short (<50), or too long (>15000)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Subscription required (Starter or Pro)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded for this key. Wait `Retry-After` seconds.
headers:
Retry-After:
schema:
type: integer
description: Seconds to wait
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: generateFromText
tags:
- Generate
x-required-scope: posts:write
x-required-scopes:
- posts:write
x-scope-alternatives:
- - posts:write
/carousels:
post:
summary: Generate an AI carousel as a draft post
security:
- oauth2:
- credits:write
- apiKeyAuth: []
- bearerAuth: []
parameters:
- name: Idempotency-Key
in: header
required: false
schema:
type: string
description: Retrying with the same key within 24 hours returns the first result instead of generating (and charging) again.
requestBody:
required: true
content:
application/json:
schema:
type: object
description: Send exactly one of `topic` or `presentation`.
properties:
topic:
type: string
maxLength: 2000
example: 5 mistakes that ruin a sourdough rise
presentation:
type: object
required:
- id
- slides
description: An imported presentation and the slide numbers to draw from.
properties:
id:
type: string
slides:
type: array
items:
type: integer
minimum: 1
minItems: 1
maxItems: 30
slideCount:
type: integer
minimum: 3
maximum: 10
default: 7
aspectRatio:
type: string
enum:
- '4:5'
- '9:16'
default: '4:5'
description: 4:5 = 1080×1350, 9:16 = 1080×1920
platforms:
type: array
items:
type: string
enum:
- instagram
- tiktok
- facebook
- threads
- linkedin
- twitter
- bluesky
description: Defaults to instagram and tiktok. X and Bluesky take up to 4 images, LinkedIn 9.
background:
type: string
enum:
- ai
- photos
- mix
description: 'What''s behind the text. "ai": one generated image behind every slide (4 credits). "photos": your library photos, repeated in order if fewer than slides (free). "mix": your photos on the first slides, one generated image behind the rest (4 credits). Defaults to "photos" when `photos` is sent, else "ai".'
photos:
type: array
items:
type: string
minItems: 1
maxItems: 10
description: Media library image ids (from listMedia), in slide order.
brandId:
type: string
responses:
'201':
description: Draft carousel post created
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
postId:
type: string
carouselId:
type: string
title:
type: string
caption:
type: string
hashtags:
type: array
items:
type: string
slides:
type: array
items:
type: object
properties:
index:
type: integer
libraryItemId:
type: string
storagePath:
type: string
url:
type: string
creditsCharged:
type: integer
example: 4
description: 0 for library-photo-only carousels and previews
preview:
type: boolean
description: True when this was the account's free Pro preview
requestId:
type: string
'400':
description: Invalid body, too many slides for a chosen platform, or a photo that can't be used
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: 'Missing or invalid credential. Carries `WWW-Authenticate: Bearer resource_metadata="…/.well-known/oauth-protected-resource/api/v1"`.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: '`insufficient-credits` (Pro, an AI background with fewer than 4 credits) or `subscription-required` (free preview already used)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: A photo id isn't in this brand's media library
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded for this key. Wait `Retry-After` seconds.
headers:
Retry-After:
schema:
type: integer
description: Seconds to wait
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'502':
description: Copy or image generation failed; no credits were charged
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: createCarousel
description: 'Generate a carousel draft: AI writes 3-10 slides from a topic or an imported presentation and renders each slide''s text (1080×1350 or 1080×1920 JPEG) on one AI-generated background, on your own media library photos, or a mix. 4 credits when an image is generated; free with library photos only (`background: "photos"`). Pro feature; free accounts get one preview. Saves the slides to the media library and returns a draft post; nothing is published. Send an `Idempotency-Key` header so a retry is not charged twice.'
tags:
- Generate
x-required-scope: credits:write
x-required-scopes:
- credits:write
x-scope-alternatives:
- - credits:write
components:
schemas:
ErrorResponse:
type: object
description: Standard error envelope. `requestId` is present on every response — include it in support requests so the server-side trace can be looked up.
properties:
requestId:
type: string
example: req_a8f3e21b
error:
type: object
properties:
code:
type: string
example: validation-error
message:
type: string
example: Caption is required
required:
- code
- message
required:
- error
ContentSuggestions:
type: object
description: AI-generated, platform-tailored social copy. Returned by /text, /article, /youtube.
properties:
summary:
type: string
description: 2-3 sentence summary of the input.
tweets:
type: array
items:
type: object
thread:
type: array
items:
type: object
linkedin:
type: string
instagram:
type: string
quotes:
type: array
items:
type: string
hashtags:
type: array
items:
type: string
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Signed-in user session (Firebase ID token) or an OAuth access token. Required for API-key management endpoints.
apiKeyAuth:
type: apiKey
in: header
name: x-api-key
description: 'API key created at https://dashboard.viralnote.app/developers/auth. Keys are scoped at creation; the scope each operation needs is listed in its `security` entry under `oauth2`. The same key may be sent as `Authorization: Bearer vnd_...`.'
x-scopes:
posts:read: List and read posts, drafts, schedules, publish results, media, accounts, and brands. Also satisfies analytics:read and comments:read, which were carved out of it.
posts:write: Create and edit drafts; cancel scheduled posts; manage media, brand profile, saved replies, and content generation. Scheduling and publishing require posts:publish; replying and moderating require the comments scopes.
posts:publish: Publish immediately, schedule, and edit content that stays queued. Requires an eligible plan.
comments:read: List synced comments, refresh the inbox from connected networks, and read saved replies.
comments:reply: Send public replies as the connected brand account, and manage saved replies and handled state.
comments:moderate: Hide, unhide, delete, or report comments on the connected network, and mark comments handled. Does not allow sending replies.
analytics:read: Read published-post metrics, per-post metric history, and audience history. Does not grant access to drafts or comments.
webhooks:manage: Register, update, and delete webhook subscriptions.
credits:read: Read the account's video-processing credit balance, estimates, transaction history, and per-brand usage breakdown.
credits:write: Spend credits on AI generation, and enable recurring credit spending such as Compass automation.
oauth2:
type: oauth2
description: OAuth 2.0 authorization code with PKCE. Dynamic client registration is open (RFC 7591) at the registration endpoint; metadata at /.well-known/oauth-authorization-server. Tokens carry the scopes granted by the user.
flows:
authorizationCode:
authorizationUrl: https://dashboard.viralnote.app/oauth/authorize
tokenUrl: https://dashboard.viralnote.app/api/mcp/oauth/token
refreshUrl: https://dashboard.viralnote.app/api/mcp/oauth/token
scopes:
posts:read: List and read posts, drafts, schedules, publish results, media, accounts, and brands. Also satisfies analytics:read and comments:read, which were carved out of it.
posts:write: Create and edit drafts; cancel scheduled posts; manage media, brand profile, saved replies, and content generation. Scheduling and publishing require posts:publish; replying and moderating require the comments scopes.
posts:publish: Publish immediately, schedule, and edit content that stays queued. Requires an eligible plan.
comments:read: List synced comments, refresh the inbox from connected networks, and read saved replies.
comments:reply: Send public replies as the connected brand account, and manage saved replies and handled state.
comments:moderate: Hide, unhide, delete, or report comments on the connected network, and mark comments handled. Does not allow sending replies.
analytics:read: Read published-post metrics, per-post metric history, and audience history. Does not grant access to drafts or comments.
webhooks:manage: Register, update, and delete webhook subscriptions.
credits:read: Read the account's video-processing credit balance, estimates, transaction history, and per-brand usage breakdown.
credits:write: Spend credits on AI generation, and enable recurring credit spending such as Compass automation.
externalDocs:
description: Developer docs, auth walkthrough, and agent guides
url: https://www.viralnote.app/developers/docs
x-agent:
auth: https://www.viralnote.app/auth.md
llms: https://www.viralnote.app/llms.txt
agentView: https://www.viralnote.app/agent.json
mcp:
url: https://dashboard.viralnote.app/api/mcp/mcp
transport: streamable-http
protectedResourceMetadata: https://dashboard.viralnote.app/.well-known/oauth-protected-resource/api/v1
authorizationServerMetadata: https://dashboard.viralnote.app/.well-known/oauth-authorization-server
errorFormat: 'application/json; { error: { code, message }, requestId }'
testing:
sandbox: false
guidance: No separate sandbox host. Create posts with status=draft to stage without side effects; GET endpoints never mutate. New accounts start Free; a 7-day free trial of Publish or Pro, or Growth's discounted first month (card required), unlocks publish and schedule.