openapi: 3.0.3 info: title: 'Unity Health - API Customer - API Documentation' description: 'Unity Health - API API Documentation for the Client' version: 1.0.0 servers: - url: 'http://homologacao.clickweb.com.br:8520' tags: - name: 'App Screens' description: '' - name: Authentication description: '' - name: Contents description: '' - name: Faq description: '' - name: Home description: '' - name: 'How It Works' description: '' - name: Institutional description: '' - name: 'Live Webinars' description: '' - name: 'Minha conta' description: '' - name: Notifications description: '' - name: OnBoarding description: '' - name: 'Settings General' description: '' - name: Suporte description: "\nChat de suporte do app (BE-22). O atendimento é feito pela equipe da Unity no painel (CMS-05).\nUma conversa por usuário: `GET support/conversation` abre ou retoma. As respostas seguem o formato do app\n(dto/Support.ts), sem o envelope `data` (exceto a lista de mensagens, que tem `data` e `meta`).\n\n### Tempo real (WebSocket - Laravel Reverb, protocolo Pusher)\n\n- Conexão: `ws://{REVERB_HOST}:{REVERB_PORT}/app/{REVERB_APP_KEY}` (pusher-js / laravel-echo com `broadcaster: \"reverb\"`).\n- Autorização dos canais privados: `POST /api/v1/customer/broadcasting/auth` com o `Authorization: Bearer` do app\n (corpo `socket_id` e `channel_name`).\n- Canal `private-support.conversation.{uuid da conversa}`:\n - `.support.message` → `{conversation_uuid, message: {uuid, from, text, created_at, agent}, conversation}`\n - `.support.typing` → `{conversation_uuid, from: \"agent\"|\"user\", name, typing: true, expires_in: 8}` (esconda o \"digitando…\" depois de `expires_in` s sem novo sinal)\n - `.support.conversation` → `{conversation_uuid, action: \"closed\"|\"reopened\"|\"assigned\"|\"read_by_agent\"|\"read_by_customer\", conversation}`\n- Canal `private-support.status`: `.support.agent-status` → `{online, name, agent}` (atendente ficou online/offline).\n\n**Sem WebSocket (fallback):** a cada 5 s, com o chat aberto, `GET support/conversation/messages?after={uuid da última mensagem}`\ntraz as mensagens novas e, em `meta`, o \"digitando…\", o atendente e a situação da conversa.\n\n**Push:** a resposta do atendente vai por push quando o app não deu sinal no chat nos últimos 45 s\n(qualquer chamada desta seção conta como sinal). `data` do push: `{type: \"support_message\", conversation_uuid, message_uuid}`." - name: TV description: '' - name: Webservice description: '' components: securitySchemes: default: type: http scheme: bearer description: 'You can retrieve your token by visiting your dashboard and clicking Generate API token.' security: - default: [] paths: /api/v1/customer/app/screens: get: summary: 'Get app screens' operationId: getAppScreens description: "Tudo o que o app mostra antes do login, em uma chamada: Splash, slides do Onboarding (ativos, na ordem do painel) e textos do Login.\nImagens em URL absoluta (ou `null` quando não enviadas: o app usa a imagem embutida)." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: splash: logo_url: 'http://localhost/storage/app-screens/logo-white.png' footer_text: 'desenvolvido por' footer_logo_url: 'http://localhost/storage/app-screens/clickweb.svg' duration_seconds: 3.4 onboarding: - uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e kicker: 'Sejam bem-vindos' title: 'Tudo da Unity Health em um só lugar' text: 'Conteúdos da área médica, TV Unity, financeiro e suporte, na palma da mão.' image_url: 'http://localhost/storage/app-screens/logo-white.png' icon: null order: 1 login: title: Entrar subtitle: 'Acesse sua conta Unity Health com e-mail e senha.' properties: splash: type: object properties: logo_url: type: string example: 'http://localhost/storage/app-screens/logo-white.png' footer_text: type: string example: 'desenvolvido por' footer_logo_url: type: string example: 'http://localhost/storage/app-screens/clickweb.svg' duration_seconds: type: number example: 3.4 onboarding: type: array example: - uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e kicker: 'Sejam bem-vindos' title: 'Tudo da Unity Health em um só lugar' text: 'Conteúdos da área médica, TV Unity, financeiro e suporte, na palma da mão.' image_url: 'http://localhost/storage/app-screens/logo-white.png' icon: null order: 1 items: type: object properties: uuid: type: string example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e kicker: type: string example: 'Sejam bem-vindos' title: type: string example: 'Tudo da Unity Health em um só lugar' text: type: string example: 'Conteúdos da área médica, TV Unity, financeiro e suporte, na palma da mão.' image_url: type: string example: 'http://localhost/storage/app-screens/logo-white.png' icon: type: string example: null nullable: true order: type: integer example: 1 login: type: object properties: title: type: string example: Entrar subtitle: type: string example: 'Acesse sua conta Unity Health com e-mail e senha.' tags: - 'App Screens' security: [] /api/v1/customer/auth/login: post: summary: Login operationId: login description: "Login do app com e-mail e senha (BE-04). Com a verificação em duas etapas ligada (`ENABLE_A2F`), **não abre a sessão**:\ndevolve o `two_factor_token` (vale 10 min), os canais com o destino mascarado e já envia o código de 6 dígitos pelo\n`default_channel` (SMS se houver celular, senão e-mail). Depois o app chama `auth/two-factor/verify`.
\nCom a verificação desligada, abre a sessão direto e responde como o `auth/two-factor/verify`.
\nE-mail ou senha errados (ou convidado que ainda não definiu a senha): 401 \"Os dados informados são inválidos.\".\nUsuário bloqueado no painel: 403. Limite de 5 tentativas por e-mail a cada 15 min (429).
\nFora de produção a resposta traz também o `code` enviado (para testes). O login por rede social (`network_external`\ndiferente de `login-pass`) segue o fluxo da base." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: oneOf: - description: '' type: object example: two_factor_token: tf_Xr8... expires_in: 600 channels: sms: '(11) •••••-0000' email: m•••••@unityhealth.com.br default_channel: sms properties: two_factor_token: type: string example: tf_Xr8... expires_in: type: integer example: 600 channels: type: object properties: sms: type: string example: '(11) •••••-0000' email: type: string example: m•••••@unityhealth.com.br default_channel: type: string example: sms - description: 'Duas etapas desligada' type: object example: token_type: Bearer access_token: 12|eyJ0eXAiOiJ... refresh_token: rt_... expires_in: 900 user: uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: 'Mariana Vasconcellos' treatment: Dra. email: mariana@unityhealth.com.br phone: '+5511999990000' cpf: '12345678909' job_title: 'Diretora Clínica' institution: 'Hospital Sírio-Libanês' avatar_url: null password_changed_at: null created_at: '2026-01-10T12:00:00Z' updated_at: '2026-10-15T12:00:00Z' properties: token_type: type: string example: Bearer access_token: type: string example: 12|eyJ0eXAiOiJ... refresh_token: type: string example: rt_... expires_in: type: integer example: 900 user: type: object properties: uuid: type: string example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: type: string example: 'Mariana Vasconcellos' treatment: type: string example: Dra. email: type: string example: mariana@unityhealth.com.br phone: type: string example: '+5511999990000' cpf: type: string example: '12345678909' job_title: type: string example: 'Diretora Clínica' institution: type: string example: 'Hospital Sírio-Libanês' avatar_url: type: string example: null nullable: true password_changed_at: type: string example: null nullable: true created_at: type: string example: '2026-01-10T12:00:00Z' updated_at: type: string example: '2026-10-15T12:00:00Z' 401: description: '' content: application/json: schema: type: object example: message: 'Os dados informados são inválidos.' properties: message: type: string example: 'Os dados informados são inválidos.' 403: description: '' content: application/json: schema: type: object example: message: 'Seu acesso ao app está bloqueado. Fale com o suporte da Unity Health.' properties: message: type: string example: 'Seu acesso ao app está bloqueado. Fale com o suporte da Unity Health.' 429: description: '' content: application/json: schema: type: object example: message: 'Você realizou muitas tentativas de login. Por favor, tente novamente em 840 segundos.' errors: email: - ... properties: message: type: string example: 'Você realizou muitas tentativas de login. Por favor, tente novamente em 840 segundos.' errors: type: object properties: email: type: array example: - ... items: type: string tags: - Authentication requestBody: required: false content: multipart/form-data: schema: type: object properties: network_external: type: string description: validation.max. example: bngzmi enum: - login-pass - facebook - google - apple nullable: true email: type: string description: 'This field is required when network_external is login-pass. validation.email.' example: okon.justina@example.com nullable: true password: type: string description: 'This field is required when network_external is login-pass. validation.max.' example: Ygxwmi/ nullable: true login_external_id: type: string description: 'This field is required unless network_external is in login-pass. validation.max.' example: c nullable: true device_name: type: string description: validation.max. example: m nullable: true token_name: type: string description: validation.max. example: 'y' nullable: true accepted_term_of_users_at: type: string description: validation.date. example: '2026-11-18T15:50:59' nullable: true accepted_policy_privacy_at: type: string description: validation.date. example: '2026-11-18T15:50:59' nullable: true security: [] /api/v1/customer/auth/two-factor/send: post: summary: 'Send two factor code' operationId: sendTwoFactorCode description: "Envia ou reenvia o código de 6 dígitos da verificação em duas etapas pelo canal escolhido (BE-05).\nO reenvio só é liberado 30 s depois do último envio (429 com `resend_in`). O código vale 10 min e um novo\ncódigo invalida o anterior. Sem celular cadastrado, o canal `sms` responde 422.\nFora de produção a resposta traz também o `code` enviado (para testes)." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: sent_to: m•••••@unityhealth.com.br resend_in: 30 properties: sent_to: type: string example: m•••••@unityhealth.com.br resend_in: type: integer example: 30 422: description: '' content: application/json: schema: type: object example: message: 'A verificação expirou. Entre de novo com e-mail e senha.' errors: two_factor_token: - 'A verificação expirou. Entre de novo com e-mail e senha.' properties: message: type: string example: 'A verificação expirou. Entre de novo com e-mail e senha.' errors: type: object properties: two_factor_token: type: array example: - 'A verificação expirou. Entre de novo com e-mail e senha.' items: type: string 429: description: '' content: application/json: schema: type: object example: message: 'Aguarde 12 s para pedir um novo código.' resend_in: 12 properties: message: type: string example: 'Aguarde 12 s para pedir um novo código.' resend_in: type: integer example: 12 tags: - Authentication requestBody: required: true content: multipart/form-data: schema: type: object properties: two_factor_token: type: string description: validation.max. example: b channel: type: string description: '' example: email enum: - sms - email required: - two_factor_token - channel security: [] /api/v1/customer/auth/two-factor/verify: post: summary: 'Verify two factor code' operationId: verifyTwoFactorCode description: "Confere o código e abre a sessão (BE-05). Código errado: 422 \"O código informado é inválido.\"; no 5º erro o\n`two_factor_token` é cancelado e é preciso entrar de novo. Código vencido (10 min): 422.
\nA sessão tem um `access_token` (vale `expires_in` segundos, ~15 min) e um `refresh_token` de uso único para\n`auth/refresh`. O nome da sessão (aparelho) vem de `device_name` ou do enviado no login." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: token_type: Bearer access_token: 12|eyJ0eXAiOiJ... refresh_token: rt_... expires_in: 900 user: uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: 'Mariana Vasconcellos' treatment: Dra. email: mariana@unityhealth.com.br phone: '+5511999990000' cpf: '12345678909' job_title: 'Diretora Clínica' institution: 'Hospital Sírio-Libanês' avatar_url: null password_changed_at: null created_at: '2026-01-10T12:00:00Z' updated_at: '2026-10-15T12:00:00Z' properties: token_type: type: string example: Bearer access_token: type: string example: 12|eyJ0eXAiOiJ... refresh_token: type: string example: rt_... expires_in: type: integer example: 900 user: type: object properties: uuid: type: string example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: type: string example: 'Mariana Vasconcellos' treatment: type: string example: Dra. email: type: string example: mariana@unityhealth.com.br phone: type: string example: '+5511999990000' cpf: type: string example: '12345678909' job_title: type: string example: 'Diretora Clínica' institution: type: string example: 'Hospital Sírio-Libanês' avatar_url: type: string example: null nullable: true password_changed_at: type: string example: null nullable: true created_at: type: string example: '2026-01-10T12:00:00Z' updated_at: type: string example: '2026-10-15T12:00:00Z' 422: description: '' content: application/json: schema: type: object example: message: 'O código informado é inválido.' errors: code: - 'O código informado é inválido.' properties: message: type: string example: 'O código informado é inválido.' errors: type: object properties: code: type: array example: - 'O código informado é inválido.' items: type: string tags: - Authentication requestBody: required: true content: multipart/form-data: schema: type: object properties: two_factor_token: type: string description: validation.max. example: b code: type: string description: validation.digits. example: '569775' device_name: type: string description: validation.max. example: 'n' nullable: true required: - two_factor_token - code security: [] /api/v1/customer/auth/refresh: post: summary: 'Refresh session' operationId: refreshSession description: "Troca o refresh token por um novo par de tokens (BE-06). O refresh token é de uso único (rotação): se um refresh\ntoken já trocado for usado de novo, todas as sessões do usuário são encerradas. Inválido, vencido (30 dias) ou\nusuário bloqueado: 401." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: token_type: Bearer access_token: 12|eyJ0eXAiOiJ... refresh_token: rt_novo... expires_in: 900 properties: token_type: type: string example: Bearer access_token: type: string example: 12|eyJ0eXAiOiJ... refresh_token: type: string example: rt_novo... expires_in: type: integer example: 900 401: description: '' content: application/json: schema: type: object example: message: 'Sessão inválida ou expirada. Entre de novo.' properties: message: type: string example: 'Sessão inválida ou expirada. Entre de novo.' tags: - Authentication requestBody: required: true content: multipart/form-data: schema: type: object properties: refresh_token: type: string description: validation.max. example: b required: - refresh_token security: [] /api/v1/customer/auth/forgot-password: post: summary: 'Forgot password' operationId: forgotPassword description: "\"Esqueci minha senha\" do app (BE-07): envia o e-mail com o link de nova senha (vale 30 min).\nResponde 204 mesmo se o e-mail não existir ou estiver bloqueado (não revela quem tem conta).\nMáximo de 3 envios por e-mail a cada hora (429)." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 204: description: '' content: application/json: schema: type: object example: { } properties: { } 429: description: '' content: application/json: schema: type: object example: message: 'Você já pediu o link algumas vezes. Tente de novo mais tarde.' properties: message: type: string example: 'Você já pediu o link algumas vezes. Tente de novo mais tarde.' tags: - Authentication requestBody: required: true content: multipart/form-data: schema: type: object properties: email: type: string description: validation.email. example: gbailey@example.net required: - email security: [] /api/v1/customer/auth/reset-password: post: summary: 'Reset password' operationId: resetPassword description: "Grava a nova senha a partir do link do e-mail (BE-07). O app chama `POST auth/reset-password`; `auth/password/reset`\ncontinua valendo (formato da base). O link do e-mail traz o `token` e o `email`. Regras: 8 caracteres, uma maiúscula,\num número e um símbolo. Encerra todas as sessões abertas. O link padrão abre a página web de nova senha da API\n(`password/reset/customers/{token}`), que faz o mesmo." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 204: description: '' content: application/json: schema: type: object example: { } properties: { } 422: description: '' content: application/json: schema: type: object example: message: 'Esse código de redefinição de senha é inválido.' errors: email: - 'Esse código de redefinição de senha é inválido.' properties: message: type: string example: 'Esse código de redefinição de senha é inválido.' errors: type: object properties: email: type: array example: - 'Esse código de redefinição de senha é inválido.' items: type: string tags: - Authentication requestBody: required: true content: multipart/form-data: schema: type: object properties: token: type: string description: validation.max. example: b email: type: string description: validation.email. example: zbailey@example.net password: type: string description: 'Must match the regex /[A-Z]/. Must match the regex /[0-9]/. Must match the regex /[^A-Za-z0-9]/. validation.min validation.max.' example: '-0pBNvYgxw' password_confirmation: type: string description: '' example: architecto required: - token - email - password - password_confirmation security: [] /api/v1/customer/auth/password/recovery: post: summary: 'Password recovery' operationId: passwordRecovery description: 'Formato antigo da base (responde 422 quando o e-mail não existe). O app usa `auth/forgot-password`.' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: message: 'Success message' properties: message: type: string example: 'Success message' tags: - Authentication requestBody: required: true content: multipart/form-data: schema: type: object properties: email: type: string description: validation.email. example: gbailey@example.net required: - email security: [] /api/v1/customer/auth/validate-email: post: summary: 'Validate Email' operationId: validateEmail description: 'Se o email ja existe no banco = false | Se o email nao existe no banco = true' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: text/plain: schema: type: string example: "{\n\"validate\": true,\n}" tags: - Authentication requestBody: required: true content: multipart/form-data: schema: type: object properties: email: type: string description: validation.email. example: gbailey@example.net required: - email security: [] /api/v1/customer/auth/validate-phone: post: summary: 'Validate Phone' operationId: validatePhone description: 'Se o telefone ja existe no banco = false | Se o telefone nao existe no banco = true' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: text/plain: schema: type: string example: "{\n\"validate\": true,\n}" tags: - Authentication requestBody: required: true content: multipart/form-data: schema: type: object properties: phone: type: string description: '' example: architecto required: - phone security: [] /api/v1/customer/create: post: summary: 'Create Account' operationId: createAccount description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: { } tags: - Authentication requestBody: required: true content: multipart/form-data: schema: type: object properties: network_external: type: string description: validation.max. example: bngzmi enum: - login-pass - facebook - google - apple email: type: string description: 'This field is required when network_external is login-pass. validation.email.' example: okon.justina@example.com password: type: string description: 'This field is required when network_external is login-pass. validation.min.' example: Ygxwmi/ password_confirmation: type: string description: 'This field is required when network_external is login-pass. The value and password must match. validation.min.' example: cmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppwqbewt login_external_id: type: string description: 'This field is required unless network_external is in login-pass. validation.max.' example: 'n' name: type: string description: validation.max. example: 'n' accepted_term_of_users_at: type: string description: validation.date. example: '2026-11-18T15:50:59' nullable: true accepted_policy_privacy_at: type: string description: validation.date. example: '2026-11-18T15:50:59' nullable: true token_name: type: string description: validation.max. example: o nullable: true avatar: type: string format: binary description: 'Must be a file. validation.max.' nullable: true city_id: type: string description: '' example: null phone: type: string description: '' example: architecto nullable: true required: - network_external - name security: [] /api/v1/customer/email/resend: post: summary: 'Resend token via email' operationId: resendTokenViaEmail description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: message: 'message successfully' properties: message: type: string example: 'message successfully' tags: - Authentication requestBody: required: true content: multipart/form-data: schema: type: object properties: email: type: string description: validation.email. example: gbailey@example.net required: - email security: [] /api/v1/customer/auth/logout: post: summary: Logout operationId: logout description: "Encerra a sessão deste aparelho (o access token e o refresh token dele). O app chama `POST auth/logout`;\n`DELETE auth/logout` continua valendo (formato da base). Responde 204." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 204: description: '' content: application/json: schema: type: object example: { } properties: { } tags: - Authentication requestBody: required: false content: multipart/form-data: schema: type: object properties: refresh_token: type: string description: 'Não pode conter mais de 191 caracteres.' example: b nullable: true delete: summary: Logout operationId: logout description: "Encerra a sessão deste aparelho (o access token e o refresh token dele). O app chama `POST auth/logout`;\n`DELETE auth/logout` continua valendo (formato da base). Responde 204." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 204: description: '' content: application/json: schema: type: object example: { } properties: { } tags: - Authentication requestBody: required: false content: multipart/form-data: schema: type: object properties: refresh_token: type: string description: 'Não pode conter mais de 191 caracteres.' example: b nullable: true /api/v1/customer/auth/user: get: summary: 'Get the authenticated user' operationId: getTheAuthenticatedUser description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 401: description: '' content: application/json: schema: type: object example: message: 'Não autorizado - Verifique a "Authorization" no cabeçalho da requisição.' code: 401 type: Illuminate\Auth\AuthenticationException properties: message: type: string example: 'Não autorizado - Verifique a "Authorization" no cabeçalho da requisição.' code: type: integer example: 401 type: type: string example: Illuminate\Auth\AuthenticationException tags: - Authentication /api/v1/customer/auth/tokens: get: summary: 'Get all tokens' operationId: getAllTokens description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 401: description: '' content: application/json: schema: type: object example: message: 'Não autorizado - Verifique a "Authorization" no cabeçalho da requisição.' code: 401 type: Illuminate\Auth\AuthenticationException properties: message: type: string example: 'Não autorizado - Verifique a "Authorization" no cabeçalho da requisição.' code: type: integer example: 401 type: type: string example: Illuminate\Auth\AuthenticationException tags: - Authentication '/api/v1/customer/auth/tokens/{tokenId}': delete: summary: 'Delete token' operationId: deleteToken description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: { } tags: - Authentication parameters: - in: path name: tokenId description: '' example: architecto required: true schema: type: string /api/v1/customer/auth/delete-account: post: summary: 'Delete account' operationId: deleteAccount description: "Formato antigo da base (confirma com a senha). O app usa `DELETE me`. Os dois fazem a exclusão LGPD:\napagam as interações, anonimizam os dados pessoais, revogam as sessões e fazem o soft delete." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: { } tags: - Authentication requestBody: required: false content: multipart/form-data: schema: type: object properties: password: type: string description: 'Deve conter no mínimo 6 caracteres.' example: '|]|{+-' nullable: true /api/v1/customer/auth/change-password: post: summary: 'Change password' operationId: changePassword description: "Formato antigo da base. O app usa `PUT me/password`. Regras da nova senha: 8 caracteres, uma maiúscula,\num número e um símbolo. Encerra as sessões dos outros aparelhos." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: { } tags: - Authentication requestBody: required: true content: multipart/form-data: schema: type: object properties: password: type: string description: '' example: '|]|{+-' password_new: type: string description: 'Must match the regex /[A-Z]/. Must match the regex /[0-9]/. Must match the regex /[^A-Za-z0-9]/. Deve conter no mínimo 8 caracteres. Não pode conter mais de 191 caracteres.' example: v password_new_confirmation: type: string description: 'The value and password_new must match.' example: architecto required: - password - password_new - password_new_confirmation /api/v1/customer/auth/update/settings: post: summary: 'settings notify' operationId: settingsNotify description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: { } tags: - Authentication requestBody: required: false content: multipart/form-data: schema: type: object properties: notify_newsletter: type: boolean description: '' example: true nullable: true notify_general: type: boolean description: '' example: true nullable: true /api/v1/customer/auth/update: post: summary: 'Update user' operationId: updateUser description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: { } tags: - Authentication requestBody: required: false content: multipart/form-data: schema: type: object properties: name: type: string description: 'Não pode conter mais de 50 caracteres.' example: b nullable: true is_active: type: boolean description: '' example: false nullable: true email: type: string description: 'Deve ser um endereço de email válido. Não pode conter mais de 191 caracteres.' example: zbailey@example.net nullable: true phone: type: string description: '' example: architecto nullable: true city_id: type: string description: '' example: null avatar_delete: type: boolean description: '' example: true nullable: true /api/v1/customer/auth/change-avatar: post: summary: 'Change avatar' operationId: changeAvatar description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: file_url: '{url}' properties: file_url: type: string example: '{url}' tags: - Authentication requestBody: required: true content: multipart/form-data: schema: type: object properties: avatar: type: string format: binary description: 'Must be a file. Não pode conter um arquivo com mais de 4000 kilobytes.' required: - avatar /api/v1/customer/categories: get: summary: 'Get categories' operationId: getCategories description: "Chips de categoria de cada hub (BE-09). Sem `type`, devolve as categorias dos quatro tipos.\n`contents_count` conta só os conteúdos publicados." parameters: - in: query name: type description: 'Available values: `ebook` `podcast` `video` `webinar`' example: ebook required: false schema: type: string description: 'Available values: `ebook` `podcast` `video` `webinar`' example: ebook - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: array items: type: object properties: uuid: type: string example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: type: string example: 'Gestão Hospitalar' type: type: string example: ebook color: type: string example: null nullable: true contents_count: type: integer example: 7 example: - uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: 'Gestão Hospitalar' type: ebook color: null contents_count: 7 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException 422: description: '' content: application/json: schema: type: object example: message: 'The given data was invalid.' errors: type: - 'The selected type is invalid.' code: 422 type: ValidationException properties: message: type: string example: 'The given data was invalid.' errors: type: object properties: type: type: array example: - 'The selected type is invalid.' items: type: string code: type: integer example: 422 type: type: string example: ValidationException tags: - Contents /api/v1/customer/contents: get: summary: 'Get contents' operationId: getContents description: "Listas completas (\"Ver todos\") e busca (BE-09). Sem `type`, busca nos quatro tipos.\nA busca procura no título, no autor, na série e na categoria, sem diferenciar maiúsculas nem acentos.\n`meta.categories` traz o total por categoria do que foi encontrado (\"48 conteúdos em 4 categorias\")." parameters: - in: query name: type description: 'Available values: `ebook` `podcast` `video` `webinar`' example: ebook required: false schema: type: string description: 'Available values: `ebook` `podcast` `video` `webinar`' example: ebook - in: query name: category description: 'Uuid da categoria.' example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e required: false schema: type: string description: 'Uuid da categoria.' example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e - in: query name: q description: 'Termo de busca.' example: lgpd required: false schema: type: string description: 'Termo de busca.' example: lgpd - in: query name: page description: '' example: 1 required: false schema: type: integer description: '' example: 1 - in: query name: per_page description: 'Max: `100`' example: 20 required: false schema: type: integer description: 'Max: `100`' example: 20 - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: data: - uuid: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b type: podcast title: 'Lei Geral de Proteção de Dados (LGPD) em Prontuários' cover_url: 'https://cdn.exemplo.com/capa.jpg' category: uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: 'Regulação & Compliance' author: name: 'Dra. Beatriz Amaral' role: null series: name: 'Direito & Saúde Digital' episode: 6 duration_seconds: 1740 pages: null is_live: false published_at: '2026-09-19T13:00:00Z' saved: false progress: null meta: page: 1 per_page: 20 total: 1 last_page: 1 categories: - uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: 'Regulação & Compliance' count: 1 properties: data: type: array example: - uuid: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b type: podcast title: 'Lei Geral de Proteção de Dados (LGPD) em Prontuários' cover_url: 'https://cdn.exemplo.com/capa.jpg' category: uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: 'Regulação & Compliance' author: name: 'Dra. Beatriz Amaral' role: null series: name: 'Direito & Saúde Digital' episode: 6 duration_seconds: 1740 pages: null is_live: false published_at: '2026-09-19T13:00:00Z' saved: false progress: null items: type: object properties: uuid: type: string example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b type: type: string example: podcast title: type: string example: 'Lei Geral de Proteção de Dados (LGPD) em Prontuários' cover_url: type: string example: 'https://cdn.exemplo.com/capa.jpg' category: type: object properties: uuid: type: string example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: type: string example: 'Regulação & Compliance' author: type: object properties: name: type: string example: 'Dra. Beatriz Amaral' role: type: string example: null nullable: true series: type: object properties: name: type: string example: 'Direito & Saúde Digital' episode: type: integer example: 6 duration_seconds: type: integer example: 1740 pages: type: string example: null nullable: true is_live: type: boolean example: false published_at: type: string example: '2026-09-19T13:00:00Z' saved: type: boolean example: false progress: type: string example: null nullable: true meta: type: object properties: page: type: integer example: 1 per_page: type: integer example: 20 total: type: integer example: 1 last_page: type: integer example: 1 categories: type: array example: - uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: 'Regulação & Compliance' count: 1 items: type: object properties: uuid: type: string example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: type: string example: 'Regulação & Compliance' count: type: integer example: 1 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException 422: description: '' content: application/json: schema: type: object example: message: 'The given data was invalid.' errors: per_page: - 'The per page field must not be greater than 100.' code: 422 type: ValidationException properties: message: type: string example: 'The given data was invalid.' errors: type: object properties: per_page: type: array example: - 'The per page field must not be greater than 100.' items: type: string code: type: integer example: 422 type: type: string example: ValidationException tags: - Contents /api/v1/customer/contents/hub: get: summary: 'Get hub' operationId: getHub description: "Todas as seções de um hub em uma chamada (BE-10). Sem `type`, devolve a Central (com `counts`).\n- `continue`: progresso entre 1% e 95%, do mais recente para o mais antigo;\n- `featured`: o destaque escolhido no painel (hub do tipo ou Central);\n- `latest`: publicados mais recentemente;\n- `recommended`: das categorias que o cliente mais consome e que ele ainda não abriu;\n- `saved`: salvos para depois." parameters: - in: query name: type description: 'Available values: `ebook` `podcast` `video` `webinar`' example: podcast required: false schema: type: string description: 'Available values: `ebook` `podcast` `video` `webinar`' example: podcast - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: counts: ebook: 18 podcast: 12 video: 13 webinar: 9 categories: [] continue: [] featured: null latest: [] recommended: [] saved: [] properties: counts: type: object properties: ebook: type: integer example: 18 podcast: type: integer example: 12 video: type: integer example: 13 webinar: type: integer example: 9 categories: type: array example: [] continue: type: array example: [] featured: type: string example: null nullable: true latest: type: array example: [] recommended: type: array example: [] saved: type: array example: [] 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException 422: description: '' content: application/json: schema: type: object example: message: 'The given data was invalid.' errors: type: - 'The selected type is invalid.' code: 422 type: ValidationException properties: message: type: string example: 'The given data was invalid.' errors: type: object properties: type: type: array example: - 'The selected type is invalid.' items: type: string code: type: integer example: 422 type: type: string example: ValidationException tags: - Contents /api/v1/customer/contents/saved: get: summary: 'Get saved' operationId: getSaved description: 'Itens salvos (aba Salvos e seção "Salvos para depois") (BE-12). Sem `type`, devolve os quatro tipos.' parameters: - in: query name: type description: 'Available values: `ebook` `podcast` `video` `webinar`' example: video required: false schema: type: string description: 'Available values: `ebook` `podcast` `video` `webinar`' example: video - in: query name: page description: '' example: 1 required: false schema: type: integer description: '' example: 1 - in: query name: per_page description: 'Max: `100`' example: 20 required: false schema: type: integer description: 'Max: `100`' example: 20 - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: data: [] meta: page: 1 per_page: 20 total: 0 last_page: 1 properties: data: type: array example: [] meta: type: object properties: page: type: integer example: 1 per_page: type: integer example: 20 total: type: integer example: 0 last_page: type: integer example: 1 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException tags: - Contents '/api/v1/customer/contents/{uuid}': get: summary: 'Get content' operationId: getContent description: "Tudo para as telas de detalhe e para os players (BE-11). `media_url` é o arquivo enviado no painel ou a URL externa;\n`media_expires_at` fica `null` enquanto a mídia não usa URL assinada." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: uuid: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b type: podcast title: 'Ep. 24 - Renegociação de Tabelas e Gestão de OPME' cover_url: 'https://cdn.exemplo.com/capa.jpg' category: uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: 'Gestão & Finanças' author: name: 'Dr. Ricardo Alves' role: null series: name: 'Unity Health Leaders' episode: 24 duration_seconds: 1930 pages: null is_live: false published_at: '2026-10-22T10:00:00Z' saved: true progress: position: 525 percent: 27 updated_at: '2026-10-22T12:40:00Z' description: 'Uma imersão analítica nas melhores práticas.' media_url: 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3' media_expires_at: null liked: false likes_count: 318 properties: uuid: type: string example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b type: type: string example: podcast title: type: string example: 'Ep. 24 - Renegociação de Tabelas e Gestão de OPME' cover_url: type: string example: 'https://cdn.exemplo.com/capa.jpg' category: type: object properties: uuid: type: string example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: type: string example: 'Gestão & Finanças' author: type: object properties: name: type: string example: 'Dr. Ricardo Alves' role: type: string example: null nullable: true series: type: object properties: name: type: string example: 'Unity Health Leaders' episode: type: integer example: 24 duration_seconds: type: integer example: 1930 pages: type: string example: null nullable: true is_live: type: boolean example: false published_at: type: string example: '2026-10-22T10:00:00Z' saved: type: boolean example: true progress: type: object properties: position: type: integer example: 525 percent: type: integer example: 27 updated_at: type: string example: '2026-10-22T12:40:00Z' description: type: string example: 'Uma imersão analítica nas melhores práticas.' media_url: type: string example: 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3' media_expires_at: type: string example: null nullable: true liked: type: boolean example: false likes_count: type: integer example: 318 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException 404: description: '' content: application/json: schema: type: object example: message: 'Record not found.' code: 404 type: ModelNotFoundException properties: message: type: string example: 'Record not found.' code: type: integer example: 404 type: type: string example: ModelNotFoundException tags: - Contents parameters: - in: path name: uuid description: 'Uuid do conteúdo.' example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b required: true schema: type: string '/api/v1/customer/contents/{uuid}/like': post: summary: 'Like content' operationId: likeContent description: 'Curtir (BE-12). Repetir não conta duas vezes.' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: liked: true likes_count: 319 properties: liked: type: boolean example: true likes_count: type: integer example: 319 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException 404: description: '' content: application/json: schema: type: object example: message: 'Record not found.' code: 404 type: ModelNotFoundException properties: message: type: string example: 'Record not found.' code: type: integer example: 404 type: type: string example: ModelNotFoundException tags: - Contents delete: summary: 'Unlike content' operationId: unlikeContent description: 'Descurtir (BE-12).' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: liked: false likes_count: 318 properties: liked: type: boolean example: false likes_count: type: integer example: 318 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException 404: description: '' content: application/json: schema: type: object example: message: 'Record not found.' code: 404 type: ModelNotFoundException properties: message: type: string example: 'Record not found.' code: type: integer example: 404 type: type: string example: ModelNotFoundException tags: - Contents parameters: - in: path name: uuid description: 'Uuid do conteúdo.' example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b required: true schema: type: string '/api/v1/customer/contents/{uuid}/save': post: summary: 'Save content' operationId: saveContent description: 'Salvar para depois (BE-12).' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: saved: true properties: saved: type: boolean example: true 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException 404: description: '' content: application/json: schema: type: object example: message: 'Record not found.' code: 404 type: ModelNotFoundException properties: message: type: string example: 'Record not found.' code: type: integer example: 404 type: type: string example: ModelNotFoundException tags: - Contents delete: summary: 'Unsave content' operationId: unsaveContent description: 'Tirar dos salvos (BE-12).' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: saved: false properties: saved: type: boolean example: false 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException 404: description: '' content: application/json: schema: type: object example: message: 'Record not found.' code: 404 type: ModelNotFoundException properties: message: type: string example: 'Record not found.' code: type: integer example: 404 type: type: string example: ModelNotFoundException tags: - Contents parameters: - in: path name: uuid description: 'Uuid do conteúdo.' example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b required: true schema: type: string '/api/v1/customer/contents/{uuid}/progress': put: summary: 'Update progress' operationId: updateProgress description: "Salva onde o cliente parou (BE-13): segundos no áudio e no vídeo, número da página no e-book.\nA partir de 95% conta como concluído e sai do \"Continuar\". O app chama a cada 15 s enquanto toca e ao pausar ou sair da tela." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: position: 525 percent: 27 completed: false updated_at: '2026-10-22T13:40:00Z' properties: position: type: integer example: 525 percent: type: integer example: 27 completed: type: boolean example: false updated_at: type: string example: '2026-10-22T13:40:00Z' 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException 404: description: '' content: application/json: schema: type: object example: message: 'Record not found.' code: 404 type: ModelNotFoundException properties: message: type: string example: 'Record not found.' code: type: integer example: 404 type: type: string example: ModelNotFoundException 422: description: '' content: application/json: schema: type: object example: message: 'The given data was invalid.' errors: position: - 'The position field must be at least 0.' code: 422 type: ValidationException properties: message: type: string example: 'The given data was invalid.' errors: type: object properties: position: type: array example: - 'The position field must be at least 0.' items: type: string code: type: integer example: 422 type: type: string example: ValidationException tags: - Contents requestBody: required: true content: multipart/form-data: schema: type: object properties: position: type: integer description: 'Deve conter um número superior ou igual a 0.' example: 27 required: - position parameters: - in: path name: uuid description: 'Uuid do conteúdo.' example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b required: true schema: type: string /api/v1/customer/faq: get: summary: 'Get all faq' operationId: getAllFaq description: "Perguntas agrupadas por tema, no formato do app (`api/institutional/get-faq.ts`), sem o envelope `data`:\nsó temas ativos, na ordem do painel, cada um com as suas perguntas ativas, na ordem do painel.\nTemas sem perguntas ativas não aparecem. `answer` é texto simples (sem HTML)." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: array items: type: object properties: topic: type: string example: 'Conta e acesso' items: type: array example: - question: 'Como altero minha senha?' answer: 'Em Minha conta > Meu perfil > Alterar senha. Informe a senha atual e crie uma nova seguindo as regras exibidas na tela.' - question: 'Posso entrar com Face ID ou Touch ID?' answer: 'Sim. Ative em Minha conta > Configurações.' items: type: object properties: question: type: string example: 'Como altero minha senha?' answer: type: string example: 'Em Minha conta > Meu perfil > Alterar senha. Informe a senha atual e crie uma nova seguindo as regras exibidas na tela.' example: - topic: 'Conta e acesso' items: - question: 'Como altero minha senha?' answer: 'Em Minha conta > Meu perfil > Alterar senha. Informe a senha atual e crie uma nova seguindo as regras exibidas na tela.' - question: 'Posso entrar com Face ID ou Touch ID?' answer: 'Sim. Ative em Minha conta > Configurações.' - topic: Conteúdos items: - question: 'Os conteúdos têm prazo ou certificado?' answer: 'Não. A Central de conteúdos é de consumo livre: sem trilha obrigatória, carga horária ou certificado.' tags: - Faq security: [] '/api/v1/customer/faq/{faq_uuid}': get: summary: 'Get faq' operationId: getFaq description: 'Uma pergunta ativa (de um tema ativo). `name` = pergunta, `text` = resposta.' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: data: uuid: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f name: 'Como altero minha senha?' text: 'Em Minha conta > Meu perfil > Alterar senha.' order: 1 is_active: true created_at: '2026-10-22T10:00:00+00:00' updated_at: '2026-10-22T10:00:00+00:00' deleted_at: null topic: 'Conta e acesso' properties: data: type: object properties: uuid: type: string example: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f name: type: string example: 'Como altero minha senha?' text: type: string example: 'Em Minha conta > Meu perfil > Alterar senha.' order: type: integer example: 1 is_active: type: boolean example: true created_at: type: string example: '2026-10-22T10:00:00+00:00' updated_at: type: string example: '2026-10-22T10:00:00+00:00' deleted_at: type: string example: null nullable: true topic: type: string example: 'Conta e acesso' 404: description: '' content: application/json: schema: type: object example: message: 'Sorry, the page you are looking for could not be found.' code: 404 type: NotFoundHttpException properties: message: type: string example: 'Sorry, the page you are looking for could not be found.' code: type: integer example: 404 type: type: string example: NotFoundHttpException tags: - Faq security: [] parameters: - in: path name: faq_uuid description: '' example: 1 required: true schema: type: integer /api/v1/customer/home: get: summary: 'Get home' operationId: getHome description: "Tudo o que a Home mostra, em uma chamada (BE-08).\n- `greeting_name`: tratamento e primeiro nome do cliente (ex.: \"Dra. Mariana\");\n- `counts`: conteúdos publicados por tipo;\n- `tv`: `is_live` quando há item da programação da TV no ar agora; `viewers`: clientes assistindo a TV (sinal nos últimos 60 s, ver `GET tv/live`);\n- `continue`: o último conteúdo com progresso incompleto, ou `null`." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: greeting_name: 'Dra. Mariana' counts: ebook: 18 podcast: 12 video: 13 webinar: 9 tv: is_live: true viewers: 42 continue: null properties: greeting_name: type: string example: 'Dra. Mariana' counts: type: object properties: ebook: type: integer example: 18 podcast: type: integer example: 12 video: type: integer example: 13 webinar: type: integer example: 9 tv: type: object properties: is_live: type: boolean example: true viewers: type: integer example: 42 continue: type: string example: null nullable: true 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException tags: - Home /api/v1/customer/how-it-works: get: summary: 'Get all how it works' operationId: getAllHowItWorks description: '' parameters: - in: query name: limit description: 'Max: `100`' example: 20 required: false schema: type: integer description: 'Max: `100`' example: 20 - in: query name: page description: '' example: 1 required: false schema: type: integer description: '' example: 1 - in: query name: orderBy description: 'Available fields: `id` `name` `order` `created_at` `updated_at`' example: 'id:asc|created_at:desc' required: false schema: type: string description: 'Available fields: `id` `name` `order` `created_at` `updated_at`' example: 'id:asc|created_at:desc' - in: query name: search description: 'Available fields: `uuid` `name`' example: architecto required: false schema: type: string description: 'Available fields: `uuid` `name`' example: architecto - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: data: - uuid: 08d15af5-f546-4454-b504-c768a3a9b595 name: 'Et ut debitis ullam qui architecto minima fuga.' text: 'Beatae expedita ducimus sed rerum accusamus dolor iste dolore. Dolor ducimus natus cupiditate ut. Voluptates omnis pariatur ut earum. Sed labore rerum occaecati qui iusto.' order: 3 is_active: true created_at: '2026-10-22T15:15:55-03:00' updated_at: '2026-10-22T15:15:55-03:00' deleted_at: null links: first: 'http://homologacao.clickweb.com.br:8520/api/v1/customer/how-it-works?limit=20&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&page=1' last: 'http://homologacao.clickweb.com.br:8520/api/v1/customer/how-it-works?limit=20&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&page=1' prev: null next: null meta: current_page: 1 from: 1 last_page: 1 links: - url: null label: '« Anterior' page: null active: false - url: 'http://homologacao.clickweb.com.br:8520/api/v1/customer/how-it-works?limit=20&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&page=1' label: '1' page: 1 active: true - url: null label: 'Próxima »' page: null active: false path: 'http://homologacao.clickweb.com.br:8520/api/v1/customer/how-it-works' per_page: 20 to: 1 total: 1 properties: data: type: array example: - uuid: 08d15af5-f546-4454-b504-c768a3a9b595 name: 'Et ut debitis ullam qui architecto minima fuga.' text: 'Beatae expedita ducimus sed rerum accusamus dolor iste dolore. Dolor ducimus natus cupiditate ut. Voluptates omnis pariatur ut earum. Sed labore rerum occaecati qui iusto.' order: 3 is_active: true created_at: '2026-10-22T15:15:55-03:00' updated_at: '2026-10-22T15:15:55-03:00' deleted_at: null items: type: object properties: uuid: type: string example: 08d15af5-f546-4454-b504-c768a3a9b595 name: type: string example: 'Et ut debitis ullam qui architecto minima fuga.' text: type: string example: 'Beatae expedita ducimus sed rerum accusamus dolor iste dolore. Dolor ducimus natus cupiditate ut. Voluptates omnis pariatur ut earum. Sed labore rerum occaecati qui iusto.' order: type: integer example: 3 is_active: type: boolean example: true created_at: type: string example: '2026-10-22T15:15:55-03:00' updated_at: type: string example: '2026-10-22T15:15:55-03:00' deleted_at: type: string example: null nullable: true links: type: object properties: first: type: string example: 'http://homologacao.clickweb.com.br:8520/api/v1/customer/how-it-works?limit=20&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&page=1' last: type: string example: 'http://homologacao.clickweb.com.br:8520/api/v1/customer/how-it-works?limit=20&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&page=1' prev: type: string example: null nullable: true next: type: string example: null nullable: true meta: type: object properties: current_page: type: integer example: 1 from: type: integer example: 1 last_page: type: integer example: 1 links: type: array example: - url: null label: '« Anterior' page: null active: false - url: 'http://homologacao.clickweb.com.br:8520/api/v1/customer/how-it-works?limit=20&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&page=1' label: '1' page: 1 active: true - url: null label: 'Próxima »' page: null active: false items: type: object properties: url: type: string example: null nullable: true label: type: string example: '« Anterior' page: type: string example: null nullable: true active: type: boolean example: false path: type: string example: 'http://homologacao.clickweb.com.br:8520/api/v1/customer/how-it-works' per_page: type: integer example: 20 to: type: integer example: 1 total: type: integer example: 1 tags: - 'How It Works' security: [] '/api/v1/customer/how-it-works/{how_it_works_uuid}': get: summary: 'Get how it works' operationId: getHowItWorks description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 404: description: '' content: application/json: schema: type: object example: message: 'Registro não encontrado.' code: 404 type: Illuminate\Database\Eloquent\ModelNotFoundException properties: message: type: string example: 'Registro não encontrado.' code: type: integer example: 404 type: type: string example: Illuminate\Database\Eloquent\ModelNotFoundException tags: - 'How It Works' security: [] parameters: - in: path name: how_it_works_uuid description: '' example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed required: true schema: type: string /api/v1/customer/institutional/about-app: get: summary: 'About app' operationId: aboutApp description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: data: uuid: 1d373506-86df-4705-8f0c-21e455c31930 name: Sobre text: '

