MENU navbar-image

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."
    }
}
 

Request      

GET api/v1/customer/app/screens

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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": [
            "..."
        ]
    }
}
 

Request      

POST api/v1/customer/auth/login

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

network_external   string  optional    

validation.max. Example: bngzmi

Must be one of:
  • login-pass
  • facebook
  • google
  • apple
email   string  optional    

This field is required when network_external is login-pass. validation.email. Example: okon.justina@example.com

password   string  optional    

This field is required when network_external is login-pass. validation.max. Example: Ygxwmi/

login_external_id   string  optional    

This field is required unless network_external is in login-pass. validation.max. Example: c

device_name   string  optional    

validation.max. Example: m

token_name   string  optional    

validation.max. Example: y

accepted_term_of_users_at   string  optional    

validation.date. Example: 2026-11-18T15:50:59

accepted_policy_privacy_at   string  optional    

validation.date. Example: 2026-11-18T15:50:59

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
}
 

Request      

POST api/v1/customer/auth/two-factor/send

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

two_factor_token   string     

validation.max. Example: b

channel   string     

Example: email

Must be one of:
  • sms
  • email

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."
        ]
    }
}
 

Request      

POST api/v1/customer/auth/two-factor/verify

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

two_factor_token   string     

validation.max. Example: b

code   string     

validation.digits. Example: 569775

device_name   string  optional    

validation.max. Example: n

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."
}
 

Request      

POST api/v1/customer/auth/refresh

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

refresh_token   string     

validation.max. Example: b

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."
}
 

Request      

POST api/v1/customer/auth/forgot-password

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

email   string     

validation.email. Example: gbailey@example.net

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."
        ]
    }
}
 

Request      

POST api/v1/customer/auth/reset-password

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

token   string     

validation.max. Example: b

email   string     

validation.email. Example: zbailey@example.net

password   string     

Must match the regex /[A-Z]/. Must match the regex /[0-9]/. Must match the regex /[^A-Za-z0-9]/. validation.min validation.max. Example: -0pBNvYgxw

password_confirmation   string     

Example: architecto

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"
}
 

Request      

POST api/v1/customer/auth/password/recovery

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

email   string     

validation.email. Example: gbailey@example.net

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,
}
 

Request      

POST api/v1/customer/auth/validate-email

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

email   string     

validation.email. Example: gbailey@example.net

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,
}
 

Request      

POST api/v1/customer/auth/validate-phone

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

phone   string     

Example: architecto

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());

Request      

POST api/v1/customer/create

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

network_external   string     

validation.max. Example: bngzmi

Must be one of:
  • login-pass
  • facebook
  • google
  • apple
email   string  optional    

This field is required when network_external is login-pass. validation.email. Example: okon.justina@example.com

password   string  optional    

This field is required when network_external is login-pass. validation.min. Example: Ygxwmi/

password_confirmation   string  optional    

This field is required when network_external is login-pass. The value and password must match. validation.min. Example: cmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppwqbewt

login_external_id   string  optional    

This field is required unless network_external is in login-pass. validation.max. Example: n

name   string     

validation.max. Example: n

accepted_term_of_users_at   string  optional    

validation.date. Example: 2026-11-18T15:50:59

accepted_policy_privacy_at   string  optional    

validation.date. Example: 2026-11-18T15:50:59

token_name   string  optional    

validation.max. Example: o

avatar   file  optional    

Must be a file. validation.max. Example: /tmp/phpvwsvMR

city_id   string  optional    
phone   string  optional    

Example: architecto

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"
}
 

Request      

POST api/v1/customer/email/resend

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

email   string     

validation.email. Example: gbailey@example.net

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
 

Request      

POST api/v1/customer/auth/logout

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

refresh_token   string  optional    

Não pode conter mais de 191 caracteres. Example: b

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
 

Request      

DELETE api/v1/customer/auth/logout

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

refresh_token   string  optional    

Não pode conter mais de 191 caracteres. Example: b

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"
}
 

Request      

GET api/v1/customer/auth/user

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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"
}
 

Request      

GET api/v1/customer/auth/tokens

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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());

Request      

DELETE api/v1/customer/auth/tokens/{tokenId}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

tokenId   string     

Example: architecto

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());

Request      

POST api/v1/customer/auth/delete-account

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

password   string  optional    

Deve conter no mínimo 6 caracteres. Example: |]|{+-

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());

