{"openapi": "3.1.0", "info": {"title": "Listen for WordPress service API", "version": "1.0", "description": "The API belongs to the WordPress plugin Listen (vf-listen); a site connects from its own WordPress admin, so there is nothing for an agent to sign up for. Free: 10 posts a month. Pro: $5 a month or $40 a year.", "contact": {"email": "team@vibefrontier.com"}}, "servers": [{"url": "https://voice.vibefrontier.com"}], "externalDocs": {"url": "https://listen.vibefrontier.com/llms.txt"}, "paths": {"/wp/v1/sites": {"post": {"operationId": "connectSite", "summary": "Start connecting a site (no auth)", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["site_url", "home_url", "plugin_version"], "properties": {"site_url": {"type": "string", "format": "uri"}, "home_url": {"type": "string", "format": "uri"}, "admin_email": {"type": "string", "format": "email"}, "plugin_version": {"type": "string"}}}}}}, "responses": {"201": {"description": "Pending connection", "content": {"application/json": {"schema": {"type": "object", "properties": {"site_id": {"type": "string"}, "verify_token": {"type": "string"}, "expires_in": {"type": "integer"}}}}}}, "400": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "409": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "429": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}, "/wp/v1/sites/{site_id}/verify": {"post": {"operationId": "verifySite", "summary": "The service fetches <home_url>/?vf_listen_verify=<site_id>; on a match it issues the site token (shown once)", "parameters": [{"name": "site_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Verified: {site_id, token, ...site state}", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Verified"}}}}, "400": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "404": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "410": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "429": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}, "/wp/v1/site": {"get": {"operationId": "getSite", "summary": "Plan, period end and this month's usage", "security": [{"siteToken": []}], "responses": {"200": {"description": "Site state", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Site"}}}}, "401": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "429": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}, "/wp/v1/voices": {"get": {"operationId": "listVoices", "summary": "The voices the site's plan may use", "security": [{"siteToken": []}], "responses": {"200": {"description": "Voices"}, "401": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "429": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}, "/wp/v1/posts": {"post": {"operationId": "createPostAudio", "summary": "Queue the audio of one post revision. The same post_id and revision_hash returns its job (no double count).", "security": [{"siteToken": []}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["post_id", "revision_hash", "text"], "properties": {"post_id": {"type": "string"}, "revision_hash": {"type": "string"}, "title": {"type": "string"}, "text": {"type": "string"}, "voice": {"type": "string"}, "speed": {"type": "number", "minimum": 0.8, "maximum": 1.3}}}}}}, "responses": {"200": {"description": "The existing job"}, "202": {"description": "Queued"}, "402": {"description": "Free posts used up, or a Pro voice (has upgrade_url)", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "413": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "401": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "429": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}, "/wp/v1/posts/{job_id}": {"get": {"operationId": "getPostAudio", "summary": "Status, progress and the signed audio_url (24 h)", "security": [{"siteToken": []}], "parameters": [{"name": "job_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Job"}, "404": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "401": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "429": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}, "delete": {"operationId": "deletePostAudio", "summary": "Delete the audio now", "security": [{"siteToken": []}], "parameters": [{"name": "job_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Deleted"}, "404": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "401": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "429": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}, "/wp/v1/checkout": {"post": {"operationId": "startProCheckout", "summary": "A Stripe Checkout URL for Pro", "security": [{"siteToken": []}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["interval"], "properties": {"interval": {"type": "string", "enum": ["month", "year"]}}}}}}, "responses": {"200": {"description": "{url, session, interval, price_cents}"}, "409": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "503": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "401": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "429": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}, "/wp/v1/portal": {"post": {"operationId": "openCustomerPortal", "summary": "A Stripe customer portal URL (cancel, invoices)", "security": [{"siteToken": []}], "responses": {"200": {"description": "{url}"}, "409": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "401": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "429": {"description": "Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}}, "components": {"securitySchemes": {"siteToken": {"type": "http", "scheme": "bearer"}}, "schemas": {"Error": {"type": "object", "required": ["error"], "properties": {"error": {"type": "string"}, "upgrade_url": {"type": "string"}, "retry_after": {"type": "integer"}}}, "Site": {"type": "object", "properties": {"plan": {"type": "string", "enum": ["free", "pro"]}, "period_end": {"type": "string"}, "posts_used": {"type": "integer"}, "posts_limit": {"type": ["integer", "null"]}, "chars_used": {"type": "integer"}, "chars_limit": {"type": ["integer", "null"]}, "max_chars_per_post": {"type": "integer"}, "voices": {"type": "array", "items": {"type": "string"}}}}, "Verified": {"type": "object", "properties": {"site_id": {"type": "string"}, "token": {"type": "string"}}}}}}