Introduction
Unity Health - API API Documentation for the admin panel
This documentation aims to provide all the information you need to work with our API.
<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>
## Tempo real (WebSocket) e push
O atendimento do chat de suporte usa o **Laravel Reverb** (servidor WebSocket da própria API, protocolo Pusher). No painel: `laravel-echo` + `pusher-js` com `broadcaster: "reverb"` e autorização dos canais privados em `POST /api/v1/admin/broadcasting/auth` (Bearer do painel).
| Canal | Quem pode | Eventos (escute com ponto: `.support.message`) |
|---|---|---|
| `private-support.inbox` | permissão `support-conversations.list` | `support.message`, `support.typing`, `support.conversation`, `support.agent-status` |
| `private-support.conversation.{uuid}` | permissão `support-conversations.list` | `support.message`, `support.typing`, `support.conversation` |
| `private-support.status` | qualquer usuário logado | `support.agent-status` |
Sem WebSocket: `GET support-conversations` / `GET support-conversations/unread` (10 s) e `GET support-conversations/{uuid}/messages?after={uuid}` (4 s).
**Push:** `push-general` é o envio manual e o histórico de todos os pushes (inclusive os automáticos: conteúdo publicado, webinar e TV ao vivo). O envio sai pelo comando `push-general:send` (agendador, a cada minuto) via Expo Push (`PUSH_DRIVER=expo`) ou só para o log (`PUSH_DRIVER=log`).
Authenticating requests
To authenticate requests, include an Authorization header with the value "Bearer {ACCESS_TOKEN}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by visiting your dashboard and clicking Generate API token.
About app
Get about app
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/about-app" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/about-app"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update about app
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/about-app" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "name=b"\
--form "media_delete[]=n"\
--form "video=g"\
--form "text=z"\
--form "file=@/tmp/phpzzaS6l" \
--form "file_mobile=@/tmp/phpKPQIUO" const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/about-app"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('name', 'b');
body.append('media_delete[]', 'n');
body.append('video', 'g');
body.append('text', 'z');
body.append('file', document.querySelector('input[name="file"]').files[0]);
body.append('file_mobile', document.querySelector('input[name="file_mobile"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
About company
Get about company
requires authentication
Título, vídeo, banners (media) e seções, na ordem do app.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/company-app" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/company-app"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
]
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update about company
requires authentication
Envie a lista completa de seções, na ordem desejada (a posição vira o order). Seções com uuid são atualizadas,
sem uuid são criadas e as que não vierem na lista são excluídas. Sem sections, as seções não mudam.
Qualquer mudança nas seções atualiza o updated_at da página.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/company-app" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "name=b"\
--form "media_delete[]=n"\
--form "video=g"\
--form "sections[][uuid]=6ff8f7f6-1eb3-3525-be4a-3932c805afed"\
--form "sections[][title]=Conhecimento, gestão e compras em um só lugar"\
--form "sections[][body]=g"\
--form "file=@/tmp/phpEAHOIj" \
--form "file_mobile=@/tmp/phpDF8iyf" const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/company-app"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('name', 'b');
body.append('media_delete[]', 'n');
body.append('video', 'g');
body.append('sections[][uuid]', '6ff8f7f6-1eb3-3525-be4a-3932c805afed');
body.append('sections[][title]', 'Conhecimento, gestão e compras em um só lugar');
body.append('sections[][body]', 'g');
body.append('file', document.querySelector('input[name="file"]').files[0]);
body.append('file_mobile', document.querySelector('input[name="file_mobile"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"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
}
]
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"sections.0.body": [
"The sections.0.body field is required."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
App Screens
Get screen
requires authentication
key: splash, login ou tv.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/app-screens/splash" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/app-screens/splash"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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"
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update screen
requires authentication
Splash: image (logo), footer_text ("desenvolvido por"), footer_image (logo/assinatura de baixo, opcional) e duration_seconds (tempo na tela).
Login: title e subtitle.
TV 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).
Para remover uma imagem envie delete_image=1 ou delete_footer_image=1.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/app-screens/splash" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/app-screens/splash"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"duration_seconds": [
"The duration seconds field must not be greater than 30."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Authentication
Login
5 login attempts can be performed every 1 minute.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/login" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "email=gbailey@example.net"\
--form "password=+-0pBNvYgxwmi/#iw"\
--form "token_name=u"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/login"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('email', 'gbailey@example.net');
body.append('password', '+-0pBNvYgxwmi/#iw');
body.append('token_name', 'u');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"token_type": "Bearer",
"access_token": "eyJ0eXAiOiJ..."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Send code A2F
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/verification-two-steps" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "send_by=email"\
--form "email=gbailey@example.net"\
--form "phone=architecto"\
--form "resend="const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/verification-two-steps"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('send_by', 'email');
body.append('email', 'gbailey@example.net');
body.append('phone', 'architecto');
body.append('resend', '');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Verify A2F code
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/check-code" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "code=bngzmi"\
--form "token_name=y"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/check-code"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('code', 'bngzmi');
body.append('token_name', 'y');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"token_type": "Bearer",
"access_token": "eyJ0eXAiOiJ..."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Password recovery
Send password reset link do user
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/password/recovery" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "email=gbailey@example.net"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/password/recovery"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('email', 'gbailey@example.net');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"message": "Success message"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Logout
requires authentication
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/logout" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/logout"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get the authenticated user
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/user" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/user"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get all tokens
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/tokens" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/tokens"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete token
requires authentication
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/tokens/architecto" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/tokens/architecto"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Change password
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/change-password" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "password=|]|{+-"\
--form "password_new=vdljnikhwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlx"\
--form "password_new_confirmation=jklqppwqbewtnnoqitpxntltcvipojsausgioglrbchgsr"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/change-password"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('password', '|]|{+-');
body.append('password_new', 'vdljnikhwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlx');
body.append('password_new_confirmation', 'jklqppwqbewtnnoqitpxntltcvipojsausgioglrbchgsr');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Change avatar
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/change-avatar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "avatar=@/tmp/phpk0Hwpf" const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/change-avatar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('avatar', document.querySelector('input[name="avatar"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cliente
Get all clientes
requires authentication
Lista os usuários do app. A busca procura no nome, no e-mail e no CPF (com ou sem pontuação).
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers?limit=20&page=1&orderBy=id%3Adesc&search=mariana&is_active=1&access_status=active&created_at=&last_access_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "id:desc",
"search": "mariana",
"is_active": "1",
"access_status": "active",
"created_at": "",
"last_access_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/autocomplete"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create cliente (convite)
requires authentication
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
de nova senha da API, a mesma da recuperação de senha). Até definir a senha o usuário fica como invited e não
entra no app. Celular em E.164 (sem o +, 10 ou 11 dígitos são tratados como Brasil); CPF com dígitos
verificadores e único; e-mail único.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "name=b"\
--form "email=zbailey@example.net"\
--form "phone=+3642559314"\
--form "document=architecto"\
--form "treatment=ngzmiyvdljnikhwa"\
--form "job_title=y"\
--form "institution=k"\
--form "avatar=@/tmp/phpmfotB0" const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('name', 'b');
body.append('email', 'zbailey@example.net');
body.append('phone', '+3642559314');
body.append('document', 'architecto');
body.append('treatment', 'ngzmiyvdljnikhwa');
body.append('job_title', 'y');
body.append('institution', 'k');
body.append('avatar', document.querySelector('input[name="avatar"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (201):
{
"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"
}
}
Example response (422):
{
"message": "O e-mail informado já está em uso.",
"errors": {
"email": [
"O e-mail informado já está em uso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modelo de importação
requires authentication
Planilha vazia, só com os títulos das colunas, para preencher e enviar em customers/import/preview.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/import/template" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/import/template"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Conferir planilha de importação
requires authentication
Lê o arquivo sem gravar nada e separa as linhas prontas (rows) das que têm problema (issues): sem e-mail
(no_email), e-mail ou CPF repetido na planilha ou já cadastrado (duplicate) e dado inválido (invalid).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/import/preview" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "file=@/tmp/phpWRcxD8" const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/import/preview"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('file', document.querySelector('input[name="file"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"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."
}
]
}
Example response (422):
{
"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."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Importar usuários
requires authentication
Cadastra um lote de até 100 linhas devolvidas pela conferência. As regras são verificadas de novo: o que deixou de
valer entra em issues. Os usuários ficam como convidados e o e-mail para definir a senha não é enviado aqui
(use resend-access).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/import" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "rows[][line]=16" --form "rows[][treatment]=architecto" --form "rows[][name]=architecto" --form "rows[][email]=gbailey@example.net" --form "rows[][phone]=architecto" --form "rows[][document]=architecto" --form "rows[][job_title]=architecto" --form "rows[][institution]=architecto"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/import"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('rows[][line]', '16');
body.append('rows[][treatment]', 'architecto');
body.append('rows[][name]', 'architecto');
body.append('rows[][email]', 'gbailey@example.net');
body.append('rows[][phone]', 'architecto');
body.append('rows[][document]', 'architecto');
body.append('rows[][job_title]', 'architecto');
body.append('rows[][institution]', 'architecto');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"imported": 1,
"issues": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Change avatar cliente
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/change-avatar/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "avatar=@/tmp/phpOqimjC" const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/change-avatar/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('avatar', document.querySelector('input[name="avatar"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export clientes
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/export?orderBy=id%3Adesc&search=architecto&is_active=1&access_status=active&created_at=&last_access_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/export"
);
const params = {
"orderBy": "id:desc",
"search": "architecto",
"is_active": "1",
"access_status": "active",
"created_at": "",
"last_access_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get cliente
requires authentication
Visualização no painel: dados, situação do acesso, último acesso, sessões abertas (aparelhos), as 20 últimas
atividades e o resumo de uso da Central de conteúdos (usage: curtidas, salvos, conteúdos iniciados e concluídos,
perguntas nos webinars e os últimos conteúdos acessados).
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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": []
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update cliente
requires authentication
Edita os dados do usuário do app. Para bloquear use active-desactive; para uma nova senha, resend-access.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "name=b"\
--form "email=zbailey@example.net"\
--form "phone=+3642559314"\
--form "document=architecto"\
--form "treatment=ngzmiyvdljnikhwa"\
--form "job_title=y"\
--form "institution=k"\
--form "avatar_delete="\
--form "avatar=@/tmp/phpcpoAJj" const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('name', 'b');
body.append('email', 'zbailey@example.net');
body.append('phone', '+3642559314');
body.append('document', 'architecto');
body.append('treatment', 'ngzmiyvdljnikhwa');
body.append('job_title', 'y');
body.append('institution', 'k');
body.append('avatar_delete', '');
body.append('avatar', document.querySelector('input[name="avatar"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"data": {
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"name": "Mariana Vasconcellos",
"access_status": "active",
"is_active": true
}
}
Example response (422):
{
"message": "Deve ser um CPF válido.",
"errors": {
"document": [
"Deve ser um CPF válido."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove cliente
requires authentication
Exclusão pelo painel: soft delete (padrão da base) e encerra todas as sessões do app. Os dados ficam na lista de
excluídos (customers-deleted). A exclusão com anonimização (LGPD) é a feita pelo próprio usuário no app.
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Block / unblock customer
requires authentication
Bloqueia (is_active = 0) ou desbloqueia o usuário do app. O bloqueado não entra no app e perde na hora todas as
sessões (tokens e refresh tokens).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/active-desactive/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "is_active=1"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/active-desactive/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('is_active', '1');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"data": {
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"name": "Mariana Vasconcellos",
"access_status": "blocked",
"is_active": false
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Resend access
requires authentication
Reenvia o acesso: novo e-mail com o link para definir a senha (vale 3 dias). Serve para o convidado que perdeu o convite e para quem esqueceu a senha. O link anterior deixa de valer. Usuário bloqueado: 422 (desbloqueie antes).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1/resend-access" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1/resend-access"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"message": "Enviamos para mariana@unityhealth.com.br o link para definir a senha.",
"invited_at": "2026-10-22T10:00:00-03:00"
}
Example response (422):
{
"message": "Desbloqueie o usuário antes de reenviar o acesso.",
"errors": {
"is_active": [
"Desbloqueie o usuário antes de reenviar o acesso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Revoke sessions
requires authentication
Encerra todas as sessões do usuário no app (revoga os tokens e refresh tokens de todos os aparelhos). Ele precisa entrar de novo com e-mail, senha e código.
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1/sessions" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1/sessions"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"revoked": 2
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Usage report
requires authentication
customers: total de usuários do app (não excluídos), ativos, convidados (ainda sem senha), bloqueados e novos no período.active_users: usuários com acesso ao app nos últimos 7 dias, 30 dias e no período escolhido.top_contents: até 10 conteúdos mais acessados no período.accesses= usuários que abriram (progresso gravado no período),completed= concluíram no período,likesesaves= curtidas e salvos feitos no período;likes_counté o total de curtidas exibido no app.top_customers: até 5 usuários com mais conteúdos acessados no período.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers-report?days=30&type=podcast&order=accesses" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers-report"
);
const params = {
"days": "30",
"type": "podcast",
"order": "accesses",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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"
}
]
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get all clientes deletedos
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers-deleted?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1&deleted_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers-deleted"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
"deleted_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export clientes deletado
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers-deleted/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1&deleted_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers-deleted/export"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
"deleted_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get cliente deletado
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers-deleted/BcECdBDA-CdED-bFEA-CbCE-BcCdeBfbbebc" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/customers-deleted/BcECdBDA-CdED-bFEA-CbCE-BcCdeBfbbebc"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Content Categories
Get all categories
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories?limit=20&page=1&orderBy=type%3Aasc%7Corder%3Aasc&search=architecto&type=ebook&is_active=1&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "type:asc|order:asc",
"search": "architecto",
"type": "ebook",
"is_active": "1",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create category
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "type=architecto"\
--form "name=n"\
--form "color=#fEEeDb"\
--form "order=37"\
--form "is_active=1"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('type', 'architecto');
body.append('name', 'n');
body.append('color', '#fEEeDb');
body.append('order', '37');
body.append('is_active', '1');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name has already been taken."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items, ordered by type and order.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/autocomplete?search=architecto&type=ebook&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/autocomplete"
);
const params = {
"search": "architecto",
"type": "ebook",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export categories
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/export?orderBy=type%3Aasc%7Corder%3Aasc&search=architecto&type=ebook&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/export"
);
const params = {
"orderBy": "type:asc|order:asc",
"search": "architecto",
"type": "ebook",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get category
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update category
requires authentication
Mudar o nome atualiza a busca dos conteúdos da categoria. O tipo só pode mudar se a categoria não tiver conteúdos.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "name=b"\
--form "color=#fEEeDb"\
--form "order=37"\
--form "is_active=1"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('name', 'b');
body.append('color', '#fEEeDb');
body.append('order', '37');
body.append('is_active', '1');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Example response (422):
{
"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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove category
requires authentication
Só é possível excluir categorias sem conteúdos.
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Example response (422):
{
"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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Contents
Get all contents
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents?limit=20&page=1&orderBy=published_at%3Adesc&search=lgpd&type=ebook&category=9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e&status=published&is_active=1&is_featured=1&is_featured_central=1&is_live=0&published_at=&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/contents"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "published_at:desc",
"search": "lgpd",
"type": "ebook",
"category": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"status": "published",
"is_active": "1",
"is_featured": "1",
"is_featured_central": "1",
"is_live": "0",
"published_at": "",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create content
requires authentication
Mídia: envie o arquivo em media (PDF, MP3, MP4...) ou a URL externa em media_url (CDN, provedor de vídeo, HLS .m3u8).
Capa: envie a imagem em cover ou a URL em cover_url.
published_at vazio publica na hora; data futura agenda a publicação.
Campos 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.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/contents" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/contents"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/autocomplete?search=lgpd&type=ebook&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/autocomplete"
);
const params = {
"search": "lgpd",
"type": "ebook",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export contents
requires authentication
Aceita os mesmos filtros da listagem.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/export?orderBy=published_at%3Adesc&search=lgpd&type=ebook&category=architecto&status=published&is_active=1&is_featured=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/export"
);
const params = {
"orderBy": "published_at:desc",
"search": "lgpd",
"type": "ebook",
"category": "architecto",
"status": "published",
"is_active": "1",
"is_featured": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get content
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update content
requires authentication
Envie só os campos que mudam. Para remover a capa ou o arquivo envie delete_cover=1 ou delete_media=1.
published_at vazio (enviado sem valor) deixa o conteúdo sem data de publicação (não aparece no app).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"media_url": [
"The media url field must be a valid URL."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove content
requires authentication
Exclusão lógica: o conteúdo some do app e das listas do painel.
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Dashboard
Get summary of data
requires authentication
Contadores exibidos nos cards do Dashboard do painel. contents_*_total: conteúdos publicados (visíveis no app) por tipo.
TV e ao vivo: tv_is_live (há item da programação no ar), tv_viewers (assistindo a TV agora), live_webinars_total
(webinars ao vivo agora), live_webinars_viewers (assistindo os webinars ao vivo) e live_webinars_scheduled_total (agendados).
Assistindo = sinal do app nos últimos 60 s.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/dashboard" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/dashboard"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Faq
Get all faq
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq?limit=20&page=1&orderBy=topic%3Aasc%7Corder%3Aasc&search=architecto&faq_topic=9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e&is_active=1&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "topic:asc|order:asc",
"search": "architecto",
"faq_topic": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"is_active": "1",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items, in the app order (topic, then question).
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/autocomplete?search=architecto&faq_topic=9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/autocomplete"
);
const params = {
"search": "architecto",
"faq_topic": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
]
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create faq
requires authentication
Sem order, a pergunta vai para o fim do tema.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "faq_topic=architecto"\
--form "name=n"\
--form "text=g"\
--form "order=16"\
--form "is_active="const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('faq_topic', 'architecto');
body.append('name', 'n');
body.append('text', 'g');
body.append('order', '16');
body.append('is_active', '');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (201):
{
"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
}
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reorder faq
requires authentication
Recebe os uuids das perguntas de UM tema na nova ordem (a primeira fica com order 1).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/reorder" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "uuids[]=architecto"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/reorder"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('uuids[]', 'architecto');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"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
}
]
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"uuids": [
"As perguntas precisam ser do mesmo tema."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get additional information
requires authentication
Próxima ordem livre no tema informado (a pergunta nova vai para o fim do tema).
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/additional-information?faq_topic=9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/additional-information"
);
const params = {
"faq_topic": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"next_order": 4
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export faq
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/export?orderBy=topic%3Aasc%7Corder%3Aasc&search=architecto&faq_topic=9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e&is_active=1&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/export"
);
const params = {
"orderBy": "topic:asc|order:asc",
"search": "architecto",
"faq_topic": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"is_active": "1",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get faq
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update faq
requires authentication
Ao mudar de tema sem informar order, a pergunta vai para o fim do novo tema.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "faq_topic=architecto"\
--form "name=n"\
--form "text=g"\
--form "order=16"\
--form "is_active="const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('faq_topic', 'architecto');
body.append('name', 'n');
body.append('text', 'g');
body.append('order', '16');
body.append('is_active', '');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"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
}
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"text": [
"The text field is required."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove faq
requires authentication
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Faq Topics
Get all topics
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics?limit=20&page=1&orderBy=order%3Aasc&search=architecto&is_active=1&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "order:asc",
"search": "architecto",
"is_active": "1",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items, in the app order (order).
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/autocomplete?search=architecto&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/autocomplete"
);
const params = {
"search": "architecto",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
]
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create topic
requires authentication
Sem order, o tema vai para o fim da lista.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "name=b"\
--form "order=22"\
--form "is_active=1"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('name', 'b');
body.append('order', '22');
body.append('is_active', '1');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (201):
{
"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"
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name has already been taken."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reorder topics
requires authentication
Recebe os uuids dos temas na nova ordem (o primeiro fica com order 1).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/reorder" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "uuids[]=architecto"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/reorder"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('uuids[]', 'architecto');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"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
}
]
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"uuids.0": [
"The selected uuids.0 is invalid."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export topics
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/export?orderBy=order%3Aasc&search=architecto&is_active=1&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/export"
);
const params = {
"orderBy": "order:asc",
"search": "architecto",
"is_active": "1",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get topic
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update topic
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "order=1"\
--form "is_active=1"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('order', '1');
body.append('is_active', '1');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name has already been taken."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove topic
requires authentication
Só é possível excluir temas sem perguntas.
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Example response (422):
{
"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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
How It Works
Get all how it works
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/autocomplete"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create how it works
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "name=b"\
--form "text=n"\
--form "order=7"\
--form "is_active=1"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('name', 'b');
body.append('text', 'n');
body.append('order', '7');
body.append('is_active', '1');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get additional information
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/additional-information" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/additional-information"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"next_order": 5
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export how it works
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/export"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get how it works
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update how it works
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "name=b"\
--form "text=n"\
--form "order=7"\
--form "is_active="const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('name', 'b');
body.append('text', 'n');
body.append('order', '7');
body.append('is_active', '');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove how it works
requires authentication
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Live Audience
Get current audience
requires authentication
tv.now_playing/tv.next: item da programação no ar e o próximo. webinars: transmissões ao vivo agora.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-audience" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/live-audience"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
]
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Live Webinars
Get all live webinars
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars?limit=20&page=1&orderBy=starts_at%3Aasc&search=margem&status=live&moderator=9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e&starts_at=&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "starts_at:asc",
"search": "margem",
"status": "live",
"moderator": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"starts_at": "",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create live webinar
requires authentication
Agenda a transmissão de um webinar da Central. Cada webinar tem uma transmissão só.
O moderador é um usuário do painel; moderator_role é o cargo exibido no app.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (201):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"content": [
"Este webinar já tem uma transmissão ao vivo agendada."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items (filtro da moderação de perguntas), ao vivo primeiro.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/autocomplete?search=margem&status=live" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/autocomplete"
);
const params = {
"search": "margem",
"status": "live",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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"
}
}
]
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export live webinars
requires authentication
Aceita os mesmos filtros da listagem.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/export?orderBy=starts_at%3Aasc&search=margem&status=ended" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/export"
);
const params = {
"orderBy": "starts_at:asc",
"search": "margem",
"status": "ended",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get live webinar
requires authentication
Inclui os contadores de perguntas por situação e quantos estão assistindo agora.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update live webinar
requires authentication
Envie só os campos que mudam. Trocar o webinar só é possível enquanto a transmissão está agendada.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"stream_url": [
"The stream url field must be a valid URL."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Start live webinar
requires authentication
Coloca a transmissão no ar: o webinar fica "ao vivo" no app (is_live), passa a tocar a stream_url
e aceita perguntas (se questions_open). Sem data de publicação (ou com data futura), o webinar é publicado agora.
Os usuários recebem o aviso "Ao vivo agora" por push (respeitando a chave Notificações do app); o aviso
aparece no histórico de "Notificações push".
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1/start" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1/start"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"status": [
"Esta transmissão já foi encerrada."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
End live webinar
requires authentication
Encerra a transmissão: o webinar deixa de estar "ao vivo" e continua no catálogo como gravação
(a mídia do conteúdo; envie recording_url para trocá-la pela gravação). Sem duração cadastrada,
a duração do conteúdo passa a ser o tempo real da transmissão. As perguntas são fechadas.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1/end" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "recording_url=http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1/end"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('recording_url', 'http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"status": [
"Esta transmissão não está ao vivo."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove live webinar
requires authentication
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.
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"status": [
"Encerre a transmissão antes de excluir."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Log
Get all logs
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/logs?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&created_at=&type_target=user" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/logs"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"created_at": "",
"type_target": "user",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/logs/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/logs/autocomplete"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export logs
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/logs/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/logs/export"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get log
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/logs/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/logs/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Notifications
Get all notifications
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/autocomplete"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create notificacao
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "name=b"\
--form "text=n"\
--form "description=Animi quos velit et fugiat."\
--form "video=d"\
--form "button_title=l"\
--form "button_link=j"\
--form "is_active="\
--form "send_push="\
--form "send_date=2052-12-12"\
--form "cover=@/tmp/phpuHZdt8" const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('name', 'b');
body.append('text', 'n');
body.append('description', 'Animi quos velit et fugiat.');
body.append('video', 'd');
body.append('button_title', 'l');
body.append('button_link', 'j');
body.append('is_active', '');
body.append('send_push', '');
body.append('send_date', '2052-12-12');
body.append('cover', document.querySelector('input[name="cover"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export notifications
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/export"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get notificacao
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update notification
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "name=b"\
--form "text=n"\
--form "description=Animi quos velit et fugiat."\
--form "video=d"\
--form "button_title=l"\
--form "button_link=j"\
--form "cover_delete=1"\
--form "is_active="\
--form "send_push="\
--form "send_date=2052-12-12"\
--form "cover=@/tmp/phpGy7wBr" const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('name', 'b');
body.append('text', 'n');
body.append('description', 'Animi quos velit et fugiat.');
body.append('video', 'd');
body.append('button_title', 'l');
body.append('button_link', 'j');
body.append('cover_delete', '1');
body.append('is_active', '');
body.append('send_push', '');
body.append('send_date', '2052-12-12');
body.append('cover', document.querySelector('input[name="cover"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove notification
requires authentication
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
OnBoarding
Get all onboardings
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding?limit=20&page=1&orderBy=order%3Aasc&search=architecto&is_active=1&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "order:asc",
"search": "architecto",
"is_active": "1",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/autocomplete"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get additional information
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/additional-information" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/additional-information"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"next_order": 5
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create onboarding
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "kicker=b"\
--form "title=n"\
--form "text=g"\
--form "icon=z"\
--form "order=17"\
--form "is_active=1"\
--form "image=@/tmp/phpavPiRB" const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('kicker', 'b');
body.append('title', 'n');
body.append('text', 'g');
body.append('icon', 'z');
body.append('order', '17');
body.append('is_active', '1');
body.append('image', document.querySelector('input[name="image"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"title": [
"The title field is required."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reorder onboarding
requires authentication
Recebe os uuids dos slides na nova ordem (o primeiro fica com order 1).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/reorder" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "uuids[]=architecto"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/reorder"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('uuids[]', 'architecto');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"uuids.0": [
"The selected uuids.0 is invalid."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export onboarding
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/export?orderBy=order%3Aasc&search=architecto&is_active=1&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/export"
);
const params = {
"orderBy": "order:asc",
"search": "architecto",
"is_active": "1",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get onboarding
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update onboarding
requires authentication
Para remover a imagem envie delete_image=1.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "kicker=b"\
--form "title=n"\
--form "text=g"\
--form "delete_image="\
--form "icon=z"\
--form "order=17"\
--form "is_active="\
--form "image=@/tmp/phplLV4eW" const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('kicker', 'b');
body.append('title', 'n');
body.append('text', 'g');
body.append('delete_image', '');
body.append('icon', 'z');
body.append('order', '17');
body.append('is_active', '');
body.append('image', document.querySelector('input[name="image"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"icon": [
"The icon field format is invalid."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove onboarding
requires authentication
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Permissions
Autocomplete permissions
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/permissions/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/permissions/autocomplete"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Policy Cookies
Get privacy policy
requires authentication
Update privacy policy
requires authentication
Privacy Policy
Get privacy policy
requires authentication
Título e texto (HTML).
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/privacy-policy" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/privacy-policy"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"name": "Política de privacidade",
"text": "<h3>1. Quais dados coletamos</h3><p>Dados de cadastro e dados de uso do app.</p>",
"created_at": "2026-10-22T10:00:00+00:00",
"updated_at": "2026-10-22T10:00:00+00:00",
"deleted_at": null
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update privacy policy
requires authentication
O texto é o HTML do editor: a API remove o que poderia executar código (scripts, eventos, iframes) e guarda a
formatação. O app recebe esse texto dividido em seções a cada título (GET pages/privacidade).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/privacy-policy" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "name=b"\
--form "text=n"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/privacy-policy"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('name', 'b');
body.append('text', 'n');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"data": {
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"name": "Política de privacidade",
"text": "<h3>1. Quais dados coletamos</h3><p>Dados de cadastro e dados de uso do app.</p>",
"created_at": "2026-10-22T10:00:00+00:00",
"updated_at": "2026-10-22T11:30:00+00:00",
"deleted_at": null
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"text": [
"The text field is required."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Push City
Get all push
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&city_id=uuid&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"city_id": "uuid",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create push
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "city_id=6ff8f7f6-1eb3-3525-be4a-3932c805afed"\
--form "title=g"\
--form "body=z"\
--form "url=http://rempel.com/sunt-nihil-accusantium-harum-mollitia"\
--form "scheduled_at=2052-12-12"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('city_id', '6ff8f7f6-1eb3-3525-be4a-3932c805afed');
body.append('title', 'g');
body.append('body', 'z');
body.append('url', 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia');
body.append('scheduled_at', '2052-12-12');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/autocomplete"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update push
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "city_id=6ff8f7f6-1eb3-3525-be4a-3932c805afed"\
--form "title=g"\
--form "body=z"\
--form "url=http://rempel.com/sunt-nihil-accusantium-harum-mollitia"\
--form "scheduled_at=2052-12-12"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('city_id', '6ff8f7f6-1eb3-3525-be4a-3932c805afed');
body.append('title', 'g');
body.append('body', 'z');
body.append('url', 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia');
body.append('scheduled_at', '2052-12-12');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export push
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&city_id=uuid&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/export"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"city_id": "uuid",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get push
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove push
requires authentication
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Push General
Notificações push do app (painel "Notificações push"): envio manual (título, texto, público todos/selecionados,
conteúdo ou link opcional, agendamento opcional) e o histórico de tudo o que foi enviado, inclusive os avisos
automáticos (source: content conteúdo publicado, live_webinar webinar ao vivo, tv TV Unity ao vivo).
O envio é feito pelo comando push-general:send (agendador, a cada minuto) pelo Expo Push (PUSH_DRIVER=expo;
no local e nos testes, PUSH_DRIVER=log só grava em storage/logs/push.log). Só recebe quem está com a chave
Notificações ligada no app; aparelhos com token inválido são removidos. status: scheduled (agendado),
queued (na fila, sai em até 1 minuto) ou sent (enviado, com total_users, total_devices e total_failed).
Get all push
requires authentication
Histórico das notificações push (manuais e automáticas).
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general?limit=20&page=1&orderBy=id%3Adesc&search=architecto&source=manual&status=sent&audience=all&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "id:desc",
"search": "architecto",
"source": "manual",
"status": "sent",
"audience": "all",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create push
requires authentication
Envio manual. Sem scheduled_at, sai em até 1 minuto. audience=selected exige customers (uuids dos usuários do app).
content (uuid) faz o app abrir o conteúdo ao tocar no push; url abre um link.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (201):
{
"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"
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"customers": [
"Escolha ao menos um usuário."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/autocomplete"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update push
requires authentication
Só enquanto não foi enviado.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (201):
{
"data": {
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"title": "Novo webinar disponível",
"status": "scheduled"
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"status": [
"Este push já foi enviado."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export push
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&source=manual&status=sent&audience=all&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/export"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"source": "manual",
"status": "sent",
"audience": "all",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get push
requires authentication
Detalhe com os usuários selecionados e o resultado do envio (api_response: driver, totais e amostra dos tickets do Expo).
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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-..."
}
]
}
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove push
requires authentication
Cancela um push que ainda não foi enviado.
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Push State
Get all push
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&state_id=uuid&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"state_id": "uuid",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create push
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "state_id=6ff8f7f6-1eb3-3525-be4a-3932c805afed"\
--form "title=g"\
--form "body=z"\
--form "url=http://rempel.com/sunt-nihil-accusantium-harum-mollitia"\
--form "scheduled_at=2052-12-12"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('state_id', '6ff8f7f6-1eb3-3525-be4a-3932c805afed');
body.append('title', 'g');
body.append('body', 'z');
body.append('url', 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia');
body.append('scheduled_at', '2052-12-12');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/autocomplete"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update push
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "state_id=6ff8f7f6-1eb3-3525-be4a-3932c805afed"\
--form "title=g"\
--form "body=z"\
--form "url=http://rempel.com/sunt-nihil-accusantium-harum-mollitia"\
--form "scheduled_at=2052-12-12"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('state_id', '6ff8f7f6-1eb3-3525-be4a-3932c805afed');
body.append('title', 'g');
body.append('body', 'z');
body.append('url', 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia');
body.append('scheduled_at', '2052-12-12');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export push
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&state_id=uuid&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/export"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"state_id": "uuid",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get push
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove push
requires authentication
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Push User
Get all push
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&customer_id=uuid&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"customer_id": "uuid",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create push
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "customer_id=6ff8f7f6-1eb3-3525-be4a-3932c805afed"\
--form "title=g"\
--form "body=z"\
--form "url=http://rempel.com/sunt-nihil-accusantium-harum-mollitia"\
--form "scheduled_at=2052-12-12"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('customer_id', '6ff8f7f6-1eb3-3525-be4a-3932c805afed');
body.append('title', 'g');
body.append('body', 'z');
body.append('url', 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia');
body.append('scheduled_at', '2052-12-12');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/autocomplete"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update push
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "customer_id=6ff8f7f6-1eb3-3525-be4a-3932c805afed"\
--form "title=g"\
--form "body=z"\
--form "url=http://rempel.com/sunt-nihil-accusantium-harum-mollitia"\
--form "scheduled_at=2052-12-12"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('customer_id', '6ff8f7f6-1eb3-3525-be4a-3932c805afed');
body.append('title', 'g');
body.append('body', 'z');
body.append('url', 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia');
body.append('scheduled_at', '2052-12-12');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export push
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&customer_id=uuid&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/export"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"customer_id": "uuid",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get push
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove push
requires authentication
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Roles
Get all roles
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/roles"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create role
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/roles" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "name=b"\
--form "description=Et animi quos velit et fugiat."\
--form "permissions[]=5707ca55-f609-3528-be8b-1baeaee1567e"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/roles"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('name', 'b');
body.append('description', 'Et animi quos velit et fugiat.');
body.append('permissions[]', '5707ca55-f609-3528-be8b-1baeaee1567e');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/autocomplete"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export roles
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/export"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get role
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update role
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "name=b"\
--form "description=Et animi quos velit et fugiat."\
--form "permissions[]=5707ca55-f609-3528-be8b-1baeaee1567e"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('name', 'b');
body.append('description', 'Et animi quos velit et fugiat.');
body.append('permissions[]', '5707ca55-f609-3528-be8b-1baeaee1567e');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove role
requires authentication
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Settings General
Get settings
requires authentication
Inclui o WhatsApp do suporte (whatsapp_support e whatsapp_message), usado no botão "Continuar por lá" do app.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/settings/general" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/settings/general"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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."
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update settings
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/settings/general" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "app_url_android=http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html"\
--form "app_url_ios=https://www.runte.com/ab-provident-perspiciatis-quo-omnis-nostrum-aut-adipisci"\
--form "email_support=theo.hauck@example.com"\
--form "phone_support=architecto"\
--form "url_site=architecto"\
--form "whatsapp_support=architecto"\
--form "whatsapp_message=n"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/settings/general"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('app_url_android', 'http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html');
body.append('app_url_ios', 'https://www.runte.com/ab-provident-perspiciatis-quo-omnis-nostrum-aut-adipisci');
body.append('email_support', 'theo.hauck@example.com');
body.append('phone_support', 'architecto');
body.append('url_site', 'architecto');
body.append('whatsapp_support', 'architecto');
body.append('whatsapp_message', 'n');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (204):
Empty response
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"whatsapp_support": [
"The whatsapp support is invalid."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Settings Notifications
Get settings
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/settings/notifications" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/settings/notifications"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update settings
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/settings/notifications" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "delete_account[]=gbailey@example.net"\
--form "create_account[]=rempel.chadrick@example.org"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/settings/notifications"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('delete_account[]', 'gbailey@example.net');
body.append('create_account[]', 'rempel.chadrick@example.org');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Social Networks
Get all social networks
requires authentication
Create social network
requires authentication
Uma rede de cada tipo. Sem order, a rede vai para o fim da lista.
Reorder social networks
requires authentication
Recebe os uuids das redes na nova ordem (a primeira fica com order 1).
Export social networks
requires authentication
Get social network
requires authentication
Update social network
requires authentication
Remove social network
requires authentication
Support Conversations
Atendimento do chat de suporte do app (CMS-05): caixa de conversas, mensagens, resposta, "digitando…", encerrar/reabrir e atendente responsável. Uma conversa por usuário do app; só aparecem conversas com mensagens.
Tempo real (WebSocket - Laravel Reverb, protocolo Pusher)
- Autorização:
POST /api/v1/admin/broadcasting/auth(Bearer do painel; permissãosupport-conversations.list). private-support.inbox(todas as conversas):.support.message,.support.typing,.support.conversation,.support.agent-status.private-support.conversation.{uuid}(uma conversa):.support.message,.support.typing,.support.conversation.- Payloads:
support.message→{conversation_uuid, message: {uuid, from: "user"|"agent", text, created_at, agent}, conversation: {uuid, status, customer, agent, unread_count, last_message_at}};support.typing→{conversation_uuid, from, name, typing, expires_in};support.conversation→{conversation_uuid, action, conversation};support.agent-status→{agent: {uuid, name, online}, online, name}.
Sem WebSocket (fallback): a caixa consulta GET support-conversations e GET support-conversations/unread a cada 10 s;
a conversa aberta consulta GET support-conversations/{uuid}/messages?after={uuid} a cada 4 s (traz meta.typing).
Get agents status
requires authentication
Status do atendente logado (me) e dos atendentes (usuários ativos com acesso às conversas).
online = chave ligada e sinal do painel nos últimos 3 minutos. team_online = há atendente online
(é o "Online agora" do app).
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-agents/status" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-agents/status"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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"
}
]
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update my status
requires authentication
Liga ou desliga o atendente logado (chave online/offline) e renova o sinal. Sem is_online, só renova o sinal
(o painel manda a cada minuto enquanto a tela de Conversas está aberta). O app é avisado da mudança
(support.agent-status).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-agents/status" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "is_online=1"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-agents/status"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('is_online', '1');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"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": []
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get all conversations
requires authentication
Caixa de conversas. Só conversas com mensagens. unread_count = mensagens do usuário ainda não lidas pelo atendimento.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations?limit=20&page=1&orderBy=last_message_at%3Adesc&search=mariana&status=open&unread=1&agent=me&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "last_message_at:desc",
"search": "mariana",
"status": "open",
"unread": "1",
"agent": "me",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Unread summary
requires authentication
Total de conversas abertas com mensagens não lidas e total dessas mensagens (balão do menu "Suporte").
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/unread" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/unread"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"conversations": 2,
"messages": 3,
"open": 5
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export conversations
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/export?orderBy=last_message_at%3Adesc&search=architecto&status=open&unread=1&agent=architecto&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/export"
);
const params = {
"orderBy": "last_message_at:desc",
"search": "architecto",
"status": "open",
"unread": "1",
"agent": "architecto",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get conversation
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get messages
requires authentication
Mensagens da conversa, das mais novas para as mais antigas, 30 por página. before = uuid da mais antiga já
carregada; after = uuid da mais nova já carregada (consulta periódica sem WebSocket, até 100).
meta.typing = o usuário do app está digitando; meta.customer_online = o app deu sinal no chat nos últimos 45 s.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/messages?before=5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9&after=5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/messages"
);
const params = {
"before": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
"after": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Send message
requires authentication
Responde o usuário do app. Reabre a conversa encerrada; sem responsável, quem responde passa a ser o responsável. O app recebe na hora (WebSocket ou consulta periódica) e, se não estiver aberto no chat, por push.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/messages" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/messages"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (201):
{
"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"
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"text": [
"Escreva a sua mensagem."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mark as read
requires authentication
Marca como lidas as mensagens do usuário do app (ao abrir a conversa ou receber mensagem com ela aberta).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/read" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/read"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"read": 2
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Typing
requires authentication
Mostra "digitando…" no app (mande no máximo a cada 3 s enquanto digita; vale por 8 s). Responde 204.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/typing" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/typing"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (204):
Empty response
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Close conversation
requires authentication
Encerra (marca como resolvida). O app é avisado (support.conversation, action: closed); uma nova mensagem reabre.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/close" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/close"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"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"
}
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"status": [
"Esta conversa já está encerrada."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reopen conversation
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/reopen" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/reopen"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"status": "open",
"closed_at": null
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"status": [
"Esta conversa já está aberta."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Assign agent
requires authentication
Define o atendente responsável (o nome dele aparece no app). agent vazio tira o responsável.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/assign" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "agent=b"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/assign"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('agent', 'b');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"data": {
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"status": "open",
"agent": {
"uuid": "4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f",
"name": "Camila Rocha"
}
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"agent": [
"Escolha um atendente ativo com acesso às conversas."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Authorize realtime channel
requires authentication
Autoriza o atendente do painel a escutar um canal privado do WebSocket (Laravel Reverb, protocolo Pusher).
Use como authEndpoint do pusher-js / laravel-echo, com o Authorization: Bearer do login.
Canais: private-support.inbox e private-support.conversation.{uuid} (permissão support-conversations.list) e private-support.status. Canal não permitido: 403.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/broadcasting/auth" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "socket_id=b"\
--form "channel_name=n"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/broadcasting/auth"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('socket_id', 'b');
body.append('channel_name', 'n');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"auth": "app-key:5f0a8c...e1"
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "This action is unauthorized.",
"code": 403,
"type": "AccessDeniedHttpException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Support Quick Replies
Sugestões rápidas do chat de suporte do app (ex.: "Dúvida sobre boleto"): aparecem como botões acima do campo de
mensagem (quick_replies de GET support/conversation), na ordem (order), só as ativas. Tocar envia o texto.
Get all quick replies
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies?limit=20&page=1&orderBy=order%3Aasc&search=architecto&is_active=1&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "order:asc",
"search": "architecto",
"is_active": "1",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create quick reply
requires authentication
Sem order, a sugestão vai para o fim da lista.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "text=b"\
--form "order=22"\
--form "is_active="const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('text', 'b');
body.append('order', '22');
body.append('is_active', '');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (201):
{
"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"
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"text": [
"The text has already been taken."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reorder quick replies
requires authentication
Recebe os uuids das sugestões na nova ordem (a primeira fica com order 1).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/reorder" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "uuids[]=architecto"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/reorder"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('uuids[]', 'architecto');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"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
}
]
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"uuids.0": [
"The selected uuids.0 is invalid."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export quick replies
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/export?orderBy=order%3Aasc&search=architecto&is_active=1&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/export"
);
const params = {
"orderBy": "order:asc",
"search": "architecto",
"is_active": "1",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get quick reply
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update quick reply
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "text=b"\
--form "order=22"\
--form "is_active="const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('text', 'b');
body.append('order', '22');
body.append('is_active', '');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"text": [
"The text has already been taken."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove quick reply
requires authentication
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
System Log
Get all logs
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/system-log?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&level=ALERT&method=GET&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/system-log"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"level": "ALERT",
"method": "GET",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/system-log/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/system-log/autocomplete"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export logs
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/system-log/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&level=ALERT&method=GET&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/system-log/export"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"level": "ALERT",
"method": "GET",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get log
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/system-log/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/system-log/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
TV Schedules
Get all schedule items
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules?limit=20&page=1&orderBy=starts_at%3Aasc&search=margem&status=on_air&source=stream&is_active=1&starts_at=&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "starts_at:asc",
"search": "margem",
"status": "on_air",
"source": "stream",
"is_active": "1",
"starts_at": "",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create schedule item
requires authentication
Fonte: source=stream com stream_url (HLS/RTMP do provedor) ou source=content com content (uuid de um vídeo do catálogo).
Capa: envie a imagem em cover ou a URL em cover_url; sem capa, o app usa a do vídeo do catálogo.
Itens ativos não podem se sobrepor (encostar o fim de um no início do outro pode).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (201):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items, from the next ones.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/autocomplete?search=margem&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/autocomplete"
);
const params = {
"search": "margem",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
]
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export schedule
requires authentication
Aceita os mesmos filtros da listagem.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/export?orderBy=starts_at%3Aasc&search=margem&status=scheduled&source=stream&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/export"
);
const params = {
"orderBy": "starts_at:asc",
"search": "margem",
"status": "scheduled",
"source": "stream",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get schedule item
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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"
}
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update schedule item
requires authentication
Envie só os campos que mudam. Para remover a capa envie delete_cover=1. A sobreposição é conferida de novo com o resultado final.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"ends_at": [
"The ends at field must be a date after starts at."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove schedule item
requires authentication
Exclusão lógica: o item sai da grade e do app.
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (204):
Empty response
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Terms Of Use
Get terms of use
requires authentication
Título e texto (HTML).
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/terms-of-use" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/terms-of-use"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"name": "Termos de uso",
"text": "<h3>1. Aceitação</h3><p>Ao usar o app você concorda com estes termos.</p>",
"created_at": "2026-10-22T10:00:00+00:00",
"updated_at": "2026-10-22T10:00:00+00:00",
"deleted_at": null
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update terms of use
requires authentication
O texto é o HTML do editor: a API remove o que poderia executar código (scripts, eventos, iframes) e guarda a
formatação. O app recebe esse texto dividido em seções a cada título (GET pages/termos).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/terms-of-use" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "name=b"\
--form "text=n"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/terms-of-use"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('name', 'b');
body.append('text', 'n');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"data": {
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"name": "Termos de uso",
"text": "<h3>1. Aceitação</h3><p>Ao usar o app você concorda com estes termos.</p>",
"created_at": "2026-10-22T10:00:00+00:00",
"updated_at": "2026-10-22T11:30:00+00:00",
"deleted_at": null
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"text": [
"The text field is required."
]
},
"code": 422,
"type": "ValidationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Users
Get all users
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/users?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/users"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create user
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/users" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "name=b"\
--form "password_random=1"\
--form "password=]|{+-0pBNvYg"\
--form "password_confirmation=hwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppw"\
--form "email=verlie08@example.net"\
--form "is_active="\
--form "roles[]=45e62725-5da9-35c7-82db-977f64d08292"\
--form "avatar=@/tmp/phpD9v0Xd" const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/users"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('name', 'b');
body.append('password_random', '1');
body.append('password', ']|{+-0pBNvYg');
body.append('password_confirmation', 'hwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppw');
body.append('email', 'verlie08@example.net');
body.append('is_active', '');
body.append('roles[]', '45e62725-5da9-35c7-82db-977f64d08292');
body.append('avatar', document.querySelector('input[name="avatar"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete
requires authentication
List a maximum of 50 items.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/users/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/users/autocomplete"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export users
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/users/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/users/export"
);
const params = {
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"is_active": "1",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get user
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/users/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/users/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update user
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/users/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "is_active=1"\
--form "roles[]=6ff8f7f6-1eb3-3525-be4a-3932c805afed"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/users/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('is_active', '1');
body.append('roles[]', '6ff8f7f6-1eb3-3525-be4a-3932c805afed');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove user
requires authentication
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/users/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/users/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Webinar Questions
Get all questions
requires authentication
status_counts traz o total por situação com os mesmos filtros (exceto status), para as abas da moderação.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions?limit=20&page=1&orderBy=id%3Adesc&search=ociosidade&live_webinar=5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9&status=pending&created_at=" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "id:desc",
"search": "ociosidade",
"live_webinar": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
"status": "pending",
"created_at": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export questions
requires authentication
Aceita os mesmos filtros da listagem.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/export?live_webinar=5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9&status=approved&search=ociosidade" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/export"
);
const params = {
"live_webinar": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
"status": "approved",
"search": "ociosidade",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"file_url": "{url}"
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get question
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/7" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/7"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"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"
}
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Approve question
requires authentication
A pergunta passa a aparecer para todos no app.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/7/approve" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/7/approve"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"uuid": "7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a",
"status": "approved",
"approved_at": "2026-10-22T14:23:00-03:00",
"answered_at": null,
"rejected_at": null
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reject question
requires authentication
A pergunta some da lista pública (o autor continua vendo a sua, como recusada).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/7/reject" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/7/reject"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"uuid": "7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a",
"status": "rejected",
"approved_at": null,
"answered_at": null,
"rejected_at": "2026-10-22T14:23:00-03:00"
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mark question as answered
requires authentication
Marca como respondida ao vivo. Continua visível para todos (e é aprovada, se ainda não estava).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/7/answer" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/7/answer"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"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
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (403):
{
"message": "You do not have permission for this action.",
"code": 403,
"type": "UserPermissionException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Webservice
Cities
requires authentication
Search city, must enter at least one of the search fields search or state_abbr
List a maximum of 50 items.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/webservice/cities?search=architecto&state_abbr=architecto" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/webservice/cities"
);
const params = {
"search": "architecto",
"state_abbr": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
States
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/webservice/states?search=architecto" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/webservice/states"
);
const params = {
"search": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Find zipcode
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/admin/webservice/zipcode/architecto" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/admin/webservice/zipcode/architecto"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
"code": 401,
"type": "Illuminate\\Auth\\AuthenticationException"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.