Request      

POST api/v1/customer/auth/change-password

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

password   string     

Example: |]|{+-

password_new   string     

Must match the regex /[A-Z]/. Must match the regex /[0-9]/. Must match the regex /[^A-Za-z0-9]/. Deve conter no mínimo 8 caracteres. Não pode conter mais de 191 caracteres. Example: v

password_new_confirmation   string     

The value and password_new must match. Example: architecto

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());

Request      

POST api/v1/customer/auth/update/settings

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

notify_newsletter   boolean  optional    

Example: true

notify_general   boolean  optional    

Example: true

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());

Request      

POST api/v1/customer/auth/update

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

name   string  optional    

Não pode conter mais de 50 caracteres. Example: b

is_active   boolean  optional    

Example: false

email   string  optional    

Deve ser um endereço de email válido. Não pode conter mais de 191 caracteres. Example: zbailey@example.net

phone   string  optional    

Example: architecto

city_id   string  optional    
avatar_delete   boolean  optional    

Example: true

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}"
}
 

Request      

POST api/v1/customer/auth/change-avatar

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

avatar   file     

Must be a file. Não pode conter um arquivo com mais de 4000 kilobytes. Example: /tmp/phpwtMo7T

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"
}
 

Request      

GET api/v1/customer/categories

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

type   string  optional    

Available values: ebook podcast video webinar Example: ebook

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"
}
 

Request      

GET api/v1/customer/contents

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

type   string  optional    

Available values: ebook podcast video webinar Example: ebook

category   string  optional    

Uuid da categoria. Example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e

q   string  optional    

Termo de busca. Example: lgpd

page   integer  optional    

Example: 1

per_page   integer  optional    

Max: 100 Example: 20

Get hub

requires authentication

Todas as seções de um hub em uma chamada (BE-10). Sem type, devolve a Central (com counts).

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"
}
 

Request      

GET api/v1/customer/contents/hub

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

type   string  optional    

Available values: ebook podcast video webinar Example: podcast

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"
}
 

Request      

GET api/v1/customer/contents/saved

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

type   string  optional    

Available values: ebook podcast video webinar Example: video

page   integer  optional    

Example: 1

per_page   integer  optional    

Max: 100 Example: 20

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"
}
 

Request      

GET api/v1/customer/contents/{uuid}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

uuid   string     

Uuid do conteúdo. Example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b

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"
}
 

Request      

POST api/v1/customer/contents/{uuid}/like

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

uuid   string     

Uuid do conteúdo. Example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b

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"
}
 

Request      

DELETE api/v1/customer/contents/{uuid}/like

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

uuid   string     

Uuid do conteúdo. Example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b

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"
}
 

Request      

POST api/v1/customer/contents/{uuid}/save

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

uuid   string     

Uuid do conteúdo. Example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b

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"
}
 

Request      

DELETE api/v1/customer/contents/{uuid}/save

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

uuid   string     

Uuid do conteúdo. Example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b

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"
}
 

Request      

PUT api/v1/customer/contents/{uuid}/progress

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

uuid   string     

Uuid do conteúdo. Example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b

Body Parameters

position   integer     

Deve conter um número superior ou igual a 0. Example: 27

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."
            }
        ]
    }
]
 

Request      

GET api/v1/customer/faq

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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"
}
 

Request      

GET api/v1/customer/faq/{faq_uuid}

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

faq_uuid   integer     

Example: 1

Home

Get home

requires authentication

Tudo o que a Home mostra, em uma chamada (BE-08).

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"
}
 

Request      

GET api/v1/customer/home

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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": "&laquo; 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 &raquo;",
                "page": null,
                "active": false
            }
        ],
        "path": "http://homologacao.clickweb.com.br:8520/api/v1/customer/how-it-works",
        "per_page": 20,
        "to": 1,
        "total": 1
    }
}
 

Request      

GET api/v1/customer/how-it-works

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

limit   integer  optional    

Max: 100 Example: 20

page   integer  optional    

Example: 1

orderBy   string  optional    

Available fields: id name order created_at updated_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name Example: architecto

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"
}
 

Request      

GET api/v1/customer/how-it-works/{how_it_works_uuid}

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

how_it_works_uuid   string     

Example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed

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": []
    }
}
 

Request      

GET api/v1/customer/institutional/about-app

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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
            }
        ]
    }
}
 

