openapi: 3.0.3
info:
title: 'Unity Health - API Admin - API Documentation'
description: 'Unity Health - API API Documentation for the admin panel'
version: 1.0.0
servers:
-
url: 'http://homologacao.clickweb.com.br:8520'
tags:
-
name: 'About app'
description: ''
-
name: 'About company'
description: ''
-
name: 'App Screens'
description: ''
-
name: Authentication
description: ''
-
name: Cliente
description: ''
-
name: 'Content Categories'
description: ''
-
name: Contents
description: ''
-
name: Dashboard
description: ''
-
name: Faq
description: ''
-
name: 'Faq Topics'
description: ''
-
name: 'How It Works'
description: ''
-
name: 'Live Audience'
description: ''
-
name: 'Live Webinars'
description: ''
-
name: Log
description: ''
-
name: Notifications
description: ''
-
name: OnBoarding
description: ''
-
name: Permissions
description: ''
-
name: 'Policy Cookies'
description: ''
-
name: 'Privacy Policy'
description: ''
-
name: 'Push City'
description: ''
-
name: 'Push General'
description: "\nNotificações push do app (painel \"Notificações push\"): envio manual (título, texto, público todos/selecionados,\nconteúdo ou link opcional, agendamento opcional) e o histórico de tudo o que foi enviado, inclusive os avisos\nautomáticos (`source`: `content` conteúdo publicado, `live_webinar` webinar ao vivo, `tv` TV Unity ao vivo).\n\nO envio é feito pelo comando `push-general:send` (agendador, a cada minuto) pelo Expo Push (`PUSH_DRIVER=expo`;\nno local e nos testes, `PUSH_DRIVER=log` só grava em storage/logs/push.log). Só recebe quem está com a chave\nNotificações ligada no app; aparelhos com token inválido são removidos. `status`: `scheduled` (agendado),\n`queued` (na fila, sai em até 1 minuto) ou `sent` (enviado, com `total_users`, `total_devices` e `total_failed`)."
-
name: 'Push State'
description: ''
-
name: 'Push User'
description: ''
-
name: Roles
description: ''
-
name: 'Settings General'
description: ''
-
name: 'Settings Notifications'
description: ''
-
name: 'Social Networks'
description: ''
-
name: 'Support Conversations'
description: "\nAtendimento do chat de suporte do app (CMS-05): caixa de conversas, mensagens, resposta, \"digitando…\",\nencerrar/reabrir e atendente responsável. Uma conversa por usuário do app; só aparecem conversas com mensagens.\n\n### Tempo real (WebSocket - Laravel Reverb, protocolo Pusher)\n\n- Autorização: `POST /api/v1/admin/broadcasting/auth` (Bearer do painel; permissão `support-conversations.list`).\n- `private-support.inbox` (todas as conversas): `.support.message`, `.support.typing`, `.support.conversation`, `.support.agent-status`.\n- `private-support.conversation.{uuid}` (uma conversa): `.support.message`, `.support.typing`, `.support.conversation`.\n- Payloads: `support.message` → `{conversation_uuid, message: {uuid, from: \"user\"|\"agent\", text, created_at, agent}, conversation: {uuid, status, customer, agent, unread_count, last_message_at}}`;\n `support.typing` → `{conversation_uuid, from, name, typing, expires_in}`; `support.conversation` → `{conversation_uuid, action, conversation}`;\n `support.agent-status` → `{agent: {uuid, name, online}, online, name}`.\n\n**Sem WebSocket (fallback):** a caixa consulta `GET support-conversations` e `GET support-conversations/unread` a cada 10 s;\na conversa aberta consulta `GET support-conversations/{uuid}/messages?after={uuid}` a cada 4 s (traz `meta.typing`)."
-
name: 'Support Quick Replies'
description: "\nSugestões rápidas do chat de suporte do app (ex.: \"Dúvida sobre boleto\"): aparecem como botões acima do campo de\nmensagem (`quick_replies` de `GET support/conversation`), na ordem (`order`), só as ativas. Tocar envia o texto."
-
name: 'System Log'
description: ''
-
name: 'TV Schedules'
description: ''
-
name: 'Terms Of Use'
description: ''
-
name: Users
description: ''
-
name: 'Webinar Questions'
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/admin/about-app:
get:
summary: 'Get about app'
operationId: getAboutApp
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:
- 'About app'
post:
summary: 'Update about app'
operationId: updateAboutApp
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- 'About app'
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
name:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: b
file:
type: string
format: binary
description: 'Must be a file. Não pode conter um arquivo com mais de 10240 kilobytes.'
nullable: true
file_mobile:
type: string
format: binary
description: 'Must be a file. Não pode conter um arquivo com mais de 10240 kilobytes.'
nullable: true
media_delete:
type: array
description: 'Não pode conter mais de 191 caracteres.'
example:
- 'n'
items:
type: string
nullable: true
video:
type: string
description: 'Must be a valid URL. Não pode conter mais de 191 caracteres.'
example: g
nullable: true
text:
type: string
description: 'Não pode conter mais de 4294967295 caracteres.'
example: z
nullable: true
/api/v1/admin/company-app:
get:
summary: 'Get about company'
operationId: getAboutCompany
description: 'Título, vídeo, banners (`media`) e seções, na ordem do app.'
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
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'About company'
post:
summary: 'Update about company'
operationId: updateAboutCompany
description: "Envie a lista completa de seções, na ordem desejada (a posição vira o `order`). Seções com `uuid` são atualizadas,\nsem `uuid` são criadas e as que não vierem na lista são excluídas. Sem `sections`, as seções não mudam.\nQualquer mudança nas seções atualiza o `updated_at` da página."
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: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
created_at: '2026-10-22T10:00:00+00:00'
updated_at: '2026-10-22T11:30: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-22T11:30: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: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
created_at:
type: string
example: '2026-10-22T10:00:00+00:00'
updated_at:
type: string
example: '2026-10-22T11:30: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-22T11:30: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-22T11:30:00+00:00'
deleted_at:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
sections.0.body:
- 'The sections.0.body field is required.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
sections.0.body:
type: array
example:
- 'The sections.0.body field is required.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'About company'
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
name:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: b
file:
type: string
format: binary
description: 'Must be a file. Não pode conter um arquivo com mais de 10240 kilobytes.'
nullable: true
file_mobile:
type: string
format: binary
description: 'Must be a file. Não pode conter um arquivo com mais de 10240 kilobytes.'
nullable: true
media_delete:
type: array
description: 'Não pode conter mais de 191 caracteres.'
example:
- 'n'
items:
type: string
nullable: true
video:
type: string
description: 'Must be a valid URL. Não pode conter mais de 191 caracteres.'
example: g
nullable: true
sections:
type: array
description: ''
example:
- []
items:
type: object
properties:
uuid:
type: string
description: 'Uuid da seção existente (vazio para criar). Não pode conter mais de 191 caracteres.'
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
nullable: true
title:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: 'Conhecimento, gestão e compras em um só lugar'
body:
type: string
description: 'Texto simples (o app não interpreta HTML). Não pode conter mais de 65535 caracteres.'
example: g
required:
- title
- body
required:
- sections
'/api/v1/admin/app-screens/{key}':
get:
summary: 'Get screen'
operationId: getScreen
description: '`key`: `splash`, `login` ou `tv`.'
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
key: splash
title: null
subtitle: null
image: 'http://localhost/storage/app-screens/logo.png'
footer_text: 'desenvolvido por'
footer_image: 'http://localhost/storage/app-screens/clickweb.svg'
duration_seconds: 3.4
created_at: '2026-10-22T10:00:00-03:00'
updated_at: '2026-10-22T10:00:00-03:00'
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
key:
type: string
example: splash
title:
type: string
example: null
nullable: true
subtitle:
type: string
example: null
nullable: true
image:
type: string
example: 'http://localhost/storage/app-screens/logo.png'
footer_text:
type: string
example: 'desenvolvido por'
footer_image:
type: string
example: 'http://localhost/storage/app-screens/clickweb.svg'
duration_seconds:
type: number
example: 3.4
created_at:
type: string
example: '2026-10-22T10:00:00-03:00'
updated_at:
type: string
example: '2026-10-22T10:00:00-03:00'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- 'App Screens'
post:
summary: 'Update screen'
operationId: updateScreen
description: "Splash: `image` (logo), `footer_text` (\"desenvolvido por\"), `footer_image` (logo/assinatura de baixo, opcional) e `duration_seconds` (tempo na tela).\nLogin: `title` e `subtitle`.\nTV Unity: transmissão padrão exibida quando não há item da programação no ar: `title` (nome), `subtitle` (descrição), `image` (capa) e `stream_url` (HLS/RTMP do provedor).\nPara remover uma imagem envie `delete_image=1` ou `delete_footer_image=1`."
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
duration_seconds:
- 'The duration seconds field must not be greater than 30.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
duration_seconds:
type: array
example:
- 'The duration seconds field must not be greater than 30.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'App Screens'
parameters:
-
in: path
name: key
description: 'Available values: `splash` `login` `tv`'
example: splash
required: true
schema:
type: string
/api/v1/admin/auth/login:
post:
summary: Login
operationId: login
description: '5 login attempts can be performed every 1 minute.'
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: eyJ0eXAiOiJ...
properties:
token_type:
type: string
example: Bearer
access_token:
type: string
example: eyJ0eXAiOiJ...
tags:
- Authentication
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
email:
type: string
description: validation.email.
example: gbailey@example.net
password:
type: string
description: validation.min.
example: '+-0pBNvYgxwmi/#iw'
token_name:
type: string
description: validation.max.
example: u
required:
- email
- password
- token_name
security: []
/api/v1/admin/auth/verification-two-steps:
post:
summary: 'Send code A2F'
operationId: sendCodeA2F
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:
send_by:
type: string
description: ''
example: email
enum:
- email
- sms
email:
type: string
description: validation.email.
example: gbailey@example.net
nullable: true
phone:
type: string
description: ''
example: architecto
nullable: true
resend:
type: boolean
description: ''
example: false
nullable: true
required:
- send_by
security: []
/api/v1/admin/auth/check-code:
post:
summary: 'Verify A2F code'
operationId: verifyA2FCode
description: ''
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: eyJ0eXAiOiJ...
properties:
token_type:
type: string
example: Bearer
access_token:
type: string
example: eyJ0eXAiOiJ...
tags:
- Authentication
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
code:
type: string
description: validation.max.
example: bngzmi
token_name:
type: string
description: validation.max.
example: 'y'
required:
- code
- token_name
security: []
/api/v1/admin/auth/password/recovery:
post:
summary: 'Password recovery'
operationId: passwordRecovery
description: 'Send password reset link do user'
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/admin/auth/logout:
delete:
summary: Logout
operationId: logout
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- Authentication
/api/v1/admin/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/admin/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/admin/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/admin/auth/change-password:
post:
summary: 'Change password'
operationId: changePassword
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:
password:
type: string
description: 'Deve conter no mínimo 6 caracteres.'
example: '|]|{+-'
password_new:
type: string
description: 'Deve conter no mínimo 6 caracteres.'
example: vdljnikhwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlx
password_new_confirmation:
type: string
description: 'The value and password_new must match. Deve conter no mínimo 6 caracteres.'
example: jklqppwqbewtnnoqitpxntltcvipojsausgioglrbchgsr
required:
- password
- password_new
- password_new_confirmation
/api/v1/admin/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 2000 kilobytes.'
required:
- avatar
/api/v1/admin/customers:
get:
summary: 'Get all clientes'
operationId: getAllClientes
description: 'Lista os usuários do app. A busca procura no nome, no e-mail e no CPF (com ou sem pontuação).'
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` `email` `is_active` `last_access_at` `created_at`'
example: 'id:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `email` `is_active` `last_access_at` `created_at`'
example: 'id:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `email` `document` (CPF)'
example: mariana
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `email` `document` (CPF)'
example: mariana
-
in: query
name: is_active
description: 'Available values: `0` (bloqueado) `1` (ativo)'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` (bloqueado) `1` (ativo)'
example: 1
-
in: query
name: access_status
description: 'Situação do acesso. Available values: `invited` `active` `blocked`'
example: active
required: false
schema:
type: string
description: 'Situação do acesso. Available values: `invited` `active` `blocked`'
example: active
-
in: query
name: created_at
description: 'Período de cadastro. formato: `Y-m-d\TH:i:sP`'
example: null
required: false
schema:
type: array
description: 'Período de cadastro. formato: `Y-m-d\TH:i:sP`'
example: null
items:
type: string
-
in: query
name: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
in: query
name: last_access_at
description: 'Período do último acesso ao app. formato: `Y-m-d\TH:i:sP`'
example: null
required: false
schema:
type: array
description: 'Período do último acesso ao app. formato: `Y-m-d\TH:i:sP`'
example: null
items:
type: string
-
in: query
name: 'last_access_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
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: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Mariana Vasconcellos'
treatment: Dra.
phone: '+5511999990000'
document: '12345678909'
email: mariana@unityhealth.com.br
job_title: 'Diretora Clínica'
institution: 'Hospital Sírio-Libanês'
avatar: null
avatar_sizes: null
network_external: login-pass
email_verified_at: '2026-10-01T10:00:00-03:00'
accept_newsletter: false
notify_general: true
invited_at: '2026-10-01T10:00:00-03:00'
password_changed_at: '2026-10-01T10:30:00-03:00'
last_access_at: '2026-10-22T09:12:00-03:00'
deleted_reason: null
access_status: active
is_active: true
created_at: '2026-10-01T10:00:00-03:00'
updated_at: '2026-10-22T09:12:00-03:00'
links: { }
meta:
current_page: 1
total: 1
properties:
data:
type: array
example:
-
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Mariana Vasconcellos'
treatment: Dra.
phone: '+5511999990000'
document: '12345678909'
email: mariana@unityhealth.com.br
job_title: 'Diretora Clínica'
institution: 'Hospital Sírio-Libanês'
avatar: null
avatar_sizes: null
network_external: login-pass
email_verified_at: '2026-10-01T10:00:00-03:00'
accept_newsletter: false
notify_general: true
invited_at: '2026-10-01T10:00:00-03:00'
password_changed_at: '2026-10-01T10:30:00-03:00'
last_access_at: '2026-10-22T09:12:00-03:00'
deleted_reason: null
access_status: active
is_active: true
created_at: '2026-10-01T10:00:00-03:00'
updated_at: '2026-10-22T09:12:00-03:00'
items:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: 'Mariana Vasconcellos'
treatment:
type: string
example: Dra.
phone:
type: string
example: '+5511999990000'
document:
type: string
example: '12345678909'
email:
type: string
example: mariana@unityhealth.com.br
job_title:
type: string
example: 'Diretora Clínica'
institution:
type: string
example: 'Hospital Sírio-Libanês'
avatar:
type: string
example: null
nullable: true
avatar_sizes:
type: string
example: null
nullable: true
network_external:
type: string
example: login-pass
email_verified_at:
type: string
example: '2026-10-01T10:00:00-03:00'
accept_newsletter:
type: boolean
example: false
notify_general:
type: boolean
example: true
invited_at:
type: string
example: '2026-10-01T10:00:00-03:00'
password_changed_at:
type: string
example: '2026-10-01T10:30:00-03:00'
last_access_at:
type: string
example: '2026-10-22T09:12:00-03:00'
deleted_reason:
type: string
example: null
nullable: true
access_status:
type: string
example: active
is_active:
type: boolean
example: true
created_at:
type: string
example: '2026-10-01T10:00:00-03:00'
updated_at:
type: string
example: '2026-10-22T09:12:00-03:00'
links:
type: object
properties: { }
meta:
type: object
properties:
current_page:
type: integer
example: 1
total:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- Cliente
post:
summary: 'Create cliente (convite)'
operationId: createClienteconvite
description: "Cadastra o usuário do app e envia o convite: e-mail com o link para definir a senha (vale 3 dias; usa a página\nde nova senha da API, a mesma da recuperação de senha). Até definir a senha o usuário fica como `invited` e não\nentra no app. Celular em E.164 (sem o `+`, 10 ou 11 dígitos são tratados como Brasil); CPF com dígitos\nverificadores e único; e-mail único."
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
201:
description: ''
content:
application/json:
schema:
type: object
example:
data:
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Mariana Vasconcellos'
treatment: Dra.
phone: '+5511999990000'
document: '12345678909'
email: mariana@unityhealth.com.br
job_title: 'Diretora Clínica'
institution: 'Hospital Sírio-Libanês'
avatar: null
invited_at: '2026-10-22T10:00:00-03:00'
password_changed_at: null
last_access_at: null
access_status: invited
is_active: true
created_at: '2026-10-22T10:00:00-03:00'
updated_at: '2026-10-22T10:00:00-03:00'
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: 'Mariana Vasconcellos'
treatment:
type: string
example: Dra.
phone:
type: string
example: '+5511999990000'
document:
type: string
example: '12345678909'
email:
type: string
example: mariana@unityhealth.com.br
job_title:
type: string
example: 'Diretora Clínica'
institution:
type: string
example: 'Hospital Sírio-Libanês'
avatar:
type: string
example: null
nullable: true
invited_at:
type: string
example: '2026-10-22T10:00:00-03:00'
password_changed_at:
type: string
example: null
nullable: true
last_access_at:
type: string
example: null
nullable: true
access_status:
type: string
example: invited
is_active:
type: boolean
example: true
created_at:
type: string
example: '2026-10-22T10:00:00-03:00'
updated_at:
type: string
example: '2026-10-22T10:00:00-03:00'
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:
- Cliente
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'
nullable: true
document:
type: string
description: ''
example: architecto
nullable: true
treatment:
type: string
description: 'Não pode conter mais de 20 caracteres.'
example: ngzmiyvdljnikhwa
nullable: true
job_title:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: 'y'
nullable: true
institution:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: k
nullable: true
avatar:
type: string
format: binary
description: 'Must be a file. Não pode conter um arquivo com mais de 5120 kilobytes.'
nullable: true
required:
- name
- email
/api/v1/admin/customers/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items.'
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `email`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `email`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
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:
- Cliente
/api/v1/admin/customers/import/template:
get:
summary: 'Modelo de importação'
operationId: modeloDeImportao
description: 'Planilha vazia, só com os títulos das colunas, para preencher e enviar em `customers/import/preview`.'
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:
- Cliente
/api/v1/admin/customers/import/preview:
post:
summary: 'Conferir planilha de importação'
operationId: conferirPlanilhaDeImportao
description: "Lê o arquivo sem gravar nada e separa as linhas prontas (`rows`) das que têm problema (`issues`): sem e-mail\n(`no_email`), e-mail ou CPF repetido na planilha ou já cadastrado (`duplicate`) e dado inválido (`invalid`)."
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
total: 2
rows:
-
line: 2
treatment: Dra.
name: 'Mariana Vasconcellos'
email: mariana@unityhealth.com.br
phone: '+5511999990000'
document: '12345678909'
job_title: null
institution: null
issues:
-
line: 3
name: 'João Lima'
email: null
type: no_email
reason: 'Sem e-mail.'
properties:
total:
type: integer
example: 2
rows:
type: array
example:
-
line: 2
treatment: Dra.
name: 'Mariana Vasconcellos'
email: mariana@unityhealth.com.br
phone: '+5511999990000'
document: '12345678909'
job_title: null
institution: null
items:
type: object
properties:
line:
type: integer
example: 2
treatment:
type: string
example: Dra.
name:
type: string
example: 'Mariana Vasconcellos'
email:
type: string
example: mariana@unityhealth.com.br
phone:
type: string
example: '+5511999990000'
document:
type: string
example: '12345678909'
job_title:
type: string
example: null
nullable: true
institution:
type: string
example: null
nullable: true
issues:
type: array
example:
-
line: 3
name: 'João Lima'
email: null
type: no_email
reason: 'Sem e-mail.'
items:
type: object
properties:
line:
type: integer
example: 3
name:
type: string
example: 'João Lima'
email:
type: string
example: null
nullable: true
type:
type: string
example: no_email
reason:
type: string
example: 'Sem e-mail.'
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'A planilha não segue o modelo: precisa ter as colunas Nome completo e E-mail.'
errors:
file:
- 'A planilha não segue o modelo: precisa ter as colunas Nome completo e E-mail.'
properties:
message:
type: string
example: 'A planilha não segue o modelo: precisa ter as colunas Nome completo e E-mail.'
errors:
type: object
properties:
file:
type: array
example:
- 'A planilha não segue o modelo: precisa ter as colunas Nome completo e E-mail.'
items:
type: string
tags:
- Cliente
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
description: 'Must be a file. Não pode conter um arquivo com mais de 5120 kilobytes.'
required:
- file
/api/v1/admin/customers/import:
post:
summary: 'Importar usuários'
operationId: importarUsurios
description: "Cadastra um lote de até 100 linhas devolvidas pela conferência. As regras são verificadas de novo: o que deixou de\nvaler entra em `issues`. Os usuários ficam como convidados e o e-mail para definir a senha **não** é enviado aqui\n(use `resend-access`)."
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
imported: 1
issues: []
properties:
imported:
type: integer
example: 1
issues:
type: array
example: []
tags:
- Cliente
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
rows:
type: array
description: 'Deve conter no mínimo 1 itens. Deve conter no máximo 100 itens.'
example:
- []
items:
type: object
properties:
line:
type: integer
description: 'Deve conter um número superior ou igual a 1.'
example: 16
treatment:
type: string
description: ''
example: architecto
nullable: true
name:
type: string
description: ''
example: architecto
nullable: true
email:
type: string
description: ''
example: gbailey@example.net
nullable: true
phone:
type: string
description: ''
example: architecto
nullable: true
document:
type: string
description: ''
example: architecto
nullable: true
job_title:
type: string
description: ''
example: architecto
nullable: true
institution:
type: string
description: ''
example: architecto
nullable: true
required:
- line
required:
- rows
'/api/v1/admin/customers/change-avatar/{customer_uuid}':
post:
summary: 'Change avatar cliente'
operationId: changeAvatarCliente
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- Cliente
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
parameters:
-
in: path
name: customer_uuid
description: ''
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
required: true
schema:
type: string
/api/v1/admin/customers/export:
get:
summary: 'Export clientes'
operationId: exportClientes
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `email` `is_active` `last_access_at` `created_at`'
example: 'id:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `email` `is_active` `last_access_at` `created_at`'
example: 'id:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `email` `document`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `email` `document`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: access_status
description: 'Available values: `invited` `active` `blocked`'
example: active
required: false
schema:
type: string
description: 'Available values: `invited` `active` `blocked`'
example: active
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
in: query
name: last_access_at
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: 'last_access_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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:
- Cliente
'/api/v1/admin/customers/{customer_uuid}':
get:
summary: 'Get cliente'
operationId: getCliente
description: "Visualização no painel: dados, situação do acesso, último acesso, sessões abertas (aparelhos), as 20 últimas\natividades e o resumo de uso da Central de conteúdos (`usage`: curtidas, salvos, conteúdos iniciados e concluídos,\nperguntas nos webinars e os últimos conteúdos acessados)."
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: 'Mariana Vasconcellos'
email: mariana@unityhealth.com.br
access_status: active
last_access_at: '2026-10-22T09:12:00-03:00'
sessions:
-
id: 12
device_name: 'iPhone de Mariana'
created_at: '2026-10-20T08:00:00-03:00'
last_used_at: '2026-10-22T09:12:00-03:00'
expires_at: '2026-10-22T09:27:00-03:00'
refresh_expires_at: '2026-11-19T08:00:00-03:00'
usage:
likes: 4
saved: 3
started: 6
completed: 2
questions: 1
last_activity_at: '2026-10-22T09:10:00-03:00'
recent:
-
uuid: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b
title: 'Ep. 24 - Renegociação de Tabelas'
type: podcast
percent: 27
completed: false
updated_at: '2026-10-22T09:10:00-03:00'
activity_logs: []
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: 'Mariana Vasconcellos'
email:
type: string
example: mariana@unityhealth.com.br
access_status:
type: string
example: active
last_access_at:
type: string
example: '2026-10-22T09:12:00-03:00'
sessions:
type: array
example:
-
id: 12
device_name: 'iPhone de Mariana'
created_at: '2026-10-20T08:00:00-03:00'
last_used_at: '2026-10-22T09:12:00-03:00'
expires_at: '2026-10-22T09:27:00-03:00'
refresh_expires_at: '2026-11-19T08:00:00-03:00'
items:
type: object
properties:
id:
type: integer
example: 12
device_name:
type: string
example: 'iPhone de Mariana'
created_at:
type: string
example: '2026-10-20T08:00:00-03:00'
last_used_at:
type: string
example: '2026-10-22T09:12:00-03:00'
expires_at:
type: string
example: '2026-10-22T09:27:00-03:00'
refresh_expires_at:
type: string
example: '2026-11-19T08:00:00-03:00'
usage:
type: object
properties:
likes:
type: integer
example: 4
saved:
type: integer
example: 3
started:
type: integer
example: 6
completed:
type: integer
example: 2
questions:
type: integer
example: 1
last_activity_at:
type: string
example: '2026-10-22T09:10:00-03:00'
recent:
type: array
example:
-
uuid: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b
title: 'Ep. 24 - Renegociação de Tabelas'
type: podcast
percent: 27
completed: false
updated_at: '2026-10-22T09:10:00-03:00'
items:
type: object
properties:
uuid:
type: string
example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b
title:
type: string
example: 'Ep. 24 - Renegociação de Tabelas'
type:
type: string
example: podcast
percent:
type: integer
example: 27
completed:
type: boolean
example: false
updated_at:
type: string
example: '2026-10-22T09:10:00-03:00'
activity_logs:
type: array
example: []
tags:
- Cliente
post:
summary: 'Update cliente'
operationId: updateCliente
description: 'Edita os dados do usuário do app. Para bloquear use `active-desactive`; para uma nova senha, `resend-access`.'
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: 'Mariana Vasconcellos'
access_status: active
is_active: true
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: 'Mariana Vasconcellos'
access_status:
type: string
example: active
is_active:
type: boolean
example: true
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Deve ser um CPF válido.'
errors:
document:
- 'Deve ser um CPF válido.'
properties:
message:
type: string
example: 'Deve ser um CPF válido.'
errors:
type: object
properties:
document:
type: array
example:
- 'Deve ser um CPF válido.'
items:
type: string
tags:
- Cliente
requestBody:
required: false
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'
nullable: true
document:
type: string
description: ''
example: architecto
nullable: true
treatment:
type: string
description: 'Não pode conter mais de 20 caracteres.'
example: ngzmiyvdljnikhwa
nullable: true
job_title:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: 'y'
nullable: true
institution:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: k
nullable: true
avatar:
type: string
format: binary
description: 'Must be a file. Não pode conter um arquivo com mais de 5120 kilobytes.'
nullable: true
avatar_delete:
type: boolean
description: ''
example: false
nullable: true
delete:
summary: 'Remove cliente'
operationId: removeCliente
description: "Exclusão pelo painel: soft delete (padrão da base) e encerra todas as sessões do app. Os dados ficam na lista de\nexcluídos (`customers-deleted`). A exclusão com anonimização (LGPD) é a feita pelo próprio usuário no app."
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
204:
description: ''
content:
application/json:
schema:
type: object
example: { }
properties: { }
tags:
- Cliente
parameters:
-
in: path
name: customer_uuid
description: ''
example: 1
required: true
schema:
type: integer
-
in: path
name: customer
description: 'Uuid do usuário.'
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
required: true
schema:
type: string
'/api/v1/admin/customers/active-desactive/{customer_uuid}':
post:
summary: 'Block / unblock customer'
operationId: blockUnblockCustomer
description: "Bloqueia (`is_active` = 0) ou desbloqueia o usuário do app. O bloqueado não entra no app e perde na hora todas as\nsessões (tokens e refresh tokens)."
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: 'Mariana Vasconcellos'
access_status: blocked
is_active: false
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: 'Mariana Vasconcellos'
access_status:
type: string
example: blocked
is_active:
type: boolean
example: false
tags:
- Cliente
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
is_active:
type: boolean
description: ''
example: true
required:
- is_active
parameters:
-
in: path
name: customer_uuid
description: ''
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
required: true
schema:
type: string
-
in: path
name: customer
description: 'Uuid do usuário.'
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
required: true
schema:
type: string
'/api/v1/admin/customers/{customer_uuid}/resend-access':
post:
summary: 'Resend access'
operationId: resendAccess
description: "Reenvia o acesso: novo e-mail com o link para definir a senha (vale 3 dias). Serve para o convidado que perdeu o\nconvite e para quem esqueceu a senha. O link anterior deixa de valer. Usuário bloqueado: 422 (desbloqueie antes)."
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Enviamos para mariana@unityhealth.com.br o link para definir a senha.'
invited_at: '2026-10-22T10:00:00-03:00'
properties:
message:
type: string
example: 'Enviamos para mariana@unityhealth.com.br o link para definir a senha.'
invited_at:
type: string
example: '2026-10-22T10:00:00-03:00'
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'Desbloqueie o usuário antes de reenviar o acesso.'
errors:
is_active:
- 'Desbloqueie o usuário antes de reenviar o acesso.'
properties:
message:
type: string
example: 'Desbloqueie o usuário antes de reenviar o acesso.'
errors:
type: object
properties:
is_active:
type: array
example:
- 'Desbloqueie o usuário antes de reenviar o acesso.'
items:
type: string
tags:
- Cliente
parameters:
-
in: path
name: customer_uuid
description: ''
example: 1
required: true
schema:
type: integer
-
in: path
name: customer
description: 'Uuid do usuário.'
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
required: true
schema:
type: string
'/api/v1/admin/customers/{customer_uuid}/sessions':
delete:
summary: 'Revoke sessions'
operationId: revokeSessions
description: "Encerra todas as sessões do usuário no app (revoga os tokens e refresh tokens de todos os aparelhos).\nEle precisa entrar de novo com e-mail, senha e código."
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
revoked: 2
properties:
revoked:
type: integer
example: 2
tags:
- Cliente
parameters:
-
in: path
name: customer_uuid
description: ''
example: 1
required: true
schema:
type: integer
-
in: path
name: customer
description: 'Uuid do usuário.'
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
required: true
schema:
type: string
/api/v1/admin/customers-report:
get:
summary: 'Usage report'
operationId: usageReport
description: "- `customers`: total de usuários do app (não excluídos), ativos, convidados (ainda sem senha), bloqueados e novos no período.\n- `active_users`: usuários com acesso ao app nos últimos 7 dias, 30 dias e no período escolhido.\n- `top_contents`: até 10 conteúdos mais acessados no período. `accesses` = usuários que abriram (progresso\n gravado no período), `completed` = concluíram no período, `likes` e `saves` = curtidas e salvos feitos no período;\n `likes_count` é o total de curtidas exibido no app.\n- `top_customers`: até 5 usuários com mais conteúdos acessados no período."
parameters:
-
in: query
name: days
description: 'Período em dias. Available values: `7` `30` `90`'
example: 30
required: false
schema:
type: integer
description: 'Período em dias. Available values: `7` `30` `90`'
example: 30
-
in: query
name: type
description: 'Só um tipo de conteúdo. Available values: `ebook` `podcast` `video` `webinar`'
example: podcast
required: false
schema:
type: string
description: 'Só um tipo de conteúdo. Available values: `ebook` `podcast` `video` `webinar`'
example: podcast
-
in: query
name: order
description: 'Ordenação dos conteúdos. Available values: `accesses` `completed` `likes` `saves`'
example: accesses
required: false
schema:
type: string
description: 'Ordenação dos conteúdos. Available values: `accesses` `completed` `likes` `saves`'
example: accesses
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
data:
period_days: 30
customers:
total: 24
active: 20
invited: 2
blocked: 2
new_in_period: 5
active_users:
last_7_days: 9
last_30_days: 15
in_period: 15
top_contents:
-
uuid: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b
title: 'Ep. 24 - Renegociação de Tabelas e Gestão de OPME'
type: podcast
category: 'Gestão & Finanças'
accesses: 8
completed: 3
likes: 4
saves: 2
likes_count: 318
top_customers:
-
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Mariana Vasconcellos'
email: mariana@unityhealth.com.br
accesses: 6
last_access_at: '2026-10-22T09:12:00-03:00'
properties:
data:
type: object
properties:
period_days:
type: integer
example: 30
customers:
type: object
properties:
total:
type: integer
example: 24
active:
type: integer
example: 20
invited:
type: integer
example: 2
blocked:
type: integer
example: 2
new_in_period:
type: integer
example: 5
active_users:
type: object
properties:
last_7_days:
type: integer
example: 9
last_30_days:
type: integer
example: 15
in_period:
type: integer
example: 15
top_contents:
type: array
example:
-
uuid: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b
title: 'Ep. 24 - Renegociação de Tabelas e Gestão de OPME'
type: podcast
category: 'Gestão & Finanças'
accesses: 8
completed: 3
likes: 4
saves: 2
likes_count: 318
items:
type: object
properties:
uuid:
type: string
example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b
title:
type: string
example: 'Ep. 24 - Renegociação de Tabelas e Gestão de OPME'
type:
type: string
example: podcast
category:
type: string
example: 'Gestão & Finanças'
accesses:
type: integer
example: 8
completed:
type: integer
example: 3
likes:
type: integer
example: 4
saves:
type: integer
example: 2
likes_count:
type: integer
example: 318
top_customers:
type: array
example:
-
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Mariana Vasconcellos'
email: mariana@unityhealth.com.br
accesses: 6
last_access_at: '2026-10-22T09:12:00-03:00'
items:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: 'Mariana Vasconcellos'
email:
type: string
example: mariana@unityhealth.com.br
accesses:
type: integer
example: 6
last_access_at:
type: string
example: '2026-10-22T09:12:00-03:00'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- Cliente
/api/v1/admin/customers-deleted:
get:
summary: 'Get all clientes deletedos'
operationId: getAllClientesDeletedos
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` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `email`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `email`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: deleted_at
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: 'deleted_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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:
- Cliente
/api/v1/admin/customers-deleted/export:
get:
summary: 'Export clientes deletado'
operationId: exportClientesDeletado
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `email`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `email`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: deleted_at
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: 'deleted_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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:
- Cliente
'/api/v1/admin/customers-deleted/{uuid}':
get:
summary: 'Get cliente deletado'
operationId: getClienteDeletado
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:
- Cliente
parameters:
-
in: path
name: uuid
description: ''
example: BcECdBDA-CdED-bFEA-CbCE-BcCdeBfbbebc
required: true
schema:
type: string
/api/v1/admin/content-categories:
get:
summary: 'Get all categories'
operationId: getAllCategories
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` `type` `order` `created_at`'
example: 'type:asc|order:asc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `type` `order` `created_at`'
example: 'type:asc|order:asc'
-
in: query
name: search
description: 'Available fields: `uuid` `name`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name`'
example: architecto
-
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: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
401:
description: ''
content:
application/json:
schema:
oneOf:
-
description: ''
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
-
description: ''
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Content Categories'
post:
summary: 'Create category'
operationId: createCategory
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
name:
- 'The name has already been taken.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
name:
type: array
example:
- 'The name has already been taken.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Content Categories'
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
type:
type: string
description: ''
example: architecto
name:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: 'n'
color:
type: string
description: 'Must match the regex /^#[0-9A-Fa-f]{6}$/.'
example: '#fEEeDb'
nullable: true
order:
type: integer
description: 'Deve conter um número superior ou igual a 0.'
example: 37
nullable: true
is_active:
type: boolean
description: ''
example: true
nullable: true
required:
- type
- name
/api/v1/admin/content-categories/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items, ordered by `type` and `order`.'
parameters:
-
in: query
name: search
description: 'Available fields: `uuid` `name`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name`'
example: architecto
-
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: is_active
description: 'Available values: `0` `1` Default: only active.'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1` Default: only active.'
example: 1
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
401:
description: ''
content:
application/json:
schema:
oneOf:
-
description: ''
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
-
description: ''
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:
- 'Content Categories'
/api/v1/admin/content-categories/export:
get:
summary: 'Export categories'
operationId: exportCategories
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `type` `order` `created_at`'
example: 'type:asc|order:asc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `type` `order` `created_at`'
example: 'type:asc|order:asc'
-
in: query
name: search
description: 'Available fields: `uuid` `name`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name`'
example: architecto
-
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: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
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}'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Content Categories'
'/api/v1/admin/content-categories/{category_uuid}':
get:
summary: 'Get category'
operationId: getCategory
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
401:
description: ''
content:
application/json:
schema:
oneOf:
-
description: ''
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
-
description: ''
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- 'Content Categories'
post:
summary: 'Update category'
operationId: updateCategory
description: 'Mudar o nome atualiza a busca dos conteúdos da categoria. O tipo só pode mudar se a categoria não tiver conteúdos.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
type:
- 'Não é possível mudar o tipo de uma categoria que tem conteúdos.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
type:
type: array
example:
- 'Não é possível mudar o tipo de uma categoria que tem conteúdos.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Content Categories'
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
type:
type: string
description: ''
example: null
name:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: b
color:
type: string
description: 'Must match the regex /^#[0-9A-Fa-f]{6}$/.'
example: '#fEEeDb'
nullable: true
order:
type: integer
description: 'Deve conter um número superior ou igual a 0.'
example: 37
nullable: true
is_active:
type: boolean
description: ''
example: true
nullable: true
delete:
summary: 'Remove category'
operationId: removeCategory
description: 'Só é possível excluir categorias sem conteúdos.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
category:
- 'Esta categoria tem conteúdos. Mova-os para outra categoria antes de excluir.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
category:
type: array
example:
- 'Esta categoria tem conteúdos. Mova-os para outra categoria antes de excluir.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Content Categories'
parameters:
-
in: path
name: category_uuid
description: ''
example: 1
required: true
schema:
type: integer
/api/v1/admin/contents:
get:
summary: 'Get all contents'
operationId: getAllContents
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` `title` `type` `author_name` `published_at` `likes_count` `created_at`'
example: 'published_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `title` `type` `author_name` `published_at` `likes_count` `created_at`'
example: 'published_at:desc'
-
in: query
name: search
description: 'Busca sem acentos em título, autor, série e categoria (e uuid).'
example: lgpd
required: false
schema:
type: string
description: 'Busca sem acentos em título, autor, série e categoria (e uuid).'
example: lgpd
-
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: status
description: 'Available values: `published` `scheduled` `inactive`'
example: published
required: false
schema:
type: string
description: 'Available values: `published` `scheduled` `inactive`'
example: published
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: is_featured
description: 'Destaque do hub do tipo. Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Destaque do hub do tipo. Available values: `0` `1`'
example: 1
-
in: query
name: is_featured_central
description: 'Destaque da Central. Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Destaque da Central. Available values: `0` `1`'
example: 1
-
in: query
name: is_live
description: 'Webinar ao vivo. Available values: `0` `1`'
example: 0
required: false
schema:
type: integer
description: 'Webinar ao vivo. Available values: `0` `1`'
example: 0
-
in: query
name: published_at
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: 'published_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
401:
description: ''
content:
application/json:
schema:
oneOf:
-
description: ''
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
-
description: ''
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- Contents
post:
summary: 'Create content'
operationId: createContent
description: "Mídia: envie o arquivo em `media` (PDF, MP3, MP4...) **ou** a URL externa em `media_url` (CDN, provedor de vídeo, HLS `.m3u8`).\nCapa: envie a imagem em `cover` ou a URL em `cover_url`.\n`published_at` vazio publica na hora; data futura agenda a publicação.\nCampos que não valem para o tipo são limpos: `pages` só no e-book, `duration_seconds` só em áudio e vídeo, `is_live` só no webinar."
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
content_category:
- 'A categoria precisa ser do mesmo tipo do conteúdo.'
title:
- 'The title field is required.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
content_category:
type: array
example:
- 'A categoria precisa ser do mesmo tipo do conteúdo.'
items:
type: string
title:
type: array
example:
- 'The title field is required.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- Contents
/api/v1/admin/contents/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items.'
parameters:
-
in: query
name: search
description: 'Busca sem acentos em título, autor, série e categoria.'
example: lgpd
required: false
schema:
type: string
description: 'Busca sem acentos em título, autor, série e categoria.'
example: lgpd
-
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: is_active
description: 'Available values: `0` `1` Default: only active.'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1` Default: only active.'
example: 1
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
401:
description: ''
content:
application/json:
schema:
oneOf:
-
description: ''
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
-
description: ''
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:
- Contents
/api/v1/admin/contents/export:
get:
summary: 'Export contents'
operationId: exportContents
description: 'Aceita os mesmos filtros da listagem.'
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `title` `type` `author_name` `published_at` `likes_count` `created_at`'
example: 'published_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `title` `type` `author_name` `published_at` `likes_count` `created_at`'
example: 'published_at:desc'
-
in: query
name: search
description: ''
example: lgpd
required: false
schema:
type: string
description: ''
example: lgpd
-
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: architecto
required: false
schema:
type: string
description: 'Uuid da categoria.'
example: architecto
-
in: query
name: status
description: 'Available values: `published` `scheduled` `inactive`'
example: published
required: false
schema:
type: string
description: 'Available values: `published` `scheduled` `inactive`'
example: published
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: is_featured
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
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}'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- Contents
'/api/v1/admin/contents/{content_uuid}':
get:
summary: 'Get content'
operationId: getContent
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
401:
description: ''
content:
application/json:
schema:
oneOf:
-
description: ''
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
-
description: ''
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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
post:
summary: 'Update content'
operationId: updateContent
description: "Envie só os campos que mudam. Para remover a capa ou o arquivo envie `delete_cover=1` ou `delete_media=1`.\n`published_at` vazio (enviado sem valor) deixa o conteúdo sem data de publicação (não aparece no app)."
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
media_url:
- 'The media url field must be a valid URL.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
media_url:
type: array
example:
- 'The media url field must be a valid URL.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- Contents
delete:
summary: 'Remove content'
operationId: removeContent
description: 'Exclusão lógica: o conteúdo some do app e das listas do painel.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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: content_uuid
description: ''
example: 1
required: true
schema:
type: integer
/api/v1/admin/dashboard:
get:
summary: 'Get summary of data'
operationId: getSummaryOfData
description: "Contadores exibidos nos cards do Dashboard do painel. `contents_*_total`: conteúdos publicados (visíveis no app) por tipo.\nTV e ao vivo: `tv_is_live` (há item da programação no ar), `tv_viewers` (assistindo a TV agora), `live_webinars_total`\n(webinars ao vivo agora), `live_webinars_viewers` (assistindo os webinars ao vivo) e `live_webinars_scheduled_total` (agendados).\nAssistindo = sinal do app 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:
data:
customers_total: 10
customers_active_total: 8
customers_new_month_total: 2
customers_deleted_total: 1
users_total: 3
users_active_total: 3
notifications_sent_total: 5
pushes_sent_total: 4
contents_ebook_total: 18
contents_podcast_total: 12
contents_video_total: 13
contents_webinar_total: 9
tv_is_live: true
tv_viewers: 42
live_webinars_total: 1
live_webinars_viewers: 15
live_webinars_scheduled_total: 2
properties:
data:
type: object
properties:
customers_total:
type: integer
example: 10
customers_active_total:
type: integer
example: 8
customers_new_month_total:
type: integer
example: 2
customers_deleted_total:
type: integer
example: 1
users_total:
type: integer
example: 3
users_active_total:
type: integer
example: 3
notifications_sent_total:
type: integer
example: 5
pushes_sent_total:
type: integer
example: 4
contents_ebook_total:
type: integer
example: 18
contents_podcast_total:
type: integer
example: 12
contents_video_total:
type: integer
example: 13
contents_webinar_total:
type: integer
example: 9
tv_is_live:
type: boolean
example: true
tv_viewers:
type: integer
example: 42
live_webinars_total:
type: integer
example: 1
live_webinars_viewers:
type: integer
example: 15
live_webinars_scheduled_total:
type: integer
example: 2
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:
- Dashboard
/api/v1/admin/faq:
get:
summary: 'Get all faq'
operationId: getAllFaq
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` `topic` `order` `is_active` `created_at` `updated_at` Default: `topic:asc|order:asc|id:asc`'
example: 'topic:asc|order:asc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `topic` `order` `is_active` `created_at` `updated_at` Default: `topic:asc|order:asc|id:asc`'
example: 'topic:asc|order:asc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` (pergunta) `text` (resposta)'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` (pergunta) `text` (resposta)'
example: architecto
-
in: query
name: faq_topic
description: 'Uuid do tema.'
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
required: false
schema:
type: string
description: 'Uuid do tema.'
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
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: 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:
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Conta e acesso'
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
links:
first: 'http://localhost/api/v1/admin/faq?page=1'
last: 'http://localhost/api/v1/admin/faq?page=1'
prev: null
next: null
meta:
current_page: 1
from: 1
last_page: 1
path: 'http://localhost/api/v1/admin/faq'
per_page: 20
to: 1
total: 1
properties:
data:
type: array
example:
-
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:
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Conta e acesso'
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
items:
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: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: 'Conta e acesso'
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
links:
type: object
properties:
first:
type: string
example: 'http://localhost/api/v1/admin/faq?page=1'
last:
type: string
example: 'http://localhost/api/v1/admin/faq?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
path:
type: string
example: 'http://localhost/api/v1/admin/faq'
per_page:
type: integer
example: 20
to:
type: integer
example: 1
total:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- Faq
post:
summary: 'Create faq'
operationId: createFaq
description: 'Sem `order`, a pergunta vai para o fim do tema.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
201:
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: 4
is_active: true
created_at: '2026-10-22T10:00:00+00:00'
updated_at: '2026-10-22T10:00:00+00:00'
topic:
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Conta e acesso'
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
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: 4
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'
topic:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: 'Conta e acesso'
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
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
faq_topic:
- 'The selected faq topic is invalid.'
name:
- 'The name field is required.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
faq_topic:
type: array
example:
- 'The selected faq topic is invalid.'
items:
type: string
name:
type: array
example:
- 'The name field is required.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- Faq
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
faq_topic:
type: string
description: 'Must match an existing stored value.'
example: architecto
name:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: 'n'
text:
type: string
description: 'Não pode conter mais de 65535 caracteres.'
example: g
order:
type: integer
description: 'Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 2147483647.'
example: 16
nullable: true
is_active:
type: boolean
description: ''
example: false
nullable: true
required:
- faq_topic
- name
- text
/api/v1/admin/faq/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items, in the app order (topic, then question).'
parameters:
-
in: query
name: search
description: 'Available fields: `uuid` `name` `text`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `text`'
example: architecto
-
in: query
name: faq_topic
description: 'Uuid do tema.'
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
required: false
schema:
type: string
description: 'Uuid do tema.'
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
-
in: query
name: is_active
description: 'Available values: `0` `1` Default: only active.'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1` Default: only active.'
example: 1
-
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
properties:
data:
type: array
example:
-
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
items:
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
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:
- Faq
/api/v1/admin/faq/reorder:
post:
summary: 'Reorder faq'
operationId: reorderFaq
description: 'Recebe os uuids das perguntas de UM tema na nova ordem (a primeira fica com `order` 1).'
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-22T11:30:00+00:00'
deleted_at: null
properties:
data:
type: array
example:
-
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-22T11:30:00+00:00'
deleted_at: null
items:
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-22T11:30:00+00:00'
deleted_at:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
uuids:
- 'As perguntas precisam ser do mesmo tema.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
uuids:
type: array
example:
- 'As perguntas precisam ser do mesmo tema.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- Faq
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
uuids:
type: array
description: 'Must match an existing stored value.'
example:
- architecto
items:
type: string
required:
- uuids
/api/v1/admin/faq/additional-information:
get:
summary: 'Get additional information'
operationId: getAdditionalInformation
description: 'Próxima ordem livre no tema informado (a pergunta nova vai para o fim do tema).'
parameters:
-
in: query
name: faq_topic
description: 'Uuid do tema. Sem ele, considera todas as perguntas.'
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
required: false
schema:
type: string
description: 'Uuid do tema. Sem ele, considera todas as perguntas.'
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
next_order: 4
properties:
next_order:
type: integer
example: 4
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:
- Faq
/api/v1/admin/faq/export:
get:
summary: 'Export faq'
operationId: exportFaq
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `topic` `order` `is_active` `created_at` `updated_at`'
example: 'topic:asc|order:asc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `topic` `order` `is_active` `created_at` `updated_at`'
example: 'topic:asc|order:asc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `text`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `text`'
example: architecto
-
in: query
name: faq_topic
description: 'Uuid do tema.'
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
required: false
schema:
type: string
description: 'Uuid do tema.'
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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}'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- Faq
'/api/v1/admin/faq/{faq_uuid}':
get:
summary: 'Get faq'
operationId: getFaq
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: 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:
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Conta e acesso'
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
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: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: 'Conta e acesso'
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
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- Faq
post:
summary: 'Update faq'
operationId: updateFaq
description: 'Ao mudar de tema sem informar `order`, a pergunta vai para o fim do novo tema.'
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-22T11:30:00+00:00'
deleted_at: null
topic:
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Conta e acesso'
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
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-22T11:30:00+00:00'
deleted_at:
type: string
example: null
nullable: true
topic:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: 'Conta e acesso'
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
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
text:
- 'The text field is required.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
text:
type: array
example:
- 'The text field is required.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- Faq
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
faq_topic:
type: string
description: 'Must match an existing stored value.'
example: architecto
name:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: 'n'
text:
type: string
description: 'Não pode conter mais de 65535 caracteres.'
example: g
order:
type: integer
description: 'Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 2147483647.'
example: 16
nullable: true
is_active:
type: boolean
description: ''
example: false
nullable: true
delete:
summary: 'Remove faq'
operationId: removeFaq
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
204:
description: ''
content:
application/json:
schema:
type: object
example: { }
properties: { }
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- Faq
parameters:
-
in: path
name: faq_uuid
description: ''
example: 1
required: true
schema:
type: integer
/api/v1/admin/faq-topics:
get:
summary: 'Get all topics'
operationId: getAllTopics
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` `is_active` `created_at` Default: `order:asc|id:asc`'
example: 'order:asc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `order` `is_active` `created_at` Default: `order:asc|id:asc`'
example: 'order:asc'
-
in: query
name: search
description: 'Available fields: `uuid` `name`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
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: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Conta e acesso'
faqs_count: 3
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
links:
first: 'http://localhost/api/v1/admin/faq-topics?page=1'
last: 'http://localhost/api/v1/admin/faq-topics?page=1'
prev: null
next: null
meta:
current_page: 1
from: 1
last_page: 1
path: 'http://localhost/api/v1/admin/faq-topics'
per_page: 20
to: 1
total: 1
properties:
data:
type: array
example:
-
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Conta e acesso'
faqs_count: 3
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
items:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: 'Conta e acesso'
faqs_count:
type: integer
example: 3
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
links:
type: object
properties:
first:
type: string
example: 'http://localhost/api/v1/admin/faq-topics?page=1'
last:
type: string
example: 'http://localhost/api/v1/admin/faq-topics?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
path:
type: string
example: 'http://localhost/api/v1/admin/faq-topics'
per_page:
type: integer
example: 20
to:
type: integer
example: 1
total:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Faq Topics'
post:
summary: 'Create topic'
operationId: createTopic
description: 'Sem `order`, o tema vai para o fim da lista.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
201:
description: ''
content:
application/json:
schema:
type: object
example:
data:
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Conta e acesso'
faqs_count: 0
order: 1
is_active: true
created_at: '2026-10-22T10:00:00+00:00'
updated_at: '2026-10-22T10:00:00+00:00'
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: 'Conta e acesso'
faqs_count:
type: integer
example: 0
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'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
name:
- 'The name has already been taken.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
name:
type: array
example:
- 'The name has already been taken.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Faq Topics'
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
name:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: b
order:
type: integer
description: 'Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 2147483647.'
example: 22
nullable: true
is_active:
type: boolean
description: ''
example: true
nullable: true
required:
- name
/api/v1/admin/faq-topics/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items, in the app order (`order`).'
parameters:
-
in: query
name: search
description: 'Available fields: `uuid` `name`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1` Default: only active.'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1` Default: only active.'
example: 1
-
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: 'Conta e acesso'
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
properties:
data:
type: array
example:
-
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Conta e acesso'
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
items:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: 'Conta e acesso'
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
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:
- 'Faq Topics'
/api/v1/admin/faq-topics/reorder:
post:
summary: 'Reorder topics'
operationId: reorderTopics
description: 'Recebe os uuids dos temas na nova ordem (o primeiro fica com `order` 1).'
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: 'Conta e acesso'
faqs_count: 3
order: 1
is_active: true
created_at: '2026-10-22T10:00:00+00:00'
updated_at: '2026-10-22T11:30:00+00:00'
deleted_at: null
properties:
data:
type: array
example:
-
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Conta e acesso'
faqs_count: 3
order: 1
is_active: true
created_at: '2026-10-22T10:00:00+00:00'
updated_at: '2026-10-22T11:30:00+00:00'
deleted_at: null
items:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: 'Conta e acesso'
faqs_count:
type: integer
example: 3
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-22T11:30:00+00:00'
deleted_at:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
uuids.0:
- 'The selected uuids.0 is invalid.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
uuids.0:
type: array
example:
- 'The selected uuids.0 is invalid.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Faq Topics'
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
uuids:
type: array
description: 'Must match an existing stored value.'
example:
- architecto
items:
type: string
required:
- uuids
/api/v1/admin/faq-topics/export:
get:
summary: 'Export topics'
operationId: exportTopics
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `order` `is_active` `created_at`'
example: 'order:asc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `order` `is_active` `created_at`'
example: 'order:asc'
-
in: query
name: search
description: 'Available fields: `uuid` `name`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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}'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Faq Topics'
'/api/v1/admin/faq-topics/{topic_uuid}':
get:
summary: 'Get topic'
operationId: getTopic
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: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Conta e acesso'
faqs_count: 3
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
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: 'Conta e acesso'
faqs_count:
type: integer
example: 3
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
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- 'Faq Topics'
post:
summary: 'Update topic'
operationId: updateTopic
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: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Conta e acesso'
faqs_count: 3
order: 1
is_active: true
created_at: '2026-10-22T10:00:00+00:00'
updated_at: '2026-10-22T11:30:00+00:00'
deleted_at: null
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: 'Conta e acesso'
faqs_count:
type: integer
example: 3
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-22T11:30:00+00:00'
deleted_at:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
name:
- 'The name has already been taken.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
name:
type: array
example:
- 'The name has already been taken.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Faq Topics'
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
name:
type: string
description: ''
example: null
order:
type: integer
description: 'Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 2147483647.'
example: 1
nullable: true
is_active:
type: boolean
description: ''
example: true
nullable: true
delete:
summary: 'Remove topic'
operationId: removeTopic
description: 'Só é possível excluir temas sem perguntas.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
204:
description: ''
content:
application/json:
schema:
type: object
example: { }
properties: { }
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
topic:
- 'Este tema tem perguntas. Mova-as para outro tema ou exclua-as antes de excluir o tema.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
topic:
type: array
example:
- 'Este tema tem perguntas. Mova-as para outro tema ou exclua-as antes de excluir o tema.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Faq Topics'
parameters:
-
in: path
name: topic_uuid
description: ''
example: 1
required: true
schema:
type: integer
/api/v1/admin/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` `is_active` `created_at` `updated_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `order` `is_active` `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: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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:
- 'How It Works'
post:
summary: 'Create how it works'
operationId: createHowItWorks
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- 'How It Works'
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
name:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: b
text:
type: string
description: 'Não pode conter mais de 65535 caracteres.'
example: 'n'
nullable: true
order:
type: integer
description: 'Não pode conter um valor superior a 2147483647.'
example: 7
is_active:
type: boolean
description: ''
example: true
required:
- name
- order
/api/v1/admin/how-it-works/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items.'
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `email`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `email`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
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:
- 'How It Works'
/api/v1/admin/how-it-works/additional-information:
get:
summary: 'Get additional information'
operationId: getAdditionalInformation
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
next_order: 5
properties:
next_order:
type: integer
example: 5
tags:
- 'How It Works'
/api/v1/admin/how-it-works/export:
get:
summary: 'Export how it works'
operationId: exportHowItWorks
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `order` `is_active` `created_at` `updated_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `order` `is_active` `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: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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:
- 'How It Works'
'/api/v1/admin/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:
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:
- 'How It Works'
post:
summary: 'Update how it works'
operationId: updateHowItWorks
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- 'How It Works'
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
name:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: b
text:
type: string
description: 'Não pode conter mais de 65535 caracteres.'
example: 'n'
nullable: true
order:
type: integer
description: 'Não pode conter um valor superior a 2147483647.'
example: 7
is_active:
type: boolean
description: ''
example: false
delete:
summary: 'Remove how it works'
operationId: removeHowItWorks
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- 'How It Works'
parameters:
-
in: path
name: how_it_works_uuid
description: ''
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
required: true
schema:
type: string
/api/v1/admin/live-audience:
get:
summary: 'Get current audience'
operationId: getCurrentAudience
description: '`tv.now_playing`/`tv.next`: item da programação no ar e o próximo. `webinars`: transmissões ao vivo agora.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
data:
window_seconds: 60
heartbeat_seconds: 30
total: 57
tv:
viewers: 42
now_playing:
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
title: 'Otimização de Margem em Centros Cirúrgicos'
starts_at: '2026-10-22T14:00:00-03:00'
ends_at: '2026-10-22T15:00:00-03:00'
next: null
webinars:
-
uuid: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
title: 'Gestão de OPME ao vivo'
started_at: '2026-10-22T14:01:00-03:00'
viewers: 15
properties:
data:
type: object
properties:
window_seconds:
type: integer
example: 60
heartbeat_seconds:
type: integer
example: 30
total:
type: integer
example: 57
tv:
type: object
properties:
viewers:
type: integer
example: 42
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'
starts_at:
type: string
example: '2026-10-22T14:00:00-03:00'
ends_at:
type: string
example: '2026-10-22T15:00:00-03:00'
next:
type: string
example: null
nullable: true
webinars:
type: array
example:
-
uuid: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
title: 'Gestão de OPME ao vivo'
started_at: '2026-10-22T14:01:00-03:00'
viewers: 15
items:
type: object
properties:
uuid:
type: string
example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
title:
type: string
example: 'Gestão de OPME ao vivo'
started_at:
type: string
example: '2026-10-22T14:01:00-03:00'
viewers:
type: integer
example: 15
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Live Audience'
/api/v1/admin/live-webinars:
get:
summary: 'Get all live webinars'
operationId: getAllLiveWebinars
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` `starts_at` `status` `created_at`'
example: 'starts_at:asc'
required: false
schema:
type: string
description: 'Available fields: `id` `starts_at` `status` `created_at`'
example: 'starts_at:asc'
-
in: query
name: search
description: 'Busca no título do webinar (sem acentos) e no uuid.'
example: margem
required: false
schema:
type: string
description: 'Busca no título do webinar (sem acentos) e no uuid.'
example: margem
-
in: query
name: status
description: 'Available values: `scheduled` `live` `ended`'
example: live
required: false
schema:
type: string
description: 'Available values: `scheduled` `live` `ended`'
example: live
-
in: query
name: moderator
description: 'Uuid do moderador (usuário do painel).'
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
required: false
schema:
type: string
description: 'Uuid do moderador (usuário do painel).'
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
-
in: query
name: starts_at
description: 'Período do início previsto. formato: `Y-m-d\TH:i:sP`'
example: null
required: false
schema:
type: array
description: 'Período do início previsto. formato: `Y-m-d\TH:i:sP`'
example: null
items:
type: string
-
in: query
name: 'starts_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
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: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
status: live
stream_url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
moderator_role: 'VP de Operações Clínicas'
starts_at: '2026-10-22T14:00:00-03:00'
ends_at: '2026-10-22T15:00:00-03:00'
started_at: '2026-10-22T14:01:00-03:00'
ended_at: null
questions_open: true
viewers: 42
questions_count:
total: 5
pending: 2
approved: 2
answered: 1
rejected: 0
content:
uuid: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b
type: webinar
title: 'Otimização de Margem em Centros Cirúrgicos'
moderator:
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Dra. Helena Vasconcellos'
email: helena@unityhealth.com.br
links: { }
meta:
current_page: 1
total: 1
properties:
data:
type: array
example:
-
uuid: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
status: live
stream_url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
moderator_role: 'VP de Operações Clínicas'
starts_at: '2026-10-22T14:00:00-03:00'
ends_at: '2026-10-22T15:00:00-03:00'
started_at: '2026-10-22T14:01:00-03:00'
ended_at: null
questions_open: true
viewers: 42
questions_count:
total: 5
pending: 2
approved: 2
answered: 1
rejected: 0
content:
uuid: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b
type: webinar
title: 'Otimização de Margem em Centros Cirúrgicos'
moderator:
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: 'Dra. Helena Vasconcellos'
email: helena@unityhealth.com.br
items:
type: object
properties:
uuid:
type: string
example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
status:
type: string
example: live
stream_url:
type: string
example: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
moderator_role:
type: string
example: 'VP de Operações Clínicas'
starts_at:
type: string
example: '2026-10-22T14:00:00-03:00'
ends_at:
type: string
example: '2026-10-22T15:00:00-03:00'
started_at:
type: string
example: '2026-10-22T14:01:00-03:00'
ended_at:
type: string
example: null
nullable: true
questions_open:
type: boolean
example: true
viewers:
type: integer
example: 42
questions_count:
type: object
properties:
total:
type: integer
example: 5
pending:
type: integer
example: 2
approved:
type: integer
example: 2
answered:
type: integer
example: 1
rejected:
type: integer
example: 0
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'
moderator:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: 'Dra. Helena Vasconcellos'
email:
type: string
example: helena@unityhealth.com.br
links:
type: object
properties: { }
meta:
type: object
properties:
current_page:
type: integer
example: 1
total:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Live Webinars'
post:
summary: 'Create live webinar'
operationId: createLiveWebinar
description: "Agenda a transmissão de um webinar da Central. Cada webinar tem uma transmissão só.\nO moderador é um usuário do painel; `moderator_role` é o cargo exibido no app."
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
201:
description: ''
content:
application/json:
schema:
type: object
example:
data:
uuid: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
status: scheduled
stream_url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
moderator_role: 'VP de Operações Clínicas'
starts_at: '2026-10-22T14:00:00-03:00'
ends_at: '2026-10-22T15:00:00-03:00'
started_at: null
ended_at: null
questions_open: true
viewers: 0
properties:
data:
type: object
properties:
uuid:
type: string
example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
status:
type: string
example: scheduled
stream_url:
type: string
example: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
moderator_role:
type: string
example: 'VP de Operações Clínicas'
starts_at:
type: string
example: '2026-10-22T14:00:00-03:00'
ends_at:
type: string
example: '2026-10-22T15:00:00-03:00'
started_at:
type: string
example: null
nullable: true
ended_at:
type: string
example: null
nullable: true
questions_open:
type: boolean
example: true
viewers:
type: integer
example: 0
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
content:
- 'Este webinar já tem uma transmissão ao vivo agendada.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
content:
type: array
example:
- 'Este webinar já tem uma transmissão ao vivo agendada.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Live Webinars'
/api/v1/admin/live-webinars/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items (filtro da moderação de perguntas), ao vivo primeiro.'
parameters:
-
in: query
name: search
description: 'Busca no título do webinar.'
example: margem
required: false
schema:
type: string
description: 'Busca no título do webinar.'
example: margem
-
in: query
name: status
description: 'Available values: `scheduled` `live` `ended`'
example: live
required: false
schema:
type: string
description: 'Available values: `scheduled` `live` `ended`'
example: live
-
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
status: live
starts_at: '2026-10-22T14:00:00-03:00'
content:
uuid: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b
title: 'Otimização de Margem em Centros Cirúrgicos'
properties:
data:
type: array
example:
-
uuid: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
status: live
starts_at: '2026-10-22T14:00:00-03:00'
content:
uuid: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b
title: 'Otimização de Margem em Centros Cirúrgicos'
items:
type: object
properties:
uuid:
type: string
example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
status:
type: string
example: live
starts_at:
type: string
example: '2026-10-22T14:00:00-03:00'
content:
type: object
properties:
uuid:
type: string
example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b
title:
type: string
example: 'Otimização de Margem em Centros Cirúrgicos'
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/admin/live-webinars/export:
get:
summary: 'Export live webinars'
operationId: exportLiveWebinars
description: 'Aceita os mesmos filtros da listagem.'
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `starts_at` `status` `created_at`'
example: 'starts_at:asc'
required: false
schema:
type: string
description: 'Available fields: `id` `starts_at` `status` `created_at`'
example: 'starts_at:asc'
-
in: query
name: search
description: ''
example: margem
required: false
schema:
type: string
description: ''
example: margem
-
in: query
name: status
description: 'Available values: `scheduled` `live` `ended`'
example: ended
required: false
schema:
type: string
description: 'Available values: `scheduled` `live` `ended`'
example: ended
-
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}'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Live Webinars'
'/api/v1/admin/live-webinars/{live_uuid}':
get:
summary: 'Get live webinar'
operationId: getLiveWebinar
description: 'Inclui os contadores de perguntas por situação e quantos estão assistindo agora.'
parameters:
-
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
status: live
stream_url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
moderator_role: 'VP de Operações Clínicas'
starts_at: '2026-10-22T14:00:00-03:00'
ends_at: '2026-10-22T15:00:00-03:00'
started_at: '2026-10-22T14:01:00-03:00'
ended_at: null
questions_open: true
viewers: 42
questions_count:
total: 5
pending: 2
approved: 2
answered: 1
rejected: 0
properties:
data:
type: object
properties:
uuid:
type: string
example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
status:
type: string
example: live
stream_url:
type: string
example: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
moderator_role:
type: string
example: 'VP de Operações Clínicas'
starts_at:
type: string
example: '2026-10-22T14:00:00-03:00'
ends_at:
type: string
example: '2026-10-22T15:00:00-03:00'
started_at:
type: string
example: '2026-10-22T14:01:00-03:00'
ended_at:
type: string
example: null
nullable: true
questions_open:
type: boolean
example: true
viewers:
type: integer
example: 42
questions_count:
type: object
properties:
total:
type: integer
example: 5
pending:
type: integer
example: 2
approved:
type: integer
example: 2
answered:
type: integer
example: 1
rejected:
type: integer
example: 0
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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: 'Update live webinar'
operationId: updateLiveWebinar
description: 'Envie só os campos que mudam. Trocar o webinar só é possível enquanto a transmissão está agendada.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
stream_url:
- 'The stream url field must be a valid URL.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
stream_url:
type: array
example:
- 'The stream url field must be a valid URL.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Live Webinars'
delete:
summary: 'Remove live webinar'
operationId: removeLiveWebinar
description: 'Exclusão lógica da transmissão (o webinar continua no catálogo). Não é possível excluir uma transmissão ao vivo: encerre antes.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
204:
description: ''
content:
application/json:
schema:
type: object
example: { }
properties: { }
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
status:
- 'Encerre a transmissão antes de excluir.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
status:
type: array
example:
- 'Encerre a transmissão antes de excluir.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Live Webinars'
parameters:
-
in: path
name: live_uuid
description: ''
example: 1
required: true
schema:
type: integer
'/api/v1/admin/live-webinars/{live_uuid}/start':
post:
summary: 'Start live webinar'
operationId: startLiveWebinar
description: "Coloca a transmissão no ar: o webinar fica \"ao vivo\" no app (`is_live`), passa a tocar a `stream_url`\ne aceita perguntas (se `questions_open`). Sem data de publicação (ou com data futura), o webinar é publicado agora.\nOs usuários recebem o aviso \"Ao vivo agora\" por push (respeitando a chave Notificações do app); o aviso\naparece no histórico de \"Notificações push\"."
parameters:
-
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
status: live
started_at: '2026-10-22T14:01:00-03:00'
ended_at: null
questions_open: true
viewers: 0
properties:
data:
type: object
properties:
uuid:
type: string
example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
status:
type: string
example: live
started_at:
type: string
example: '2026-10-22T14:01:00-03:00'
ended_at:
type: string
example: null
nullable: true
questions_open:
type: boolean
example: true
viewers:
type: integer
example: 0
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
status:
- 'Esta transmissão já foi encerrada.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
status:
type: array
example:
- 'Esta transmissão já foi encerrada.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Live Webinars'
parameters:
-
in: path
name: live_uuid
description: ''
example: 1
required: true
schema:
type: integer
'/api/v1/admin/live-webinars/{live_uuid}/end':
post:
summary: 'End live webinar'
operationId: endLiveWebinar
description: "Encerra a transmissão: o webinar deixa de estar \"ao vivo\" e continua no catálogo como gravação\n(a mídia do conteúdo; envie `recording_url` para trocá-la pela gravação). Sem duração cadastrada,\na duração do conteúdo passa a ser o tempo real da transmissão. As perguntas são fechadas."
parameters:
-
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
status: ended
started_at: '2026-10-22T14:01:00-03:00'
ended_at: '2026-10-22T15:03:00-03:00'
questions_open: false
viewers: 0
properties:
data:
type: object
properties:
uuid:
type: string
example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
status:
type: string
example: ended
started_at:
type: string
example: '2026-10-22T14:01:00-03:00'
ended_at:
type: string
example: '2026-10-22T15:03:00-03:00'
questions_open:
type: boolean
example: false
viewers:
type: integer
example: 0
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
status:
- 'Esta transmissão não está ao vivo.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
status:
type: array
example:
- 'Esta transmissão não está ao vivo.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Live Webinars'
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
recording_url:
type: string
description: 'Must be a valid URL. Não pode conter mais de 1000 caracteres.'
example: 'http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html'
nullable: true
parameters:
-
in: path
name: live_uuid
description: ''
example: 1
required: true
schema:
type: integer
/api/v1/admin/logs:
get:
summary: 'Get all logs'
operationId: getAllLogs
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: `user_id` `log_type` `log_id` `log_name` `message` `action` `ip` `user_agent` `url` `method` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `user_id` `log_type` `log_id` `log_name` `message` `action` `ip` `user_agent` `url` `method` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `user_id` `log_type` `log_id` `log_name` `message` `action` `ip` `user_agent` `url` `method`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `user_id` `log_type` `log_id` `log_name` `message` `action` `ip` `user_agent` `url` `method`'
example: architecto
-
in: query
name: created_at
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: type_target
description: 'Available values: `user`, `customer`'
example: user
required: false
schema:
type: string
description: 'Available values: `user`, `customer`'
example: user
-
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:
- Log
/api/v1/admin/logs/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items.'
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `email`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `email`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
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:
- Log
/api/v1/admin/logs/export:
get:
summary: 'Export logs'
operationId: exportLogs
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `user_id` `log_type` `log_id` `log_name` `message` `action` `ip` `user_agent` `url` `method` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `user_id` `log_type` `log_id` `log_name` `message` `action` `ip` `user_agent` `url` `method` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `user_id` `log_type` `log_id` `log_name` `message` `action` `ip` `user_agent` `url` `method`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `user_id` `log_type` `log_id` `log_name` `message` `action` `ip` `user_agent` `url` `method`'
example: architecto
-
in: query
name: created_at
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: 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:
- Log
'/api/v1/admin/logs/{log_uuid}':
get:
summary: 'Get log'
operationId: getLog
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:
- Log
parameters:
-
in: path
name: log_uuid
description: ''
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
required: true
schema:
type: string
/api/v1/admin/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: 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: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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
post:
summary: 'Create notificacao'
operationId: createNotificacao
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- Notifications
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
name:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: b
text:
type: string
description: 'Não pode conter mais de 65535 caracteres.'
example: 'n'
description:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: 'Animi quos velit et fugiat.'
video:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: d
button_title:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: l
button_link:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: j
cover:
type: string
format: binary
description: 'Must be a file. Não pode conter um arquivo com mais de 191 kilobytes.'
nullable: true
is_active:
type: boolean
description: ''
example: false
send_push:
type: boolean
description: ''
example: false
send_date:
type: string
description: 'Deve ser uma data válida. Deve conter uma data posterior a now.'
example: '2052-12-12'
nullable: true
required:
- name
- text
/api/v1/admin/notifications/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items.'
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `email`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `email`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
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/admin/notifications/export:
get:
summary: 'Export notifications'
operationId: exportNotifications
description: ''
parameters:
-
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: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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:
- Notifications
'/api/v1/admin/notifications/{notification_uuid}':
get:
summary: 'Get notificacao'
operationId: getNotificacao
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
post:
summary: 'Update notification'
operationId: updateNotification
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- Notifications
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
name:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: b
nullable: true
text:
type: string
description: 'Não pode conter mais de 65535 caracteres.'
example: 'n'
nullable: true
description:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: 'Animi quos velit et fugiat.'
nullable: true
video:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: d
nullable: true
button_title:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: l
nullable: true
button_link:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: j
nullable: true
cover:
type: string
format: binary
description: 'Must be a file. Não pode conter um arquivo com mais de 191 kilobytes.'
nullable: true
cover_delete:
type: boolean
description: ''
example: true
nullable: true
is_active:
type: boolean
description: ''
example: false
nullable: true
send_push:
type: boolean
description: ''
example: false
nullable: true
send_date:
type: string
description: 'Deve ser uma data válida. Deve conter uma data posterior a now.'
example: '2052-12-12'
nullable: true
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/admin/onboarding:
get:
summary: 'Get all onboardings'
operationId: getAllOnboardings
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` `order` `title` `kicker` `created_at` Default: `order:asc|id:asc`'
example: 'order:asc'
required: false
schema:
type: string
description: 'Available fields: `id` `order` `title` `kicker` `created_at` Default: `order:asc|id:asc`'
example: 'order:asc'
-
in: query
name: search
description: 'Available fields: `uuid` `kicker` `title` `text`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `kicker` `title` `text`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
401:
description: ''
content:
application/json:
schema:
oneOf:
-
description: ''
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
-
description: ''
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- OnBoarding
post:
summary: 'Create onboarding'
operationId: createOnboarding
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
title:
- 'The title field is required.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
title:
type: array
example:
- 'The title field is required.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- OnBoarding
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
kicker:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: b
nullable: true
title:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: 'n'
text:
type: string
description: 'Não pode conter mais de 1000 caracteres.'
example: g
nullable: true
image:
type: string
format: binary
description: 'Must be a file. Não pode conter um arquivo com mais de 10240 kilobytes.'
nullable: true
icon:
type: string
description: 'Must match the regex /^[a-z0-9_]+$/. Não pode conter mais de 64 caracteres.'
example: z
nullable: true
order:
type: integer
description: 'Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 127.'
example: 17
nullable: true
is_active:
type: boolean
description: ''
example: true
nullable: true
required:
- title
/api/v1/admin/onboarding/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items.'
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `email`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `email`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
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:
- OnBoarding
/api/v1/admin/onboarding/additional-information:
get:
summary: 'Get additional information'
operationId: getAdditionalInformation
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
next_order: 5
properties:
next_order:
type: integer
example: 5
tags:
- OnBoarding
/api/v1/admin/onboarding/reorder:
post:
summary: 'Reorder onboarding'
operationId: reorderOnboarding
description: 'Recebe os uuids dos slides na nova ordem (o primeiro fica com `order` 1).'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
uuids.0:
- 'The selected uuids.0 is invalid.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
uuids.0:
type: array
example:
- 'The selected uuids.0 is invalid.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- OnBoarding
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
uuids:
type: array
description: 'Must match an existing stored value.'
example:
- architecto
items:
type: string
required:
- uuids
/api/v1/admin/onboarding/export:
get:
summary: 'Export onboarding'
operationId: exportOnboarding
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `order` `title` `kicker` `created_at`'
example: 'order:asc'
required: false
schema:
type: string
description: 'Available fields: `id` `order` `title` `kicker` `created_at`'
example: 'order:asc'
-
in: query
name: search
description: 'Available fields: `uuid` `kicker` `title` `text`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `kicker` `title` `text`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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}'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- OnBoarding
'/api/v1/admin/onboarding/{onboarding_uuid}':
get:
summary: 'Get onboarding'
operationId: getOnboarding
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
401:
description: ''
content:
application/json:
schema:
oneOf:
-
description: ''
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
-
description: ''
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- OnBoarding
post:
summary: 'Update onboarding'
operationId: updateOnboarding
description: 'Para remover a imagem envie `delete_image=1`.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
icon:
- 'The icon field format is invalid.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
icon:
type: array
example:
- 'The icon field format is invalid.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- OnBoarding
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
kicker:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: b
nullable: true
title:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: 'n'
text:
type: string
description: 'Não pode conter mais de 1000 caracteres.'
example: g
nullable: true
image:
type: string
format: binary
description: 'Must be a file. Não pode conter um arquivo com mais de 10240 kilobytes.'
nullable: true
delete_image:
type: boolean
description: ''
example: false
nullable: true
icon:
type: string
description: 'Must match the regex /^[a-z0-9_]+$/. Não pode conter mais de 64 caracteres.'
example: z
nullable: true
order:
type: integer
description: 'Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 127.'
example: 17
nullable: true
is_active:
type: boolean
description: ''
example: false
nullable: true
delete:
summary: 'Remove onboarding'
operationId: removeOnboarding
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- OnBoarding
parameters:
-
in: path
name: onboarding_uuid
description: ''
example: 1
required: true
schema:
type: integer
/api/v1/admin/permissions/autocomplete:
get:
summary: 'Autocomplete permissions'
operationId: autocompletePermissions
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `key` `name` `group` `order` `created_at` `updated_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `key` `name` `group` `order` `created_at` `updated_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `key` `name` `group`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `key` `name` `group`'
example: architecto
-
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:
- Permissions
/api/v1/admin/policy-cookies:
get:
summary: 'Get privacy policy'
operationId: getPrivacyPolicy
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:
- 'Policy Cookies'
post:
summary: 'Update privacy policy'
operationId: updatePrivacyPolicy
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- 'Policy Cookies'
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
name:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: b
text:
type: string
description: 'Não pode conter mais de 4294967295 caracteres.'
example: 'n'
nullable: true
/api/v1/admin/privacy-policy:
get:
summary: 'Get privacy policy'
operationId: getPrivacyPolicy
description: 'Título e texto (HTML).'
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: '
Dados de cadastro e dados de uso do app.
' 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: 'Dados de cadastro e dados de uso do app.
' 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 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: 'You do not have permission for this action.' code: 403 type: UserPermissionException properties: message: type: string example: 'You do not have permission for this action.' code: type: integer example: 403 type: type: string example: UserPermissionException tags: - 'Privacy Policy' post: summary: 'Update privacy policy' operationId: updatePrivacyPolicy description: "O texto é o HTML do editor: a API remove o que poderia executar código (scripts, eventos, iframes) e guarda a\nformatação. O app recebe esse texto dividido em seções a cada título (`GET pages/privacidade`)." 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: 'Dados de cadastro e dados de uso do app.
' created_at: '2026-10-22T10:00:00+00:00' updated_at: '2026-10-22T11:30: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: 'Dados de cadastro e dados de uso do app.
' created_at: type: string example: '2026-10-22T10:00:00+00:00' updated_at: type: string example: '2026-10-22T11:30:00+00:00' deleted_at: 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 403: description: '' content: application/json: schema: type: object example: message: 'You do not have permission for this action.' code: 403 type: UserPermissionException properties: message: type: string example: 'You do not have permission for this action.' code: type: integer example: 403 type: type: string example: UserPermissionException 422: description: '' content: application/json: schema: type: object example: message: 'The given data was invalid.' errors: text: - 'The text field is required.' code: 422 type: ValidationException properties: message: type: string example: 'The given data was invalid.' errors: type: object properties: text: type: array example: - 'The text field is required.' items: type: string code: type: integer example: 422 type: type: string example: ValidationException tags: - 'Privacy Policy' requestBody: required: false content: multipart/form-data: schema: type: object properties: name: type: string description: 'Não pode conter mais de 191 caracteres.' example: b text: type: string description: 'Não pode conter mais de 1000000 caracteres.' example: 'n' /api/v1/admin/push-city: get: summary: 'Get all push' operationId: getAllPush 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` `title` `body` `scheduled_at` `send_at` `created_at` `city.name`' example: 'id:asc|created_at:desc' required: false schema: type: string description: 'Available fields: `id` `title` `body` `scheduled_at` `send_at` `created_at` `city.name`' example: 'id:asc|created_at:desc' - in: query name: search description: 'Available fields: `uuid` `title` `body` `city.name`' example: architecto required: false schema: type: string description: 'Available fields: `uuid` `title` `body` `city.name`' example: architecto - in: query name: city_id description: '`City` relationship' example: uuid required: false schema: type: string description: '`City` relationship' example: uuid - in: query name: created_at 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: 'created_at.*' description: 'date formato: `Y-m-d\TH:i:sP`' example: architecto required: false schema: type: string description: 'date formato: `Y-m-d\TH:i:sP`' example: architecto - 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: - 'Push City' post: summary: 'Create push' operationId: createPush description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: { } tags: - 'Push City' requestBody: required: true content: multipart/form-data: schema: type: object properties: city_id: type: string description: 'Deve ser um UUID válido. Must match an existing stored value.' example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed title: type: string description: 'Não pode conter mais de 50 caracteres.' example: g body: type: string description: 'Não pode conter mais de 100 caracteres.' example: z url: type: string description: 'Must be a valid URL. Não pode conter mais de 191 caracteres.' example: 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia' nullable: true scheduled_at: type: string description: 'Deve ser uma data válida. Deve conter uma data posterior anow.'
example: '2052-12-12'
nullable: true
required:
- city_id
- title
- body
/api/v1/admin/push-city/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items.'
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `email`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `email`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
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:
- 'Push City'
'/api/v1/admin/push-city/{push_uuid}':
post:
summary: 'Update push'
operationId: updatePush
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- 'Push City'
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
city_id:
type: string
description: 'Deve ser um UUID válido. Must match an existing stored value.'
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
nullable: true
title:
type: string
description: 'Não pode conter mais de 50 caracteres.'
example: g
nullable: true
body:
type: string
description: 'Não pode conter mais de 100 caracteres.'
example: z
nullable: true
url:
type: string
description: 'Must be a valid URL. Não pode conter mais de 191 caracteres.'
example: 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia'
nullable: true
scheduled_at:
type: string
description: 'Deve ser uma data válida. Deve conter uma data posterior a now.'
example: '2052-12-12'
nullable: true
get:
summary: 'Get push'
operationId: getPush
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:
- 'Push City'
delete:
summary: 'Remove push'
operationId: removePush
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- 'Push City'
parameters:
-
in: path
name: push_uuid
description: ''
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
required: true
schema:
type: integer
/api/v1/admin/push-city/export:
get:
summary: 'Export push'
operationId: exportPush
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `title` `body` `scheduled_at` `send_at` `created_at` `city.name`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `title` `body` `scheduled_at` `send_at` `created_at` `city.name`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `title` `body` `city.name`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `title` `body` `city.name`'
example: architecto
-
in: query
name: city_id
description: '`City` relationship'
example: uuid
required: false
schema:
type: string
description: '`City` relationship'
example: uuid
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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:
- 'Push City'
/api/v1/admin/push-general:
get:
summary: 'Get all push'
operationId: getAllPush
description: 'Histórico das notificações push (manuais e automáticas).'
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` `title` `body` `scheduled_at` `send_at` `created_at`'
example: 'id:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `title` `body` `scheduled_at` `send_at` `created_at`'
example: 'id:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `title` `body`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `title` `body`'
example: architecto
-
in: query
name: source
description: 'Available values: `manual` `content` `live_webinar` `tv`'
example: manual
required: false
schema:
type: string
description: 'Available values: `manual` `content` `live_webinar` `tv`'
example: manual
-
in: query
name: status
description: 'Available values: `scheduled` `queued` `sent`'
example: sent
required: false
schema:
type: string
description: 'Available values: `scheduled` `queued` `sent`'
example: sent
-
in: query
name: audience
description: 'Available values: `all` `selected`'
example: all
required: false
schema:
type: string
description: 'Available values: `all` `selected`'
example: all
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
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: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
title: 'Novo webinar disponível'
body: 'Otimização de Margem em Centros Cirúrgicos'
url: null
audience: all
source: manual
status: sent
content:
uuid: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
type: webinar
title: 'Otimização de Margem em Centros Cirúrgicos'
user:
uuid: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name: 'Admin Unity Health'
customers_count: 0
total_users: 12
total_devices: 14
total_failed: 1
scheduled_at: null
send_at: '2026-10-22T10:01:00-03:00'
created_at: '2026-10-22T10:00:00-03:00'
updated_at: '2026-10-22T10:00:00-03:00'
deleted_at: null
links: { }
meta:
current_page: 1
from: 1
last_page: 1
per_page: 20
to: 1
total: 1
properties:
data:
type: array
example:
-
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
title: 'Novo webinar disponível'
body: 'Otimização de Margem em Centros Cirúrgicos'
url: null
audience: all
source: manual
status: sent
content:
uuid: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
type: webinar
title: 'Otimização de Margem em Centros Cirúrgicos'
user:
uuid: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name: 'Admin Unity Health'
customers_count: 0
total_users: 12
total_devices: 14
total_failed: 1
scheduled_at: null
send_at: '2026-10-22T10:01:00-03:00'
created_at: '2026-10-22T10:00:00-03:00'
updated_at: '2026-10-22T10:00:00-03:00'
deleted_at: null
items:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
title:
type: string
example: 'Novo webinar disponível'
body:
type: string
example: 'Otimização de Margem em Centros Cirúrgicos'
url:
type: string
example: null
nullable: true
audience:
type: string
example: all
source:
type: string
example: manual
status:
type: string
example: sent
content:
type: object
properties:
uuid:
type: string
example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
type:
type: string
example: webinar
title:
type: string
example: 'Otimização de Margem em Centros Cirúrgicos'
user:
type: object
properties:
uuid:
type: string
example: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name:
type: string
example: 'Admin Unity Health'
customers_count:
type: integer
example: 0
total_users:
type: integer
example: 12
total_devices:
type: integer
example: 14
total_failed:
type: integer
example: 1
scheduled_at:
type: string
example: null
nullable: true
send_at:
type: string
example: '2026-10-22T10:01:00-03:00'
created_at:
type: string
example: '2026-10-22T10:00:00-03:00'
updated_at:
type: string
example: '2026-10-22T10:00:00-03:00'
deleted_at:
type: string
example: null
nullable: true
links:
type: object
properties: { }
meta:
type: object
properties:
current_page:
type: integer
example: 1
from:
type: integer
example: 1
last_page:
type: integer
example: 1
per_page:
type: integer
example: 20
to:
type: integer
example: 1
total:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Push General'
post:
summary: 'Create push'
operationId: createPush
description: "Envio manual. Sem `scheduled_at`, sai em até 1 minuto. `audience=selected` exige `customers` (uuids dos usuários do app).\n`content` (uuid) faz o app abrir o conteúdo ao tocar no push; `url` abre um link."
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
201:
description: ''
content:
application/json:
schema:
type: object
example:
data:
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
title: 'Novo webinar disponível'
body: 'Assista agora.'
url: null
audience: all
source: manual
status: queued
content: null
total_users: null
scheduled_at: null
send_at: null
created_at: '2026-10-22T10:00:00-03:00'
updated_at: '2026-10-22T10:00:00-03:00'
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
title:
type: string
example: 'Novo webinar disponível'
body:
type: string
example: 'Assista agora.'
url:
type: string
example: null
nullable: true
audience:
type: string
example: all
source:
type: string
example: manual
status:
type: string
example: queued
content:
type: string
example: null
nullable: true
total_users:
type: string
example: null
nullable: true
scheduled_at:
type: string
example: null
nullable: true
send_at:
type: string
example: null
nullable: true
created_at:
type: string
example: '2026-10-22T10:00:00-03:00'
updated_at:
type: string
example: '2026-10-22T10:00:00-03:00'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
customers:
- 'Escolha ao menos um usuário.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
customers:
type: array
example:
- 'Escolha ao menos um usuário.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Push General'
/api/v1/admin/push-general/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items.'
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `email`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `email`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
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:
- 'Push General'
'/api/v1/admin/push-general/{push_uuid}':
post:
summary: 'Update push'
operationId: updatePush
description: 'Só enquanto não foi enviado.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
201:
description: ''
content:
application/json:
schema:
type: object
example:
data:
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
title: 'Novo webinar disponível'
status: scheduled
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
title:
type: string
example: 'Novo webinar disponível'
status:
type: string
example: scheduled
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
status:
- 'Este push já foi enviado.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
status:
type: array
example:
- 'Este push já foi enviado.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Push General'
get:
summary: 'Get push'
operationId: getPush
description: 'Detalhe com os usuários selecionados e o resultado do envio (`api_response`: driver, totais e amostra dos tickets do Expo).'
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
title: 'Novo webinar disponível'
body: 'Assista agora.'
audience: selected
source: manual
status: sent
customers:
-
uuid: 1d2f4e0a-9a51-6f1d-2b3c-4d5e9b1f6c1e
name: 'Mariana Vasconcellos'
email: mariana@unityhealth.com.br
total_users: 1
total_devices: 1
total_failed: 0
api_response:
driver: log
users: 1
devices: 1
failed: 0
removed: 0
tickets:
-
status: ok
id: log-...
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
title:
type: string
example: 'Novo webinar disponível'
body:
type: string
example: 'Assista agora.'
audience:
type: string
example: selected
source:
type: string
example: manual
status:
type: string
example: sent
customers:
type: array
example:
-
uuid: 1d2f4e0a-9a51-6f1d-2b3c-4d5e9b1f6c1e
name: 'Mariana Vasconcellos'
email: mariana@unityhealth.com.br
items:
type: object
properties:
uuid:
type: string
example: 1d2f4e0a-9a51-6f1d-2b3c-4d5e9b1f6c1e
name:
type: string
example: 'Mariana Vasconcellos'
email:
type: string
example: mariana@unityhealth.com.br
total_users:
type: integer
example: 1
total_devices:
type: integer
example: 1
total_failed:
type: integer
example: 0
api_response:
type: object
properties:
driver:
type: string
example: log
users:
type: integer
example: 1
devices:
type: integer
example: 1
failed:
type: integer
example: 0
removed:
type: integer
example: 0
tickets:
type: array
example:
-
status: ok
id: log-...
items:
type: object
properties:
status:
type: string
example: ok
id:
type: string
example: log-...
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- 'Push General'
delete:
summary: 'Remove push'
operationId: removePush
description: 'Cancela um push que ainda não foi enviado.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
204:
description: ''
content:
application/json:
schema:
type: object
example: { }
properties: { }
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Push General'
parameters:
-
in: path
name: push_uuid
description: ''
example: 1
required: true
schema:
type: integer
/api/v1/admin/push-general/export:
get:
summary: 'Export push'
operationId: exportPush
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `title` `body` `scheduled_at` `send_at` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `title` `body` `scheduled_at` `send_at` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `title` `body`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `title` `body`'
example: architecto
-
in: query
name: source
description: 'Available values: `manual` `content` `live_webinar` `tv`'
example: manual
required: false
schema:
type: string
description: 'Available values: `manual` `content` `live_webinar` `tv`'
example: manual
-
in: query
name: status
description: 'Available values: `scheduled` `queued` `sent`'
example: sent
required: false
schema:
type: string
description: 'Available values: `scheduled` `queued` `sent`'
example: sent
-
in: query
name: audience
description: 'Available values: `all` `selected`'
example: all
required: false
schema:
type: string
description: 'Available values: `all` `selected`'
example: all
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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:
- 'Push General'
/api/v1/admin/push-state:
get:
summary: 'Get all push'
operationId: getAllPush
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` `title` `body` `scheduled_at` `send_at` `created_at` `state.name`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `title` `body` `scheduled_at` `send_at` `created_at` `state.name`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `title` `body` `state.name`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `title` `body` `state.name`'
example: architecto
-
in: query
name: state_id
description: '`State` relationship'
example: uuid
required: false
schema:
type: string
description: '`State` relationship'
example: uuid
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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:
- 'Push State'
post:
summary: 'Create push'
operationId: createPush
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- 'Push State'
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
state_id:
type: string
description: 'Deve ser um UUID válido. Must match an existing stored value.'
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
title:
type: string
description: 'Não pode conter mais de 50 caracteres.'
example: g
body:
type: string
description: 'Não pode conter mais de 100 caracteres.'
example: z
url:
type: string
description: 'Must be a valid URL. Não pode conter mais de 191 caracteres.'
example: 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia'
nullable: true
scheduled_at:
type: string
description: 'Deve ser uma data válida. Deve conter uma data posterior a now.'
example: '2052-12-12'
nullable: true
required:
- state_id
- title
- body
/api/v1/admin/push-state/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items.'
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `email`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `email`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
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:
- 'Push State'
'/api/v1/admin/push-state/{push_uuid}':
post:
summary: 'Update push'
operationId: updatePush
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- 'Push State'
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
state_id:
type: string
description: 'Deve ser um UUID válido. Must match an existing stored value.'
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
nullable: true
title:
type: string
description: 'Não pode conter mais de 50 caracteres.'
example: g
nullable: true
body:
type: string
description: 'Não pode conter mais de 100 caracteres.'
example: z
nullable: true
url:
type: string
description: 'Must be a valid URL. Não pode conter mais de 191 caracteres.'
example: 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia'
nullable: true
scheduled_at:
type: string
description: 'Deve ser uma data válida. Deve conter uma data posterior a now.'
example: '2052-12-12'
nullable: true
get:
summary: 'Get push'
operationId: getPush
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:
- 'Push State'
delete:
summary: 'Remove push'
operationId: removePush
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- 'Push State'
parameters:
-
in: path
name: push_uuid
description: ''
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
required: true
schema:
type: integer
/api/v1/admin/push-state/export:
get:
summary: 'Export push'
operationId: exportPush
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `title` `body` `scheduled_at` `send_at` `created_at` `state.name`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `title` `body` `scheduled_at` `send_at` `created_at` `state.name`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `title` `body` `state.name`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `title` `body` `state.name`'
example: architecto
-
in: query
name: state_id
description: '`State` relationship'
example: uuid
required: false
schema:
type: string
description: '`State` relationship'
example: uuid
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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:
- 'Push State'
/api/v1/admin/push-user:
get:
summary: 'Get all push'
operationId: getAllPush
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` `title` `body` `scheduled_at` `send_at` `created_at` `user.name`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `title` `body` `scheduled_at` `send_at` `created_at` `user.name`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `title` `body` `user.name`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `title` `body` `user.name`'
example: architecto
-
in: query
name: customer_id
description: '`Customer` relationship'
example: uuid
required: false
schema:
type: string
description: '`Customer` relationship'
example: uuid
-
in: query
name: created_at
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: 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:
- 'Push User'
post:
summary: 'Create push'
operationId: createPush
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- 'Push User'
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
customer_id:
type: string
description: 'Deve ser um UUID válido. Must match an existing stored value.'
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
title:
type: string
description: 'Não pode conter mais de 50 caracteres.'
example: g
body:
type: string
description: 'Não pode conter mais de 100 caracteres.'
example: z
url:
type: string
description: 'Must be a valid URL. Não pode conter mais de 191 caracteres.'
example: 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia'
nullable: true
scheduled_at:
type: string
description: 'Deve ser uma data válida. Deve conter uma data posterior a now.'
example: '2052-12-12'
nullable: true
required:
- customer_id
- title
- body
/api/v1/admin/push-user/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items.'
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `email`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `email`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
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:
- 'Push User'
'/api/v1/admin/push-user/{push_uuid}':
post:
summary: 'Update push'
operationId: updatePush
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- 'Push User'
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
customer_id:
type: string
description: 'Deve ser um UUID válido. Must match an existing stored value.'
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
nullable: true
title:
type: string
description: 'Não pode conter mais de 50 caracteres.'
example: g
nullable: true
body:
type: string
description: 'Não pode conter mais de 100 caracteres.'
example: z
nullable: true
url:
type: string
description: 'Must be a valid URL. Não pode conter mais de 191 caracteres.'
example: 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia'
nullable: true
scheduled_at:
type: string
description: 'Deve ser uma data válida. Deve conter uma data posterior a now.'
example: '2052-12-12'
nullable: true
get:
summary: 'Get push'
operationId: getPush
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:
- 'Push User'
delete:
summary: 'Remove push'
operationId: removePush
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- 'Push User'
parameters:
-
in: path
name: push_uuid
description: ''
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
required: true
schema:
type: integer
/api/v1/admin/push-user/export:
get:
summary: 'Export push'
operationId: exportPush
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `title` `body` `scheduled_at` `send_at` `created_at` `user.name`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `title` `body` `scheduled_at` `send_at` `created_at` `user.name`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `title` `body` `user.name`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `title` `body` `user.name`'
example: architecto
-
in: query
name: customer_id
description: '`Customer` relationship'
example: uuid
required: false
schema:
type: string
description: '`Customer` relationship'
example: uuid
-
in: query
name: created_at
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: 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:
- 'Push User'
/api/v1/admin/roles:
get:
summary: 'Get all roles'
operationId: getAllRoles
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` `description` `created_at` `updated_at` `permissions_count` `users_count`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `description` `created_at` `updated_at` `permissions_count` `users_count`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `description`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `description`'
example: architecto
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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:
- Roles
post:
summary: 'Create role'
operationId: createRole
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- Roles
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
name:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: b
description:
type: string
description: 'Não pode conter mais de 100 caracteres.'
example: 'Et animi quos velit et fugiat.'
permissions:
type: array
description: 'Deve ser um UUID válido.'
example:
- 5707ca55-f609-3528-be8b-1baeaee1567e
items:
type: string
required:
- name
- description
- permissions
/api/v1/admin/roles/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items.'
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `email`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `email`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
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:
- Roles
/api/v1/admin/roles/export:
get:
summary: 'Export roles'
operationId: exportRoles
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `description` `created_at` `updated_at` `permissions_count` `users_count`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `description` `created_at` `updated_at` `permissions_count` `users_count`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `description`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `description`'
example: architecto
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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:
- Roles
'/api/v1/admin/roles/{role_uuid}':
get:
summary: 'Get role'
operationId: getRole
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:
- Roles
post:
summary: 'Update role'
operationId: updateRole
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- Roles
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
name:
type: string
description: 'Não pode conter mais de 191 caracteres.'
example: b
description:
type: string
description: 'Não pode conter mais de 100 caracteres.'
example: 'Et animi quos velit et fugiat.'
permissions:
type: array
description: 'Deve ser um UUID válido.'
example:
- 5707ca55-f609-3528-be8b-1baeaee1567e
items:
type: string
required:
- permissions
delete:
summary: 'Remove role'
operationId: removeRole
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- Roles
parameters:
-
in: path
name: role_uuid
description: ''
example: 1
required: true
schema:
type: integer
/api/v1/admin/settings/general:
get:
summary: 'Get settings'
operationId: getSettings
description: 'Inclui o WhatsApp do suporte (`whatsapp_support` e `whatsapp_message`), usado no botão "Continuar por lá" do app.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
200:
description: ''
content:
application/json:
schema:
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.'
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.'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Settings General'
post:
summary: 'Update settings'
operationId: updateSettings
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
204:
description: ''
content:
application/json:
schema:
type: object
example: { }
properties: { }
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
whatsapp_support:
- 'The whatsapp support is invalid.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
whatsapp_support:
type: array
example:
- 'The whatsapp support is invalid.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Settings General'
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
app_url_android:
type: string
description: 'Must be a valid URL.'
example: 'http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html'
nullable: true
app_url_ios:
type: string
description: 'Must be a valid URL.'
example: 'https://www.runte.com/ab-provident-perspiciatis-quo-omnis-nostrum-aut-adipisci'
nullable: true
email_support:
type: string
description: 'Deve ser um endereço de email válido.'
example: theo.hauck@example.com
nullable: true
phone_support:
type: string
description: ''
example: architecto
nullable: true
url_site:
type: string
description: ''
example: architecto
nullable: true
whatsapp_support:
type: string
description: ''
example: architecto
nullable: true
whatsapp_message:
type: string
description: 'Não pode conter mais de 500 caracteres.'
example: 'n'
nullable: true
/api/v1/admin/settings/notifications:
get:
summary: 'Get settings'
operationId: getSettings
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:
- 'Settings Notifications'
post:
summary: 'Update settings'
operationId: updateSettings
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- 'Settings Notifications'
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
delete_account:
type: array
description: 'Deve ser um endereço de email válido.'
example:
- gbailey@example.net
items:
type: string
create_account:
type: array
description: 'Deve ser um endereço de email válido.'
example:
- rempel.chadrick@example.org
items:
type: string
required:
- delete_account
- create_account
/api/v1/admin/social-networks:
get:
summary: 'Get all social networks'
operationId: getAllSocialNetworks
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` `network` `order` `is_active` `created_at` Default: `order:asc|id:asc`'
example: 'order:asc'
required: false
schema:
type: string
description: 'Available fields: `id` `network` `order` `is_active` `created_at` Default: `order:asc|id:asc`'
example: 'order:asc'
-
in: query
name: search
description: 'Available fields: `uuid` `network` `url`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `network` `url`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
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: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
network: instagram
url: 'https://www.instagram.com/unityhealth'
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
links:
first: 'http://localhost/api/v1/admin/social-networks?page=1'
last: 'http://localhost/api/v1/admin/social-networks?page=1'
prev: null
next: null
meta:
current_page: 1
from: 1
last_page: 1
path: 'http://localhost/api/v1/admin/social-networks'
per_page: 20
to: 1
total: 1
properties:
data:
type: array
example:
-
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
network: instagram
url: 'https://www.instagram.com/unityhealth'
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
items:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
network:
type: string
example: instagram
url:
type: string
example: 'https://www.instagram.com/unityhealth'
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
links:
type: object
properties:
first:
type: string
example: 'http://localhost/api/v1/admin/social-networks?page=1'
last:
type: string
example: 'http://localhost/api/v1/admin/social-networks?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
path:
type: string
example: 'http://localhost/api/v1/admin/social-networks'
per_page:
type: integer
example: 20
to:
type: integer
example: 1
total:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Social Networks'
post:
summary: 'Create social network'
operationId: createSocialNetwork
description: 'Uma rede de cada tipo. Sem `order`, a rede vai para o fim da lista.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
201:
description: ''
content:
application/json:
schema:
type: object
example:
data:
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
network: instagram
url: 'https://www.instagram.com/unityhealth'
order: 1
is_active: true
created_at: '2026-10-22T10:00:00+00:00'
updated_at: '2026-10-22T10:00:00+00:00'
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
network:
type: string
example: instagram
url:
type: string
example: 'https://www.instagram.com/unityhealth'
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'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
network:
- 'The network has already been taken.'
url:
- 'The url must be a valid URL.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
network:
type: array
example:
- 'The network has already been taken.'
items:
type: string
url:
type: array
example:
- 'The url must be a valid URL.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Social Networks'
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
network:
type: string
description: ''
example: architecto
url:
type: string
description: 'Must be a valid URL. Não pode conter mais de 191 caracteres.'
example: 'http://bailey.com/'
nullable: true
order:
type: integer
description: 'Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 2147483647.'
example: 17
nullable: true
is_active:
type: boolean
description: ''
example: true
nullable: true
required:
- network
/api/v1/admin/social-networks/reorder:
post:
summary: 'Reorder social networks'
operationId: reorderSocialNetworks
description: 'Recebe os uuids das redes na nova ordem (a primeira fica com `order` 1).'
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
network: instagram
url: 'https://www.instagram.com/unityhealth'
order: 1
is_active: true
created_at: '2026-10-22T10:00:00+00:00'
updated_at: '2026-10-22T11:30:00+00:00'
deleted_at: null
properties:
data:
type: array
example:
-
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
network: instagram
url: 'https://www.instagram.com/unityhealth'
order: 1
is_active: true
created_at: '2026-10-22T10:00:00+00:00'
updated_at: '2026-10-22T11:30:00+00:00'
deleted_at: null
items:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
network:
type: string
example: instagram
url:
type: string
example: 'https://www.instagram.com/unityhealth'
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-22T11:30:00+00:00'
deleted_at:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
uuids.0:
- 'The selected uuids.0 is invalid.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
uuids.0:
type: array
example:
- 'The selected uuids.0 is invalid.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Social Networks'
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
uuids:
type: array
description: 'Must match an existing stored value.'
example:
- architecto
items:
type: string
required:
- uuids
/api/v1/admin/social-networks/export:
get:
summary: 'Export social networks'
operationId: exportSocialNetworks
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `network` `order` `is_active` `created_at`'
example: 'order:asc'
required: false
schema:
type: string
description: 'Available fields: `id` `network` `order` `is_active` `created_at`'
example: 'order:asc'
-
in: query
name: search
description: 'Available fields: `uuid` `network` `url`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `network` `url`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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}'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Social Networks'
'/api/v1/admin/social-networks/{social_uuid}':
get:
summary: 'Get social network'
operationId: getSocialNetwork
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: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
network: instagram
url: 'https://www.instagram.com/unityhealth'
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
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
network:
type: string
example: instagram
url:
type: string
example: 'https://www.instagram.com/unityhealth'
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
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- 'Social Networks'
post:
summary: 'Update social network'
operationId: updateSocialNetwork
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: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
network: instagram
url: 'https://www.instagram.com/unityhealth'
order: 1
is_active: true
created_at: '2026-10-22T10:00:00+00:00'
updated_at: '2026-10-22T11:30:00+00:00'
deleted_at: null
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
network:
type: string
example: instagram
url:
type: string
example: 'https://www.instagram.com/unityhealth'
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-22T11:30:00+00:00'
deleted_at:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
url:
- 'The url must be a valid URL.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
url:
type: array
example:
- 'The url must be a valid URL.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Social Networks'
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
network:
type: string
description: ''
example: null
url:
type: string
description: 'Must be a valid URL. Não pode conter mais de 191 caracteres.'
example: 'http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html'
nullable: true
order:
type: integer
description: 'Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 2147483647.'
example: 5
nullable: true
is_active:
type: boolean
description: ''
example: false
nullable: true
delete:
summary: 'Remove social network'
operationId: removeSocialNetwork
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
204:
description: ''
content:
application/json:
schema:
type: object
example: { }
properties: { }
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- 'Social Networks'
parameters:
-
in: path
name: social_uuid
description: ''
example: 1
required: true
schema:
type: integer
/api/v1/admin/support-agents/status:
get:
summary: 'Get agents status'
operationId: getAgentsStatus
description: "Status do atendente logado (`me`) e dos atendentes (usuários ativos com acesso às conversas).\n`online` = chave ligada e sinal do painel nos últimos 3 minutos. `team_online` = há atendente online\n(é o \"Online agora\" do app)."
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
data:
me:
uuid: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name: 'Camila Rocha'
is_online: true
online: true
last_seen_at: '2026-10-22T09:41:00-03:00'
team_online: true
agents:
-
uuid: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name: 'Camila Rocha'
online: true
last_seen_at: '2026-10-22T09:41:00-03:00'
properties:
data:
type: object
properties:
me:
type: object
properties:
uuid:
type: string
example: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name:
type: string
example: 'Camila Rocha'
is_online:
type: boolean
example: true
online:
type: boolean
example: true
last_seen_at:
type: string
example: '2026-10-22T09:41:00-03:00'
team_online:
type: boolean
example: true
agents:
type: array
example:
-
uuid: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name: 'Camila Rocha'
online: true
last_seen_at: '2026-10-22T09:41:00-03:00'
items:
type: object
properties:
uuid:
type: string
example: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name:
type: string
example: 'Camila Rocha'
online:
type: boolean
example: true
last_seen_at:
type: string
example: '2026-10-22T09:41:00-03:00'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Support Conversations'
post:
summary: 'Update my status'
operationId: updateMyStatus
description: "Liga ou desliga o atendente logado (chave online/offline) e renova o sinal. Sem `is_online`, só renova o sinal\n(o painel manda a cada minuto enquanto a tela de Conversas está aberta). O app é avisado da mudança\n(`support.agent-status`)."
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
data:
me:
uuid: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name: 'Camila Rocha'
is_online: true
online: true
last_seen_at: '2026-10-22T09:41:00-03:00'
team_online: true
agents: []
properties:
data:
type: object
properties:
me:
type: object
properties:
uuid:
type: string
example: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name:
type: string
example: 'Camila Rocha'
is_online:
type: boolean
example: true
online:
type: boolean
example: true
last_seen_at:
type: string
example: '2026-10-22T09:41:00-03:00'
team_online:
type: boolean
example: true
agents:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Support Conversations'
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
is_online:
type: boolean
description: ''
example: true
/api/v1/admin/support-conversations:
get:
summary: 'Get all conversations'
operationId: getAllConversations
description: 'Caixa de conversas. Só conversas com mensagens. `unread_count` = mensagens do usuário ainda não lidas pelo atendimento.'
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` `last_message_at` `created_at` Default: `last_message_at:desc`'
example: 'last_message_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `last_message_at` `created_at` Default: `last_message_at:desc`'
example: 'last_message_at:desc'
-
in: query
name: search
description: 'Busca pelo nome ou e-mail do usuário do app.'
example: mariana
required: false
schema:
type: string
description: 'Busca pelo nome ou e-mail do usuário do app.'
example: mariana
-
in: query
name: status
description: 'Available values: `open` `closed`'
example: open
required: false
schema:
type: string
description: 'Available values: `open` `closed`'
example: open
-
in: query
name: unread
description: '`1` = só com mensagens não lidas.'
example: 1
required: false
schema:
type: integer
description: '`1` = só com mensagens não lidas.'
example: 1
-
in: query
name: agent
description: '`me` (minhas), `none` (sem responsável) ou uuid do atendente.'
example: me
required: false
schema:
type: string
description: '`me` (minhas), `none` (sem responsável) ou uuid do atendente.'
example: me
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
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: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
status: open
customer:
uuid: 1d2f4e0a-9a51-6f1d-2b3c-4d5e9b1f6c1e
name: 'Mariana Vasconcellos'
treatment: Dra.
email: mariana@unityhealth.com.br
phone: '+5511999990000'
avatar: null
is_active: true
deleted: false
agent:
uuid: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name: 'Camila Rocha'
last_message:
uuid: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
from: customer
text: 'Tenho uma dúvida sobre um boleto.'
created_at: '2026-10-22T09:41:00-03:00'
unread_count: 1
customer_typing: false
customer_online: true
last_message_at: '2026-10-22T09:41:00-03:00'
customer_seen_at: '2026-10-22T09:41:00-03:00'
closed_at: null
created_at: '2026-10-22T09:40:00-03:00'
updated_at: '2026-10-22T09:41:00-03:00'
deleted_at: null
links: { }
meta:
current_page: 1
from: 1
last_page: 1
per_page: 20
to: 1
total: 1
properties:
data:
type: array
example:
-
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
status: open
customer:
uuid: 1d2f4e0a-9a51-6f1d-2b3c-4d5e9b1f6c1e
name: 'Mariana Vasconcellos'
treatment: Dra.
email: mariana@unityhealth.com.br
phone: '+5511999990000'
avatar: null
is_active: true
deleted: false
agent:
uuid: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name: 'Camila Rocha'
last_message:
uuid: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
from: customer
text: 'Tenho uma dúvida sobre um boleto.'
created_at: '2026-10-22T09:41:00-03:00'
unread_count: 1
customer_typing: false
customer_online: true
last_message_at: '2026-10-22T09:41:00-03:00'
customer_seen_at: '2026-10-22T09:41:00-03:00'
closed_at: null
created_at: '2026-10-22T09:40:00-03:00'
updated_at: '2026-10-22T09:41:00-03:00'
deleted_at: null
items:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
status:
type: string
example: open
customer:
type: object
properties:
uuid:
type: string
example: 1d2f4e0a-9a51-6f1d-2b3c-4d5e9b1f6c1e
name:
type: string
example: 'Mariana Vasconcellos'
treatment:
type: string
example: Dra.
email:
type: string
example: mariana@unityhealth.com.br
phone:
type: string
example: '+5511999990000'
avatar:
type: string
example: null
nullable: true
is_active:
type: boolean
example: true
deleted:
type: boolean
example: false
agent:
type: object
properties:
uuid:
type: string
example: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name:
type: string
example: 'Camila Rocha'
last_message:
type: object
properties:
uuid:
type: string
example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
from:
type: string
example: customer
text:
type: string
example: 'Tenho uma dúvida sobre um boleto.'
created_at:
type: string
example: '2026-10-22T09:41:00-03:00'
unread_count:
type: integer
example: 1
customer_typing:
type: boolean
example: false
customer_online:
type: boolean
example: true
last_message_at:
type: string
example: '2026-10-22T09:41:00-03:00'
customer_seen_at:
type: string
example: '2026-10-22T09:41:00-03:00'
closed_at:
type: string
example: null
nullable: true
created_at:
type: string
example: '2026-10-22T09:40:00-03:00'
updated_at:
type: string
example: '2026-10-22T09:41:00-03:00'
deleted_at:
type: string
example: null
nullable: true
links:
type: object
properties: { }
meta:
type: object
properties:
current_page:
type: integer
example: 1
from:
type: integer
example: 1
last_page:
type: integer
example: 1
per_page:
type: integer
example: 20
to:
type: integer
example: 1
total:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Support Conversations'
/api/v1/admin/support-conversations/unread:
get:
summary: 'Unread summary'
operationId: unreadSummary
description: 'Total de conversas abertas com mensagens não lidas e total dessas mensagens (balão do menu "Suporte").'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
data:
conversations: 2
messages: 3
open: 5
properties:
data:
type: object
properties:
conversations:
type: integer
example: 2
messages:
type: integer
example: 3
open:
type: integer
example: 5
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Support Conversations'
/api/v1/admin/support-conversations/export:
get:
summary: 'Export conversations'
operationId: exportConversations
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `last_message_at` `created_at`'
example: 'last_message_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `last_message_at` `created_at`'
example: 'last_message_at:desc'
-
in: query
name: search
description: 'Busca pelo nome ou e-mail do usuário do app.'
example: architecto
required: false
schema:
type: string
description: 'Busca pelo nome ou e-mail do usuário do app.'
example: architecto
-
in: query
name: status
description: 'Available values: `open` `closed`'
example: open
required: false
schema:
type: string
description: 'Available values: `open` `closed`'
example: open
-
in: query
name: unread
description: ''
example: 1
required: false
schema:
type: integer
description: ''
example: 1
-
in: query
name: agent
description: '`me`, `none` ou uuid do atendente.'
example: architecto
required: false
schema:
type: string
description: '`me`, `none` ou uuid do atendente.'
example: architecto
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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}'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Support Conversations'
'/api/v1/admin/support-conversations/{conversation_uuid}':
get:
summary: 'Get conversation'
operationId: getConversation
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: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
status: open
customer:
uuid: 1d2f4e0a-9a51-6f1d-2b3c-4d5e9b1f6c1e
name: 'Mariana Vasconcellos'
agent: null
unread_count: 0
customer_typing: false
customer_online: false
last_message_at: '2026-10-22T09:41:00-03:00'
closed_at: null
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
status:
type: string
example: open
customer:
type: object
properties:
uuid:
type: string
example: 1d2f4e0a-9a51-6f1d-2b3c-4d5e9b1f6c1e
name:
type: string
example: 'Mariana Vasconcellos'
agent:
type: string
example: null
nullable: true
unread_count:
type: integer
example: 0
customer_typing:
type: boolean
example: false
customer_online:
type: boolean
example: false
last_message_at:
type: string
example: '2026-10-22T09:41:00-03:00'
closed_at:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- 'Support Conversations'
parameters:
-
in: path
name: conversation_uuid
description: ''
example: 1
required: true
schema:
type: integer
'/api/v1/admin/support-conversations/{conversation_uuid}/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 mais antiga já\ncarregada; `after` = uuid da mais nova já carregada (consulta periódica sem WebSocket, até 100).\n`meta.typing` = o usuário do app está digitando; `meta.customer_online` = o app deu sinal no chat nos últimos 45 s."
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.'
example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
required: false
schema:
type: string
description: 'uuid da mensagem mais nova já carregada.'
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: customer
text: 'Tenho uma dúvida sobre um boleto.'
read_at: null
agent: null
created_at: '2026-10-22T09:41:00-03:00'
updated_at: '2026-10-22T09:41:00-03:00'
meta:
has_more: false
typing: false
customer_online: true
status: open
unread_count: 1
properties:
data:
type: array
example:
-
uuid: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
from: customer
text: 'Tenho uma dúvida sobre um boleto.'
read_at: null
agent: null
created_at: '2026-10-22T09:41:00-03:00'
updated_at: '2026-10-22T09:41:00-03:00'
items:
type: object
properties:
uuid:
type: string
example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
from:
type: string
example: customer
text:
type: string
example: 'Tenho uma dúvida sobre um boleto.'
read_at:
type: string
example: null
nullable: true
agent:
type: string
example: null
nullable: true
created_at:
type: string
example: '2026-10-22T09:41:00-03:00'
updated_at:
type: string
example: '2026-10-22T09:41:00-03:00'
meta:
type: object
properties:
has_more:
type: boolean
example: false
typing:
type: boolean
example: false
customer_online:
type: boolean
example: true
status:
type: string
example: open
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- 'Support Conversations'
post:
summary: 'Send message'
operationId: sendMessage
description: "Responde o usuário do app. Reabre a conversa encerrada; sem responsável, quem responde passa a ser o responsável.\nO app recebe na hora (WebSocket ou consulta periódica) e, se não estiver aberto no chat, por push."
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
201:
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?'
read_at: null
agent:
uuid: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name: 'Camila Rocha'
created_at: '2026-10-22T09:42:00-03:00'
updated_at: '2026-10-22T09:42:00-03:00'
properties:
data:
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?'
read_at:
type: string
example: null
nullable: true
agent:
type: object
properties:
uuid:
type: string
example: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name:
type: string
example: 'Camila Rocha'
created_at:
type: string
example: '2026-10-22T09:42:00-03:00'
updated_at:
type: string
example: '2026-10-22T09:42:00-03:00'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
text:
- 'Escreva a sua mensagem.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
text:
type: array
example:
- 'Escreva a sua mensagem.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Support Conversations'
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
text:
type: string
description: ''
example: null
parameters:
-
in: path
name: conversation_uuid
description: ''
example: 1
required: true
schema:
type: integer
'/api/v1/admin/support-conversations/{conversation_uuid}/read':
post:
summary: 'Mark as read'
operationId: markAsRead
description: 'Marca como lidas as mensagens do usuário do app (ao abrir a conversa ou receber mensagem com ela aberta).'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
data:
read: 2
properties:
data:
type: object
properties:
read:
type: integer
example: 2
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- 'Support Conversations'
parameters:
-
in: path
name: conversation_uuid
description: ''
example: 1
required: true
schema:
type: integer
'/api/v1/admin/support-conversations/{conversation_uuid}/typing':
post:
summary: Typing
operationId: typing
description: 'Mostra "digitando…" no app (mande no máximo a cada 3 s enquanto digita; vale por 8 s). 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: { }
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Support Conversations'
parameters:
-
in: path
name: conversation_uuid
description: ''
example: 1
required: true
schema:
type: integer
'/api/v1/admin/support-conversations/{conversation_uuid}/close':
post:
summary: 'Close conversation'
operationId: closeConversation
description: 'Encerra (marca como resolvida). O app é avisado (`support.conversation`, `action: closed`); 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:
data:
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
status: closed
closed_at: '2026-10-22T10:00:00-03:00'
closed_by:
uuid: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name: 'Camila Rocha'
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
status:
type: string
example: closed
closed_at:
type: string
example: '2026-10-22T10:00:00-03:00'
closed_by:
type: object
properties:
uuid:
type: string
example: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name:
type: string
example: 'Camila Rocha'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
status:
- 'Esta conversa já está encerrada.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
status:
type: array
example:
- 'Esta conversa já está encerrada.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Support Conversations'
parameters:
-
in: path
name: conversation_uuid
description: ''
example: 1
required: true
schema:
type: integer
'/api/v1/admin/support-conversations/{conversation_uuid}/reopen':
post:
summary: 'Reopen conversation'
operationId: reopenConversation
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: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
status: open
closed_at: null
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
status:
type: string
example: open
closed_at:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
status:
- 'Esta conversa já está aberta.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
status:
type: array
example:
- 'Esta conversa já está aberta.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Support Conversations'
parameters:
-
in: path
name: conversation_uuid
description: ''
example: 1
required: true
schema:
type: integer
'/api/v1/admin/support-conversations/{conversation_uuid}/assign':
post:
summary: 'Assign agent'
operationId: assignAgent
description: 'Define o atendente responsável (o nome dele aparece no app). `agent` vazio tira o responsável.'
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
status: open
agent:
uuid: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name: 'Camila Rocha'
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
status:
type: string
example: open
agent:
type: object
properties:
uuid:
type: string
example: 4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f
name:
type: string
example: 'Camila Rocha'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
agent:
- 'Escolha um atendente ativo com acesso às conversas.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
agent:
type: array
example:
- 'Escolha um atendente ativo com acesso às conversas.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Support Conversations'
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
agent:
type: string
description: 'Não pode conter mais de 36 caracteres.'
example: b
nullable: true
parameters:
-
in: path
name: conversation_uuid
description: ''
example: 1
required: true
schema:
type: integer
/api/v1/admin/broadcasting/auth:
post:
summary: 'Authorize realtime channel'
operationId: authorizeRealtimeChannel
description: "Autoriza o atendente do painel 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.inbox` e `private-support.conversation.{uuid}` (permissão `support-conversations.list`) 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:
- 'Support Conversations'
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/admin/support-quick-replies:
get:
summary: 'Get all quick replies'
operationId: getAllQuickReplies
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` `text` `order` `is_active` `created_at` Default: `order:asc|id:asc`'
example: 'order:asc'
required: false
schema:
type: string
description: 'Available fields: `id` `text` `order` `is_active` `created_at` Default: `order:asc|id:asc`'
example: 'order:asc'
-
in: query
name: search
description: 'Available fields: `uuid` `text`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `text`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
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: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
text: 'Dúvida sobre boleto'
order: 1
is_active: true
created_at: '2026-10-22T10:00:00-03:00'
updated_at: '2026-10-22T10:00:00-03:00'
deleted_at: null
links: { }
meta:
current_page: 1
from: 1
last_page: 1
per_page: 20
to: 1
total: 1
properties:
data:
type: array
example:
-
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
text: 'Dúvida sobre boleto'
order: 1
is_active: true
created_at: '2026-10-22T10:00:00-03:00'
updated_at: '2026-10-22T10:00:00-03:00'
deleted_at: null
items:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
text:
type: string
example: 'Dúvida sobre boleto'
order:
type: integer
example: 1
is_active:
type: boolean
example: true
created_at:
type: string
example: '2026-10-22T10:00:00-03:00'
updated_at:
type: string
example: '2026-10-22T10:00:00-03:00'
deleted_at:
type: string
example: null
nullable: true
links:
type: object
properties: { }
meta:
type: object
properties:
current_page:
type: integer
example: 1
from:
type: integer
example: 1
last_page:
type: integer
example: 1
per_page:
type: integer
example: 20
to:
type: integer
example: 1
total:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Support Quick Replies'
post:
summary: 'Create quick reply'
operationId: createQuickReply
description: 'Sem `order`, a sugestão vai para o fim da lista.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
201:
description: ''
content:
application/json:
schema:
type: object
example:
data:
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
text: 'Dúvida sobre boleto'
order: 4
is_active: true
created_at: '2026-10-22T10:00:00-03:00'
updated_at: '2026-10-22T10:00:00-03:00'
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
text:
type: string
example: 'Dúvida sobre boleto'
order:
type: integer
example: 4
is_active:
type: boolean
example: true
created_at:
type: string
example: '2026-10-22T10:00:00-03:00'
updated_at:
type: string
example: '2026-10-22T10:00:00-03:00'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
text:
- 'The text has already been taken.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
text:
type: array
example:
- 'The text has already been taken.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Support Quick Replies'
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
text:
type: string
description: 'Não pode conter mais de 100 caracteres.'
example: b
order:
type: integer
description: 'Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 2147483647.'
example: 22
nullable: true
is_active:
type: boolean
description: ''
example: false
nullable: true
required:
- text
/api/v1/admin/support-quick-replies/reorder:
post:
summary: 'Reorder quick replies'
operationId: reorderQuickReplies
description: 'Recebe os uuids das sugestões na nova ordem (a primeira fica com `order` 1).'
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
text: 'Dúvida sobre boleto'
order: 1
is_active: true
created_at: '2026-10-22T10:00:00-03:00'
updated_at: '2026-10-22T11:30:00-03:00'
deleted_at: null
properties:
data:
type: array
example:
-
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
text: 'Dúvida sobre boleto'
order: 1
is_active: true
created_at: '2026-10-22T10:00:00-03:00'
updated_at: '2026-10-22T11:30:00-03:00'
deleted_at: null
items:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
text:
type: string
example: 'Dúvida sobre boleto'
order:
type: integer
example: 1
is_active:
type: boolean
example: true
created_at:
type: string
example: '2026-10-22T10:00:00-03:00'
updated_at:
type: string
example: '2026-10-22T11:30:00-03:00'
deleted_at:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
uuids.0:
- 'The selected uuids.0 is invalid.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
uuids.0:
type: array
example:
- 'The selected uuids.0 is invalid.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Support Quick Replies'
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
uuids:
type: array
description: 'Must match an existing stored value.'
example:
- architecto
items:
type: string
required:
- uuids
/api/v1/admin/support-quick-replies/export:
get:
summary: 'Export quick replies'
operationId: exportQuickReplies
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `text` `order` `is_active` `created_at`'
example: 'order:asc'
required: false
schema:
type: string
description: 'Available fields: `id` `text` `order` `is_active` `created_at`'
example: 'order:asc'
-
in: query
name: search
description: 'Available fields: `uuid` `text`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `text`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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}'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Support Quick Replies'
'/api/v1/admin/support-quick-replies/{reply_uuid}':
get:
summary: 'Get quick reply'
operationId: getQuickReply
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: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
text: 'Dúvida sobre boleto'
order: 1
is_active: true
created_at: '2026-10-22T10:00:00-03:00'
updated_at: '2026-10-22T10:00:00-03:00'
deleted_at: null
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
text:
type: string
example: 'Dúvida sobre boleto'
order:
type: integer
example: 1
is_active:
type: boolean
example: true
created_at:
type: string
example: '2026-10-22T10:00:00-03:00'
updated_at:
type: string
example: '2026-10-22T10:00:00-03:00'
deleted_at:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- 'Support Quick Replies'
post:
summary: 'Update quick reply'
operationId: updateQuickReply
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: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
text: 'Dúvida sobre boleto'
order: 1
is_active: true
created_at: '2026-10-22T10:00:00-03:00'
updated_at: '2026-10-22T11:30:00-03:00'
deleted_at: null
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
text:
type: string
example: 'Dúvida sobre boleto'
order:
type: integer
example: 1
is_active:
type: boolean
example: true
created_at:
type: string
example: '2026-10-22T10:00:00-03:00'
updated_at:
type: string
example: '2026-10-22T11:30:00-03:00'
deleted_at:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
text:
- 'The text has already been taken.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
text:
type: array
example:
- 'The text has already been taken.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'Support Quick Replies'
requestBody:
required: false
content:
multipart/form-data:
schema:
type: object
properties:
text:
type: string
description: 'Não pode conter mais de 100 caracteres.'
example: b
order:
type: integer
description: 'Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 2147483647.'
example: 22
nullable: true
is_active:
type: boolean
description: ''
example: false
nullable: true
delete:
summary: 'Remove quick reply'
operationId: removeQuickReply
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
204:
description: ''
content:
application/json:
schema:
type: object
example: { }
properties: { }
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- 'Support Quick Replies'
parameters:
-
in: path
name: reply_uuid
description: ''
example: 1
required: true
schema:
type: integer
/api/v1/admin/system-log:
get:
summary: 'Get all logs'
operationId: getAllLogs
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` `message` `url` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `message` `url` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `message` `url`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `message` `url`'
example: architecto
-
in: query
name: level
description: 'Available values: `ALERT` `CRITICAL` `DEBUG` `EMERGENCY` `ERROR` `INFO` `NOTICE` `WARNING`'
example: ALERT
required: false
schema:
type: string
description: 'Available values: `ALERT` `CRITICAL` `DEBUG` `EMERGENCY` `ERROR` `INFO` `NOTICE` `WARNING`'
example: ALERT
-
in: query
name: method
description: 'Available values: `DELETE` `GET` `POST`'
example: GET
required: false
schema:
type: string
description: 'Available values: `DELETE` `GET` `POST`'
example: GET
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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:
- 'System Log'
/api/v1/admin/system-log/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items.'
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `email`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `email`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
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:
- 'System Log'
/api/v1/admin/system-log/export:
get:
summary: 'Export logs'
operationId: exportLogs
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `message` `url` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `message` `url` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `message` `url`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `message` `url`'
example: architecto
-
in: query
name: level
description: 'Available values: `ALERT` `CRITICAL` `DEBUG` `EMERGENCY` `ERROR` `INFO` `NOTICE` `WARNING`'
example: ALERT
required: false
schema:
type: string
description: 'Available values: `ALERT` `CRITICAL` `DEBUG` `EMERGENCY` `ERROR` `INFO` `NOTICE` `WARNING`'
example: ALERT
-
in: query
name: method
description: 'Available values: `DELETE` `GET` `POST`'
example: GET
required: false
schema:
type: string
description: 'Available values: `DELETE` `GET` `POST`'
example: GET
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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:
- 'System Log'
'/api/v1/admin/system-log/{log_uuid}':
get:
summary: 'Get log'
operationId: getLog
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:
- 'System Log'
parameters:
-
in: path
name: log_uuid
description: ''
example: 1
required: true
schema:
type: integer
/api/v1/admin/tv-schedules:
get:
summary: 'Get all schedule items'
operationId: getAllScheduleItems
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` `title` `starts_at` `ends_at` `created_at`'
example: 'starts_at:asc'
required: false
schema:
type: string
description: 'Available fields: `id` `title` `starts_at` `ends_at` `created_at`'
example: 'starts_at:asc'
-
in: query
name: search
description: 'Busca no título (e uuid).'
example: margem
required: false
schema:
type: string
description: 'Busca no título (e uuid).'
example: margem
-
in: query
name: status
description: 'Available values: `on_air` `scheduled` `finished` `inactive`'
example: on_air
required: false
schema:
type: string
description: 'Available values: `on_air` `scheduled` `finished` `inactive`'
example: on_air
-
in: query
name: source
description: 'Available values: `stream` `content`'
example: stream
required: false
schema:
type: string
description: 'Available values: `stream` `content`'
example: stream
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: starts_at
description: 'Período de início. formato: `Y-m-d\TH:i:sP`'
example: null
required: false
schema:
type: array
description: 'Período de início. formato: `Y-m-d\TH:i:sP`'
example: null
items:
type: string
-
in: query
name: 'starts_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
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: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
title: 'Otimização de Margem em Centros Cirúrgicos'
description: 'Ao vivo do estúdio Unity Health.'
cover: 'https://cdn.exemplo.com/capa.jpg'
cover_is_external: true
source: stream
stream_url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
playback_url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
starts_at: '2026-10-22T14:00:00-03:00'
ends_at: '2026-10-22T15:00:00-03:00'
duration_minutes: 60
status: on_air
is_active: true
created_at: '2026-10-22T10:00:00-03:00'
updated_at: '2026-10-22T10:00:00-03:00'
links: { }
meta:
current_page: 1
total: 1
properties:
data:
type: array
example:
-
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
title: 'Otimização de Margem em Centros Cirúrgicos'
description: 'Ao vivo do estúdio Unity Health.'
cover: 'https://cdn.exemplo.com/capa.jpg'
cover_is_external: true
source: stream
stream_url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
playback_url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
starts_at: '2026-10-22T14:00:00-03:00'
ends_at: '2026-10-22T15:00:00-03:00'
duration_minutes: 60
status: on_air
is_active: true
created_at: '2026-10-22T10:00:00-03:00'
updated_at: '2026-10-22T10:00:00-03:00'
items:
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:
type: string
example: 'https://cdn.exemplo.com/capa.jpg'
cover_is_external:
type: boolean
example: true
source:
type: string
example: stream
stream_url:
type: string
example: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
playback_url:
type: string
example: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
starts_at:
type: string
example: '2026-10-22T14:00:00-03:00'
ends_at:
type: string
example: '2026-10-22T15:00:00-03:00'
duration_minutes:
type: integer
example: 60
status:
type: string
example: on_air
is_active:
type: boolean
example: true
created_at:
type: string
example: '2026-10-22T10:00:00-03:00'
updated_at:
type: string
example: '2026-10-22T10:00:00-03:00'
links:
type: object
properties: { }
meta:
type: object
properties:
current_page:
type: integer
example: 1
total:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'TV Schedules'
post:
summary: 'Create schedule item'
operationId: createScheduleItem
description: "Fonte: `source=stream` com `stream_url` (HLS/RTMP do provedor) **ou** `source=content` com `content` (uuid de um vídeo do catálogo).\nCapa: envie a imagem em `cover` ou a URL em `cover_url`; sem capa, o app usa a do vídeo do catálogo.\nItens ativos não podem se sobrepor (encostar o fim de um no início do outro pode)."
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
201:
description: ''
content:
application/json:
schema:
type: object
example:
data:
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
title: 'Otimização de Margem em Centros Cirúrgicos'
source: stream
stream_url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
playback_url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
starts_at: '2026-10-22T14:00:00-03:00'
ends_at: '2026-10-22T15:00:00-03:00'
duration_minutes: 60
status: scheduled
is_active: true
properties:
data:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
title:
type: string
example: 'Otimização de Margem em Centros Cirúrgicos'
source:
type: string
example: stream
stream_url:
type: string
example: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
playback_url:
type: string
example: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
starts_at:
type: string
example: '2026-10-22T14:00:00-03:00'
ends_at:
type: string
example: '2026-10-22T15:00:00-03:00'
duration_minutes:
type: integer
example: 60
status:
type: string
example: scheduled
is_active:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
422:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'The given data was invalid.'
errors:
starts_at:
- 'O horário conflita com "Gestão de OPME" (22/10/2026 14:30 – 15:30).'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
starts_at:
type: array
example:
- 'O horário conflita com "Gestão de OPME" (22/10/2026 14:30 – 15:30).'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'TV Schedules'
/api/v1/admin/tv-schedules/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items, from the next ones.'
parameters:
-
in: query
name: search
description: 'Busca no título.'
example: margem
required: false
schema:
type: string
description: 'Busca no título.'
example: margem
-
in: query
name: is_active
description: 'Available values: `0` `1` Default: only active.'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1` Default: only active.'
example: 1
-
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
title: 'Otimização de Margem em Centros Cirúrgicos'
starts_at: '2026-10-22T14:00:00-03:00'
ends_at: '2026-10-22T15:00:00-03:00'
status: on_air
is_active: true
properties:
data:
type: array
example:
-
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
title: 'Otimização de Margem em Centros Cirúrgicos'
starts_at: '2026-10-22T14:00:00-03:00'
ends_at: '2026-10-22T15:00:00-03:00'
status: on_air
is_active: true
items:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
title:
type: string
example: 'Otimização de Margem em Centros Cirúrgicos'
starts_at:
type: string
example: '2026-10-22T14:00:00-03:00'
ends_at:
type: string
example: '2026-10-22T15:00:00-03:00'
status:
type: string
example: on_air
is_active:
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:
- 'TV Schedules'
/api/v1/admin/tv-schedules/export:
get:
summary: 'Export schedule'
operationId: exportSchedule
description: 'Aceita os mesmos filtros da listagem.'
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `title` `starts_at` `ends_at` `created_at`'
example: 'starts_at:asc'
required: false
schema:
type: string
description: 'Available fields: `id` `title` `starts_at` `ends_at` `created_at`'
example: 'starts_at:asc'
-
in: query
name: search
description: ''
example: margem
required: false
schema:
type: string
description: ''
example: margem
-
in: query
name: status
description: 'Available values: `on_air` `scheduled` `finished` `inactive`'
example: scheduled
required: false
schema:
type: string
description: 'Available values: `on_air` `scheduled` `finished` `inactive`'
example: scheduled
-
in: query
name: source
description: 'Available values: `stream` `content`'
example: stream
required: false
schema:
type: string
description: 'Available values: `stream` `content`'
example: stream
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
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}'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'TV Schedules'
'/api/v1/admin/tv-schedules/{schedule_uuid}':
get:
summary: 'Get schedule item'
operationId: getScheduleItem
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: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
title: 'Otimização de Margem em Centros Cirúrgicos'
description: 'Ao vivo do estúdio Unity Health.'
cover: null
cover_is_external: false
source: content
stream_url: null
playback_url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
starts_at: '2026-10-22T14:00:00-03:00'
ends_at: '2026-10-22T15:00:00-03:00'
duration_minutes: 60
status: scheduled
is_active: true
content:
uuid: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b
type: video
title: 'Gestão de OPME'
properties:
data:
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:
type: string
example: null
nullable: true
cover_is_external:
type: boolean
example: false
source:
type: string
example: content
stream_url:
type: string
example: null
nullable: true
playback_url:
type: string
example: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'
starts_at:
type: string
example: '2026-10-22T14:00:00-03:00'
ends_at:
type: string
example: '2026-10-22T15:00:00-03:00'
duration_minutes:
type: integer
example: 60
status:
type: string
example: scheduled
is_active:
type: boolean
example: true
content:
type: object
properties:
uuid:
type: string
example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b
type:
type: string
example: video
title:
type: string
example: 'Gestão de OPME'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- 'TV Schedules'
post:
summary: 'Update schedule item'
operationId: updateScheduleItem
description: 'Envie só os campos que mudam. Para remover a capa envie `delete_cover=1`. A sobreposição é conferida de novo com o resultado final.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
ends_at:
- 'The ends at field must be a date after starts at.'
code: 422
type: ValidationException
properties:
message:
type: string
example: 'The given data was invalid.'
errors:
type: object
properties:
ends_at:
type: array
example:
- 'The ends at field must be a date after starts at.'
items:
type: string
code:
type: integer
example: 422
type:
type: string
example: ValidationException
tags:
- 'TV Schedules'
delete:
summary: 'Remove schedule item'
operationId: removeScheduleItem
description: 'Exclusão lógica: o item sai da grade e do app.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
204:
description: ''
content:
application/json:
schema:
type: object
example: { }
properties: { }
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- 'TV Schedules'
parameters:
-
in: path
name: schedule_uuid
description: ''
example: 1
required: true
schema:
type: integer
/api/v1/admin/terms-of-use:
get:
summary: 'Get terms of use'
operationId: getTermsOfUse
description: 'Título e texto (HTML).'
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: 'Ao usar o app você concorda com estes termos.
' 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: 'Ao usar o app você concorda com estes termos.
' 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 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: 'You do not have permission for this action.' code: 403 type: UserPermissionException properties: message: type: string example: 'You do not have permission for this action.' code: type: integer example: 403 type: type: string example: UserPermissionException tags: - 'Terms Of Use' post: summary: 'Update terms of use' operationId: updateTermsOfUse description: "O texto é o HTML do editor: a API remove o que poderia executar código (scripts, eventos, iframes) e guarda a\nformatação. O app recebe esse texto dividido em seções a cada título (`GET pages/termos`)." 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: 'Ao usar o app você concorda com estes termos.
' created_at: '2026-10-22T10:00:00+00:00' updated_at: '2026-10-22T11:30: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: 'Ao usar o app você concorda com estes termos.
' created_at: type: string example: '2026-10-22T10:00:00+00:00' updated_at: type: string example: '2026-10-22T11:30:00+00:00' deleted_at: 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 403: description: '' content: application/json: schema: type: object example: message: 'You do not have permission for this action.' code: 403 type: UserPermissionException properties: message: type: string example: 'You do not have permission for this action.' code: type: integer example: 403 type: type: string example: UserPermissionException 422: description: '' content: application/json: schema: type: object example: message: 'The given data was invalid.' errors: text: - 'The text field is required.' code: 422 type: ValidationException properties: message: type: string example: 'The given data was invalid.' errors: type: object properties: text: type: array example: - 'The text field is required.' items: type: string code: type: integer example: 422 type: type: string example: ValidationException tags: - 'Terms Of Use' requestBody: required: false content: multipart/form-data: schema: type: object properties: name: type: string description: 'Não pode conter mais de 191 caracteres.' example: b text: type: string description: 'Não pode conter mais de 1000000 caracteres.' example: 'n' /api/v1/admin/users: get: summary: 'Get all users' operationId: getAllUsers 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` `email` `is_active` `created_at` `updated_at`' example: 'id:asc|created_at:desc' required: false schema: type: string description: 'Available fields: `id` `name` `email` `is_active` `created_at` `updated_at`' example: 'id:asc|created_at:desc' - in: query name: search description: 'Available fields: `uuid` `name` `email`' example: architecto required: false schema: type: string description: 'Available fields: `uuid` `name` `email`' example: architecto - in: query name: is_active description: 'Available values: `0` `1`' example: 1 required: false schema: type: integer description: 'Available values: `0` `1`' example: 1 - in: query name: created_at 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: 'created_at.*' description: 'date formato: `Y-m-d\TH:i:sP`' example: architecto required: false schema: type: string description: 'date formato: `Y-m-d\TH:i:sP`' example: architecto - 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: - Users post: summary: 'Create user' operationId: createUser description: '' parameters: - in: header name: Accept-Language description: '' example: pt schema: type: string responses: { } tags: - Users 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.' nullable: true name: type: string description: 'Não pode conter mais de 191 caracteres.' example: b password_random: type: boolean description: '' example: true password: type: string description: 'This field is required whenpassword_random is 0. Deve conter no mínimo 6 caracteres.'
example: ']|{+-0pBNvYg'
nullable: true
password_confirmation:
type: string
description: 'This field is required when password_random is 0. The value and password must match. Deve conter no mínimo 6 caracteres.'
example: hwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppw
nullable: true
email:
type: string
description: 'Deve ser um endereço de email válido. Não pode conter mais de 100 caracteres.'
example: verlie08@example.net
is_active:
type: boolean
description: ''
example: false
roles:
type: array
description: 'Deve ser um UUID válido.'
example:
- 45e62725-5da9-35c7-82db-977f64d08292
items:
type: string
required:
- name
- password_random
- email
- roles
/api/v1/admin/users/autocomplete:
get:
summary: Autocomplete
operationId: autocomplete
description: 'List a maximum of `50` items.'
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `email` `is_active` `created_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `email`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `email`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
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:
- Users
/api/v1/admin/users/export:
get:
summary: 'Export users'
operationId: exportUsers
description: ''
parameters:
-
in: query
name: orderBy
description: 'Available fields: `id` `name` `email` `is_active` `created_at` `updated_at`'
example: 'id:asc|created_at:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `name` `email` `is_active` `created_at` `updated_at`'
example: 'id:asc|created_at:desc'
-
in: query
name: search
description: 'Available fields: `uuid` `name` `email`'
example: architecto
required: false
schema:
type: string
description: 'Available fields: `uuid` `name` `email`'
example: architecto
-
in: query
name: is_active
description: 'Available values: `0` `1`'
example: 1
required: false
schema:
type: integer
description: 'Available values: `0` `1`'
example: 1
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
-
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:
- Users
'/api/v1/admin/users/{user_uuid}':
get:
summary: 'Get user'
operationId: getUser
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:
- Users
post:
summary: 'Update user'
operationId: updateUser
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- Users
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
is_active:
type: boolean
description: ''
example: true
roles:
type: array
description: 'Deve ser um UUID válido.'
example:
- 6ff8f7f6-1eb3-3525-be4a-3932c805afed
items:
type: string
required:
- roles
delete:
summary: 'Remove user'
operationId: removeUser
description: ''
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses: { }
tags:
- Users
parameters:
-
in: path
name: user_uuid
description: ''
example: 1
required: true
schema:
type: integer
/api/v1/admin/webinar-questions:
get:
summary: 'Get all questions'
operationId: getAllQuestions
description: '`status_counts` traz o total por situação com os mesmos filtros (exceto `status`), para as abas da moderação.'
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` `status` `created_at`'
example: 'id:desc'
required: false
schema:
type: string
description: 'Available fields: `id` `status` `created_at`'
example: 'id:desc'
-
in: query
name: search
description: 'Busca no texto da pergunta e no nome/e-mail do cliente.'
example: ociosidade
required: false
schema:
type: string
description: 'Busca no texto da pergunta e no nome/e-mail do cliente.'
example: ociosidade
-
in: query
name: live_webinar
description: 'Uuid da transmissão (webinar ao vivo).'
example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
required: false
schema:
type: string
description: 'Uuid da transmissão (webinar ao vivo).'
example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
-
in: query
name: status
description: 'Available values: `pending` `approved` `rejected` `answered`'
example: pending
required: false
schema:
type: string
description: 'Available values: `pending` `approved` `rejected` `answered`'
example: pending
-
in: query
name: created_at
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: 'created_at.*'
description: 'date formato: `Y-m-d\TH:i:sP`'
example: architecto
required: false
schema:
type: string
description: 'date formato: `Y-m-d\TH:i:sP`'
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: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a
text: 'Qual métrica direta teve maior impacto na redução de ociosidade das salas robóticas no Q3?'
status: pending
approved_at: null
answered_at: null
rejected_at: null
created_at: '2026-10-22T14:22:00-03:00'
updated_at: '2026-10-22T14:22:00-03:00'
live_webinar:
uuid: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
status: live
title: 'Otimização de Margem em Centros Cirúrgicos'
customer:
uuid: 1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d
name: 'Dr. Marcos Villela'
email: marcos@exemplo.com.br
links: { }
meta:
current_page: 1
total: 1
status_counts:
pending: 1
approved: 0
answered: 0
rejected: 0
properties:
data:
type: array
example:
-
uuid: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a
text: 'Qual métrica direta teve maior impacto na redução de ociosidade das salas robóticas no Q3?'
status: pending
approved_at: null
answered_at: null
rejected_at: null
created_at: '2026-10-22T14:22:00-03:00'
updated_at: '2026-10-22T14:22:00-03:00'
live_webinar:
uuid: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
status: live
title: 'Otimização de Margem em Centros Cirúrgicos'
customer:
uuid: 1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d
name: 'Dr. Marcos Villela'
email: marcos@exemplo.com.br
items:
type: object
properties:
uuid:
type: string
example: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a
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: pending
approved_at:
type: string
example: null
nullable: true
answered_at:
type: string
example: null
nullable: true
rejected_at:
type: string
example: null
nullable: true
created_at:
type: string
example: '2026-10-22T14:22:00-03:00'
updated_at:
type: string
example: '2026-10-22T14:22:00-03:00'
live_webinar:
type: object
properties:
uuid:
type: string
example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
status:
type: string
example: live
title:
type: string
example: 'Otimização de Margem em Centros Cirúrgicos'
customer:
type: object
properties:
uuid:
type: string
example: 1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d
name:
type: string
example: 'Dr. Marcos Villela'
email:
type: string
example: marcos@exemplo.com.br
links:
type: object
properties: { }
meta:
type: object
properties:
current_page:
type: integer
example: 1
total:
type: integer
example: 1
status_counts:
type: object
properties:
pending:
type: integer
example: 1
approved:
type: integer
example: 0
answered:
type: integer
example: 0
rejected:
type: integer
example: 0
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Webinar Questions'
/api/v1/admin/webinar-questions/export:
get:
summary: 'Export questions'
operationId: exportQuestions
description: 'Aceita os mesmos filtros da listagem.'
parameters:
-
in: query
name: live_webinar
description: 'Uuid da transmissão.'
example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
required: false
schema:
type: string
description: 'Uuid da transmissão.'
example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
-
in: query
name: status
description: 'Available values: `pending` `approved` `rejected` `answered`'
example: approved
required: false
schema:
type: string
description: 'Available values: `pending` `approved` `rejected` `answered`'
example: approved
-
in: query
name: search
description: ''
example: ociosidade
required: false
schema:
type: string
description: ''
example: ociosidade
-
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}'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
tags:
- 'Webinar Questions'
'/api/v1/admin/webinar-questions/{question_uuid}':
get:
summary: 'Get question'
operationId: getQuestion
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: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a
text: 'Qual métrica direta teve maior impacto na redução de ociosidade das salas robóticas no Q3?'
status: approved
approved_at: '2026-10-22T14:23:00-03:00'
answered_at: null
rejected_at: null
live_webinar:
uuid: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
status: live
title: 'Otimização de Margem em Centros Cirúrgicos'
customer:
uuid: 1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d
name: 'Dr. Marcos Villela'
moderator:
uuid: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name: Administrador
properties:
data:
type: object
properties:
uuid:
type: string
example: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a
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
approved_at:
type: string
example: '2026-10-22T14:23:00-03:00'
answered_at:
type: string
example: null
nullable: true
rejected_at:
type: string
example: null
nullable: true
live_webinar:
type: object
properties:
uuid:
type: string
example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9
status:
type: string
example: live
title:
type: string
example: 'Otimização de Margem em Centros Cirúrgicos'
customer:
type: object
properties:
uuid:
type: string
example: 1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d
name:
type: string
example: 'Dr. Marcos Villela'
moderator:
type: object
properties:
uuid:
type: string
example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e
name:
type: string
example: Administrador
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- 'Webinar Questions'
parameters:
-
in: path
name: question_uuid
description: ''
example: 7
required: true
schema:
type: integer
'/api/v1/admin/webinar-questions/{question_uuid}/approve':
post:
summary: 'Approve question'
operationId: approveQuestion
description: 'A pergunta passa a aparecer para todos no app.'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
data:
uuid: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a
status: approved
approved_at: '2026-10-22T14:23:00-03:00'
answered_at: null
rejected_at: null
properties:
data:
type: object
properties:
uuid:
type: string
example: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a
status:
type: string
example: approved
approved_at:
type: string
example: '2026-10-22T14:23:00-03:00'
answered_at:
type: string
example: null
nullable: true
rejected_at:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- 'Webinar Questions'
parameters:
-
in: path
name: question_uuid
description: ''
example: 7
required: true
schema:
type: integer
'/api/v1/admin/webinar-questions/{question_uuid}/reject':
post:
summary: 'Reject question'
operationId: rejectQuestion
description: 'A pergunta some da lista pública (o autor continua vendo a sua, como recusada).'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
data:
uuid: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a
status: rejected
approved_at: null
answered_at: null
rejected_at: '2026-10-22T14:23:00-03:00'
properties:
data:
type: object
properties:
uuid:
type: string
example: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a
status:
type: string
example: rejected
approved_at:
type: string
example: null
nullable: true
answered_at:
type: string
example: null
nullable: true
rejected_at:
type: string
example: '2026-10-22T14:23:00-03:00'
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: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- 'Webinar Questions'
parameters:
-
in: path
name: question_uuid
description: ''
example: 7
required: true
schema:
type: integer
'/api/v1/admin/webinar-questions/{question_uuid}/answer':
post:
summary: 'Mark question as answered'
operationId: markQuestionAsAnswered
description: 'Marca como respondida ao vivo. Continua visível para todos (e é aprovada, se ainda não estava).'
parameters:
-
in: header
name: Accept-Language
description: ''
example: pt
schema:
type: string
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
data:
uuid: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a
status: answered
approved_at: '2026-10-22T14:23:00-03:00'
answered_at: '2026-10-22T14:40:00-03:00'
rejected_at: null
properties:
data:
type: object
properties:
uuid:
type: string
example: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a
status:
type: string
example: answered
approved_at:
type: string
example: '2026-10-22T14:23:00-03:00'
answered_at:
type: string
example: '2026-10-22T14:40:00-03:00'
rejected_at:
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
403:
description: ''
content:
application/json:
schema:
type: object
example:
message: 'You do not have permission for this action.'
code: 403
type: UserPermissionException
properties:
message:
type: string
example: 'You do not have permission for this action.'
code:
type: integer
example: 403
type:
type: string
example: UserPermissionException
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:
- 'Webinar Questions'
parameters:
-
in: path
name: question_uuid
description: ''
example: 7
required: true
schema:
type: integer
/api/v1/admin/webservice/cities:
get:
summary: Cities
operationId: cities
description: 'Search city, must enter at least one of the search fields `search` or `state_abbr`