Velit aut quis molestiae vitae. Et omnis minima fuga at mollitia est occaecati rerum.

Omnis quia enim ut ad tempore ad facilis. Qui officia eos in. Error rem sunt quidem blanditiis provident vel. Sunt dicta recusandae aut odit.

Consectetur magnam eveniet nobis soluta doloremque repellat repudiandae. Fuga perferendis impedit dolor vel officiis iste. Quia porro veritatis doloremque laudantium. Optio est et facilis voluptas.

Qui occaecati sit illum ut repudiandae ut delectus voluptas. Officia in tempore eum nihil numquam ut fugit. Et illo sit et illo eius.

Nisi cupiditate quisquam eveniet eos non. Ducimus corrupti doloribus sunt excepturi error autem. Omnis eum est repellendus et incidunt occaecati est.

Possimus porro et tempora in iure eaque est. Ut adipisci quibusdam est. Eos est facilis quaerat quia in consequatur.

Est illum impedit repellendus aperiam aliquid. At nostrum accusamus dignissimos maiores vitae. Recusandae hic itaque nesciunt quibusdam.

' file: null file_sizes: null file_mobile: null file_mobile_sizes: null video: null created_at: '2026-10-22T15:15:53-03:00' updated_at: '2026-10-22T15:15:53-03:00' deleted_at: null media: [] properties: data: type: object properties: uuid: type: string example: 1d373506-86df-4705-8f0c-21e455c31930 name: type: string example: Sobre text: type: string example: '