Request      

GET api/v1/customer/institutional/company-app

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Policy Cookies

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/customer/institutional/policy-cookies" \
    --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/policy-cookies"
);

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: 111
access-control-allow-origin: *
 

{
    "data": {
        "uuid": "8e11a056-6b43-43af-b945-f5cd6ce6a556",
        "name": "Política de cookies",
        "text": "<h1>Política de cookies</h1><p>Ducimus quaerat eos aut quis aspernatur facere id vel. Laboriosam dolorem sequi ad vel impedit voluptatibus porro. Iste ullam et labore sed eos aut nulla. Ut voluptatem rerum voluptas quis dolor.</p><p>Esse harum ut officia nihil quaerat aspernatur. Ut eum unde rerum aliquid non enim facilis. Dolor debitis recusandae aperiam enim nostrum sint. Et eum sint ut voluptatem perspiciatis aut.</p><p>Deleniti atque similique sint. Rerum deserunt molestiae ducimus qui illum deleniti. Ipsam aut fugiat doloremque magni eveniet doloribus facere. Nulla sed eum optio modi.</p><p>Ratione doloremque modi necessitatibus non. Et sapiente quo dolore quidem totam sapiente quia. Debitis dolorum minus et. Expedita qui recusandae explicabo aliquid sapiente dolorum molestiae.</p><p>Nemo minus qui accusantium. Ea quos mollitia est cumque temporibus fugit. Maiores labore doloribus ut voluptatem. Est voluptatum magnam nemo repellat. Magnam voluptatem consequatur quae dolorem numquam.</p><p>Qui molestiae delectus illo in voluptatem. Quibusdam ut non numquam ratione sit dolore. Et ducimus ipsum vero et. Voluptatibus nam cupiditate reprehenderit et error molestiae.</p>",
        "created_at": "2026-10-22T15:15:53-03:00",
        "updated_at": "2026-10-22T15:15:53-03:00",
        "deleted_at": null
    }
}
 

Request      

GET api/v1/customer/institutional/policy-cookies

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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
    }
}
 

Request      

GET api/v1/customer/institutional/privacy-policy

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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
    }
}
 

Request      

GET api/v1/customer/institutional/terms-of-use

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Get page

slug: sobre (painel › Institucional › Sobre a empresa), privacidade (Política de privacidade) ou termos (Termos de uso).

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"
}
 

Request      

GET api/v1/customer/pages/{slug}

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

slug   string     

Available values: sobre privacidade termos Example: privacidade

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"
}
 

Request      

GET api/v1/customer/webinars/live

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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"
}
 

Request      

GET api/v1/customer/webinars/schedule

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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"
}
 

Request      

POST api/v1/customer/webinars/{uuid}/heartbeat

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

uuid   string     

Uuid do webinar (conteúdo). Example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b

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"
}
 

Request      

GET api/v1/customer/webinars/{uuid}/questions

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

uuid   string     

Uuid do webinar (conteúdo). Example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b

Query Parameters

after   string  optional    

Uuid da última pergunta já exibida. Example: 7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a

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"
}
 

Request      

POST api/v1/customer/webinars/{uuid}/questions

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

uuid   string     

Uuid do webinar (conteúdo). Example: 0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b

Body Parameters

text   string  optional    

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"
}
 

Request      

GET api/v1/customer/me

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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."
        ]
    }
}
 

Request      

PUT api/v1/customer/me

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

name   string     

Deve conter no mínimo 3 caracteres. Não pode conter mais de 191 caracteres. Example: b

email   string     

Deve ser um endereço de email válido. Não pode conter mais de 191 caracteres. Example: zbailey@example.net

phone   string     

Must match the regex /^+[1-9]\d{9,14}$/. Example: +3642559314

cpf   string     

Example: architecto

job_title   string  optional    

Não pode conter mais de 191 caracteres. Example: n

institution   string  optional    

Não pode conter mais de 191 caracteres. Example: g

treatment   string  optional    

Não pode conter mais de 20 caracteres. Example: zmiyvdljnikhwayk

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."
        ]
    }
}
 

Request      

DELETE api/v1/customer/me

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

reason   string  optional    
confirm   boolean     

Must be accepted. Example: true

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"
}
 

Request      

POST api/v1/customer/me/avatar

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

avatar   file     

