Introduction
Unity Health - API API Documentation for the Client
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 chat de suporte usa o **Laravel Reverb** (servidor WebSocket da própria API, protocolo Pusher). Use `laravel-echo` + `pusher-js` com `broadcaster: "reverb"`, `key` = `REVERB_APP_KEY`, `wsHost`/`wsPort` do Reverb e `authEndpoint` = `POST /api/v1/customer/broadcasting/auth` (com o `Authorization: Bearer` do app).
| Canal | Quem pode | Eventos (escute com ponto: `.support.message`) |
|---|---|---|
| `private-support.conversation.{uuid}` | o dono da conversa | `support.message`, `support.typing`, `support.conversation` |
| `private-support.status` | qualquer usuário logado | `support.agent-status` |
Sem WebSocket, tudo funciona por consulta periódica: `GET support/conversation/messages?after={uuid}` (veja a seção **Suporte**).
**Push (Expo):** o app registra o aparelho em `POST devices` (token do Expo Push) e o remove em `DELETE devices/{token}`; a chave Notificações (`PUT me/settings`) liga/desliga o envio. O `data` do push indica a tela: `support_message` (`conversation_uuid`), `content`/`live_webinar` (`content_uuid`, `content_type`), `tv` ou `push` (`url` opcional).
Authenticating requests
To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".
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.
App Screens
Get app screens
Tudo o que o app mostra antes do login, em uma chamada: Splash, slides do Onboarding (ativos, na ordem do painel) e textos do Login.
Imagens em URL absoluta (ou null quando não enviadas: o app usa a imagem embutida).
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/app/screens" \
--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/customer/app/screens"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"splash": {
"logo_url": "http://localhost/storage/app-screens/logo-white.png",
"footer_text": "desenvolvido por",
"footer_logo_url": "http://localhost/storage/app-screens/clickweb.svg",
"duration_seconds": 3.4
},
"onboarding": [
{
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"kicker": "Sejam bem-vindos",
"title": "Tudo da Unity Health em um só lugar",
"text": "Conteúdos da área médica, TV Unity, financeiro e suporte, na palma da mão.",
"image_url": "http://localhost/storage/app-screens/logo-white.png",
"icon": null,
"order": 1
}
],
"login": {
"title": "Entrar",
"subtitle": "Acesse sua conta Unity Health com e-mail e senha."
}
}
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
Login do app com e-mail e senha (BE-04). Com a verificação em duas etapas ligada (ENABLE_A2F), não abre a sessão:
devolve o two_factor_token (vale 10 min), os canais com o destino mascarado e já envia o código de 6 dígitos pelo
default_channel (SMS se houver celular, senão e-mail). Depois o app chama auth/two-factor/verify.
Com a verificação desligada, abre a sessão direto e responde como o auth/two-factor/verify.
E-mail ou senha errados (ou convidado que ainda não definiu a senha): 401 "Os dados informados são inválidos.".
Usuário bloqueado no painel: 403. Limite de 5 tentativas por e-mail a cada 15 min (429).
Fora de produção a resposta traz também o code enviado (para testes). O login por rede social (network_external
diferente de login-pass) segue o fluxo da base.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/login" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "network_external=bngzmi"\
--form "email=okon.justina@example.com"\
--form "password=Ygxwmi/"\
--form "login_external_id=c"\
--form "device_name=m"\
--form "token_name=y"\
--form "accepted_term_of_users_at=2026-11-18T15:50:59"\
--form "accepted_policy_privacy_at=2026-11-18T15:50:59"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/login"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('network_external', 'bngzmi');
body.append('email', 'okon.justina@example.com');
body.append('password', 'Ygxwmi/');
body.append('login_external_id', 'c');
body.append('device_name', 'm');
body.append('token_name', 'y');
body.append('accepted_term_of_users_at', '2026-11-18T15:50:59');
body.append('accepted_policy_privacy_at', '2026-11-18T15:50:59');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"two_factor_token": "tf_Xr8...",
"expires_in": 600,
"channels": {
"sms": "(11) •••••-0000",
"email": "m•••••@unityhealth.com.br"
},
"default_channel": "sms"
}
Example response (200, Duas etapas desligada):
{
"token_type": "Bearer",
"access_token": "12|eyJ0eXAiOiJ...",
"refresh_token": "rt_...",
"expires_in": 900,
"user": {
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"name": "Mariana Vasconcellos",
"treatment": "Dra.",
"email": "mariana@unityhealth.com.br",
"phone": "+5511999990000",
"cpf": "12345678909",
"job_title": "Diretora Clínica",
"institution": "Hospital Sírio-Libanês",
"avatar_url": null,
"password_changed_at": null,
"created_at": "2026-01-10T12:00:00Z",
"updated_at": "2026-10-15T12:00:00Z"
}
}
Example response (401):
{
"message": "Os dados informados são inválidos."
}
Example response (403):
{
"message": "Seu acesso ao app está bloqueado. Fale com o suporte da Unity Health."
}
Example response (429):
{
"message": "Você realizou muitas tentativas de login. Por favor, tente novamente em 840 segundos.",
"errors": {
"email": [
"..."
]
}
}
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 two factor code
Envia ou reenvia o código de 6 dígitos da verificação em duas etapas pelo canal escolhido (BE-05).
O reenvio só é liberado 30 s depois do último envio (429 com resend_in). O código vale 10 min e um novo
código invalida o anterior. Sem celular cadastrado, o canal sms responde 422.
Fora de produção a resposta traz também o code enviado (para testes).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/two-factor/send" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "two_factor_token=b"\
--form "channel=email"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/two-factor/send"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('two_factor_token', 'b');
body.append('channel', 'email');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"sent_to": "m•••••@unityhealth.com.br",
"resend_in": 30
}
Example response (422):
{
"message": "A verificação expirou. Entre de novo com e-mail e senha.",
"errors": {
"two_factor_token": [
"A verificação expirou. Entre de novo com e-mail e senha."
]
}
}
Example response (429):
{
"message": "Aguarde 12 s para pedir um novo código.",
"resend_in": 12
}
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 two factor code
Confere o código e abre a sessão (BE-05). Código errado: 422 "O código informado é inválido."; no 5º erro o
two_factor_token é cancelado e é preciso entrar de novo. Código vencido (10 min): 422.
A sessão tem um access_token (vale expires_in segundos, ~15 min) e um refresh_token de uso único para
auth/refresh. O nome da sessão (aparelho) vem de device_name ou do enviado no login.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/two-factor/verify" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "two_factor_token=b"\
--form "code=569775"\
--form "device_name=n"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/two-factor/verify"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('two_factor_token', 'b');
body.append('code', '569775');
body.append('device_name', 'n');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"token_type": "Bearer",
"access_token": "12|eyJ0eXAiOiJ...",
"refresh_token": "rt_...",
"expires_in": 900,
"user": {
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"name": "Mariana Vasconcellos",
"treatment": "Dra.",
"email": "mariana@unityhealth.com.br",
"phone": "+5511999990000",
"cpf": "12345678909",
"job_title": "Diretora Clínica",
"institution": "Hospital Sírio-Libanês",
"avatar_url": null,
"password_changed_at": null,
"created_at": "2026-01-10T12:00:00Z",
"updated_at": "2026-10-15T12:00:00Z"
}
}
Example response (422):
{
"message": "O código informado é inválido.",
"errors": {
"code": [
"O código informado é invá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.
Refresh session
Troca o refresh token por um novo par de tokens (BE-06). O refresh token é de uso único (rotação): se um refresh token já trocado for usado de novo, todas as sessões do usuário são encerradas. Inválido, vencido (30 dias) ou usuário bloqueado: 401.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/refresh" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "refresh_token=b"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/refresh"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('refresh_token', 'b');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"token_type": "Bearer",
"access_token": "12|eyJ0eXAiOiJ...",
"refresh_token": "rt_novo...",
"expires_in": 900
}
Example response (401):
{
"message": "Sessão inválida ou expirada. Entre de novo."
}
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.
Forgot password
"Esqueci minha senha" do app (BE-07): envia o e-mail com o link de nova senha (vale 30 min). Responde 204 mesmo se o e-mail não existir ou estiver bloqueado (não revela quem tem conta). Máximo de 3 envios por e-mail a cada hora (429).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/forgot-password" \
--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/customer/auth/forgot-password"
);
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 (204):
Empty response
Example response (429):
{
"message": "Você já pediu o link algumas vezes. Tente de novo mais tarde."
}
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.
Reset password
Grava a nova senha a partir do link do e-mail (BE-07). O app chama POST auth/reset-password; auth/password/reset
continua valendo (formato da base). O link do e-mail traz o token e o email. Regras: 8 caracteres, uma maiúscula,
um número e um símbolo. Encerra todas as sessões abertas. O link padrão abre a página web de nova senha da API
(password/reset/customers/{token}), que faz o mesmo.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/reset-password" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "token=b"\
--form "email=zbailey@example.net"\
--form "password=-0pBNvYgxw"\
--form "password_confirmation=architecto"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/reset-password"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('token', 'b');
body.append('email', 'zbailey@example.net');
body.append('password', '-0pBNvYgxw');
body.append('password_confirmation', 'architecto');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (204):
Empty response
Example response (422):
{
"message": "Esse código de redefinição de senha é inválido.",
"errors": {
"email": [
"Esse código de redefinição de senha é invá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.
Password recovery
Formato antigo da base (responde 422 quando o e-mail não existe). O app usa auth/forgot-password.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/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/customer/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.
Validate Email
Se o email ja existe no banco = false | Se o email nao existe no banco = true
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/validate-email" \
--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/customer/auth/validate-email"
);
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):
{
"validate": true,
}
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.
Validate Phone
Se o telefone ja existe no banco = false | Se o telefone nao existe no banco = true
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/validate-phone" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "phone=architecto"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/validate-phone"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('phone', 'architecto');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"validate": true,
}
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 Account
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/create" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "network_external=bngzmi"\
--form "email=okon.justina@example.com"\
--form "password=Ygxwmi/"\
--form "password_confirmation=cmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppwqbewt"\
--form "login_external_id=n"\
--form "name=n"\
--form "accepted_term_of_users_at=2026-11-18T15:50:59"\
--form "accepted_policy_privacy_at=2026-11-18T15:50:59"\
--form "token_name=o"\
--form "phone=architecto"\
--form "avatar=@/tmp/phpvwsvMR" const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/create"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('network_external', 'bngzmi');
body.append('email', 'okon.justina@example.com');
body.append('password', 'Ygxwmi/');
body.append('password_confirmation', 'cmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppwqbewt');
body.append('login_external_id', 'n');
body.append('name', 'n');
body.append('accepted_term_of_users_at', '2026-11-18T15:50:59');
body.append('accepted_policy_privacy_at', '2026-11-18T15:50:59');
body.append('token_name', 'o');
body.append('phone', 'architecto');
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.
Resend token via email
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/email/resend" \
--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/customer/email/resend"
);
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": "message successfully"
}
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
Encerra a sessão deste aparelho (o access token e o refresh token dele). O app chama POST auth/logout;
DELETE auth/logout continua valendo (formato da base). Responde 204.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/logout" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "refresh_token=b"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/logout"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('refresh_token', 'b');
fetch(url, {
method: "POST",
headers,
body,
}).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.
Logout
requires authentication
Encerra a sessão deste aparelho (o access token e o refresh token dele). O app chama POST auth/logout;
DELETE auth/logout continua valendo (formato da base). Responde 204.
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/logout" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "refresh_token=b"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/logout"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('refresh_token', 'b');
fetch(url, {
method: "DELETE",
headers,
body,
}).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.
Get the authenticated user
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/user" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/auth/user"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"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/customer/auth/tokens" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/auth/tokens"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"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/customer/auth/tokens/architecto" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/auth/tokens/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"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.
Delete account
requires authentication
Formato antigo da base (confirma com a senha). O app usa DELETE me. Os dois fazem a exclusão LGPD:
apagam as interações, anonimizam os dados pessoais, revogam as sessões e fazem o soft delete.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/delete-account" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "password=|]|{+-"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/delete-account"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('password', '|]|{+-');
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 password
requires authentication
Formato antigo da base. O app usa PUT me/password. Regras da nova senha: 8 caracteres, uma maiúscula,
um número e um símbolo. Encerra as sessões dos outros aparelhos.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/change-password" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "password=|]|{+-"\
--form "password_new=v"\
--form "password_new_confirmation=architecto"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/change-password"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('password', '|]|{+-');
body.append('password_new', 'v');
body.append('password_new_confirmation', 'architecto');
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.
settings notify
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/update/settings" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "notify_newsletter=1"\
--form "notify_general=1"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/update/settings"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('notify_newsletter', '1');
body.append('notify_general', '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.
Update user
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "name=b"\
--form "is_active="\
--form "email=zbailey@example.net"\
--form "phone=architecto"\
--form "avatar_delete=1"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('name', 'b');
body.append('is_active', '');
body.append('email', 'zbailey@example.net');
body.append('phone', 'architecto');
body.append('avatar_delete', '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.
Change avatar
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/change-avatar" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "avatar=@/tmp/phpwtMo7T" const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/auth/change-avatar"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"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.
Contents
Get categories
requires authentication
Chips de categoria de cada hub (BE-09). Sem type, devolve as categorias dos quatro tipos.
contents_count conta só os conteúdos publicados.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/categories?type=ebook" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/categories"
);
const params = {
"type": "ebook",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
[
{
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"name": "Gestão Hospitalar",
"type": "ebook",
"color": null,
"contents_count": 7
}
]
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"type": [
"The selected type 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.
Get contents
requires authentication
Listas completas ("Ver todos") e busca (BE-09). Sem type, busca nos quatro tipos.
A busca procura no título, no autor, na série e na categoria, sem diferenciar maiúsculas nem acentos.
meta.categories traz o total por categoria do que foi encontrado ("48 conteúdos em 4 categorias").
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/contents?type=ebook&category=9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e&q=lgpd&page=1&per_page=20" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/contents"
);
const params = {
"type": "ebook",
"category": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"q": "lgpd",
"page": "1",
"per_page": "20",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"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": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
"type": "podcast",
"title": "Lei Geral de Proteção de Dados (LGPD) em Prontuários",
"cover_url": "https://cdn.exemplo.com/capa.jpg",
"category": {
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"name": "Regulação & Compliance"
},
"author": {
"name": "Dra. Beatriz Amaral",
"role": null
},
"series": {
"name": "Direito & Saúde Digital",
"episode": 6
},
"duration_seconds": 1740,
"pages": null,
"is_live": false,
"published_at": "2026-09-19T13:00:00Z",
"saved": false,
"progress": null
}
],
"meta": {
"page": 1,
"per_page": 20,
"total": 1,
"last_page": 1,
"categories": [
{
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"name": "Regulação & Compliance",
"count": 1
}
]
}
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"per_page": [
"The per page field must not be greater than 100."
]
},
"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 hub
requires authentication
Todas as seções de um hub em uma chamada (BE-10). Sem type, devolve a Central (com counts).
continue: progresso entre 1% e 95%, do mais recente para o mais antigo;featured: o destaque escolhido no painel (hub do tipo ou Central);latest: publicados mais recentemente;recommended: das categorias que o cliente mais consome e que ele ainda não abriu;saved: salvos para depois.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/contents/hub?type=podcast" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/contents/hub"
);
const params = {
"type": "podcast",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"counts": {
"ebook": 18,
"podcast": 12,
"video": 13,
"webinar": 9
},
"categories": [],
"continue": [],
"featured": null,
"latest": [],
"recommended": [],
"saved": []
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"type": [
"The selected type 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.
Get saved
requires authentication
Itens salvos (aba Salvos e seção "Salvos para depois") (BE-12). Sem type, devolve os quatro tipos.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/contents/saved?type=video&page=1&per_page=20" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/contents/saved"
);
const params = {
"type": "video",
"page": "1",
"per_page": "20",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [],
"meta": {
"page": 1,
"per_page": 20,
"total": 0,
"last_page": 1
}
}
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.
Get content
requires authentication
Tudo para as telas de detalhe e para os players (BE-11). media_url é o arquivo enviado no painel ou a URL externa;
media_expires_at fica null enquanto a mídia não usa URL assinada.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/contents/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/contents/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"uuid": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
"type": "podcast",
"title": "Ep. 24 - Renegociação de Tabelas e Gestão de OPME",
"cover_url": "https://cdn.exemplo.com/capa.jpg",
"category": {
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"name": "Gestão & Finanças"
},
"author": {
"name": "Dr. Ricardo Alves",
"role": null
},
"series": {
"name": "Unity Health Leaders",
"episode": 24
},
"duration_seconds": 1930,
"pages": null,
"is_live": false,
"published_at": "2026-10-22T10:00:00Z",
"saved": true,
"progress": {
"position": 525,
"percent": 27,
"updated_at": "2026-10-22T12:40:00Z"
},
"description": "Uma imersão analítica nas melhores práticas.",
"media_url": "https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3",
"media_expires_at": null,
"liked": false,
"likes_count": 318
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
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.
Like content
requires authentication
Curtir (BE-12). Repetir não conta duas vezes.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/contents/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b/like" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/contents/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b/like"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"liked": true,
"likes_count": 319
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
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.
Unlike content
requires authentication
Descurtir (BE-12).
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/contents/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b/like" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/contents/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b/like"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"liked": false,
"likes_count": 318
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
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.
Save content
requires authentication
Salvar para depois (BE-12).
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/contents/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b/save" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/contents/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b/save"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"saved": true
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
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.
Unsave content
requires authentication
Tirar dos salvos (BE-12).
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/contents/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b/save" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/contents/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b/save"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"saved": false
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
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 progress
requires authentication
Salva onde o cliente parou (BE-13): segundos no áudio e no vídeo, número da página no e-book. A partir de 95% conta como concluído e sai do "Continuar". O app chama a cada 15 s enquanto toca e ao pausar ou sair da tela.
Example request:
curl --request PUT \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/contents/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b/progress" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "position=27"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/contents/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b/progress"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('position', '27');
fetch(url, {
method: "PUT",
headers,
body,
}).then(response => response.json());Example response (200):
{
"position": 525,
"percent": 27,
"completed": false,
"updated_at": "2026-10-22T13:40:00Z"
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"position": [
"The position field must be at least 0."
]
},
"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.
Faq
Get all faq
Perguntas agrupadas por tema, no formato do app (api/institutional/get-faq.ts), sem o envelope data:
só temas ativos, na ordem do painel, cada um com as suas perguntas ativas, na ordem do painel.
Temas sem perguntas ativas não aparecem. answer é texto simples (sem HTML).
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/faq" \
--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/customer/faq"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
[
{
"topic": "Conta e acesso",
"items": [
{
"question": "Como altero minha senha?",
"answer": "Em Minha conta > Meu perfil > Alterar senha. Informe a senha atual e crie uma nova seguindo as regras exibidas na tela."
},
{
"question": "Posso entrar com Face ID ou Touch ID?",
"answer": "Sim. Ative em Minha conta > Configurações."
}
]
},
{
"topic": "Conteúdos",
"items": [
{
"question": "Os conteúdos têm prazo ou certificado?",
"answer": "Não. A Central de conteúdos é de consumo livre: sem trilha obrigatória, carga horária ou certificado."
}
]
}
]
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
Uma pergunta ativa (de um tema ativo). name = pergunta, text = resposta.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/faq/1" \
--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/customer/faq/1"
);
const headers = {
"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": "Conta e acesso"
}
}
Example response (404):
{
"message": "Sorry, the page you are looking for could not be found.",
"code": 404,
"type": "NotFoundHttpException"
}
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.
Home
Get home
requires authentication
Tudo o que a Home mostra, em uma chamada (BE-08).
greeting_name: tratamento e primeiro nome do cliente (ex.: "Dra. Mariana");counts: conteúdos publicados por tipo;tv:is_livequando há item da programação da TV no ar agora;viewers: clientes assistindo a TV (sinal nos últimos 60 s, verGET tv/live);continue: o último conteúdo com progresso incompleto, ounull.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/home" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/home"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"greeting_name": "Dra. Mariana",
"counts": {
"ebook": 18,
"podcast": 12,
"video": 13,
"webinar": 9
},
"tv": {
"is_live": true,
"viewers": 42
},
"continue": 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.
How It Works
Get all how it works
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/how-it-works?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto" \
--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/customer/how-it-works"
);
const params = {
"limit": "20",
"page": "1",
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 120
x-ratelimit-remaining: 110
access-control-allow-origin: *
{
"data": [
{
"uuid": "08d15af5-f546-4454-b504-c768a3a9b595",
"name": "Et ut debitis ullam qui architecto minima fuga.",
"text": "Beatae expedita ducimus sed rerum accusamus dolor iste dolore. Dolor ducimus natus cupiditate ut. Voluptates omnis pariatur ut earum. Sed labore rerum occaecati qui iusto.",
"order": 3,
"is_active": true,
"created_at": "2026-10-22T15:15:55-03:00",
"updated_at": "2026-10-22T15:15:55-03:00",
"deleted_at": null
}
],
"links": {
"first": "http://homologacao.clickweb.com.br:8520/api/v1/customer/how-it-works?limit=20&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&page=1",
"last": "http://homologacao.clickweb.com.br:8520/api/v1/customer/how-it-works?limit=20&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Anterior",
"page": null,
"active": false
},
{
"url": "http://homologacao.clickweb.com.br:8520/api/v1/customer/how-it-works?limit=20&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Próxima »",
"page": null,
"active": false
}
],
"path": "http://homologacao.clickweb.com.br:8520/api/v1/customer/how-it-works",
"per_page": 20,
"to": 1,
"total": 1
}
}
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
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/how-it-works/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--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/customer/how-it-works/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 120
x-ratelimit-remaining: 109
access-control-allow-origin: *
{
"message": "Registro não encontrado.",
"code": 404,
"type": "Illuminate\\Database\\Eloquent\\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.
Institutional
About app
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/institutional/about-app" \
--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/customer/institutional/about-app"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: max-age=0, public
content-type: application/json
x-cache: MISS
x-ratelimit-limit: 120
x-ratelimit-remaining: 112
access-control-allow-origin: *
{
"data": {
"uuid": "1d373506-86df-4705-8f0c-21e455c31930",
"name": "Sobre",
"text": "<p>Velit aut quis molestiae vitae. Et omnis minima fuga at mollitia est occaecati rerum.</p><p>Omnis quia enim ut ad tempore ad facilis. Qui officia eos in. Error rem sunt quidem blanditiis provident vel. Sunt dicta recusandae aut odit.</p><p>Consectetur magnam eveniet nobis soluta doloremque repellat repudiandae. Fuga perferendis impedit dolor vel officiis iste. Quia porro veritatis doloremque laudantium. Optio est et facilis voluptas.</p><p>Qui occaecati sit illum ut repudiandae ut delectus voluptas. Officia in tempore eum nihil numquam ut fugit. Et illo sit et illo eius.</p><p>Nisi cupiditate quisquam eveniet eos non. Ducimus corrupti doloribus sunt excepturi error autem. Omnis eum est repellendus et incidunt occaecati est.</p><p>Possimus porro et tempora in iure eaque est. Ut adipisci quibusdam est. Eos est facilis quaerat quia in consequatur.</p><p>Est illum impedit repellendus aperiam aliquid. At nostrum accusamus dignissimos maiores vitae. Recusandae hic itaque nesciunt quibusdam.</p>",
"file": null,
"file_sizes": null,
"file_mobile": null,
"file_mobile_sizes": null,
"video": null,
"created_at": "2026-10-22T15:15:53-03:00",
"updated_at": "2026-10-22T15:15:53-03:00",
"deleted_at": null,
"media": []
}
}
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
Formato do painel (registro com sections e banners em media). O app usa GET pages/sobre.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/institutional/company-app" \
--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/customer/institutional/company-app"
);
const headers = {
"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
}
]
}
}
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
Privacy policy
Título e texto (HTML do editor do Admin). O app usa GET pages/privacidade, com o texto dividido em seções.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/institutional/privacy-policy" \
--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/customer/institutional/privacy-policy"
);
const headers = {
"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. Exemplo</h3><p>Texto.</p>",
"created_at": "2026-10-22T10:00:00+00:00",
"updated_at": "2026-10-22T10:00:00+00:00",
"deleted_at": null
}
}
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
Título e texto (HTML do editor do Admin). O app usa GET pages/termos, com o texto dividido em seções.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/institutional/terms-of-use" \
--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/customer/institutional/terms-of-use"
);
const headers = {
"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. Exemplo</h3><p>Texto.</p>",
"created_at": "2026-10-22T10:00:00+00:00",
"updated_at": "2026-10-22T10:00:00+00:00",
"deleted_at": null
}
}
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 page
slug: sobre (painel › Institucional › Sobre a empresa), privacidade (Política de privacidade) ou termos (Termos de uso).
title: título da página;sections: seções combodyem texto simples, sem HTML. Nosobre, as seções do painel; emprivacidadeetermos, o texto do editor dividido a cada título (h1 a h6 ou parágrafo todo em negrito);- só em
privacidadeetermos:html(o texto formatado, já limpo pela API); updated_at: data da última alteração da página;- só no
sobre:social_links(redes ativas, na ordem do painel;urlvazio = "link a definir") evideo_url(ounull).
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/pages/privacidade" \
--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/customer/pages/privacidade"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"title": "Política de privacidade",
"sections": [
{
"title": "1. Quais dados coletamos",
"body": "Dados de cadastro (nome, e-mail, celular, CPF, cargo e instituição) e dados de uso do app, como conteúdos acessados, itens salvos e preferências."
},
{
"title": "2. Para que usamos",
"body": "Para autenticar o seu acesso e recomendar conteúdos."
}
],
"html": "<h3>1. Quais dados coletamos</h3><p>Dados de cadastro...</p>",
"updated_at": "2026-10-22T10:00:00+00:00"
}
Example response (200, Sobre):
{
"title": "Sobre a Unity Health",
"sections": [
{
"title": "Conhecimento, gestão e compras em um só lugar",
"body": "A Unity Health conecta profissionais e instituições de saúde a conteúdos relevantes da área médica, transmissões da TV Unity e às comissões das compras coletivas, tudo em um só app."
}
],
"social_links": [
{
"network": "instagram",
"url": "https://www.instagram.com/unityhealth"
},
{
"network": "facebook",
"url": ""
},
{
"network": "linkedin",
"url": ""
},
{
"network": "youtube",
"url": ""
}
],
"video_url": null,
"updated_at": "2026-10-22T10:00:00+00:00"
}
Example response (404):
{
"message": "Sorry, the page you are looking for could not be found.",
"code": 404,
"type": "NotFoundHttpException"
}
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 live webinar
requires authentication
O webinar que está ao vivo agora (o último iniciado), ou null.
content.media_url é a URL da transmissão; viewers conta quem mandou sinal nos últimos 60 s.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/webinars/live" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/webinars/live"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"content": {
"uuid": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
"type": "webinar",
"title": "Otimização de Margem em Centros Cirúrgicos",
"cover_url": "https://cdn.exemplo.com/capa.jpg",
"category": {
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"name": "Gestão Hospitalar"
},
"author": {
"name": "Dra. Helena Vasconcellos",
"role": "VP de Operações Clínicas"
},
"series": null,
"duration_seconds": null,
"pages": null,
"is_live": true,
"published_at": "2026-10-22T17:00:00Z",
"saved": false,
"progress": null,
"description": "Painel ao vivo.",
"media_url": "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8",
"media_expires_at": null,
"liked": false,
"likes_count": 12
},
"viewers": 540,
"moderator": {
"name": "Dra. Helena Vasconcellos",
"role": "VP de Operações Clínicas"
},
"questions_open": true,
"starts_at": "2026-10-22T17:00:00Z",
"ends_at": "2026-10-22T18:00:00Z",
"started_at": "2026-10-22T17:01:00Z"
}
Example response (200, Nenhum webinar ao vivo):
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.
Get webinars schedule
requires authentication
Agenda dos webinars ao vivo: os que estão no ar e os agendados, do mais próximo ao mais distante (ao vivo primeiro).
content é o card do webinar (o mesmo do catálogo).
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/webinars/schedule" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/webinars/schedule"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
[
{
"status": "live",
"starts_at": "2026-10-22T17:00:00Z",
"ends_at": "2026-10-22T18:00:00Z",
"started_at": "2026-10-22T17:01:00Z",
"moderator": {
"name": "Dra. Helena Vasconcellos",
"role": "VP de Operações Clínicas"
},
"questions_open": true,
"content": {
"uuid": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
"type": "webinar",
"title": "Otimização de Margem em Centros Cirúrgicos",
"cover_url": "https://cdn.exemplo.com/capa.jpg",
"category": {
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"name": "Gestão Hospitalar"
},
"author": {
"name": "Dra. Helena Vasconcellos",
"role": "VP de Operações Clínicas"
},
"series": null,
"duration_seconds": null,
"pages": null,
"is_live": true,
"published_at": "2026-10-22T17:00:00Z",
"saved": false,
"progress": null
}
}
]
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.
Webinar heartbeat
requires authentication
Sinal de "assistindo" do webinar ao vivo: o app manda a cada 30 s enquanto a transmissão está aberta. Devolve a audiência atual. 404 se o webinar não estiver ao vivo.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/webinars/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b/heartbeat" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/webinars/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b/heartbeat"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"viewers": 540
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
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 questions
requires authentication
Perguntas aprovadas (ou respondidas) de todos, mais as do próprio cliente em qualquer situação (is_mine),
em ordem de entrada na lista (aprovação ou envio), as mais novas por último.
after (uuid da última pergunta que o app já mostra) traz só as que entraram depois dela.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/webinars/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b/questions?after=7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/webinars/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b/questions"
);
const params = {
"after": "7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
[
{
"uuid": "7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a",
"author": "Dr. Marcos Villela",
"institution": null,
"text": "Qual métrica direta teve maior impacto na redução de ociosidade das salas robóticas no Q3?",
"status": "approved",
"is_mine": false,
"answered": false,
"created_at": "2026-10-15T17:22:00Z"
}
]
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
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 question
requires authentication
Envia uma pergunta ao moderador do webinar ao vivo. Ela só aparece para todos depois de aprovada. Limites: até 500 caracteres; uma pergunta a cada 30 s por cliente (429). Com as perguntas fechadas ou o webinar fora do ar, 422.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/webinars/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b/questions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/webinars/0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b/questions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (201):
{
"uuid": "7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a",
"status": "pending"
}
Example response (401):
{
"message": "Unauthorized - Check the \"Authorization\" in the header request.",
"code": 401,
"type": "AuthenticationException"
}
Example response (404):
{
"message": "Record not found.",
"code": 404,
"type": "ModelNotFoundException"
}
Example response (422):
{
"message": "A pergunta pode ter no máximo 500 caracteres.",
"errors": {
"text": [
"A pergunta pode ter no máximo 500 caracteres."
]
},
"code": 422,
"type": "ValidationException"
}
Example response (429):
{
"message": "Aguarde 30 segundos para enviar outra pergunta.",
"code": 429,
"type": "TooManyQuestions"
}
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.
Minha conta
Get me
requires authentication
Dados do usuário logado (header, Minha conta e Editar dados). cpf só com os números; phone em E.164.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/me" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/me"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"name": "Mariana Vasconcellos",
"treatment": "Dra.",
"email": "mariana@unityhealth.com.br",
"phone": "+5511999990000",
"cpf": "12345678909",
"job_title": "Diretora Clínica",
"institution": "Hospital Sírio-Libanês",
"avatar_url": "http://localhost:3099/storage/avatar/9b1f..._a1b2.jpg",
"password_changed_at": "2026-07-10T12:00:00Z",
"created_at": "2026-01-10T12:00:00Z",
"updated_at": "2026-10-15T12:00:00Z",
"settings": {
"notifications_enabled": true
}
}
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.
Update me
requires authentication
Atualiza os dados do perfil (BE-16). CPF com dígitos verificadores e único; e-mail único; celular em E.164
(sem o +, 10 ou 11 dígitos são tratados como Brasil e ganham +55). Erros de validação: 422 com errors por campo.
Example request:
curl --request PUT \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/me" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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 "cpf=architecto"\
--form "job_title=n"\
--form "institution=g"\
--form "treatment=zmiyvdljnikhwayk"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/me"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"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('cpf', 'architecto');
body.append('job_title', 'n');
body.append('institution', 'g');
body.append('treatment', 'zmiyvdljnikhwayk');
fetch(url, {
method: "PUT",
headers,
body,
}).then(response => response.json());Example response (200):
{
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"name": "Mariana Vasconcellos",
"treatment": "Dra.",
"email": "mariana@unityhealth.com.br",
"phone": "+5511999990000",
"cpf": "12345678909",
"job_title": "Diretora Clínica",
"institution": "Hospital Sírio-Libanês",
"avatar_url": null,
"password_changed_at": null,
"created_at": "2026-01-10T12:00:00Z",
"updated_at": "2026-10-22T12:00:00Z",
"settings": {
"notifications_enabled": true
}
}
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.
Delete me
requires authentication
Exclui a conta e os dados pessoais (BE-18, LGPD): apaga curtidas, salvos, progresso, audiência e o histórico de atividades; anonimiza nome, e-mail, celular, CPF, cargo, instituição e foto; revoga todas as sessões e faz o soft delete. As perguntas feitas nos webinars ficam ligadas ao registro anonimizado ("Usuário excluído"). Responde 204.
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/me" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "confirm=1"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/me"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('confirm', '1');
fetch(url, {
method: "DELETE",
headers,
body,
}).then(response => response.json());Example response (204):
Empty response
Example response (422):
{
"message": "Confirme que entende que a exclusão é definitiva.",
"errors": {
"confirm": [
"Confirme que entende que a exclusão é definitiva."
]
}
}
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 avatar
requires authentication
Troca a foto (BE-16). multipart/form-data com o campo avatar (jpg ou png, até 5 MB). O servidor recorta em
quadrado de 256 px.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/me/avatar" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "avatar=@/tmp/phpeEx3NB" const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/me/avatar"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"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):
{
"avatar_url": "http://localhost:3099/storage/avatar/9b1f..._a1b2.jpg"
}
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 password
requires authentication
Troca a senha do usuário logado (BE-17). Regras: no mínimo 8 caracteres, uma maiúscula, um número e um símbolo.
Senha atual errada: 422 no campo current_password. Encerra as sessões dos outros aparelhos (esta continua).
Example request:
curl --request PUT \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/me/password" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "current_password=architecto"\
--form "password=]|{+-0pBNvYg"\
--form "password_confirmation=architecto"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/me/password"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('current_password', 'architecto');
body.append('password', ']|{+-0pBNvYg');
body.append('password_confirmation', 'architecto');
fetch(url, {
method: "PUT",
headers,
body,
}).then(response => response.json());Example response (200):
{
"password_changed_at": "2026-10-15T13:40:00Z"
}
Example response (422):
{
"message": "A senha atual está incorreta.",
"errors": {
"current_password": [
"A senha atual está incorreta."
]
}
}
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
Liga ou desliga as notificações (BE-19). Fica em notify_general do cliente (padrão da base).
Example request:
curl --request PUT \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/me/settings" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "notifications_enabled="const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/me/settings"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('notifications_enabled', '');
fetch(url, {
method: "PUT",
headers,
body,
}).then(response => response.json());Example response (200):
{
"notifications_enabled": true
}
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.
Register device
requires authentication
Registra o aparelho para receber push (BE-19). Chame depois do login e sempre que o app abrir com a permissão
de notificações concedida (o token pode mudar). O token é único: se outro usuário entrar no mesmo aparelho,
o token passa para ele. O envio respeita a chave Notificações (PUT me/settings). Responde 204.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/devices" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "Accept-Language: pt" \
--form "expo_push_token=b"\
--form "platform=architecto"\
--form "device_name=n"\
--form "app_version=gzmiyvdljnikhway"const url = new URL(
"http://homologacao.clickweb.com.br:8520/api/v1/customer/devices"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
const body = new FormData();
body.append('expo_push_token', 'b');
body.append('platform', 'architecto');
body.append('device_name', 'n');
body.append('app_version', 'gzmiyvdljnikhway');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (204):
Empty response
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"expo_push_token": [
"O token do aparelho é invá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 device
requires authentication
Remove o aparelho (logout ou notificações desligadas no aparelho). Só remove tokens do próprio usuário; token desconhecido também responde 204.
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/devices/ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/devices/ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"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.
Notifications
Get all notifications
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/notifications?limit=20&page=1&read=1&deleted=0&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&send_date=" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/notifications"
);
const params = {
"limit": "20",
"page": "1",
"read": "1",
"deleted": "0",
"orderBy": "id:asc|created_at:desc",
"search": "architecto",
"send_date": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"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.
read notification
requires authentication
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/notifications/read/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/notifications/read/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
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.
Remove all notification
requires authentication
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/notifications/destroy-all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/notifications/destroy-all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"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.
read all notification
requires authentication
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/notifications/read-all" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/notifications/read-all"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"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 notification
requires authentication
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/notifications/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/notifications/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"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 notification
requires authentication
Example request:
curl --request DELETE \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/notifications/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/notifications/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"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
Slides ativos, na ordem definida no painel. O app usa GET app/screens, que já traz os slides junto com a Splash e o Login.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/onboarding" \
--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/customer/onboarding"
);
const headers = {
"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",
"kicker": "Central de conteúdos",
"title": "Aprenda no seu ritmo",
"text": "E-books, podcasts, vídeos e webinars de consumo livre.",
"image_url": "http://localhost/storage/onboarding/slide-2.jpg",
"icon": "auto_stories",
"order": 2
}
]
}
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
Contatos do suporte e links do app. whatsapp_url é o link pronto do botão "Continuar por lá" (WhatsApp do suporte
com a mensagem inicial), ou null quando o número ainda não foi cadastrado no painel (Configurações › Gerais).
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/settings/general" \
--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/customer/settings/general"
);
const headers = {
"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.",
"whatsapp_url": "https://wa.me/5511999999999?text=Ol%C3%A1%21%20Preciso%20de%20ajuda%20com%20o%20app%20Unity%20Health."
}
}
Example response (200, WhatsApp não cadastrado):
{
"data": {
"app_url_android": null,
"app_url_ios": null,
"email_support": "suporte@unityhealth.com.br",
"phone_support": null,
"url_site": null,
"whatsapp_support": null,
"whatsapp_message": "Olá! Preciso de ajuda com o app Unity Health.",
"whatsapp_url": null
}
}
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.
Suporte
Chat de suporte do app (BE-22). O atendimento é feito pela equipe da Unity no painel (CMS-05).
Uma conversa por usuário: GET support/conversation abre ou retoma. As respostas seguem o formato do app
(dto/Support.ts), sem o envelope data (exceto a lista de mensagens, que tem data e meta).
Tempo real (WebSocket - Laravel Reverb, protocolo Pusher)
- Conexão:
ws://{REVERB_HOST}:{REVERB_PORT}/app/{REVERB_APP_KEY}(pusher-js / laravel-echo combroadcaster: "reverb"). - Autorização dos canais privados:
POST /api/v1/customer/broadcasting/authcom oAuthorization: Bearerdo app (corposocket_idechannel_name). - Canal
private-support.conversation.{uuid da conversa}:.support.message→{conversation_uuid, message: {uuid, from, text, created_at, agent}, conversation}.support.typing→{conversation_uuid, from: "agent"|"user", name, typing: true, expires_in: 8}(esconda o "digitando…" depois deexpires_ins sem novo sinal).support.conversation→{conversation_uuid, action: "closed"|"reopened"|"assigned"|"read_by_agent"|"read_by_customer", conversation}
- Canal
private-support.status:.support.agent-status→{online, name, agent}(atendente ficou online/offline).
Sem WebSocket (fallback): a cada 5 s, com o chat aberto, GET support/conversation/messages?after={uuid da última mensagem}
traz as mensagens novas e, em meta, o "digitando…", o atendente e a situação da conversa.
Push: a resposta do atendente vai por push quando o app não deu sinal no chat nos últimos 45 s
(qualquer chamada desta seção conta como sinal). data do push: {type: "support_message", conversation_uuid, message_uuid}.
Get conversation
requires authentication
Abre ou retoma a conversa do usuário logado. agent.online = há atendente online agora no painel;
agent.name = atendente responsável pela conversa (ou quem está online). whatsapp_url vazio = "número a definir"
(Configurações › Gerais do painel). quick_replies = sugestões rápidas ativas, na ordem.
status: open ou closed (encerrada pelo atendimento; uma nova mensagem reabre).
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/support/conversation" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/support/conversation"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"status": "open",
"agent": {
"name": "Camila",
"online": true
},
"whatsapp_url": "https://wa.me/5511999999999",
"quick_replies": [
"Dúvida sobre boleto",
"Não consigo acessar um conteúdo",
"Atualizar meus dados"
],
"unread_count": 1
}
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.
Get messages
requires authentication
Mensagens da conversa, das mais novas para as mais antigas, 30 por página. before = uuid da mensagem mais
antiga já carregada (rolar para cima); meta.has_more diz se há mais antigas. after = uuid da mensagem mais
nova já carregada (consulta periódica sem WebSocket, até 100). from: user (o usuário do app) ou agent.
meta também traz typing (o atendente está digitando), agent e status da conversa.
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/support/conversation/messages?before=5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9&after=5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/support/conversation/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 {YOUR_AUTH_KEY}",
"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": "agent",
"text": "Claro! Pode me dizer o mês de referência?",
"created_at": "2026-10-15T12:42:00Z"
},
{
"uuid": "4b1a0f9e-8d7c-4b6a-a5f4-e3d2c1b0a9f8",
"from": "user",
"text": "Oi, Camila! Tenho uma dúvida sobre um boleto.",
"created_at": "2026-10-15T12:41:00Z"
}
],
"meta": {
"has_more": false,
"typing": false,
"agent": {
"name": "Camila",
"online": true
},
"status": "open"
}
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"before": [
"The selected before is invalid."
]
}
}
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
Envia uma mensagem para o atendimento. Reabre a conversa encerrada. O atendimento recebe na hora pelo painel (WebSocket ou consulta periódica). Responde 201 com a mensagem no formato do app.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/support/conversation/messages" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/support/conversation/messages"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (201):
{
"uuid": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
"from": "user",
"text": "Tenho uma dúvida sobre um boleto.",
"created_at": "2026-10-15T12:41:00Z"
}
Example response (422):
{
"message": "Escreva a sua mensagem.",
"errors": {
"text": [
"Escreva a sua mensagem."
]
}
}
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 atendimento (chame ao abrir o chat e ao receber mensagem com o chat aberto). Também conta como sinal de que o app está no chat (sem push para as próximas respostas). Responde 204.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/support/conversation/read" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/support/conversation/read"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"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
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
Avisa o atendimento que o usuário está digitando (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/customer/support/conversation/typing" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/support/conversation/typing"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"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
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 usuário do app 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.conversation.{uuid} (só a conversa do próprio usuário) e private-support.status. Canal não permitido: 403.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/broadcasting/auth" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/broadcasting/auth"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"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.
TV
Get TV live
requires authentication
is_live: há item da programação no ar agora (ativo e com o horário atual entre início e fim);stream_url: a transmissão do item no ar (URL do provedor ou mídia do vídeo do catálogo). Sem item no ar, é a transmissão padrão da tela TV Unity (painel › Telas do app › TV Unity), ounullse não houver;viewers: clientes assistindo agora (sinal nos últimos 60 s);now_playing/next: o item no ar e o próximo (ounull);fallback: nome, descrição e capa da transmissão padrão, quando não há item no ar (senãonull).
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/tv/live" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/tv/live"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"is_live": true,
"stream_url": "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8",
"viewers": 540,
"now_playing": {
"uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
"title": "Otimização de Margem em Centros Cirúrgicos",
"description": "Ao vivo do estúdio Unity Health.",
"cover_url": "https://cdn.exemplo.com/capa.jpg",
"starts_at": "2026-10-15T14:00:00Z",
"ends_at": "2026-10-15T15:00:00Z",
"content": null
},
"next": {
"uuid": "1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"title": "Gestão de OPME",
"description": null,
"cover_url": null,
"starts_at": "2026-10-15T15:00:00Z",
"ends_at": "2026-10-15T16:00:00Z",
"content": {
"uuid": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
"type": "video"
}
},
"fallback": null
}
Example response (200, Sem item no ar):
{
"is_live": false,
"stream_url": "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8",
"viewers": 3,
"now_playing": null,
"next": null,
"fallback": {
"title": "TV Unity",
"description": "Programação contínua da Unity Health.",
"cover_url": null
}
}
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.
TV heartbeat
requires authentication
Sinal de "assistindo": o app manda a cada 30 s enquanto a tela da TV está aberta. Conta como assistindo quem mandou sinal nos últimos 60 s (uma vez por cliente). Devolve a audiência atual.
Example request:
curl --request POST \
"http://homologacao.clickweb.com.br:8520/api/v1/customer/tv/heartbeat" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--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/customer/tv/heartbeat"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"viewers": 540
}
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.
Webservice
Cities
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/customer/webservice/cities?search=architecto&state_abbr=architecto" \
--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/customer/webservice/cities"
);
const params = {
"search": "architecto",
"state_abbr": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 120
x-ratelimit-remaining: 119
access-control-allow-origin: *
{
"data": []
}
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
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/webservice/states?search=architecto" \
--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/customer/webservice/states"
);
const params = {
"search": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 120
x-ratelimit-remaining: 118
access-control-allow-origin: *
{
"data": []
}
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
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/webservice/zipcode/architecto" \
--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/customer/webservice/zipcode/architecto"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 120
x-ratelimit-remaining: 117
access-control-allow-origin: *
{
"message": "CEP não encontrado.",
"code": 400,
"type": "App\\Exceptions\\GeneralException"
}
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.
Verifica a versão para o popup no app
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/webservice/check-version" \
--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/customer/webservice/check-version"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 120
x-ratelimit-remaining: 116
access-control-allow-origin: *
{
"active": false,
"version": 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.
Check app new version
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/webservice/check-app-new-version" \
--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/customer/webservice/check-app-new-version"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (422):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 120
x-ratelimit-remaining: 115
access-control-allow-origin: *
{
"message": "Campo obrigatório.",
"errors": {
"platform": [
"Campo obrigatório."
],
"current_version": [
"Campo obrigatório."
]
},
"code": 422,
"type": "Illuminate\\Validation\\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 localization by lat lon
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/webservice/localization-lat-lon?lat=-23.550520&lon=-46.633308" \
--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/customer/webservice/localization-lat-lon"
);
const params = {
"lat": "-23.550520",
"lon": "-46.633308",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 120
x-ratelimit-remaining: 114
access-control-allow-origin: *
{
"message": "You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account",
"code": 0,
"type": "Exception"
}
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.
Banks
Example request:
curl --request GET \
--get "http://homologacao.clickweb.com.br:8520/api/v1/customer/webservice/banks?search=lorem" \
--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/customer/webservice/banks"
);
const params = {
"search": "lorem",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Accept-Language": "pt",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 120
x-ratelimit-remaining: 113
access-control-allow-origin: *
{
"data": []
}
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.