Velit aut quis molestiae vitae. Et omnis minima fuga at mollitia est occaecati rerum.

Omnis quia enim ut ad tempore ad facilis. Qui officia eos in. Error rem sunt quidem blanditiis provident vel. Sunt dicta recusandae aut odit.

Consectetur magnam eveniet nobis soluta doloremque repellat repudiandae. Fuga perferendis impedit dolor vel officiis iste. Quia porro veritatis doloremque laudantium. Optio est et facilis voluptas.

Qui occaecati sit illum ut repudiandae ut delectus voluptas. Officia in tempore eum nihil numquam ut fugit. Et illo sit et illo eius.

Nisi cupiditate quisquam eveniet eos non. Ducimus corrupti doloribus sunt excepturi error autem. Omnis eum est repellendus et incidunt occaecati est.

Possimus porro et tempora in iure eaque est. Ut adipisci quibusdam est. Eos est facilis quaerat quia in consequatur.

Est illum impedit repellendus aperiam aliquid. At nostrum accusamus dignissimos maiores vitae. Recusandae hic itaque nesciunt quibusdam.

' file: type: string example: null nullable: true file_sizes: type: string example: null nullable: true file_mobile: type: string example: null nullable: true file_mobile_sizes: type: string example: null nullable: true video: type: string example: null nullable: true created_at: type: string example: '2026-10-22T15:15:53-03:00' updated_at: type: string example: '2026-10-22T15:15:53-03:00' deleted_at: type: string example: null nullable: true media: type: array example: [] tags: - Institutional security: [] /api/v1/customer/institutional/company-app: get: summary: 'About company' operationId: aboutCompany description: 'Formato do painel (registro com `sections` e banners em `media`). O app usa `GET pages/sobre`.' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: data: uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: 'Sobre a Unity Health' file: null file_sizes: null file_mobile: null file_mobile_sizes: null video: null created_at: '2026-10-22T10:00:00+00:00' updated_at: '2026-10-22T10:00:00+00:00' deleted_at: null media: [] sections: - uuid: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f title: 'Conhecimento, gestão e compras em um só lugar' body: 'A Unity Health conecta profissionais e instituições de saúde a conteúdos relevantes da área médica.' order: 1 created_at: '2026-10-22T10:00:00+00:00' updated_at: '2026-10-22T10:00:00+00:00' deleted_at: null properties: data: type: object properties: uuid: type: string example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: type: string example: 'Sobre a Unity Health' file: type: string example: null nullable: true file_sizes: type: string example: null nullable: true file_mobile: type: string example: null nullable: true file_mobile_sizes: type: string example: null nullable: true video: type: string example: null nullable: true created_at: type: string example: '2026-10-22T10:00:00+00:00' updated_at: type: string example: '2026-10-22T10:00:00+00:00' deleted_at: type: string example: null nullable: true media: type: array example: [] sections: type: array example: - uuid: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f title: 'Conhecimento, gestão e compras em um só lugar' body: 'A Unity Health conecta profissionais e instituições de saúde a conteúdos relevantes da área médica.' order: 1 created_at: '2026-10-22T10:00:00+00:00' updated_at: '2026-10-22T10:00:00+00:00' deleted_at: null items: type: object properties: uuid: type: string example: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f title: type: string example: 'Conhecimento, gestão e compras em um só lugar' body: type: string example: 'A Unity Health conecta profissionais e instituições de saúde a conteúdos relevantes da área médica.' order: type: integer example: 1 created_at: type: string example: '2026-10-22T10:00:00+00:00' updated_at: type: string example: '2026-10-22T10:00:00+00:00' deleted_at: type: string example: null nullable: true tags: - Institutional security: [] /api/v1/customer/institutional/policy-cookies: get: summary: 'Policy Cookies' operationId: policyCookies description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: data: uuid: 8e11a056-6b43-43af-b945-f5cd6ce6a556 name: 'Política de cookies' text: '

