{"id":7287,"date":"2024-04-08T12:10:51","date_gmt":"2024-04-08T12:10:51","guid":{"rendered":"https:\/\/openspokenai.com\/?page_id=7287"},"modified":"2025-10-01T18:52:02","modified_gmt":"2025-10-01T18:52:02","slug":"open-spoken-ai-api","status":"publish","type":"page","link":"https:\/\/openspokenai.com\/pt\/open-spoken-ai-api\/","title":{"rendered":"API aberta de IA falada"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"7287\" class=\"elementor elementor-7287\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d647369 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d647369\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fc38ded\" data-id=\"fc38ded\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d4e10cc elementor-widget elementor-widget-heading\" data-id=\"d4e10cc\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Documenta\u00e7\u00e3o da API de chat<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4a2eda2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4a2eda2\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-01274e0\" data-id=\"01274e0\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f559f01 elementor-widget elementor-widget-text-editor\" data-id=\"f559f01\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3>\u00a0<\/h3><h3>Vis\u00e3o geral<\/h3><p>A API de chat facilita a recupera\u00e7\u00e3o de chatbots e permite aos utilizadores interagir com eles atrav\u00e9s da publica\u00e7\u00e3o de mensagens.<\/p><h3>URL de base<\/h3><p><a href=\"https:\/\/app.openspokenai.com\/api\">https:\/\/app.openspokenai.com\/api<\/a><\/p><h3>Autentica\u00e7\u00e3o<\/h3><p>Os clientes devem autenticar-se com um cabe\u00e7alho de Autoriza\u00e7\u00e3o B\u00e1sica para cada pedido:<\/p><p>Autoriza\u00e7\u00e3o: B\u00e1sico {authString}<\/p><p>Onde {authString} \u00e9 a cadeia de caracteres codificada em base64 do formato nome de utilizador:palavra-passe.<\/p><p><strong>Exemplo de utiliza\u00e7\u00e3o:\u00a0<\/strong><\/p><p>curl -X GET \"https:\/\/app.openspokenai.com\/api\/chat\" -H \"Autoriza\u00e7\u00e3o: Basic {authString}\"<\/p><h3>Pontos finais<\/h3><h3>GET \/chat<\/h3><p>Recupera uma lista de chats activos dispon\u00edveis para intera\u00e7\u00e3o.<\/p><h3>Par\u00e2metros de consulta:<\/h3><p>grupo (opcional): Filtrar chats por um grupo especificado.<\/p><h3>Resposta bem sucedida:<\/h3><p>{<\/p><p>\u00a0\u00a0\u00a0 \"mensagem\": \"sucesso\",<\/p><p>\u00a0\u00a0\u00a0 \"dados\": [<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 {<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"nome\": \"string\",<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"chat_code\": \"string\",<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"descri\u00e7\u00e3o\": \"string\",<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"grupo\": \"string\"<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/p><p>\u00a0\u00a0\u00a0 ]<p>}<\/p><h3>Nenhum conte\u00fado encontrado:<\/h3><p>{<\/p><p>\u00a0\u00a0\u00a0 \"mensagem\": \"erro\",<\/p><p>\u00a0\u00a0\u00a0 \"dados\": {<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\"mensagem\": \"N\u00e3o foi encontrado nenhum chatbot para o grupo especificado\".<\/p><p>\u00a0\u00a0\u00a0 }<\/p><p>}<\/p><h3>POST \/chat<\/h3><p>Enviar uma mensagem para um chat espec\u00edfico e receber uma resposta.<\/p><h3>Cabe\u00e7alhos:<\/h3><p>Content-Type: application\/json<\/p><p>Autoriza\u00e7\u00e3o: B\u00e1sico {authString}<\/p><h3>Carga \u00fatil necess\u00e1ria:<\/h3><p>prompt: (string) O texto de entrada para a resposta do chat.<\/p><p>request_id: (string) Uma identifica\u00e7\u00e3o \u00fanica para registar o pedido.<\/p><p>webhook_url (opcional): (URL) O ponto final para o qual a resposta deve ser enviada via webhook.<\/p><h3>Resposta bem sucedida:<\/h3><p>{<\/p><p>\u00a0\u00a0\u00a0 \"mensagem\": \"sucesso\",<\/p><p>\u00a0\u00a0\u00a0 \"dados\": {<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"request_id\": \"string\",<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"mensagem\": \"string\"<\/p><p>\u00a0\u00a0\u00a0 }<\/p><p>}<\/p><h3>Respostas a erros:<\/h3><h3>Cr\u00e9ditos insuficientes:<\/h3><p>{<\/p><p>\u00a0\u00a0\u00a0 \"mensagem\": \"erro\",<\/p><p>\u00a0\u00a0\u00a0 \"dados\": {<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"mensagem\": \"Esgotou os cr\u00e9ditos para gerar palavras. Por favor, carregue e tente novamente\".<\/p><p>\u00a0\u00a0\u00a0 }<\/p><p>}<\/p><h3>Chatbot n\u00e3o encontrado:<\/h3><p>{<\/p><p>\u00a0\u00a0\u00a0 \"mensagem\": \"erro\",<\/p><p>\u00a0\u00a0\u00a0 \"dados\": {<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"mensagem\": \"Chatbot n\u00e3o encontrado\".<\/p><p>\u00a0\u00a0\u00a0 }<\/p><p>}<\/p><h3>Falha no webhook:<\/h3><p>{<\/p><p>\u00a0\u00a0\u00a0 \"mensagem\": \"erro\",<\/p><p>\u00a0\u00a0\u00a0 \"dados\": {<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"mensagem\": \"Falha ao enviar a resposta ao webhook\".<\/p><p>\u00a0\u00a0\u00a0 }<\/p><p>}<\/p><p>\u00a0<\/p><h3>GET \/chat\/balance<\/h3><p>&#8211; Retrieves remaining word balance for authenticated user<br \/>&#8211; Returns user&#8217;s own balance, or parent account balance if user has zero words<br \/>&#8211; Required header: Authorization: Basic {authString}<\/p><p>Successful Response Example:<br \/>{<br \/>\"mensagem\": \"sucesso\",<br \/>\"dados\": {<br \/>&#8220;remaining_words&#8221;: 15000<br \/>}<br \/>}<\/p><p>Error Response:<br \/>{<br \/>\"mensagem\": \"erro\",<br \/>\"dados\": {<br \/>&#8220;message&#8221;: &#8220;Failed to retrieve balance.&#8221;<br \/>}<br \/>}<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Chat API Documentation \u00a0 Overview The Chat API facilitates the retrieval of chatbots and enables users to interact with them by posting messages. Base URL https:\/\/app.openspokenai.com\/api Authentication Clients must authenticate with a Basic Authorization header for each request: Authorization: Basic {authString} Where {authString} is the base64-encoded string of the format username:password. Example usage:\u00a0 curl -X [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_theme","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-7287","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Open Spoken AI API - Open Spoken Ai - Uncensored Text Writer No restrictions Nsfw<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/openspokenai.com\/pt\/\u5f00\u653e\u53e3\u8bed-ai-api\/\" \/>\n<meta property=\"og:locale\" content=\"pt_PT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Open Spoken AI API - Open Spoken Ai - Uncensored Text Writer No restrictions Nsfw\" \/>\n<meta property=\"og:description\" content=\"Chat API Documentation \u00a0 Overview The Chat API facilitates the retrieval of chatbots and enables users to interact with them by posting messages. Base URL https:\/\/app.openspokenai.com\/api Authentication Clients must authenticate with a Basic Authorization header for each request: Authorization: Basic {authString} Where {authString} is the base64-encoded string of the format username:password. Example usage:\u00a0 curl -X [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/openspokenai.com\/pt\/\u5f00\u653e\u53e3\u8bed-ai-api\/\" \/>\n<meta property=\"og:site_name\" content=\"Open Spoken Ai - Uncensored Text Writer No restrictions Nsfw\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-01T18:52:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/openspokenai.com\/wp-content\/uploads\/2023\/10\/logoresized.png\" \/>\n\t<meta property=\"og:image:width\" content=\"274\" \/>\n\t<meta property=\"og:image:height\" content=\"80\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Tempo estimado de leitura\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/openspokenai.com\/zh\/\u5f00\u653e\u53e3\u8bed-ai-api\/\",\"url\":\"https:\/\/openspokenai.com\/zh\/\u5f00\u653e\u53e3\u8bed-ai-api\/\",\"name\":\"Open Spoken AI API - Open Spoken Ai - Uncensored Text Writer No restrictions Nsfw\",\"isPartOf\":{\"@id\":\"https:\/\/openspokenai.com\/es\/#website\"},\"datePublished\":\"2024-04-08T12:10:51+00:00\",\"dateModified\":\"2025-10-01T18:52:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/openspokenai.com\/zh\/\u5f00\u653e\u53e3\u8bed-ai-api\/#breadcrumb\"},\"inLanguage\":\"pt-PT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/openspokenai.com\/zh\/\u5f00\u653e\u53e3\u8bed-ai-api\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/openspokenai.com\/zh\/\u5f00\u653e\u53e3\u8bed-ai-api\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/openspokenai.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Open Spoken AI API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/openspokenai.com\/es\/#website\",\"url\":\"https:\/\/openspokenai.com\/es\/\",\"name\":\"Open Spoken Ai - Uncensored Text Writer No restrictions GPT AI\",\"description\":\"Write what you want\",\"publisher\":{\"@id\":\"https:\/\/openspokenai.com\/es\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/openspokenai.com\/es\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-PT\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/openspokenai.com\/es\/#organization\",\"name\":\"Open Spoken Ai - Uncensored Text Writer No restrictions GPT AI\",\"url\":\"https:\/\/openspokenai.com\/es\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@id\":\"https:\/\/openspokenai.com\/es\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/openspokenai.com\/wp-content\/uploads\/2023\/10\/logoresized.png\",\"contentUrl\":\"https:\/\/openspokenai.com\/wp-content\/uploads\/2023\/10\/logoresized.png\",\"width\":274,\"height\":80,\"caption\":\"Open Spoken Ai - Uncensored Text Writer No restrictions GPT AI\"},\"image\":{\"@id\":\"https:\/\/openspokenai.com\/es\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Open Spoken AI API - Open Spoken Ai - Uncensored Text Writer No restrictions Nsfw","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/openspokenai.com\/pt\/\u5f00\u653e\u53e3\u8bed-ai-api\/","og_locale":"pt_PT","og_type":"article","og_title":"Open Spoken AI API - Open Spoken Ai - Uncensored Text Writer No restrictions Nsfw","og_description":"Chat API Documentation \u00a0 Overview The Chat API facilitates the retrieval of chatbots and enables users to interact with them by posting messages. Base URL https:\/\/app.openspokenai.com\/api Authentication Clients must authenticate with a Basic Authorization header for each request: Authorization: Basic {authString} Where {authString} is the base64-encoded string of the format username:password. Example usage:\u00a0 curl -X [&hellip;]","og_url":"https:\/\/openspokenai.com\/pt\/\u5f00\u653e\u53e3\u8bed-ai-api\/","og_site_name":"Open Spoken Ai - Uncensored Text Writer No restrictions Nsfw","article_modified_time":"2025-10-01T18:52:02+00:00","og_image":[{"width":274,"height":80,"url":"https:\/\/openspokenai.com\/wp-content\/uploads\/2023\/10\/logoresized.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Tempo estimado de leitura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/openspokenai.com\/zh\/\u5f00\u653e\u53e3\u8bed-ai-api\/","url":"https:\/\/openspokenai.com\/zh\/\u5f00\u653e\u53e3\u8bed-ai-api\/","name":"Open Spoken AI API - Open Spoken Ai - Uncensored Text Writer No restrictions Nsfw","isPartOf":{"@id":"https:\/\/openspokenai.com\/es\/#website"},"datePublished":"2024-04-08T12:10:51+00:00","dateModified":"2025-10-01T18:52:02+00:00","breadcrumb":{"@id":"https:\/\/openspokenai.com\/zh\/\u5f00\u653e\u53e3\u8bed-ai-api\/#breadcrumb"},"inLanguage":"pt-PT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/openspokenai.com\/zh\/\u5f00\u653e\u53e3\u8bed-ai-api\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/openspokenai.com\/zh\/\u5f00\u653e\u53e3\u8bed-ai-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/openspokenai.com\/"},{"@type":"ListItem","position":2,"name":"Open Spoken AI API"}]},{"@type":"WebSite","@id":"https:\/\/openspokenai.com\/es\/#website","url":"https:\/\/openspokenai.com\/es\/","name":"Open Spoken Ai - Uncensored Text Writer No restrictions GPT AI","description":"Write what you want","publisher":{"@id":"https:\/\/openspokenai.com\/es\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/openspokenai.com\/es\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-PT"},{"@type":"Organization","@id":"https:\/\/openspokenai.com\/es\/#organization","name":"Open Spoken Ai - Uncensored Text Writer No restrictions GPT AI","url":"https:\/\/openspokenai.com\/es\/","logo":{"@type":"ImageObject","inLanguage":"pt-PT","@id":"https:\/\/openspokenai.com\/es\/#\/schema\/logo\/image\/","url":"https:\/\/openspokenai.com\/wp-content\/uploads\/2023\/10\/logoresized.png","contentUrl":"https:\/\/openspokenai.com\/wp-content\/uploads\/2023\/10\/logoresized.png","width":274,"height":80,"caption":"Open Spoken Ai - Uncensored Text Writer No restrictions GPT AI"},"image":{"@id":"https:\/\/openspokenai.com\/es\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/openspokenai.com\/pt\/wp-json\/wp\/v2\/pages\/7287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openspokenai.com\/pt\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/openspokenai.com\/pt\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/openspokenai.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/openspokenai.com\/pt\/wp-json\/wp\/v2\/comments?post=7287"}],"version-history":[{"count":3,"href":"https:\/\/openspokenai.com\/pt\/wp-json\/wp\/v2\/pages\/7287\/revisions"}],"predecessor-version":[{"id":8201,"href":"https:\/\/openspokenai.com\/pt\/wp-json\/wp\/v2\/pages\/7287\/revisions\/8201"}],"wp:attachment":[{"href":"https:\/\/openspokenai.com\/pt\/wp-json\/wp\/v2\/media?parent=7287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}