Must be a file. Não pode conter um arquivo com mais de 5120 kilobytes. Example: /tmp/phpeEx3NB

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."
        ]
    }
}
 

Request      

PUT api/v1/customer/me/password

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

current_password   string     

Example: architecto

password   string     

Must match the regex /[A-Z]/. Must match the regex /[0-9]/. Must match the regex /[^A-Za-z0-9]/. Deve conter no mínimo 8 caracteres. Não pode conter mais de 191 caracteres. Example: ]|{+-0pBNvYg

password_confirmation   string     

Example: architecto

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
}
 

Request      

PUT api/v1/customer/me/settings

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

notifications_enabled   boolean     

Example: false

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."
        ]
    }
}
 

Request      

POST api/v1/customer/devices

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

expo_push_token   string     

Não pode conter mais de 191 caracteres. Example: b

platform   string     

Example: architecto

device_name   string  optional    

Não pode conter mais de 191 caracteres. Example: n

app_version   string  optional    

Não pode conter mais de 20 caracteres. Example: gzmiyvdljnikhway

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
 

Request      

DELETE api/v1/customer/devices/{token}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

token   string     

Token do Expo Push (codificado na URL). Example: ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]

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"
}
 

Request      

GET api/v1/customer/notifications

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

limit   integer  optional    

Max: 100 Example: 20

page   integer  optional    

Example: 1

read   integer  optional    

Available values: 0 1 Example: 1

deleted   integer  optional    

Available values: 0 1 Example: 0

orderBy   string  optional    

Available fields: id name order created_at updated_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid text description Example: architecto

send_date   string[]  optional    

formato: Y-m-d\TH:i:sP

send_date.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: 2019-07-29T00:00:00-03:00

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());

Request      

POST api/v1/customer/notifications/read/{notification_uuid}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

notification_uuid   string     

Example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed

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());

Request      

DELETE api/v1/customer/notifications/destroy-all

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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());

Request      

DELETE api/v1/customer/notifications/read-all

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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"
}
 

Request      

GET api/v1/customer/notifications/{notification_uuid}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

notification_uuid   string     

Example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed

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());

Request      

DELETE api/v1/customer/notifications/{notification_uuid}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

notification_uuid   string     

Example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed

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
        }
    ]
}
 

Request      

GET api/v1/customer/onboarding

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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
    }
}
 

Request      

GET api/v1/customer/settings/general

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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)

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"
}
 

Request      

GET api/v1/customer/support/conversation

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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."
        ]
    }
}
 

Request      

GET api/v1/customer/support/conversation/messages

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

before   string  optional    

uuid da mensagem mais antiga já carregada. Example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9

after   string  optional    

uuid da mensagem mais nova já carregada (consulta periódica). Example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9

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."
        ]
    }
}
 

Request      

POST api/v1/customer/support/conversation/messages

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

text   string  optional    

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
 

Request      

POST api/v1/customer/support/conversation/read

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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
 

Request      

POST api/v1/customer/support/conversation/typing

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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"
}
 

Request      

POST api/v1/customer/broadcasting/auth

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

socket_id   string     

Não pode conter mais de 100 caracteres. Example: b

channel_name   string     

Não pode conter mais de 191 caracteres. Example: n

TV

Get TV live

requires authentication

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"
}
 

Request      

GET api/v1/customer/tv/live

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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"
}
 

Request      

POST api/v1/customer/tv/heartbeat

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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": []
}
 

Request      

GET api/v1/customer/webservice/cities

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

search   string  optional    

static(lorem) Search in the fields: full_name Example: architecto

state_abbr   string  optional    

static(PR) Example: architecto

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": []
}
 

Request      

GET api/v1/customer/webservice/states

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

search   string  optional    

static(lorem) Search in the fields: name Example: architecto

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"
}
 

Request      

GET api/v1/customer/webservice/zipcode/{zipcode}

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

zipcode   string     

The zipcode. Example: architecto

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
}
 

Request      

GET api/v1/customer/webservice/check-version

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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"
}
 

Request      

GET api/v1/customer/webservice/check-app-new-version

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

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"
}
 

Request      

GET api/v1/customer/webservice/localization-lat-lon

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

lat   string     

Latitude. Example: -23.550520

lon   string     

Longitude. Example: -46.633308

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": []
}
 

Request      

GET api/v1/customer/webservice/banks

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

search   string  optional    

Optional search in fields: name. Example: lorem