Política de cookies

Ducimus quaerat eos aut quis aspernatur facere id vel. Laboriosam dolorem sequi ad vel impedit voluptatibus porro. Iste ullam et labore sed eos aut nulla. Ut voluptatem rerum voluptas quis dolor.

Esse harum ut officia nihil quaerat aspernatur. Ut eum unde rerum aliquid non enim facilis. Dolor debitis recusandae aperiam enim nostrum sint. Et eum sint ut voluptatem perspiciatis aut.

Deleniti atque similique sint. Rerum deserunt molestiae ducimus qui illum deleniti. Ipsam aut fugiat doloremque magni eveniet doloribus facere. Nulla sed eum optio modi.

Ratione doloremque modi necessitatibus non. Et sapiente quo dolore quidem totam sapiente quia. Debitis dolorum minus et. Expedita qui recusandae explicabo aliquid sapiente dolorum molestiae.

Nemo minus qui accusantium. Ea quos mollitia est cumque temporibus fugit. Maiores labore doloribus ut voluptatem. Est voluptatum magnam nemo repellat. Magnam voluptatem consequatur quae dolorem numquam.

Qui molestiae delectus illo in voluptatem. Quibusdam ut non numquam ratione sit dolore. Et ducimus ipsum vero et. Voluptatibus nam cupiditate reprehenderit et error molestiae.

