ViralNote API keys API
The API keys API from ViralNote, for api keys.
The API keys API from ViralNote, for api keys.
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-api-keys-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 API keys 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: API Keys
paths:
/api-keys:
get:
summary: List API keys for current user
security:
- bearerAuth: []
responses:
'200':
description: Array of API key metadata (secrets are never returned here)
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/ApiKey'
requestId:
type: string
'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: listApiKeys
description: List the signed-in user's API keys (prefix, scopes, rate limit, last use). Session auth only; API keys cannot list keys.
tags:
- API Keys
post:
summary: Create API key
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
properties:
name:
type: string
scopes:
type: array
items:
type: string
enum:
- posts:read
- posts:write
- posts:publish
- comments:read
- comments:reply
- comments:moderate
- analytics:read
- webhooks:manage
- credits:read
- credits:write
expiresInDays:
type: integer
minimum: 1
maximum: 365
rateLimitPerMinute:
type: integer
minimum: 1
maximum: 600
defaultBrandId:
type:
- string
- 'null'
description: Restrict the key to one brand workspace. Other brandIds and brandId=all return 403. Omit or null for every brand on the account.
responses:
'201':
description: Key created — `secret` is returned ONCE. Store immediately.
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/ApiKeyCreated'
requestId:
type: string
example:
data:
id: key_2QabC9def
name: Zapier integration
prefix: vnd_abcd
secret: vnd_abcd1234efgh5678ijkl9012mnop3456
scopes:
- posts:read
- posts:write
rateLimitPerMinute: 60
isActive: true
lastUsedAt: null
expiresAt: null
createdAt: '2026-05-18T03:42:00.000Z'
requestId: req_a8f3e21b
'400':
description: Validation error
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: createApiKey
description: 'Create an API key with a name, scopes, optional per-minute rate limit, and optional brand restriction (`defaultBrandId`). When set, the key can only act as that brand: other brandIds and `brandId=all` return 403, and listBrands returns only that workspace. The full key is returned once. Session auth only.'
tags:
- API Keys
/api-keys/{keyId}:
post:
summary: Rotate API key
description: Generates a new secret for the same key id and invalidates the old secret. The new `secret` is returned ONCE.
security:
- bearerAuth: []
parameters:
- name: keyId
in: path
required: true
schema:
type: string
responses:
'201':
description: Rotated — `secret` is the new key value, shown once
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/ApiKeyCreated'
requestId:
type: string
'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: Not the owner
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Key not found
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: rotateApiKey
tags:
- API Keys
patch:
summary: Update API key brand restriction
description: Set or clear defaultBrandId without rotating the secret. A set value locks the key to that workspace.
security:
- bearerAuth: []
parameters:
- name: keyId
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- defaultBrandId
properties:
defaultBrandId:
type:
- string
- 'null'
description: Brand id to lock the key to, or null to allow every brand on the account.
responses:
'200':
description: Updated
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
id:
type: string
defaultBrandId:
type:
- string
- 'null'
requestId:
type: string
'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: Not the owner
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Key not found
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: updateApiKey
tags:
- API Keys
delete:
summary: Revoke API key
description: Revoked keys stop authenticating immediately and cannot be restored.
security:
- bearerAuth: []
parameters:
- name: keyId
in: path
required: true
schema:
type: string
responses:
'200':
description: Revoked
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
revoked:
type: boolean
requestId:
type: string
example:
data:
revoked: true
requestId: req_a8f3e21b
'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: Not the owner
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Key not found
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: revokeApiKey
tags:
- API Keys
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
ApiKey:
type: object
description: API key metadata (the secret is only returned at creation/rotation time).
properties:
id:
type: string
example: key_2QabC9def
name:
type: string
example: Zapier integration
prefix:
type: string
description: First few chars of the key, safe to display.
example: vnd_abcd
scopes:
type: array
items:
type: string
enum:
- posts:read
- posts:write
- posts:publish
- comments:read
- comments:reply
- comments:moderate
- analytics:read
- webhooks:manage
- credits:read
- credits:write
rateLimitPerMinute:
type: integer
nullable: true
example: 60
defaultBrandId:
type:
- string
- 'null'
description: When set, the key can only act as this brand workspace. Null means every brand on the account.
example: null
isActive:
type: boolean
example: true
lastUsedAt:
type:
- string
- 'null'
format: date-time
expiresAt:
type:
- string
- 'null'
format: date-time
createdAt:
type: string
format: date-time
required:
- id
- name
- prefix
- scopes
- isActive
- createdAt
ApiKeyCreated:
allOf:
- $ref: '#/components/schemas/ApiKey'
- type: object
properties:
secret:
type: string
description: Full API key. Shown ONCE at creation/rotation. Store immediately — cannot be retrieved later.
example: vnd_abcd1234efgh5678ijkl9012mnop3456
required:
- secret
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.