' created_at: '2026-10-22T15:15:53-03:00' updated_at: '2026-10-22T15:15:53-03:00' deleted_at: null properties: data: type: object properties: uuid: type: string example: 8e11a056-6b43-43af-b945-f5cd6ce6a556 name: type: string example: 'Política de cookies' text: type: string example: '

Política de cookies

Ducimus quaerat eos aut quis aspernatur facere id vel. Laboriosam dolorem sequi ad vel impedit voluptatibus porro. Iste ullam et labore sed eos aut nulla. Ut voluptatem rerum voluptas quis dolor.

Esse harum ut officia nihil quaerat aspernatur. Ut eum unde rerum aliquid non enim facilis. Dolor debitis recusandae aperiam enim nostrum sint. Et eum sint ut voluptatem perspiciatis aut.

Deleniti atque similique sint. Rerum deserunt molestiae ducimus qui illum deleniti. Ipsam aut fugiat doloremque magni eveniet doloribus facere. Nulla sed eum optio modi.

Ratione doloremque modi necessitatibus non. Et sapiente quo dolore quidem totam sapiente quia. Debitis dolorum minus et. Expedita qui recusandae explicabo aliquid sapiente dolorum molestiae.

Nemo minus qui accusantium. Ea quos mollitia est cumque temporibus fugit. Maiores labore doloribus ut voluptatem. Est voluptatum magnam nemo repellat. Magnam voluptatem consequatur quae dolorem numquam.

Qui molestiae delectus illo in voluptatem. Quibusdam ut non numquam ratione sit dolore. Et ducimus ipsum vero et. Voluptatibus nam cupiditate reprehenderit et error molestiae.

' created_at: type: string example: '2026-10-22T15:15:53-03:00' updated_at: type: string example: '2026-10-22T15:15:53-03:00' deleted_at: type: string example: null nullable: true tags: - Institutional security: [] /api/v1/customer/institutional/privacy-policy: get: summary: 'Privacy policy' operationId: privacyPolicy description: 'Título e texto (HTML do editor do Admin). O app usa `GET pages/privacidade`, com o texto dividido em seções.' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: data: uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: 'Política de privacidade' text: '

1. Exemplo

Texto.

' created_at: '2026-10-22T10:00:00+00:00' updated_at: '2026-10-22T10:00:00+00:00' deleted_at: null properties: data: type: object properties: uuid: type: string example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: type: string example: 'Política de privacidade' text: type: string example: '

1. Exemplo

Texto.

' created_at: type: string example: '2026-10-22T10:00:00+00:00' updated_at: type: string example: '2026-10-22T10:00:00+00:00' deleted_at: type: string example: null nullable: true tags: - Institutional security: [] /api/v1/customer/institutional/terms-of-use: get: summary: 'Terms of use' operationId: termsOfUse description: 'Título e texto (HTML do editor do Admin). O app usa `GET pages/termos`, com o texto dividido em seções.' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: data: uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: 'Termos de uso' text: '

1. Exemplo

Texto.

' created_at: '2026-10-22T10:00:00+00:00' updated_at: '2026-10-22T10:00:00+00:00' deleted_at: null properties: data: type: object properties: uuid: type: string example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: type: string example: 'Termos de uso' text: type: string example: '

1. Exemplo

Texto.

' created_at: type: string example: '2026-10-22T10:00:00+00:00' updated_at: type: string example: '2026-10-22T10:00:00+00:00' deleted_at: type: string example: null nullable: true tags: - Institutional security: [] '/api/v1/customer/pages/{slug}': get: summary: 'Get page' operationId: getPage description: "`slug`: `sobre` (painel › Institucional › Sobre a empresa), `privacidade` (Política de privacidade) ou `termos` (Termos de uso).\n\n- `title`: título da página;\n- `sections`: seções com `body` em texto simples, sem HTML. No `sobre`, as seções do painel; em `privacidade` e\n `termos`, o texto do editor dividido a cada título (h1 a h6 ou parágrafo todo em negrito);\n- só em `privacidade` e `termos`: `html` (o texto formatado, já limpo pela API);\n- `updated_at`: data da última alteração da página;\n- só no `sobre`: `social_links` (redes ativas, na ordem do painel; `url` vazio = \"link a definir\") e `video_url` (ou `null`)." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: oneOf: - description: '' type: object example: title: 'Política de privacidade' sections: - title: '1. Quais dados coletamos' body: 'Dados de cadastro (nome, e-mail, celular, CPF, cargo e instituição) e dados de uso do app, como conteúdos acessados, itens salvos e preferências.' - title: '2. Para que usamos' body: 'Para autenticar o seu acesso e recomendar conteúdos.' html: '

1. Quais dados coletamos

Dados de cadastro...

' updated_at: '2026-10-22T10:00:00+00:00' properties: title: type: string example: 'Política de privacidade' sections: type: array example: - title: '1. Quais dados coletamos' body: 'Dados de cadastro (nome, e-mail, celular, CPF, cargo e instituição) e dados de uso do app, como conteúdos acessados, itens salvos e preferências.' - title: '2. Para que usamos' body: 'Para autenticar o seu acesso e recomendar conteúdos.' items: type: object properties: title: type: string example: '1. Quais dados coletamos' body: type: string example: 'Dados de cadastro (nome, e-mail, celular, CPF, cargo e instituição) e dados de uso do app, como conteúdos acessados, itens salvos e preferências.' html: type: string example: '

1. Quais dados coletamos

Dados de cadastro...

' updated_at: type: string example: '2026-10-22T10:00:00+00:00' - description: Sobre type: object example: title: 'Sobre a Unity Health' sections: - title: 'Conhecimento, gestão e compras em um só lugar' body: 'A Unity Health conecta profissionais e instituições de saúde a conteúdos relevantes da área médica, transmissões da TV Unity e às comissões das compras coletivas, tudo em um só app.' social_links: - network: instagram url: 'https://www.instagram.com/unityhealth' - network: facebook url: '' - network: linkedin url: '' - network: youtube url: '' video_url: null updated_at: '2026-10-22T10:00:00+00:00' properties: title: type: string example: 'Sobre a Unity Health' sections: type: array example: - title: 'Conhecimento, gestão e compras em um só lugar' body: 'A Unity Health conecta profissionais e instituições de saúde a conteúdos relevantes da área médica, transmissões da TV Unity e às comissões das compras coletivas, tudo em um só app.' items: type: object properties: title: type: string example: 'Conhecimento, gestão e compras em um só lugar' body: type: string example: 'A Unity Health conecta profissionais e instituições de saúde a conteúdos relevantes da área médica, transmissões da TV Unity e às comissões das compras coletivas, tudo em um só app.' social_links: type: array example: - network: instagram url: 'https://www.instagram.com/unityhealth' - network: facebook url: '' - network: linkedin url: '' - network: youtube url: '' items: type: object properties: network: type: string example: instagram url: type: string example: 'https://www.instagram.com/unityhealth' video_url: type: string example: null nullable: true updated_at: type: string example: '2026-10-22T10:00:00+00:00' 404: description: '' content: application/json: schema: type: object example: message: 'Sorry, the page you are looking for could not be found.' code: 404 type: NotFoundHttpException properties: message: type: string example: 'Sorry, the page you are looking for could not be found.' code: type: integer example: 404 type: type: string example: NotFoundHttpException tags: - Institutional security: [] parameters: - in: path name: slug description: 'Available values: `sobre` `privacidade` `termos`' example: privacidade required: true schema: type: string /api/v1/customer/webinars/live: get: summary: 'Get live webinar' operationId: getLiveWebinar description: "O webinar que está ao vivo agora (o último iniciado), ou `null`.\n`content.media_url` é a URL da transmissão; `viewers` conta quem mandou sinal nos últimos 60 s." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: content: uuid: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b type: webinar title: 'Otimização de Margem em Centros Cirúrgicos' cover_url: 'https://cdn.exemplo.com/capa.jpg' category: uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: 'Gestão Hospitalar' author: name: 'Dra. Helena Vasconcellos' role: 'VP de Operações Clínicas' series: null duration_seconds: null pages: null is_live: true published_at: '2026-10-22T17:00:00Z' saved: false progress: null description: 'Painel ao vivo.' media_url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8' media_expires_at: null liked: false likes_count: 12 viewers: 540 moderator: name: 'Dra. Helena Vasconcellos' role: 'VP de Operações Clínicas' questions_open: true starts_at: '2026-10-22T17:00:00Z' ends_at: '2026-10-22T18:00:00Z' started_at: '2026-10-22T17:01:00Z' properties: content: type: object properties: uuid: type: string example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b type: type: string example: webinar title: type: string example: 'Otimização de Margem em Centros Cirúrgicos' cover_url: type: string example: 'https://cdn.exemplo.com/capa.jpg' category: type: object properties: uuid: type: string example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: type: string example: 'Gestão Hospitalar' author: type: object properties: name: type: string example: 'Dra. Helena Vasconcellos' role: type: string example: 'VP de Operações Clínicas' series: type: string example: null nullable: true duration_seconds: type: string example: null nullable: true pages: type: string example: null nullable: true is_live: type: boolean example: true published_at: type: string example: '2026-10-22T17:00:00Z' saved: type: boolean example: false progress: type: string example: null nullable: true description: type: string example: 'Painel ao vivo.' media_url: type: string example: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8' media_expires_at: type: string example: null nullable: true liked: type: boolean example: false likes_count: type: integer example: 12 viewers: type: integer example: 540 moderator: type: object properties: name: type: string example: 'Dra. Helena Vasconcellos' role: type: string example: 'VP de Operações Clínicas' questions_open: type: boolean example: true starts_at: type: string example: '2026-10-22T17:00:00Z' ends_at: type: string example: '2026-10-22T18:00:00Z' started_at: type: string example: '2026-10-22T17:01:00Z' 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException tags: - 'Live Webinars' /api/v1/customer/webinars/schedule: get: summary: 'Get webinars schedule' operationId: getWebinarsSchedule description: "Agenda dos webinars ao vivo: os que estão no ar e os agendados, do mais próximo ao mais distante (ao vivo primeiro).\n`content` é o card do webinar (o mesmo do catálogo)." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: array items: type: object properties: status: type: string example: live starts_at: type: string example: '2026-10-22T17:00:00Z' ends_at: type: string example: '2026-10-22T18:00:00Z' started_at: type: string example: '2026-10-22T17:01:00Z' moderator: type: object properties: name: type: string example: 'Dra. Helena Vasconcellos' role: type: string example: 'VP de Operações Clínicas' questions_open: type: boolean example: true content: type: object properties: uuid: type: string example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b type: type: string example: webinar title: type: string example: 'Otimização de Margem em Centros Cirúrgicos' cover_url: type: string example: 'https://cdn.exemplo.com/capa.jpg' category: type: object properties: uuid: type: string example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: type: string example: 'Gestão Hospitalar' author: type: object properties: name: type: string example: 'Dra. Helena Vasconcellos' role: type: string example: 'VP de Operações Clínicas' series: type: string example: null nullable: true duration_seconds: type: string example: null nullable: true pages: type: string example: null nullable: true is_live: type: boolean example: true published_at: type: string example: '2026-10-22T17:00:00Z' saved: type: boolean example: false progress: type: string example: null nullable: true example: - status: live starts_at: '2026-10-22T17:00:00Z' ends_at: '2026-10-22T18:00:00Z' started_at: '2026-10-22T17:01:00Z' moderator: name: 'Dra. Helena Vasconcellos' role: 'VP de Operações Clínicas' questions_open: true content: uuid: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b type: webinar title: 'Otimização de Margem em Centros Cirúrgicos' cover_url: 'https://cdn.exemplo.com/capa.jpg' category: uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: 'Gestão Hospitalar' author: name: 'Dra. Helena Vasconcellos' role: 'VP de Operações Clínicas' series: null duration_seconds: null pages: null is_live: true published_at: '2026-10-22T17:00:00Z' saved: false progress: null 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException tags: - 'Live Webinars' '/api/v1/customer/webinars/{uuid}/heartbeat': post: summary: 'Webinar heartbeat' operationId: webinarHeartbeat description: "Sinal de \"assistindo\" do webinar ao vivo: o app manda a cada 30 s enquanto a transmissão está aberta.\nDevolve a audiência atual. 404 se o webinar não estiver ao vivo." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: viewers: 540 properties: viewers: type: integer example: 540 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException 404: description: '' content: application/json: schema: type: object example: message: 'Record not found.' code: 404 type: ModelNotFoundException properties: message: type: string example: 'Record not found.' code: type: integer example: 404 type: type: string example: ModelNotFoundException tags: - 'Live Webinars' parameters: - in: path name: uuid description: 'Uuid do webinar (conteúdo).' example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b required: true schema: type: string '/api/v1/customer/webinars/{uuid}/questions': get: summary: 'Get questions' operationId: getQuestions description: "Perguntas aprovadas (ou respondidas) de todos, mais as do próprio cliente em qualquer situação (`is_mine`),\nem ordem de entrada na lista (aprovação ou envio), as mais novas por último.\n`after` (uuid da última pergunta que o app já mostra) traz só as que entraram depois dela." parameters: - in: query name: after description: 'Uuid da última pergunta já exibida.' example: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a required: false schema: type: string description: 'Uuid da última pergunta já exibida.' example: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: array items: type: object properties: uuid: type: string example: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a author: type: string example: 'Dr. Marcos Villela' institution: type: string example: null nullable: true text: type: string example: 'Qual métrica direta teve maior impacto na redução de ociosidade das salas robóticas no Q3?' status: type: string example: approved is_mine: type: boolean example: false answered: type: boolean example: false created_at: type: string example: '2026-10-15T17:22:00Z' example: - uuid: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a author: 'Dr. Marcos Villela' institution: null text: 'Qual métrica direta teve maior impacto na redução de ociosidade das salas robóticas no Q3?' status: approved is_mine: false answered: false created_at: '2026-10-15T17:22:00Z' 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException 404: description: '' content: application/json: schema: type: object example: message: 'Record not found.' code: 404 type: ModelNotFoundException properties: message: type: string example: 'Record not found.' code: type: integer example: 404 type: type: string example: ModelNotFoundException tags: - 'Live Webinars' post: summary: 'Send question' operationId: sendQuestion description: "Envia uma pergunta ao moderador do webinar ao vivo. Ela só aparece para todos depois de aprovada.\nLimites: até 500 caracteres; uma pergunta a cada 30 s por cliente (429). Com as perguntas fechadas ou o webinar fora do ar, 422." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 201: description: '' content: application/json: schema: type: object example: uuid: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a status: pending properties: uuid: type: string example: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a status: type: string example: pending 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException 404: description: '' content: application/json: schema: type: object example: message: 'Record not found.' code: 404 type: ModelNotFoundException properties: message: type: string example: 'Record not found.' code: type: integer example: 404 type: type: string example: ModelNotFoundException 422: description: '' content: application/json: schema: type: object example: message: 'A pergunta pode ter no máximo 500 caracteres.' errors: text: - 'A pergunta pode ter no máximo 500 caracteres.' code: 422 type: ValidationException properties: message: type: string example: 'A pergunta pode ter no máximo 500 caracteres.' errors: type: object properties: text: type: array example: - 'A pergunta pode ter no máximo 500 caracteres.' items: type: string code: type: integer example: 422 type: type: string example: ValidationException 429: description: '' content: application/json: schema: type: object example: message: 'Aguarde 30 segundos para enviar outra pergunta.' code: 429 type: TooManyQuestions properties: message: type: string example: 'Aguarde 30 segundos para enviar outra pergunta.' code: type: integer example: 429 type: type: string example: TooManyQuestions tags: - 'Live Webinars' requestBody: required: false content: multipart/form-data: schema: type: object properties: text: type: string description: '' example: null parameters: - in: path name: uuid description: 'Uuid do webinar (conteúdo).' example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b required: true schema: type: string /api/v1/customer/me: get: summary: 'Get me' operationId: getMe description: 'Dados do usuário logado (header, Minha conta e Editar dados). `cpf` só com os números; `phone` em E.164.' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: 'Mariana Vasconcellos' treatment: Dra. email: mariana@unityhealth.com.br phone: '+5511999990000' cpf: '12345678909' job_title: 'Diretora Clínica' institution: 'Hospital Sírio-Libanês' avatar_url: 'http://localhost:3099/storage/avatar/9b1f..._a1b2.jpg' password_changed_at: '2026-07-10T12:00:00Z' created_at: '2026-01-10T12:00:00Z' updated_at: '2026-10-15T12:00:00Z' settings: notifications_enabled: true properties: uuid: type: string example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: type: string example: 'Mariana Vasconcellos' treatment: type: string example: Dra. email: type: string example: mariana@unityhealth.com.br phone: type: string example: '+5511999990000' cpf: type: string example: '12345678909' job_title: type: string example: 'Diretora Clínica' institution: type: string example: 'Hospital Sírio-Libanês' avatar_url: type: string example: 'http://localhost:3099/storage/avatar/9b1f..._a1b2.jpg' password_changed_at: type: string example: '2026-07-10T12:00:00Z' created_at: type: string example: '2026-01-10T12:00:00Z' updated_at: type: string example: '2026-10-15T12:00:00Z' settings: type: object properties: notifications_enabled: type: boolean example: true 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException tags: - 'Minha conta' put: summary: 'Update me' operationId: updateMe description: "Atualiza os dados do perfil (BE-16). CPF com dígitos verificadores e único; e-mail único; celular em E.164\n(sem o `+`, 10 ou 11 dígitos são tratados como Brasil e ganham `+55`). Erros de validação: 422 com `errors` por campo." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: 'Mariana Vasconcellos' treatment: Dra. email: mariana@unityhealth.com.br phone: '+5511999990000' cpf: '12345678909' job_title: 'Diretora Clínica' institution: 'Hospital Sírio-Libanês' avatar_url: null password_changed_at: null created_at: '2026-01-10T12:00:00Z' updated_at: '2026-10-22T12:00:00Z' settings: notifications_enabled: true properties: uuid: type: string example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e name: type: string example: 'Mariana Vasconcellos' treatment: type: string example: Dra. email: type: string example: mariana@unityhealth.com.br phone: type: string example: '+5511999990000' cpf: type: string example: '12345678909' job_title: type: string example: 'Diretora Clínica' institution: type: string example: 'Hospital Sírio-Libanês' avatar_url: type: string example: null nullable: true password_changed_at: type: string example: null nullable: true created_at: type: string example: '2026-01-10T12:00:00Z' updated_at: type: string example: '2026-10-22T12:00:00Z' settings: type: object properties: notifications_enabled: type: boolean example: true 422: description: '' content: application/json: schema: type: object example: message: 'O e-mail informado já está em uso.' errors: email: - 'O e-mail informado já está em uso.' properties: message: type: string example: 'O e-mail informado já está em uso.' errors: type: object properties: email: type: array example: - 'O e-mail informado já está em uso.' items: type: string tags: - 'Minha conta' requestBody: required: true content: multipart/form-data: schema: type: object properties: name: type: string description: 'Deve conter no mínimo 3 caracteres. Não pode conter mais de 191 caracteres.' example: b email: type: string description: 'Deve ser um endereço de email válido. Não pode conter mais de 191 caracteres.' example: zbailey@example.net phone: type: string description: 'Must match the regex /^\+[1-9]\d{9,14}$/.' example: '+3642559314' cpf: type: string description: '' example: architecto job_title: type: string description: 'Não pode conter mais de 191 caracteres.' example: 'n' nullable: true institution: type: string description: 'Não pode conter mais de 191 caracteres.' example: g nullable: true treatment: type: string description: 'Não pode conter mais de 20 caracteres.' example: zmiyvdljnikhwayk nullable: true required: - name - email - phone - cpf delete: summary: 'Delete me' operationId: deleteMe description: "Exclui a conta e os dados pessoais (BE-18, LGPD): apaga curtidas, salvos, progresso, audiência e o histórico de\natividades; anonimiza nome, e-mail, celular, CPF, cargo, instituição e foto; revoga todas as sessões e faz o\nsoft delete. As perguntas feitas nos webinars ficam ligadas ao registro anonimizado (\"Usuário excluído\").\nResponde 204." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 204: description: '' content: application/json: schema: type: object example: { } properties: { } 422: description: '' content: application/json: schema: type: object example: message: 'Confirme que entende que a exclusão é definitiva.' errors: confirm: - 'Confirme que entende que a exclusão é definitiva.' properties: message: type: string example: 'Confirme que entende que a exclusão é definitiva.' errors: type: object properties: confirm: type: array example: - 'Confirme que entende que a exclusão é definitiva.' items: type: string tags: - 'Minha conta' requestBody: required: true content: multipart/form-data: schema: type: object properties: reason: type: string description: '' example: null nullable: true confirm: type: boolean description: 'Must be accepted.' example: true required: - confirm /api/v1/customer/me/avatar: post: summary: 'Update avatar' operationId: updateAvatar description: "Troca a foto (BE-16). multipart/form-data com o campo `avatar` (jpg ou png, até 5 MB). O servidor recorta em\nquadrado de 256 px." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: avatar_url: 'http://localhost:3099/storage/avatar/9b1f..._a1b2.jpg' properties: avatar_url: type: string example: 'http://localhost:3099/storage/avatar/9b1f..._a1b2.jpg' tags: - 'Minha conta' requestBody: required: true content: multipart/form-data: schema: type: object properties: avatar: type: string format: binary description: 'Must be a file. Não pode conter um arquivo com mais de 5120 kilobytes.' required: - avatar /api/v1/customer/me/password: put: summary: 'Update password' operationId: updatePassword description: "Troca a senha do usuário logado (BE-17). Regras: no mínimo 8 caracteres, uma maiúscula, um número e um símbolo.\nSenha atual errada: 422 no campo `current_password`. Encerra as sessões dos outros aparelhos (esta continua)." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: password_changed_at: '2026-10-15T13:40:00Z' properties: password_changed_at: type: string example: '2026-10-15T13:40:00Z' 422: description: '' content: application/json: schema: type: object example: message: 'A senha atual está incorreta.' errors: current_password: - 'A senha atual está incorreta.' properties: message: type: string example: 'A senha atual está incorreta.' errors: type: object properties: current_password: type: array example: - 'A senha atual está incorreta.' items: type: string tags: - 'Minha conta' requestBody: required: true content: multipart/form-data: schema: type: object properties: current_password: type: string description: '' example: architecto password: type: string description: 'Must match the regex /[A-Z]/. Must match the regex /[0-9]/. Must match the regex /[^A-Za-z0-9]/. Deve conter no mínimo 8 caracteres. Não pode conter mais de 191 caracteres.' example: ']|{+-0pBNvYg' password_confirmation: type: string description: '' example: architecto required: - current_password - password - password_confirmation /api/v1/customer/me/settings: put: summary: 'Update settings' operationId: updateSettings description: 'Liga ou desliga as notificações (BE-19). Fica em `notify_general` do cliente (padrão da base).' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: notifications_enabled: true properties: notifications_enabled: type: boolean example: true tags: - 'Minha conta' requestBody: required: true content: multipart/form-data: schema: type: object properties: notifications_enabled: type: boolean description: '' example: false required: - notifications_enabled /api/v1/customer/devices: post: summary: 'Register device' operationId: registerDevice description: "Registra o aparelho para receber push (BE-19). Chame depois do login e sempre que o app abrir com a permissão\nde notificações concedida (o token pode mudar). O token é único: se outro usuário entrar no mesmo aparelho,\no token passa para ele. O envio respeita a chave Notificações (`PUT me/settings`). Responde 204." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 204: description: '' content: application/json: schema: type: object example: { } properties: { } 422: description: '' content: application/json: schema: type: object example: message: 'The given data was invalid.' errors: expo_push_token: - 'O token do aparelho é inválido.' properties: message: type: string example: 'The given data was invalid.' errors: type: object properties: expo_push_token: type: array example: - 'O token do aparelho é inválido.' items: type: string tags: - 'Minha conta' requestBody: required: true content: multipart/form-data: schema: type: object properties: expo_push_token: type: string description: 'Não pode conter mais de 191 caracteres.' example: b platform: type: string description: '' example: architecto device_name: type: string description: 'Não pode conter mais de 191 caracteres.' example: 'n' nullable: true app_version: type: string description: 'Não pode conter mais de 20 caracteres.' example: gzmiyvdljnikhway nullable: true required: - expo_push_token - platform '/api/v1/customer/devices/{token}': delete: summary: 'Remove device' operationId: removeDevice description: "Remove o aparelho (logout ou notificações desligadas no aparelho). Só remove tokens do próprio usuário;\ntoken desconhecido também responde 204." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 204: description: '' content: application/json: schema: type: object example: { } properties: { } tags: - 'Minha conta' parameters: - in: path name: token description: 'Token do Expo Push (codificado na URL).' example: 'ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]' required: true schema: type: string /api/v1/customer/notifications: get: summary: 'Get all notifications' operationId: getAllNotifications description: '' parameters: - in: query name: limit description: 'Max: `100`' example: 20 required: false schema: type: integer description: 'Max: `100`' example: 20 - in: query name: page description: '' example: 1 required: false schema: type: integer description: '' example: 1 - in: query name: read description: 'Available values: `0` `1`' example: 1 required: false schema: type: integer description: 'Available values: `0` `1`' example: 1 - in: query name: deleted description: 'Available values: `0` `1`' example: 0 required: false schema: type: integer description: 'Available values: `0` `1`' example: 0 - in: query name: orderBy description: 'Available fields: `id` `name` `order` `created_at` `updated_at`' example: 'id:asc|created_at:desc' required: false schema: type: string description: 'Available fields: `id` `name` `order` `created_at` `updated_at`' example: 'id:asc|created_at:desc' - in: query name: search description: 'Available fields: `uuid` `text` `description`' example: architecto required: false schema: type: string description: 'Available fields: `uuid` `text` `description`' example: architecto - in: query name: send_date description: 'formato: `Y-m-d\TH:i:sP`' example: null required: false schema: type: array description: 'formato: `Y-m-d\TH:i:sP`' example: null items: type: string - in: query name: 'send_date.*' description: 'date formato: `Y-m-d\TH:i:sP`' example: '2019-07-29T00:00:00-03:00' required: false schema: type: string description: 'date formato: `Y-m-d\TH:i:sP`' example: '2019-07-29T00:00:00-03:00' - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 401: description: '' content: application/json: schema: type: object example: message: 'Não autorizado - Verifique a "Authorization" no cabeçalho da requisição.' code: 401 type: Illuminate\Auth\AuthenticationException properties: message: type: string example: 'Não autorizado - Verifique a "Authorization" no cabeçalho da requisição.' code: type: integer example: 401 type: type: string example: Illuminate\Auth\AuthenticationException tags: - Notifications '/api/v1/customer/notifications/read/{notification_uuid}': post: summary: 'read notification' operationId: readNotification description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: { } tags: - Notifications parameters: - in: path name: notification_uuid description: '' example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed required: true schema: type: string /api/v1/customer/notifications/destroy-all: delete: summary: 'Remove all notification' operationId: removeAllNotification description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: { } tags: - Notifications /api/v1/customer/notifications/read-all: delete: summary: 'read all notification' operationId: readAllNotification description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: { } tags: - Notifications '/api/v1/customer/notifications/{notification_uuid}': get: summary: 'Get notification' operationId: getNotification description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 401: description: '' content: application/json: schema: type: object example: message: 'Não autorizado - Verifique a "Authorization" no cabeçalho da requisição.' code: 401 type: Illuminate\Auth\AuthenticationException properties: message: type: string example: 'Não autorizado - Verifique a "Authorization" no cabeçalho da requisição.' code: type: integer example: 401 type: type: string example: Illuminate\Auth\AuthenticationException tags: - Notifications delete: summary: 'Remove notification' operationId: removeNotification description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: { } tags: - Notifications parameters: - in: path name: notification_uuid description: '' example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed required: true schema: type: string /api/v1/customer/onboarding: get: summary: 'Get all onboardings' operationId: getAllOnboardings description: 'Slides ativos, na ordem definida no painel. O app usa `GET app/screens`, que já traz os slides junto com a Splash e o Login.' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: data: - uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e kicker: 'Central de conteúdos' title: 'Aprenda no seu ritmo' text: 'E-books, podcasts, vídeos e webinars de consumo livre.' image_url: 'http://localhost/storage/onboarding/slide-2.jpg' icon: auto_stories order: 2 properties: data: type: array example: - uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e kicker: 'Central de conteúdos' title: 'Aprenda no seu ritmo' text: 'E-books, podcasts, vídeos e webinars de consumo livre.' image_url: 'http://localhost/storage/onboarding/slide-2.jpg' icon: auto_stories order: 2 items: type: object properties: uuid: type: string example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e kicker: type: string example: 'Central de conteúdos' title: type: string example: 'Aprenda no seu ritmo' text: type: string example: 'E-books, podcasts, vídeos e webinars de consumo livre.' image_url: type: string example: 'http://localhost/storage/onboarding/slide-2.jpg' icon: type: string example: auto_stories order: type: integer example: 2 tags: - OnBoarding security: [] /api/v1/customer/settings/general: get: summary: 'Get settings' operationId: getSettings description: "Contatos do suporte e links do app. `whatsapp_url` é o link pronto do botão \"Continuar por lá\" (WhatsApp do suporte\ncom a mensagem inicial), ou `null` quando o número ainda não foi cadastrado no painel (Configurações › Gerais)." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: oneOf: - description: '' type: object example: data: app_url_android: 'https://play.google.com/store/apps/details?id=br.com.unityhealth' app_url_ios: 'https://apps.apple.com/br/app/unity-health/id0000000000' email_support: suporte@unityhealth.com.br phone_support: '(11) 99999-9999' url_site: 'https://unityhealth.com.br' whatsapp_support: '(11) 99999-9999' whatsapp_message: 'Olá! Preciso de ajuda com o app Unity Health.' whatsapp_url: 'https://wa.me/5511999999999?text=Ol%C3%A1%21%20Preciso%20de%20ajuda%20com%20o%20app%20Unity%20Health.' properties: data: type: object properties: app_url_android: type: string example: 'https://play.google.com/store/apps/details?id=br.com.unityhealth' app_url_ios: type: string example: 'https://apps.apple.com/br/app/unity-health/id0000000000' email_support: type: string example: suporte@unityhealth.com.br phone_support: type: string example: '(11) 99999-9999' url_site: type: string example: 'https://unityhealth.com.br' whatsapp_support: type: string example: '(11) 99999-9999' whatsapp_message: type: string example: 'Olá! Preciso de ajuda com o app Unity Health.' whatsapp_url: type: string example: 'https://wa.me/5511999999999?text=Ol%C3%A1%21%20Preciso%20de%20ajuda%20com%20o%20app%20Unity%20Health.' - description: 'WhatsApp não cadastrado' type: object example: data: app_url_android: null app_url_ios: null email_support: suporte@unityhealth.com.br phone_support: null url_site: null whatsapp_support: null whatsapp_message: 'Olá! Preciso de ajuda com o app Unity Health.' whatsapp_url: null properties: data: type: object properties: app_url_android: type: string example: null nullable: true app_url_ios: type: string example: null nullable: true email_support: type: string example: suporte@unityhealth.com.br phone_support: type: string example: null nullable: true url_site: type: string example: null nullable: true whatsapp_support: type: string example: null nullable: true whatsapp_message: type: string example: 'Olá! Preciso de ajuda com o app Unity Health.' whatsapp_url: type: string example: null nullable: true tags: - 'Settings General' security: [] /api/v1/customer/support/conversation: get: summary: 'Get conversation' operationId: getConversation description: "Abre ou retoma a conversa do usuário logado. `agent.online` = há atendente online agora no painel;\n`agent.name` = atendente responsável pela conversa (ou quem está online). `whatsapp_url` vazio = \"número a definir\"\n(Configurações › Gerais do painel). `quick_replies` = sugestões rápidas ativas, na ordem.\n`status`: `open` ou `closed` (encerrada pelo atendimento; uma nova mensagem reabre)." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e status: open agent: name: Camila online: true whatsapp_url: 'https://wa.me/5511999999999' quick_replies: - 'Dúvida sobre boleto' - 'Não consigo acessar um conteúdo' - 'Atualizar meus dados' unread_count: 1 properties: uuid: type: string example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e status: type: string example: open agent: type: object properties: name: type: string example: Camila online: type: boolean example: true whatsapp_url: type: string example: 'https://wa.me/5511999999999' quick_replies: type: array example: - 'Dúvida sobre boleto' - 'Não consigo acessar um conteúdo' - 'Atualizar meus dados' items: type: string unread_count: type: integer example: 1 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException tags: - Suporte /api/v1/customer/support/conversation/messages: get: summary: 'Get messages' operationId: getMessages description: "Mensagens da conversa, **das mais novas para as mais antigas**, 30 por página. `before` = uuid da mensagem mais\nantiga já carregada (rolar para cima); `meta.has_more` diz se há mais antigas. `after` = uuid da mensagem mais\nnova já carregada (consulta periódica sem WebSocket, até 100). `from`: `user` (o usuário do app) ou `agent`.\n`meta` também traz `typing` (o atendente está digitando), `agent` e `status` da conversa." parameters: - in: query name: before description: 'uuid da mensagem mais antiga já carregada.' example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9 required: false schema: type: string description: 'uuid da mensagem mais antiga já carregada.' example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9 - in: query name: after description: 'uuid da mensagem mais nova já carregada (consulta periódica).' example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9 required: false schema: type: string description: 'uuid da mensagem mais nova já carregada (consulta periódica).' example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9 - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: data: - uuid: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9 from: agent text: 'Claro! Pode me dizer o mês de referência?' created_at: '2026-10-15T12:42:00Z' - uuid: 4b1a0f9e-8d7c-4b6a-a5f4-e3d2c1b0a9f8 from: user text: 'Oi, Camila! Tenho uma dúvida sobre um boleto.' created_at: '2026-10-15T12:41:00Z' meta: has_more: false typing: false agent: name: Camila online: true status: open properties: data: type: array example: - uuid: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9 from: agent text: 'Claro! Pode me dizer o mês de referência?' created_at: '2026-10-15T12:42:00Z' - uuid: 4b1a0f9e-8d7c-4b6a-a5f4-e3d2c1b0a9f8 from: user text: 'Oi, Camila! Tenho uma dúvida sobre um boleto.' created_at: '2026-10-15T12:41:00Z' items: type: object properties: uuid: type: string example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9 from: type: string example: agent text: type: string example: 'Claro! Pode me dizer o mês de referência?' created_at: type: string example: '2026-10-15T12:42:00Z' meta: type: object properties: has_more: type: boolean example: false typing: type: boolean example: false agent: type: object properties: name: type: string example: Camila online: type: boolean example: true status: type: string example: open 422: description: '' content: application/json: schema: type: object example: message: 'The given data was invalid.' errors: before: - 'The selected before is invalid.' properties: message: type: string example: 'The given data was invalid.' errors: type: object properties: before: type: array example: - 'The selected before is invalid.' items: type: string tags: - Suporte post: summary: 'Send message' operationId: sendMessage description: "Envia uma mensagem para o atendimento. Reabre a conversa encerrada. O atendimento recebe na hora pelo painel\n(WebSocket ou consulta periódica). Responde 201 com a mensagem no formato do app." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 201: description: '' content: application/json: schema: type: object example: uuid: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9 from: user text: 'Tenho uma dúvida sobre um boleto.' created_at: '2026-10-15T12:41:00Z' properties: uuid: type: string example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9 from: type: string example: user text: type: string example: 'Tenho uma dúvida sobre um boleto.' created_at: type: string example: '2026-10-15T12:41:00Z' 422: description: '' content: application/json: schema: type: object example: message: 'Escreva a sua mensagem.' errors: text: - 'Escreva a sua mensagem.' properties: message: type: string example: 'Escreva a sua mensagem.' errors: type: object properties: text: type: array example: - 'Escreva a sua mensagem.' items: type: string tags: - Suporte requestBody: required: false content: multipart/form-data: schema: type: object properties: text: type: string description: '' example: null /api/v1/customer/support/conversation/read: post: summary: 'Mark as read' operationId: markAsRead description: "Marca como lidas as mensagens do atendimento (chame ao abrir o chat e ao receber mensagem com o chat aberto).\nTambém conta como sinal de que o app está no chat (sem push para as próximas respostas). Responde 204." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 204: description: '' content: application/json: schema: type: object example: { } properties: { } tags: - Suporte /api/v1/customer/support/conversation/typing: post: summary: Typing operationId: typing description: "Avisa o atendimento que o usuário está digitando (mande no máximo a cada 3 s enquanto digita; vale por 8 s).\nResponde 204." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 204: description: '' content: application/json: schema: type: object example: { } properties: { } tags: - Suporte /api/v1/customer/broadcasting/auth: post: summary: 'Authorize realtime channel' operationId: authorizeRealtimeChannel description: "Autoriza o usuário do app a escutar um canal privado do WebSocket (Laravel Reverb, protocolo Pusher).\nUse como `authEndpoint` do pusher-js / laravel-echo, com o `Authorization: Bearer` do login.\nCanais: `private-support.conversation.{uuid}` (só a conversa do próprio usuário) e `private-support.status`. Canal não permitido: 403." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: auth: 'app-key:5f0a8c...e1' properties: auth: type: string example: 'app-key:5f0a8c...e1' 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException 403: description: '' content: application/json: schema: type: object example: message: 'This action is unauthorized.' code: 403 type: AccessDeniedHttpException properties: message: type: string example: 'This action is unauthorized.' code: type: integer example: 403 type: type: string example: AccessDeniedHttpException tags: - Suporte requestBody: required: true content: multipart/form-data: schema: type: object properties: socket_id: type: string description: 'Não pode conter mais de 100 caracteres.' example: b channel_name: type: string description: 'Não pode conter mais de 191 caracteres.' example: 'n' required: - socket_id - channel_name /api/v1/customer/tv/live: get: summary: 'Get TV live' operationId: getTVLive description: "- `is_live`: há item da programação no ar agora (ativo e com o horário atual entre início e fim);\n- `stream_url`: a transmissão do item no ar (URL do provedor ou mídia do vídeo do catálogo). Sem item no ar,\n é a transmissão padrão da tela TV Unity (painel › Telas do app › TV Unity), ou `null` se não houver;\n- `viewers`: clientes assistindo agora (sinal nos últimos 60 s);\n- `now_playing` / `next`: o item no ar e o próximo (ou `null`);\n- `fallback`: nome, descrição e capa da transmissão padrão, quando não há item no ar (senão `null`)." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: oneOf: - description: '' type: object example: is_live: true stream_url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8' viewers: 540 now_playing: uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e title: 'Otimização de Margem em Centros Cirúrgicos' description: 'Ao vivo do estúdio Unity Health.' cover_url: 'https://cdn.exemplo.com/capa.jpg' starts_at: '2026-10-15T14:00:00Z' ends_at: '2026-10-15T15:00:00Z' content: null next: uuid: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f title: 'Gestão de OPME' description: null cover_url: null starts_at: '2026-10-15T15:00:00Z' ends_at: '2026-10-15T16:00:00Z' content: uuid: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b type: video fallback: null properties: is_live: type: boolean example: true stream_url: type: string example: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8' viewers: type: integer example: 540 now_playing: type: object properties: uuid: type: string example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e title: type: string example: 'Otimização de Margem em Centros Cirúrgicos' description: type: string example: 'Ao vivo do estúdio Unity Health.' cover_url: type: string example: 'https://cdn.exemplo.com/capa.jpg' starts_at: type: string example: '2026-10-15T14:00:00Z' ends_at: type: string example: '2026-10-15T15:00:00Z' content: type: string example: null nullable: true next: type: object properties: uuid: type: string example: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f title: type: string example: 'Gestão de OPME' description: type: string example: null nullable: true cover_url: type: string example: null nullable: true starts_at: type: string example: '2026-10-15T15:00:00Z' ends_at: type: string example: '2026-10-15T16:00:00Z' content: type: object properties: uuid: type: string example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b type: type: string example: video fallback: type: string example: null nullable: true - description: 'Sem item no ar' type: object example: is_live: false stream_url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8' viewers: 3 now_playing: null next: null fallback: title: 'TV Unity' description: 'Programação contínua da Unity Health.' cover_url: null properties: is_live: type: boolean example: false stream_url: type: string example: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8' viewers: type: integer example: 3 now_playing: type: string example: null nullable: true next: type: string example: null nullable: true fallback: type: object properties: title: type: string example: 'TV Unity' description: type: string example: 'Programação contínua da Unity Health.' cover_url: type: string example: null nullable: true 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException tags: - TV /api/v1/customer/tv/heartbeat: post: summary: 'TV heartbeat' operationId: tVHeartbeat description: "Sinal de \"assistindo\": o app manda a cada 30 s enquanto a tela da TV está aberta.\nConta como assistindo quem mandou sinal nos últimos 60 s (uma vez por cliente). Devolve a audiência atual." parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: viewers: 540 properties: viewers: type: integer example: 540 401: description: '' content: application/json: schema: type: object example: message: 'Unauthorized - Check the "Authorization" in the header request.' code: 401 type: AuthenticationException properties: message: type: string example: 'Unauthorized - Check the "Authorization" in the header request.' code: type: integer example: 401 type: type: string example: AuthenticationException tags: - TV /api/v1/customer/webservice/cities: get: summary: Cities operationId: cities description: 'Search city, must enter at least one of the search fields `search` or `state_abbr`
List a maximum of `50` items.' parameters: - in: query name: search description: 'static(lorem) Search in the fields: `full_name`' example: architecto required: false schema: type: string description: 'static(lorem) Search in the fields: `full_name`' example: architecto - in: query name: state_abbr description: static(PR) example: architecto required: false schema: type: string description: static(PR) example: architecto - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: data: [] properties: data: type: array example: [] tags: - Webservice security: [] /api/v1/customer/webservice/states: get: summary: States operationId: states description: '' parameters: - in: query name: search description: 'static(lorem) Search in the fields: `name`' example: architecto required: false schema: type: string description: 'static(lorem) Search in the fields: `name`' example: architecto - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: data: [] properties: data: type: array example: [] tags: - Webservice security: [] '/api/v1/customer/webservice/zipcode/{zipcode}': get: summary: 'Find zipcode' operationId: findZipcode description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 404: description: '' content: application/json: schema: type: object example: message: 'CEP não encontrado.' code: 400 type: App\Exceptions\GeneralException properties: message: type: string example: 'CEP não encontrado.' code: type: integer example: 400 type: type: string example: App\Exceptions\GeneralException tags: - Webservice security: [] parameters: - in: path name: zipcode description: 'The zipcode.' example: architecto required: true schema: type: string /api/v1/customer/webservice/check-version: get: summary: 'Verifica a versão para o popup no app' operationId: verificaAVersoParaOPopupNoApp description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: active: false version: false properties: active: type: boolean example: false version: type: boolean example: false tags: - Webservice security: [] /api/v1/customer/webservice/check-app-new-version: get: summary: 'Check app new version' operationId: checkAppNewVersion description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 422: description: '' content: application/json: schema: type: object example: message: 'Campo obrigatório.' errors: platform: - 'Campo obrigatório.' current_version: - 'Campo obrigatório.' code: 422 type: Illuminate\Validation\ValidationException properties: message: type: string example: 'Campo obrigatório.' errors: type: object properties: platform: type: array example: - 'Campo obrigatório.' items: type: string current_version: type: array example: - 'Campo obrigatório.' items: type: string code: type: integer example: 422 type: type: string example: Illuminate\Validation\ValidationException tags: - Webservice security: [] /api/v1/customer/webservice/localization-lat-lon: get: summary: 'Get localization by lat lon' operationId: getLocalizationByLatLon description: '' parameters: - in: query name: lat description: Latitude. example: '-23.550520' required: true schema: type: string description: Latitude. example: '-23.550520' - in: query name: lon description: Longitude. example: '-46.633308' required: true schema: type: string description: Longitude. example: '-46.633308' - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 500: description: '' content: application/json: schema: type: object example: message: 'You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account' code: 0 type: Exception properties: message: type: string example: 'You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account' code: type: integer example: 0 type: type: string example: Exception tags: - Webservice security: [] /api/v1/customer/webservice/banks: get: summary: Banks operationId: banks description: '' parameters: - in: query name: search description: 'Optional search in fields: `name`.' example: lorem required: false schema: type: string description: 'Optional search in fields: `name`.' example: lorem - in: header name: Accept-Language description: '' example: pt schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: data: [] properties: data: type: array example: [] tags: - Webservice security: []