MENU navbar-image

Introduction

Unity Health - API API Documentation for the admin panel

This documentation aims to provide all the information you need to work with our API.

<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>

## Tempo real (WebSocket) e push

O atendimento do chat de suporte usa o **Laravel Reverb** (servidor WebSocket da própria API, protocolo Pusher). No painel: `laravel-echo` + `pusher-js` com `broadcaster: "reverb"` e autorização dos canais privados em `POST /api/v1/admin/broadcasting/auth` (Bearer do painel).

| Canal | Quem pode | Eventos (escute com ponto: `.support.message`) |
|---|---|---|
| `private-support.inbox` | permissão `support-conversations.list` | `support.message`, `support.typing`, `support.conversation`, `support.agent-status` |
| `private-support.conversation.{uuid}` | permissão `support-conversations.list` | `support.message`, `support.typing`, `support.conversation` |
| `private-support.status` | qualquer usuário logado | `support.agent-status` |

Sem WebSocket: `GET support-conversations` / `GET support-conversations/unread` (10 s) e `GET support-conversations/{uuid}/messages?after={uuid}` (4 s).

**Push:** `push-general` é o envio manual e o histórico de todos os pushes (inclusive os automáticos: conteúdo publicado, webinar e TV ao vivo). O envio sai pelo comando `push-general:send` (agendador, a cada minuto) via Expo Push (`PUSH_DRIVER=expo`) ou só para o log (`PUSH_DRIVER=log`).

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {ACCESS_TOKEN}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by visiting your dashboard and clicking Generate API token.

About app

Get about app

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/about-app" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/about-app"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/about-app

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Update about app

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/about-app" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "name=b"\
    --form "media_delete[]=n"\
    --form "video=g"\
    --form "text=z"\
    --form "file=@/tmp/phpzzaS6l" \
    --form "file_mobile=@/tmp/phpKPQIUO" 
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/about-app"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('name', 'b');
body.append('media_delete[]', 'n');
body.append('video', 'g');
body.append('text', 'z');
body.append('file', document.querySelector('input[name="file"]').files[0]);
body.append('file_mobile', document.querySelector('input[name="file_mobile"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/about-app

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 191 caracteres. Example: b

file   file  optional    

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

file_mobile   file  optional    

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

media_delete   string[]  optional    

Não pode conter mais de 191 caracteres.

video   string  optional    

Must be a valid URL. Não pode conter mais de 191 caracteres. Example: g

text   string  optional    

Não pode conter mais de 4294967295 caracteres. Example: z

About company

Get about company

requires authentication

Título, vídeo, banners (media) e seções, na ordem do app.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/company-app" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/company-app"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "name": "Sobre a Unity Health",
        "file": null,
        "file_sizes": null,
        "file_mobile": null,
        "file_mobile_sizes": null,
        "video": null,
        "created_at": "2026-10-22T10:00:00+00:00",
        "updated_at": "2026-10-22T10:00:00+00:00",
        "deleted_at": null,
        "media": [],
        "sections": [
            {
                "uuid": "1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
                "title": "Conhecimento, gestão e compras em um só lugar",
                "body": "A Unity Health conecta profissionais e instituições de saúde a conteúdos relevantes da área médica.",
                "order": 1,
                "created_at": "2026-10-22T10:00:00+00:00",
                "updated_at": "2026-10-22T10:00:00+00:00",
                "deleted_at": null
            }
        ]
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/company-app

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Update about company

requires authentication

Envie a lista completa de seções, na ordem desejada (a posição vira o order). Seções com uuid são atualizadas, sem uuid são criadas e as que não vierem na lista são excluídas. Sem sections, as seções não mudam. Qualquer mudança nas seções atualiza o updated_at da página.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/company-app" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "name=b"\
    --form "media_delete[]=n"\
    --form "video=g"\
    --form "sections[][uuid]=6ff8f7f6-1eb3-3525-be4a-3932c805afed"\
    --form "sections[][title]=Conhecimento, gestão e compras em um só lugar"\
    --form "sections[][body]=g"\
    --form "file=@/tmp/phpEAHOIj" \
    --form "file_mobile=@/tmp/phpDF8iyf" 
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/company-app"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('name', 'b');
body.append('media_delete[]', 'n');
body.append('video', 'g');
body.append('sections[][uuid]', '6ff8f7f6-1eb3-3525-be4a-3932c805afed');
body.append('sections[][title]', 'Conhecimento, gestão e compras em um só lugar');
body.append('sections[][body]', 'g');
body.append('file', document.querySelector('input[name="file"]').files[0]);
body.append('file_mobile', document.querySelector('input[name="file_mobile"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "name": "Sobre a Unity Health",
        "file": null,
        "file_sizes": null,
        "file_mobile": null,
        "file_mobile_sizes": null,
        "video": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "created_at": "2026-10-22T10:00:00+00:00",
        "updated_at": "2026-10-22T11:30:00+00:00",
        "deleted_at": null,
        "media": [],
        "sections": [
            {
                "uuid": "1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
                "title": "Conhecimento, gestão e compras em um só lugar",
                "body": "A Unity Health conecta profissionais e instituições de saúde a conteúdos relevantes da área médica.",
                "order": 1,
                "created_at": "2026-10-22T10:00:00+00:00",
                "updated_at": "2026-10-22T11:30:00+00:00",
                "deleted_at": null
            }
        ]
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "sections.0.body": [
            "The sections.0.body field is required."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/company-app

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 191 caracteres. Example: b

file   file  optional    

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

file_mobile   file  optional    

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

media_delete   string[]  optional    

Não pode conter mais de 191 caracteres.

video   string  optional    

Must be a valid URL. Não pode conter mais de 191 caracteres. Example: g

sections   object[]     
uuid   string  optional    

Uuid da seção existente (vazio para criar). Não pode conter mais de 191 caracteres. Example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed

title   string     

Não pode conter mais de 191 caracteres. Example: Conhecimento, gestão e compras em um só lugar

body   string     

Texto simples (o app não interpreta HTML). Não pode conter mais de 65535 caracteres. Example: g

App Screens

Get screen

requires authentication

key: splash, login ou tv.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/app-screens/splash" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/app-screens/splash"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "key": "splash",
        "title": null,
        "subtitle": null,
        "image": "http://localhost/storage/app-screens/logo.png",
        "footer_text": "desenvolvido por",
        "footer_image": "http://localhost/storage/app-screens/clickweb.svg",
        "duration_seconds": 3.4,
        "created_at": "2026-10-22T10:00:00-03:00",
        "updated_at": "2026-10-22T10:00:00-03:00"
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

GET api/v1/admin/app-screens/{key}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

key   string     

Available values: splash login tv Example: splash

Update screen

requires authentication

Splash: image (logo), footer_text ("desenvolvido por"), footer_image (logo/assinatura de baixo, opcional) e duration_seconds (tempo na tela). Login: title e subtitle. TV Unity: transmissão padrão exibida quando não há item da programação no ar: title (nome), subtitle (descrição), image (capa) e stream_url (HLS/RTMP do provedor). Para remover uma imagem envie delete_image=1 ou delete_footer_image=1.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/app-screens/splash" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/app-screens/splash"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "duration_seconds": [
            "The duration seconds field must not be greater than 30."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/app-screens/{key}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

key   string     

Available values: splash login tv Example: splash

Authentication

Login

5 login attempts can be performed every 1 minute.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/login" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "email=gbailey@example.net"\
    --form "password=+-0pBNvYgxwmi/#iw"\
    --form "token_name=u"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/login"
);

const headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('email', 'gbailey@example.net');
body.append('password', '+-0pBNvYgxwmi/#iw');
body.append('token_name', 'u');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "token_type": "Bearer",
    "access_token": "eyJ0eXAiOiJ..."
}
 

Request      

POST api/v1/admin/auth/login

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

password   string     

validation.min. Example: +-0pBNvYgxwmi/#iw

token_name   string     

validation.max. Example: u

Send code A2F

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/verification-two-steps" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "send_by=email"\
    --form "email=gbailey@example.net"\
    --form "phone=architecto"\
    --form "resend="
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/verification-two-steps"
);

const headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('send_by', 'email');
body.append('email', 'gbailey@example.net');
body.append('phone', 'architecto');
body.append('resend', '');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/auth/verification-two-steps

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

send_by   string     

Example: email

Must be one of:
  • email
  • sms
email   string  optional    

validation.email. Example: gbailey@example.net

phone   string  optional    

Example: architecto

resend   boolean  optional    

Example: false

Verify A2F code

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/check-code" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "code=bngzmi"\
    --form "token_name=y"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/check-code"
);

const headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('code', 'bngzmi');
body.append('token_name', 'y');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "token_type": "Bearer",
    "access_token": "eyJ0eXAiOiJ..."
}
 

Request      

POST api/v1/admin/auth/check-code

Headers

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

code   string     

validation.max. Example: bngzmi

token_name   string     

validation.max. Example: y

Password recovery

Send password reset link do user

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/password/recovery" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "email=gbailey@example.net"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/password/recovery"
);

const headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('email', 'gbailey@example.net');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "message": "Success message"
}
 

Request      

POST api/v1/admin/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

Logout

requires authentication

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/logout" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/logout"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/admin/auth/logout

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Get the authenticated user

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/user" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/user"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/auth/user

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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/admin/auth/tokens" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/tokens"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/auth/tokens

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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/admin/auth/tokens/architecto" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/tokens/architecto"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

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

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

tokenId   string     

Example: architecto

Change password

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/change-password" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "password=|]|{+-"\
    --form "password_new=vdljnikhwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlx"\
    --form "password_new_confirmation=jklqppwqbewtnnoqitpxntltcvipojsausgioglrbchgsr"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/change-password"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('password', '|]|{+-');
body.append('password_new', 'vdljnikhwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlx');
body.append('password_new_confirmation', 'jklqppwqbewtnnoqitpxntltcvipojsausgioglrbchgsr');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

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

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

password   string     

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

password_new   string     

Deve conter no mínimo 6 caracteres. Example: vdljnikhwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlx

password_new_confirmation   string     

The value and password_new must match. Deve conter no mínimo 6 caracteres. Example: jklqppwqbewtnnoqitpxntltcvipojsausgioglrbchgsr

Change avatar

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/change-avatar" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "avatar=@/tmp/phpk0Hwpf" 
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/auth/change-avatar"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('avatar', document.querySelector('input[name="avatar"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Request      

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

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 2000 kilobytes. Example: /tmp/phpk0Hwpf

Cliente

Get all clientes

requires authentication

Lista os usuários do app. A busca procura no nome, no e-mail e no CPF (com ou sem pontuação).

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers?limit=20&page=1&orderBy=id%3Adesc&search=mariana&is_active=1&access_status=active&created_at=&last_access_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "id:desc",
    "search": "mariana",
    "is_active": "1",
    "access_status": "active",
    "created_at": "",
    "last_access_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
            "name": "Mariana Vasconcellos",
            "treatment": "Dra.",
            "phone": "+5511999990000",
            "document": "12345678909",
            "email": "mariana@unityhealth.com.br",
            "job_title": "Diretora Clínica",
            "institution": "Hospital Sírio-Libanês",
            "avatar": null,
            "avatar_sizes": null,
            "network_external": "login-pass",
            "email_verified_at": "2026-10-01T10:00:00-03:00",
            "accept_newsletter": false,
            "notify_general": true,
            "invited_at": "2026-10-01T10:00:00-03:00",
            "password_changed_at": "2026-10-01T10:30:00-03:00",
            "last_access_at": "2026-10-22T09:12:00-03:00",
            "deleted_reason": null,
            "access_status": "active",
            "is_active": true,
            "created_at": "2026-10-01T10:00:00-03:00",
            "updated_at": "2026-10-22T09:12:00-03:00"
        }
    ],
    "links": {},
    "meta": {
        "current_page": 1,
        "total": 1
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/customers

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 email is_active last_access_at created_at Example: id:desc

search   string  optional    

Available fields: uuid name email document (CPF) Example: mariana

is_active   integer  optional    

Available values: 0 (bloqueado) 1 (ativo) Example: 1

access_status   string  optional    

Situação do acesso. Available values: invited active blocked Example: active

created_at   string[]  optional    

Período de cadastro. formato: Y-m-d\TH:i:sP

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

last_access_at   string[]  optional    

Período do último acesso ao app. formato: Y-m-d\TH:i:sP

last_access_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Autocomplete

requires authentication

List a maximum of 50 items.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/autocomplete"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/customers/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name email is_active created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name email Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

Create cliente (convite)

requires authentication

Cadastra o usuário do app e envia o convite: e-mail com o link para definir a senha (vale 3 dias; usa a página de nova senha da API, a mesma da recuperação de senha). Até definir a senha o usuário fica como invited e não entra no app. Celular em E.164 (sem o +, 10 ou 11 dígitos são tratados como Brasil); CPF com dígitos verificadores e único; e-mail único.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "name=b"\
    --form "email=zbailey@example.net"\
    --form "phone=+3642559314"\
    --form "document=architecto"\
    --form "treatment=ngzmiyvdljnikhwa"\
    --form "job_title=y"\
    --form "institution=k"\
    --form "avatar=@/tmp/phpmfotB0" 
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('name', 'b');
body.append('email', 'zbailey@example.net');
body.append('phone', '+3642559314');
body.append('document', 'architecto');
body.append('treatment', 'ngzmiyvdljnikhwa');
body.append('job_title', 'y');
body.append('institution', 'k');
body.append('avatar', document.querySelector('input[name="avatar"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (201):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "name": "Mariana Vasconcellos",
        "treatment": "Dra.",
        "phone": "+5511999990000",
        "document": "12345678909",
        "email": "mariana@unityhealth.com.br",
        "job_title": "Diretora Clínica",
        "institution": "Hospital Sírio-Libanês",
        "avatar": null,
        "invited_at": "2026-10-22T10:00:00-03:00",
        "password_changed_at": null,
        "last_access_at": null,
        "access_status": "invited",
        "is_active": true,
        "created_at": "2026-10-22T10:00:00-03:00",
        "updated_at": "2026-10-22T10:00:00-03:00"
    }
}
 

Example response (422):


{
    "message": "O e-mail informado já está em uso.",
    "errors": {
        "email": [
            "O e-mail informado já está em uso."
        ]
    }
}
 

Request      

POST api/v1/admin/customers

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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  optional    

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

document   string  optional    

Example: architecto

treatment   string  optional    

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

job_title   string  optional    

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

institution   string  optional    

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

avatar   file  optional    

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

Modelo de importação

requires authentication

Planilha vazia, só com os títulos das colunas, para preencher e enviar em customers/import/preview.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/import/template" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/import/template"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Request      

GET api/v1/admin/customers/import/template

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Conferir planilha de importação

requires authentication

Lê o arquivo sem gravar nada e separa as linhas prontas (rows) das que têm problema (issues): sem e-mail (no_email), e-mail ou CPF repetido na planilha ou já cadastrado (duplicate) e dado inválido (invalid).

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/import/preview" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "file=@/tmp/phpWRcxD8" 
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/import/preview"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('file', document.querySelector('input[name="file"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "total": 2,
    "rows": [
        {
            "line": 2,
            "treatment": "Dra.",
            "name": "Mariana Vasconcellos",
            "email": "mariana@unityhealth.com.br",
            "phone": "+5511999990000",
            "document": "12345678909",
            "job_title": null,
            "institution": null
        }
    ],
    "issues": [
        {
            "line": 3,
            "name": "João Lima",
            "email": null,
            "type": "no_email",
            "reason": "Sem e-mail."
        }
    ]
}
 

Example response (422):


{
    "message": "A planilha não segue o modelo: precisa ter as colunas Nome completo e E-mail.",
    "errors": {
        "file": [
            "A planilha não segue o modelo: precisa ter as colunas Nome completo e E-mail."
        ]
    }
}
 

Request      

POST api/v1/admin/customers/import/preview

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

file   file     

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

Importar usuários

requires authentication

Cadastra um lote de até 100 linhas devolvidas pela conferência. As regras são verificadas de novo: o que deixou de valer entra em issues. Os usuários ficam como convidados e o e-mail para definir a senha não é enviado aqui (use resend-access).

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/import" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "rows[][line]=16"    --form "rows[][treatment]=architecto"    --form "rows[][name]=architecto"    --form "rows[][email]=gbailey@example.net"    --form "rows[][phone]=architecto"    --form "rows[][document]=architecto"    --form "rows[][job_title]=architecto"    --form "rows[][institution]=architecto"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/import"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('rows[][line]', '16');
body.append('rows[][treatment]', 'architecto');
body.append('rows[][name]', 'architecto');
body.append('rows[][email]', 'gbailey@example.net');
body.append('rows[][phone]', 'architecto');
body.append('rows[][document]', 'architecto');
body.append('rows[][job_title]', 'architecto');
body.append('rows[][institution]', 'architecto');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "imported": 1,
    "issues": []
}
 

Request      

POST api/v1/admin/customers/import

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

rows   object[]     

Deve conter no mínimo 1 itens. Deve conter no máximo 100 itens.

line   integer     

Deve conter um número superior ou igual a 1. Example: 16

treatment   string  optional    

Example: architecto

name   string  optional    

Example: architecto

email   string  optional    

Example: gbailey@example.net

phone   string  optional    

Example: architecto

document   string  optional    

Example: architecto

job_title   string  optional    

Example: architecto

institution   string  optional    

Example: architecto

Change avatar cliente

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/change-avatar/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "avatar=@/tmp/phpOqimjC" 
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/change-avatar/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('avatar', document.querySelector('input[name="avatar"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/customers/change-avatar/{customer_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

customer_uuid   string     

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

Body Parameters

avatar   file     

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

Export clientes

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/export?orderBy=id%3Adesc&search=architecto&is_active=1&access_status=active&created_at=&last_access_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/export"
);

const params = {
    "orderBy": "id:desc",
    "search": "architecto",
    "is_active": "1",
    "access_status": "active",
    "created_at": "",
    "last_access_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Request      

GET api/v1/admin/customers/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name email is_active last_access_at created_at Example: id:desc

search   string  optional    

Available fields: uuid name email document Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

access_status   string  optional    

Available values: invited active blocked Example: active

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

last_access_at   string[]  optional    

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

last_access_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Get cliente

requires authentication

Visualização no painel: dados, situação do acesso, último acesso, sessões abertas (aparelhos), as 20 últimas atividades e o resumo de uso da Central de conteúdos (usage: curtidas, salvos, conteúdos iniciados e concluídos, perguntas nos webinars e os últimos conteúdos acessados).

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "name": "Mariana Vasconcellos",
        "email": "mariana@unityhealth.com.br",
        "access_status": "active",
        "last_access_at": "2026-10-22T09:12:00-03:00",
        "sessions": [
            {
                "id": 12,
                "device_name": "iPhone de Mariana",
                "created_at": "2026-10-20T08:00:00-03:00",
                "last_used_at": "2026-10-22T09:12:00-03:00",
                "expires_at": "2026-10-22T09:27:00-03:00",
                "refresh_expires_at": "2026-11-19T08:00:00-03:00"
            }
        ],
        "usage": {
            "likes": 4,
            "saved": 3,
            "started": 6,
            "completed": 2,
            "questions": 1,
            "last_activity_at": "2026-10-22T09:10:00-03:00",
            "recent": [
                {
                    "uuid": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
                    "title": "Ep. 24 - Renegociação de Tabelas",
                    "type": "podcast",
                    "percent": 27,
                    "completed": false,
                    "updated_at": "2026-10-22T09:10:00-03:00"
                }
            ]
        },
        "activity_logs": []
    }
}
 

Request      

GET api/v1/admin/customers/{customer_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

customer_uuid   integer     

Example: 1

customer   string     

Uuid do usuário. Example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e

Update cliente

requires authentication

Edita os dados do usuário do app. Para bloquear use active-desactive; para uma nova senha, resend-access.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "name=b"\
    --form "email=zbailey@example.net"\
    --form "phone=+3642559314"\
    --form "document=architecto"\
    --form "treatment=ngzmiyvdljnikhwa"\
    --form "job_title=y"\
    --form "institution=k"\
    --form "avatar_delete="\
    --form "avatar=@/tmp/phpcpoAJj" 
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('name', 'b');
body.append('email', 'zbailey@example.net');
body.append('phone', '+3642559314');
body.append('document', 'architecto');
body.append('treatment', 'ngzmiyvdljnikhwa');
body.append('job_title', 'y');
body.append('institution', 'k');
body.append('avatar_delete', '');
body.append('avatar', document.querySelector('input[name="avatar"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "name": "Mariana Vasconcellos",
        "access_status": "active",
        "is_active": true
    }
}
 

Example response (422):


{
    "message": "Deve ser um CPF válido.",
    "errors": {
        "document": [
            "Deve ser um CPF válido."
        ]
    }
}
 

Request      

POST api/v1/admin/customers/{customer_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

customer_uuid   integer     

Example: 1

customer   string     

Uuid do usuário. Example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e

Body Parameters

name   string  optional    

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

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    

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

document   string  optional    

Example: architecto

treatment   string  optional    

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

job_title   string  optional    

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

institution   string  optional    

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

avatar   file  optional    

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

avatar_delete   boolean  optional    

Example: false

Remove cliente

requires authentication

Exclusão pelo painel: soft delete (padrão da base) e encerra todas as sessões do app. Os dados ficam na lista de excluídos (customers-deleted). A exclusão com anonimização (LGPD) é a feita pelo próprio usuário no app.

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204):

Empty response
 

Request      

DELETE api/v1/admin/customers/{customer_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

customer_uuid   integer     

Example: 1

customer   string     

Uuid do usuário. Example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e

Block / unblock customer

requires authentication

Bloqueia (is_active = 0) ou desbloqueia o usuário do app. O bloqueado não entra no app e perde na hora todas as sessões (tokens e refresh tokens).

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/active-desactive/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "is_active=1"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/active-desactive/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('is_active', '1');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "name": "Mariana Vasconcellos",
        "access_status": "blocked",
        "is_active": false
    }
}
 

Request      

POST api/v1/admin/customers/active-desactive/{customer_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

customer_uuid   string     

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

customer   string     

Uuid do usuário. Example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e

Body Parameters

is_active   boolean     

Example: true

Resend access

requires authentication

Reenvia o acesso: novo e-mail com o link para definir a senha (vale 3 dias). Serve para o convidado que perdeu o convite e para quem esqueceu a senha. O link anterior deixa de valer. Usuário bloqueado: 422 (desbloqueie antes).

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1/resend-access" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1/resend-access"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "message": "Enviamos para mariana@unityhealth.com.br o link para definir a senha.",
    "invited_at": "2026-10-22T10:00:00-03:00"
}
 

Example response (422):


{
    "message": "Desbloqueie o usuário antes de reenviar o acesso.",
    "errors": {
        "is_active": [
            "Desbloqueie o usuário antes de reenviar o acesso."
        ]
    }
}
 

Request      

POST api/v1/admin/customers/{customer_uuid}/resend-access

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

customer_uuid   integer     

Example: 1

customer   string     

Uuid do usuário. Example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e

Revoke sessions

requires authentication

Encerra todas as sessões do usuário no app (revoga os tokens e refresh tokens de todos os aparelhos). Ele precisa entrar de novo com e-mail, senha e código.

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1/sessions" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers/1/sessions"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (200):


{
    "revoked": 2
}
 

Request      

DELETE api/v1/admin/customers/{customer_uuid}/sessions

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

customer_uuid   integer     

Example: 1

customer   string     

Uuid do usuário. Example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e

Usage report

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers-report?days=30&type=podcast&order=accesses" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers-report"
);

const params = {
    "days": "30",
    "type": "podcast",
    "order": "accesses",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "period_days": 30,
        "customers": {
            "total": 24,
            "active": 20,
            "invited": 2,
            "blocked": 2,
            "new_in_period": 5
        },
        "active_users": {
            "last_7_days": 9,
            "last_30_days": 15,
            "in_period": 15
        },
        "top_contents": [
            {
                "uuid": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
                "title": "Ep. 24 - Renegociação de Tabelas e Gestão de OPME",
                "type": "podcast",
                "category": "Gestão & Finanças",
                "accesses": 8,
                "completed": 3,
                "likes": 4,
                "saves": 2,
                "likes_count": 318
            }
        ],
        "top_customers": [
            {
                "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
                "name": "Mariana Vasconcellos",
                "email": "mariana@unityhealth.com.br",
                "accesses": 6,
                "last_access_at": "2026-10-22T09:12:00-03:00"
            }
        ]
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/customers-report

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

days   integer  optional    

Período em dias. Available values: 7 30 90 Example: 30

type   string  optional    

Só um tipo de conteúdo. Available values: ebook podcast video webinar Example: podcast

order   string  optional    

Ordenação dos conteúdos. Available values: accesses completed likes saves Example: accesses

Get all clientes deletedos

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers-deleted?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1&deleted_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers-deleted"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
    "deleted_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/customers-deleted

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 email is_active created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name email Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

deleted_at   string[]  optional    

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

deleted_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Export clientes deletado

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers-deleted/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1&deleted_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers-deleted/export"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
    "deleted_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Request      

GET api/v1/admin/customers-deleted/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name email is_active created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name email Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

deleted_at   string[]  optional    

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

deleted_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Get cliente deletado

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers-deleted/BcECdBDA-CdED-bFEA-CbCE-BcCdeBfbbebc" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/customers-deleted/BcECdBDA-CdED-bFEA-CbCE-BcCdeBfbbebc"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/customers-deleted/{uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

uuid   string     

Example: BcECdBDA-CdED-bFEA-CbCE-BcCdeBfbbebc

Content Categories

Get all categories

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories?limit=20&page=1&orderBy=type%3Aasc%7Corder%3Aasc&search=architecto&type=ebook&is_active=1&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "type:asc|order:asc",
    "search": "architecto",
    "type": "ebook",
    "is_active": "1",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/content-categories

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 type order created_at Example: type:asc|order:asc

search   string  optional    

Available fields: uuid name Example: architecto

type   string  optional    

Available values: ebook podcast video webinar Example: ebook

is_active   integer  optional    

Available values: 0 1 Example: 1

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Create category

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "type=architecto"\
    --form "name=n"\
    --form "color=#fEEeDb"\
    --form "order=37"\
    --form "is_active=1"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('type', 'architecto');
body.append('name', 'n');
body.append('color', '#fEEeDb');
body.append('order', '37');
body.append('is_active', '1');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "name": [
            "The name has already been taken."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/content-categories

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

type   string     

Example: architecto

name   string     

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

color   string  optional    

Must match the regex /^#[0-9A-Fa-f]{6}$/. Example: #fEEeDb

order   integer  optional    

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

is_active   boolean  optional    

Example: true

Autocomplete

requires authentication

List a maximum of 50 items, ordered by type and order.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/autocomplete?search=architecto&type=ebook&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/autocomplete"
);

const params = {
    "search": "architecto",
    "type": "ebook",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/content-categories/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

search   string  optional    

Available fields: uuid name Example: architecto

type   string  optional    

Available values: ebook podcast video webinar Example: ebook

is_active   integer  optional    

Available values: 0 1 Default: only active. Example: 1

Export categories

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/export?orderBy=type%3Aasc%7Corder%3Aasc&search=architecto&type=ebook&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/export"
);

const params = {
    "orderBy": "type:asc|order:asc",
    "search": "architecto",
    "type": "ebook",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/content-categories/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name type order created_at Example: type:asc|order:asc

search   string  optional    

Available fields: uuid name Example: architecto

type   string  optional    

Available values: ebook podcast video webinar Example: ebook

is_active   integer  optional    

Available values: 0 1 Example: 1

Get category

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

GET api/v1/admin/content-categories/{category_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

category_uuid   integer     

Example: 1

Update category

requires authentication

Mudar o nome atualiza a busca dos conteúdos da categoria. O tipo só pode mudar se a categoria não tiver conteúdos.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "name=b"\
    --form "color=#fEEeDb"\
    --form "order=37"\
    --form "is_active=1"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('name', 'b');
body.append('color', '#fEEeDb');
body.append('order', '37');
body.append('is_active', '1');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "type": [
            "Não é possível mudar o tipo de uma categoria que tem conteúdos."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/content-categories/{category_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

category_uuid   integer     

Example: 1

Body Parameters

type   string  optional    
name   string  optional    

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

color   string  optional    

Must match the regex /^#[0-9A-Fa-f]{6}$/. Example: #fEEeDb

order   integer  optional    

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

is_active   boolean  optional    

Example: true

Remove category

requires authentication

Só é possível excluir categorias sem conteúdos.

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/content-categories/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "category": [
            "Esta categoria tem conteúdos. Mova-os para outra categoria antes de excluir."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

DELETE api/v1/admin/content-categories/{category_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

category_uuid   integer     

Example: 1

Contents

Get all contents

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents?limit=20&page=1&orderBy=published_at%3Adesc&search=lgpd&type=ebook&category=9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e&status=published&is_active=1&is_featured=1&is_featured_central=1&is_live=0&published_at=&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "published_at:desc",
    "search": "lgpd",
    "type": "ebook",
    "category": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
    "status": "published",
    "is_active": "1",
    "is_featured": "1",
    "is_featured_central": "1",
    "is_live": "0",
    "published_at": "",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/contents

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 title type author_name published_at likes_count created_at Example: published_at:desc

search   string  optional    

Busca sem acentos em título, autor, série e categoria (e uuid). Example: lgpd

type   string  optional    

Available values: ebook podcast video webinar Example: ebook

category   string  optional    

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

status   string  optional    

Available values: published scheduled inactive Example: published

is_active   integer  optional    

Available values: 0 1 Example: 1

is_featured   integer  optional    

Destaque do hub do tipo. Available values: 0 1 Example: 1

is_featured_central   integer  optional    

Destaque da Central. Available values: 0 1 Example: 1

is_live   integer  optional    

Webinar ao vivo. Available values: 0 1 Example: 0

published_at   string[]  optional    

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

published_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Create content

requires authentication

Mídia: envie o arquivo em media (PDF, MP3, MP4...) ou a URL externa em media_url (CDN, provedor de vídeo, HLS .m3u8). Capa: envie a imagem em cover ou a URL em cover_url. published_at vazio publica na hora; data futura agenda a publicação. Campos que não valem para o tipo são limpos: pages só no e-book, duration_seconds só em áudio e vídeo, is_live só no webinar.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "content_category": [
            "A categoria precisa ser do mesmo tipo do conteúdo."
        ],
        "title": [
            "The title field is required."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/contents

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Autocomplete

requires authentication

List a maximum of 50 items.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/autocomplete?search=lgpd&type=ebook&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/autocomplete"
);

const params = {
    "search": "lgpd",
    "type": "ebook",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/contents/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

search   string  optional    

Busca sem acentos em título, autor, série e categoria. Example: lgpd

type   string  optional    

Available values: ebook podcast video webinar Example: ebook

is_active   integer  optional    

Available values: 0 1 Default: only active. Example: 1

Export contents

requires authentication

Aceita os mesmos filtros da listagem.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/export?orderBy=published_at%3Adesc&search=lgpd&type=ebook&category=architecto&status=published&is_active=1&is_featured=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/export"
);

const params = {
    "orderBy": "published_at:desc",
    "search": "lgpd",
    "type": "ebook",
    "category": "architecto",
    "status": "published",
    "is_active": "1",
    "is_featured": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/contents/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id title type author_name published_at likes_count created_at Example: published_at:desc

search   string  optional    

Example: lgpd

type   string  optional    

Available values: ebook podcast video webinar Example: ebook

category   string  optional    

Uuid da categoria. Example: architecto

status   string  optional    

Available values: published scheduled inactive Example: published

is_active   integer  optional    

Available values: 0 1 Example: 1

is_featured   integer  optional    

Available values: 0 1 Example: 1

Get content

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

GET api/v1/admin/contents/{content_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

content_uuid   integer     

Example: 1

Update content

requires authentication

Envie só os campos que mudam. Para remover a capa ou o arquivo envie delete_cover=1 ou delete_media=1. published_at vazio (enviado sem valor) deixa o conteúdo sem data de publicação (não aparece no app).

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "media_url": [
            "The media url field must be a valid URL."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/contents/{content_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

content_uuid   integer     

Example: 1

Remove content

requires authentication

Exclusão lógica: o conteúdo some do app e das listas do painel.

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/contents/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

DELETE api/v1/admin/contents/{content_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

content_uuid   integer     

Example: 1

Dashboard

Get summary of data

requires authentication

Contadores exibidos nos cards do Dashboard do painel. contents_*_total: conteúdos publicados (visíveis no app) por tipo. TV e ao vivo: tv_is_live (há item da programação no ar), tv_viewers (assistindo a TV agora), live_webinars_total (webinars ao vivo agora), live_webinars_viewers (assistindo os webinars ao vivo) e live_webinars_scheduled_total (agendados). Assistindo = sinal do app nos últimos 60 s.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/dashboard" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/dashboard"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "customers_total": 10,
        "customers_active_total": 8,
        "customers_new_month_total": 2,
        "customers_deleted_total": 1,
        "users_total": 3,
        "users_active_total": 3,
        "notifications_sent_total": 5,
        "pushes_sent_total": 4,
        "contents_ebook_total": 18,
        "contents_podcast_total": 12,
        "contents_video_total": 13,
        "contents_webinar_total": 9,
        "tv_is_live": true,
        "tv_viewers": 42,
        "live_webinars_total": 1,
        "live_webinars_viewers": 15,
        "live_webinars_scheduled_total": 2
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Request      

GET api/v1/admin/dashboard

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Faq

Get all faq

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq?limit=20&page=1&orderBy=topic%3Aasc%7Corder%3Aasc&search=architecto&faq_topic=9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e&is_active=1&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "topic:asc|order:asc",
    "search": "architecto",
    "faq_topic": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
    "is_active": "1",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
            "name": "Como altero minha senha?",
            "text": "Em Minha conta > Meu perfil > Alterar senha.",
            "order": 1,
            "is_active": true,
            "created_at": "2026-10-22T10:00:00+00:00",
            "updated_at": "2026-10-22T10:00:00+00:00",
            "deleted_at": null,
            "topic": {
                "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
                "name": "Conta e acesso",
                "order": 1,
                "is_active": true,
                "created_at": "2026-10-22T10:00:00+00:00",
                "updated_at": "2026-10-22T10:00:00+00:00",
                "deleted_at": null
            }
        }
    ],
    "links": {
        "first": "http://localhost/api/v1/admin/faq?page=1",
        "last": "http://localhost/api/v1/admin/faq?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "path": "http://localhost/api/v1/admin/faq",
        "per_page": 20,
        "to": 1,
        "total": 1
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/faq

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 topic order is_active created_at updated_at Default: topic:asc|order:asc|id:asc Example: topic:asc|order:asc

search   string  optional    

Available fields: uuid name (pergunta) text (resposta) Example: architecto

faq_topic   string  optional    

Uuid do tema. Example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e

is_active   integer  optional    

Available values: 0 1 Example: 1

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Autocomplete

requires authentication

List a maximum of 50 items, in the app order (topic, then question).

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/autocomplete?search=architecto&faq_topic=9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/autocomplete"
);

const params = {
    "search": "architecto",
    "faq_topic": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
            "name": "Como altero minha senha?",
            "text": "Em Minha conta > Meu perfil > Alterar senha.",
            "order": 1,
            "is_active": true,
            "created_at": "2026-10-22T10:00:00+00:00",
            "updated_at": "2026-10-22T10:00:00+00:00",
            "deleted_at": null
        }
    ]
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Request      

GET api/v1/admin/faq/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

search   string  optional    

Available fields: uuid name text Example: architecto

faq_topic   string  optional    

Uuid do tema. Example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e

is_active   integer  optional    

Available values: 0 1 Default: only active. Example: 1

Create faq

requires authentication

Sem order, a pergunta vai para o fim do tema.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "faq_topic=architecto"\
    --form "name=n"\
    --form "text=g"\
    --form "order=16"\
    --form "is_active="
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('faq_topic', 'architecto');
body.append('name', 'n');
body.append('text', 'g');
body.append('order', '16');
body.append('is_active', '');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (201):


{
    "data": {
        "uuid": "1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
        "name": "Como altero minha senha?",
        "text": "Em Minha conta > Meu perfil > Alterar senha.",
        "order": 4,
        "is_active": true,
        "created_at": "2026-10-22T10:00:00+00:00",
        "updated_at": "2026-10-22T10:00:00+00:00",
        "topic": {
            "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
            "name": "Conta e acesso",
            "order": 1,
            "is_active": true,
            "created_at": "2026-10-22T10:00:00+00:00",
            "updated_at": "2026-10-22T10:00:00+00:00",
            "deleted_at": null
        }
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "faq_topic": [
            "The selected faq topic is invalid."
        ],
        "name": [
            "The name field is required."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/faq

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

faq_topic   string     

Must match an existing stored value. Example: architecto

name   string     

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

text   string     

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

order   integer  optional    

Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 2147483647. Example: 16

is_active   boolean  optional    

Example: false

Reorder faq

requires authentication

Recebe os uuids das perguntas de UM tema na nova ordem (a primeira fica com order 1).

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/reorder" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "uuids[]=architecto"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/reorder"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('uuids[]', 'architecto');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
            "name": "Como altero minha senha?",
            "text": "Em Minha conta > Meu perfil > Alterar senha.",
            "order": 1,
            "is_active": true,
            "created_at": "2026-10-22T10:00:00+00:00",
            "updated_at": "2026-10-22T11:30:00+00:00",
            "deleted_at": null
        }
    ]
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "uuids": [
            "As perguntas precisam ser do mesmo tema."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/faq/reorder

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

uuids   string[]     

Must match an existing stored value.

Get additional information

requires authentication

Próxima ordem livre no tema informado (a pergunta nova vai para o fim do tema).

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/additional-information?faq_topic=9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/additional-information"
);

const params = {
    "faq_topic": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "next_order": 4
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Request      

GET api/v1/admin/faq/additional-information

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

faq_topic   string  optional    

Uuid do tema. Sem ele, considera todas as perguntas. Example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e

Export faq

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/export?orderBy=topic%3Aasc%7Corder%3Aasc&search=architecto&faq_topic=9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e&is_active=1&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/export"
);

const params = {
    "orderBy": "topic:asc|order:asc",
    "search": "architecto",
    "faq_topic": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
    "is_active": "1",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/faq/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name topic order is_active created_at updated_at Example: topic:asc|order:asc

search   string  optional    

Available fields: uuid name text Example: architecto

faq_topic   string  optional    

Uuid do tema. Example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e

is_active   integer  optional    

Available values: 0 1 Example: 1

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Get faq

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
        "name": "Como altero minha senha?",
        "text": "Em Minha conta > Meu perfil > Alterar senha.",
        "order": 1,
        "is_active": true,
        "created_at": "2026-10-22T10:00:00+00:00",
        "updated_at": "2026-10-22T10:00:00+00:00",
        "deleted_at": null,
        "topic": {
            "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
            "name": "Conta e acesso",
            "order": 1,
            "is_active": true,
            "created_at": "2026-10-22T10:00:00+00:00",
            "updated_at": "2026-10-22T10:00:00+00:00",
            "deleted_at": null
        }
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

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

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

faq_uuid   integer     

Example: 1

Update faq

requires authentication

Ao mudar de tema sem informar order, a pergunta vai para o fim do novo tema.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "faq_topic=architecto"\
    --form "name=n"\
    --form "text=g"\
    --form "order=16"\
    --form "is_active="
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('faq_topic', 'architecto');
body.append('name', 'n');
body.append('text', 'g');
body.append('order', '16');
body.append('is_active', '');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
        "name": "Como altero minha senha?",
        "text": "Em Minha conta > Meu perfil > Alterar senha.",
        "order": 1,
        "is_active": true,
        "created_at": "2026-10-22T10:00:00+00:00",
        "updated_at": "2026-10-22T11:30:00+00:00",
        "deleted_at": null,
        "topic": {
            "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
            "name": "Conta e acesso",
            "order": 1,
            "is_active": true,
            "created_at": "2026-10-22T10:00:00+00:00",
            "updated_at": "2026-10-22T10:00:00+00:00",
            "deleted_at": null
        }
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "text": [
            "The text field is required."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/faq/{faq_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

faq_uuid   integer     

Example: 1

Body Parameters

faq_topic   string  optional    

Must match an existing stored value. Example: architecto

name   string  optional    

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

text   string  optional    

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

order   integer  optional    

Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 2147483647. Example: 16

is_active   boolean  optional    

Example: false

Remove faq

requires authentication

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204):

Empty response
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

DELETE api/v1/admin/faq/{faq_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

faq_uuid   integer     

Example: 1

Faq Topics

Get all topics

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics?limit=20&page=1&orderBy=order%3Aasc&search=architecto&is_active=1&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "order:asc",
    "search": "architecto",
    "is_active": "1",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
            "name": "Conta e acesso",
            "faqs_count": 3,
            "order": 1,
            "is_active": true,
            "created_at": "2026-10-22T10:00:00+00:00",
            "updated_at": "2026-10-22T10:00:00+00:00",
            "deleted_at": null
        }
    ],
    "links": {
        "first": "http://localhost/api/v1/admin/faq-topics?page=1",
        "last": "http://localhost/api/v1/admin/faq-topics?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "path": "http://localhost/api/v1/admin/faq-topics",
        "per_page": 20,
        "to": 1,
        "total": 1
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/faq-topics

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 is_active created_at Default: order:asc|id:asc Example: order:asc

search   string  optional    

Available fields: uuid name Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Autocomplete

requires authentication

List a maximum of 50 items, in the app order (order).

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/autocomplete?search=architecto&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/autocomplete"
);

const params = {
    "search": "architecto",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
            "name": "Conta e acesso",
            "order": 1,
            "is_active": true,
            "created_at": "2026-10-22T10:00:00+00:00",
            "updated_at": "2026-10-22T10:00:00+00:00",
            "deleted_at": null
        }
    ]
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Request      

GET api/v1/admin/faq-topics/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

search   string  optional    

Available fields: uuid name Example: architecto

is_active   integer  optional    

Available values: 0 1 Default: only active. Example: 1

Create topic

requires authentication

Sem order, o tema vai para o fim da lista.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "name=b"\
    --form "order=22"\
    --form "is_active=1"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('name', 'b');
body.append('order', '22');
body.append('is_active', '1');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (201):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "name": "Conta e acesso",
        "faqs_count": 0,
        "order": 1,
        "is_active": true,
        "created_at": "2026-10-22T10:00:00+00:00",
        "updated_at": "2026-10-22T10:00:00+00:00"
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "name": [
            "The name has already been taken."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/faq-topics

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

name   string     

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

order   integer  optional    

Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 2147483647. Example: 22

is_active   boolean  optional    

Example: true

Reorder topics

requires authentication

Recebe os uuids dos temas na nova ordem (o primeiro fica com order 1).

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/reorder" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "uuids[]=architecto"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/reorder"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('uuids[]', 'architecto');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
            "name": "Conta e acesso",
            "faqs_count": 3,
            "order": 1,
            "is_active": true,
            "created_at": "2026-10-22T10:00:00+00:00",
            "updated_at": "2026-10-22T11:30:00+00:00",
            "deleted_at": null
        }
    ]
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "uuids.0": [
            "The selected uuids.0 is invalid."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/faq-topics/reorder

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

uuids   string[]     

Must match an existing stored value.

Export topics

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/export?orderBy=order%3Aasc&search=architecto&is_active=1&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/export"
);

const params = {
    "orderBy": "order:asc",
    "search": "architecto",
    "is_active": "1",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/faq-topics/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name order is_active created_at Example: order:asc

search   string  optional    

Available fields: uuid name Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Get topic

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "name": "Conta e acesso",
        "faqs_count": 3,
        "order": 1,
        "is_active": true,
        "created_at": "2026-10-22T10:00:00+00:00",
        "updated_at": "2026-10-22T10:00:00+00:00",
        "deleted_at": null
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

GET api/v1/admin/faq-topics/{topic_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

topic_uuid   integer     

Example: 1

Update topic

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "order=1"\
    --form "is_active=1"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('order', '1');
body.append('is_active', '1');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "name": "Conta e acesso",
        "faqs_count": 3,
        "order": 1,
        "is_active": true,
        "created_at": "2026-10-22T10:00:00+00:00",
        "updated_at": "2026-10-22T11:30:00+00:00",
        "deleted_at": null
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "name": [
            "The name has already been taken."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/faq-topics/{topic_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

topic_uuid   integer     

Example: 1

Body Parameters

name   string  optional    
order   integer  optional    

Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 2147483647. Example: 1

is_active   boolean  optional    

Example: true

Remove topic

requires authentication

Só é possível excluir temas sem perguntas.

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/faq-topics/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204):

Empty response
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "topic": [
            "Este tema tem perguntas. Mova-as para outro tema ou exclua-as antes de excluir o tema."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

DELETE api/v1/admin/faq-topics/{topic_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

topic_uuid   integer     

Example: 1

How It Works

Get all how it works

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

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

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 is_active created_at updated_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Autocomplete

requires authentication

List a maximum of 50 items.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/autocomplete"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/how-it-works/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name email is_active created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name email Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

Create how it works

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "name=b"\
    --form "text=n"\
    --form "order=7"\
    --form "is_active=1"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('name', 'b');
body.append('text', 'n');
body.append('order', '7');
body.append('is_active', '1');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/how-it-works

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

name   string     

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

text   string  optional    

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

order   integer     

Não pode conter um valor superior a 2147483647. Example: 7

is_active   boolean  optional    

Example: true

Get additional information

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/additional-information" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/additional-information"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "next_order": 5
}
 

Request      

GET api/v1/admin/how-it-works/additional-information

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Export how it works

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/export"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Request      

GET api/v1/admin/how-it-works/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

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

search   string  optional    

Available fields: uuid name Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Get how it works

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

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

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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

Update how it works

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "name=b"\
    --form "text=n"\
    --form "order=7"\
    --form "is_active="
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('name', 'b');
body.append('text', 'n');
body.append('order', '7');
body.append('is_active', '');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/how-it-works/{how_it_works_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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

Body Parameters

name   string  optional    

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

text   string  optional    

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

order   integer  optional    

Não pode conter um valor superior a 2147483647. Example: 7

is_active   boolean  optional    

Example: false

Remove how it works

requires authentication

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/how-it-works/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/admin/how-it-works/{how_it_works_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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

Live Audience

Get current audience

requires authentication

tv.now_playing/tv.next: item da programação no ar e o próximo. webinars: transmissões ao vivo agora.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-audience" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-audience"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "window_seconds": 60,
        "heartbeat_seconds": 30,
        "total": 57,
        "tv": {
            "viewers": 42,
            "now_playing": {
                "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
                "title": "Otimização de Margem em Centros Cirúrgicos",
                "starts_at": "2026-10-22T14:00:00-03:00",
                "ends_at": "2026-10-22T15:00:00-03:00"
            },
            "next": null
        },
        "webinars": [
            {
                "uuid": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
                "title": "Gestão de OPME ao vivo",
                "started_at": "2026-10-22T14:01:00-03:00",
                "viewers": 15
            }
        ]
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/live-audience

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Live Webinars

Get all live webinars

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars?limit=20&page=1&orderBy=starts_at%3Aasc&search=margem&status=live&moderator=9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e&starts_at=&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "starts_at:asc",
    "search": "margem",
    "status": "live",
    "moderator": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
    "starts_at": "",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
            "status": "live",
            "stream_url": "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8",
            "moderator_role": "VP de Operações Clínicas",
            "starts_at": "2026-10-22T14:00:00-03:00",
            "ends_at": "2026-10-22T15:00:00-03:00",
            "started_at": "2026-10-22T14:01:00-03:00",
            "ended_at": null,
            "questions_open": true,
            "viewers": 42,
            "questions_count": {
                "total": 5,
                "pending": 2,
                "approved": 2,
                "answered": 1,
                "rejected": 0
            },
            "content": {
                "uuid": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
                "type": "webinar",
                "title": "Otimização de Margem em Centros Cirúrgicos"
            },
            "moderator": {
                "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
                "name": "Dra. Helena Vasconcellos",
                "email": "helena@unityhealth.com.br"
            }
        }
    ],
    "links": {},
    "meta": {
        "current_page": 1,
        "total": 1
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/live-webinars

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 starts_at status created_at Example: starts_at:asc

search   string  optional    

Busca no título do webinar (sem acentos) e no uuid. Example: margem

status   string  optional    

Available values: scheduled live ended Example: live

moderator   string  optional    

Uuid do moderador (usuário do painel). Example: 9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e

starts_at   string[]  optional    

Período do início previsto. formato: Y-m-d\TH:i:sP

starts_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Create live webinar

requires authentication

Agenda a transmissão de um webinar da Central. Cada webinar tem uma transmissão só. O moderador é um usuário do painel; moderator_role é o cargo exibido no app.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (201):


{
    "data": {
        "uuid": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
        "status": "scheduled",
        "stream_url": "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8",
        "moderator_role": "VP de Operações Clínicas",
        "starts_at": "2026-10-22T14:00:00-03:00",
        "ends_at": "2026-10-22T15:00:00-03:00",
        "started_at": null,
        "ended_at": null,
        "questions_open": true,
        "viewers": 0
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "content": [
            "Este webinar já tem uma transmissão ao vivo agendada."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/live-webinars

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Autocomplete

requires authentication

List a maximum of 50 items (filtro da moderação de perguntas), ao vivo primeiro.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/autocomplete?search=margem&status=live" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/autocomplete"
);

const params = {
    "search": "margem",
    "status": "live",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
            "status": "live",
            "starts_at": "2026-10-22T14:00:00-03:00",
            "content": {
                "uuid": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
                "title": "Otimização de Margem em Centros Cirúrgicos"
            }
        }
    ]
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Request      

GET api/v1/admin/live-webinars/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

search   string  optional    

Busca no título do webinar. Example: margem

status   string  optional    

Available values: scheduled live ended Example: live

Export live webinars

requires authentication

Aceita os mesmos filtros da listagem.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/export?orderBy=starts_at%3Aasc&search=margem&status=ended" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/export"
);

const params = {
    "orderBy": "starts_at:asc",
    "search": "margem",
    "status": "ended",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/live-webinars/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id starts_at status created_at Example: starts_at:asc

search   string  optional    

Example: margem

status   string  optional    

Available values: scheduled live ended Example: ended

Get live webinar

requires authentication

Inclui os contadores de perguntas por situação e quantos estão assistindo agora.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
        "status": "live",
        "stream_url": "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8",
        "moderator_role": "VP de Operações Clínicas",
        "starts_at": "2026-10-22T14:00:00-03:00",
        "ends_at": "2026-10-22T15:00:00-03:00",
        "started_at": "2026-10-22T14:01:00-03:00",
        "ended_at": null,
        "questions_open": true,
        "viewers": 42,
        "questions_count": {
            "total": 5,
            "pending": 2,
            "approved": 2,
            "answered": 1,
            "rejected": 0
        }
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

GET api/v1/admin/live-webinars/{live_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

live_uuid   integer     

Example: 1

Update live webinar

requires authentication

Envie só os campos que mudam. Trocar o webinar só é possível enquanto a transmissão está agendada.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "stream_url": [
            "The stream url field must be a valid URL."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/live-webinars/{live_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

live_uuid   integer     

Example: 1

Start live webinar

requires authentication

Coloca a transmissão no ar: o webinar fica "ao vivo" no app (is_live), passa a tocar a stream_url e aceita perguntas (se questions_open). Sem data de publicação (ou com data futura), o webinar é publicado agora. Os usuários recebem o aviso "Ao vivo agora" por push (respeitando a chave Notificações do app); o aviso aparece no histórico de "Notificações push".

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1/start" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1/start"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
        "status": "live",
        "started_at": "2026-10-22T14:01:00-03:00",
        "ended_at": null,
        "questions_open": true,
        "viewers": 0
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "status": [
            "Esta transmissão já foi encerrada."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/live-webinars/{live_uuid}/start

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

live_uuid   integer     

Example: 1

End live webinar

requires authentication

Encerra a transmissão: o webinar deixa de estar "ao vivo" e continua no catálogo como gravação (a mídia do conteúdo; envie recording_url para trocá-la pela gravação). Sem duração cadastrada, a duração do conteúdo passa a ser o tempo real da transmissão. As perguntas são fechadas.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1/end" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "recording_url=http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1/end"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('recording_url', 'http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
        "status": "ended",
        "started_at": "2026-10-22T14:01:00-03:00",
        "ended_at": "2026-10-22T15:03:00-03:00",
        "questions_open": false,
        "viewers": 0
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "status": [
            "Esta transmissão não está ao vivo."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/live-webinars/{live_uuid}/end

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

live_uuid   integer     

Example: 1

Body Parameters

recording_url   string  optional    

Must be a valid URL. Não pode conter mais de 1000 caracteres. Example: http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html

Remove live webinar

requires authentication

Exclusão lógica da transmissão (o webinar continua no catálogo). Não é possível excluir uma transmissão ao vivo: encerre antes.

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/live-webinars/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204):

Empty response
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "status": [
            "Encerre a transmissão antes de excluir."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

DELETE api/v1/admin/live-webinars/{live_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

live_uuid   integer     

Example: 1

Log

Get all logs

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/logs?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&created_at=&type_target=user" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/logs"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "created_at": "",
    "type_target": "user",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/logs

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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: user_id log_type log_id log_name message action ip user_agent url method created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid user_id log_type log_id log_name message action ip user_agent url method Example: architecto

created_at   string[]  optional    

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

type_target   string  optional    

Available values: user, customer Example: user

Autocomplete

requires authentication

List a maximum of 50 items.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/logs/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/logs/autocomplete"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/logs/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name email is_active created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name email Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

Export logs

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/logs/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/logs/export"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Request      

GET api/v1/admin/logs/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id user_id log_type log_id log_name message action ip user_agent url method created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid user_id log_type log_id log_name message action ip user_agent url method Example: architecto

created_at   string[]  optional    

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

Get log

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/logs/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/logs/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/logs/{log_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

log_uuid   string     

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

Notifications

Get all notifications

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/notifications

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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

is_active   integer  optional    

Available values: 0 1 Example: 1

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Autocomplete

requires authentication

List a maximum of 50 items.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/autocomplete"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/notifications/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name email is_active created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name email Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

Create notificacao

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "name=b"\
    --form "text=n"\
    --form "description=Animi quos velit et fugiat."\
    --form "video=d"\
    --form "button_title=l"\
    --form "button_link=j"\
    --form "is_active="\
    --form "send_push="\
    --form "send_date=2052-12-12"\
    --form "cover=@/tmp/phpuHZdt8" 
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('name', 'b');
body.append('text', 'n');
body.append('description', 'Animi quos velit et fugiat.');
body.append('video', 'd');
body.append('button_title', 'l');
body.append('button_link', 'j');
body.append('is_active', '');
body.append('send_push', '');
body.append('send_date', '2052-12-12');
body.append('cover', document.querySelector('input[name="cover"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/notifications

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

name   string     

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

text   string     

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

description   string  optional    

Não pode conter mais de 191 caracteres. Example: Animi quos velit et fugiat.

video   string  optional    

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

button_title   string  optional    

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

button_link   string  optional    

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

cover   file  optional    

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

is_active   boolean  optional    

Example: false

send_push   boolean  optional    

Example: false

send_date   string  optional    

Deve ser uma data válida. Deve conter uma data posterior a now. Example: 2052-12-12

Export notifications

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/export"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Request      

GET api/v1/admin/notifications/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

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

is_active   integer  optional    

Available values: 0 1 Example: 1

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Get notificacao

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

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

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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

Update notification

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "name=b"\
    --form "text=n"\
    --form "description=Animi quos velit et fugiat."\
    --form "video=d"\
    --form "button_title=l"\
    --form "button_link=j"\
    --form "cover_delete=1"\
    --form "is_active="\
    --form "send_push="\
    --form "send_date=2052-12-12"\
    --form "cover=@/tmp/phpGy7wBr" 
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('name', 'b');
body.append('text', 'n');
body.append('description', 'Animi quos velit et fugiat.');
body.append('video', 'd');
body.append('button_title', 'l');
body.append('button_link', 'j');
body.append('cover_delete', '1');
body.append('is_active', '');
body.append('send_push', '');
body.append('send_date', '2052-12-12');
body.append('cover', document.querySelector('input[name="cover"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/notifications/{notification_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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

Body Parameters

name   string  optional    

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

text   string  optional    

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

description   string  optional    

Não pode conter mais de 191 caracteres. Example: Animi quos velit et fugiat.

video   string  optional    

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

button_title   string  optional    

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

button_link   string  optional    

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

cover   file  optional    

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

cover_delete   boolean  optional    

Example: true

is_active   boolean  optional    

Example: false

send_push   boolean  optional    

Example: false

send_date   string  optional    

Deve ser uma data válida. Deve conter uma data posterior a now. Example: 2052-12-12

Remove notification

requires authentication

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/notifications/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

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

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding?limit=20&page=1&orderBy=order%3Aasc&search=architecto&is_active=1&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "order:asc",
    "search": "architecto",
    "is_active": "1",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/onboarding

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 order title kicker created_at Default: order:asc|id:asc Example: order:asc

search   string  optional    

Available fields: uuid kicker title text Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Autocomplete

requires authentication

List a maximum of 50 items.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/autocomplete"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/onboarding/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name email is_active created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name email Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

Get additional information

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/additional-information" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/additional-information"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "next_order": 5
}
 

Request      

GET api/v1/admin/onboarding/additional-information

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Create onboarding

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "kicker=b"\
    --form "title=n"\
    --form "text=g"\
    --form "icon=z"\
    --form "order=17"\
    --form "is_active=1"\
    --form "image=@/tmp/phpavPiRB" 
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('kicker', 'b');
body.append('title', 'n');
body.append('text', 'g');
body.append('icon', 'z');
body.append('order', '17');
body.append('is_active', '1');
body.append('image', document.querySelector('input[name="image"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "title": [
            "The title field is required."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/onboarding

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

kicker   string  optional    

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

title   string     

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

text   string  optional    

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

image   file  optional    

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

icon   string  optional    

Must match the regex /^[a-z0-9_]+$/. Não pode conter mais de 64 caracteres. Example: z

order   integer  optional    

Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 127. Example: 17

is_active   boolean  optional    

Example: true

Reorder onboarding

requires authentication

Recebe os uuids dos slides na nova ordem (o primeiro fica com order 1).

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/reorder" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "uuids[]=architecto"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/reorder"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('uuids[]', 'architecto');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "uuids.0": [
            "The selected uuids.0 is invalid."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/onboarding/reorder

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

uuids   string[]     

Must match an existing stored value.

Export onboarding

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/export?orderBy=order%3Aasc&search=architecto&is_active=1&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/export"
);

const params = {
    "orderBy": "order:asc",
    "search": "architecto",
    "is_active": "1",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/onboarding/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id order title kicker created_at Example: order:asc

search   string  optional    

Available fields: uuid kicker title text Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Get onboarding

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

GET api/v1/admin/onboarding/{onboarding_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

onboarding_uuid   integer     

Example: 1

Update onboarding

requires authentication

Para remover a imagem envie delete_image=1.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "kicker=b"\
    --form "title=n"\
    --form "text=g"\
    --form "delete_image="\
    --form "icon=z"\
    --form "order=17"\
    --form "is_active="\
    --form "image=@/tmp/phplLV4eW" 
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('kicker', 'b');
body.append('title', 'n');
body.append('text', 'g');
body.append('delete_image', '');
body.append('icon', 'z');
body.append('order', '17');
body.append('is_active', '');
body.append('image', document.querySelector('input[name="image"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "icon": [
            "The icon field format is invalid."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/onboarding/{onboarding_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

onboarding_uuid   integer     

Example: 1

Body Parameters

kicker   string  optional    

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

title   string  optional    

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

text   string  optional    

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

image   file  optional    

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

delete_image   boolean  optional    

Example: false

icon   string  optional    

Must match the regex /^[a-z0-9_]+$/. Não pode conter mais de 64 caracteres. Example: z

order   integer  optional    

Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 127. Example: 17

is_active   boolean  optional    

Example: false

Remove onboarding

requires authentication

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/onboarding/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

DELETE api/v1/admin/onboarding/{onboarding_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

onboarding_uuid   integer     

Example: 1

Permissions

Autocomplete permissions

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/permissions/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/permissions/autocomplete"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/permissions/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

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

search   string  optional    

Available fields: uuid key name group Example: architecto

Policy Cookies

Get privacy policy

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/policy-cookies" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/policy-cookies"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/policy-cookies

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Update privacy policy

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/policy-cookies" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "name=b"\
    --form "text=n"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/policy-cookies"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('name', 'b');
body.append('text', 'n');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/policy-cookies

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 191 caracteres. Example: b

text   string  optional    

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

Privacy Policy

Get privacy policy

requires authentication

Título e texto (HTML).

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/privacy-policy" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/privacy-policy"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "name": "Política de privacidade",
        "text": "<h3>1. Quais dados coletamos</h3><p>Dados de cadastro e dados de uso do app.</p>",
        "created_at": "2026-10-22T10:00:00+00:00",
        "updated_at": "2026-10-22T10:00:00+00:00",
        "deleted_at": null
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/privacy-policy

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Update privacy policy

requires authentication

O texto é o HTML do editor: a API remove o que poderia executar código (scripts, eventos, iframes) e guarda a formatação. O app recebe esse texto dividido em seções a cada título (GET pages/privacidade).

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/privacy-policy" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "name=b"\
    --form "text=n"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/privacy-policy"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('name', 'b');
body.append('text', 'n');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "name": "Política de privacidade",
        "text": "<h3>1. Quais dados coletamos</h3><p>Dados de cadastro e dados de uso do app.</p>",
        "created_at": "2026-10-22T10:00:00+00:00",
        "updated_at": "2026-10-22T11:30:00+00:00",
        "deleted_at": null
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "text": [
            "The text field is required."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/privacy-policy

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 191 caracteres. Example: b

text   string  optional    

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

Push City

Get all push

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&city_id=uuid&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "city_id": "uuid",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/push-city

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 title body scheduled_at send_at created_at city.name Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid title body city.name Example: architecto

city_id   string  optional    

City relationship Example: uuid

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Create push

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "city_id=6ff8f7f6-1eb3-3525-be4a-3932c805afed"\
    --form "title=g"\
    --form "body=z"\
    --form "url=http://rempel.com/sunt-nihil-accusantium-harum-mollitia"\
    --form "scheduled_at=2052-12-12"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('city_id', '6ff8f7f6-1eb3-3525-be4a-3932c805afed');
body.append('title', 'g');
body.append('body', 'z');
body.append('url', 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia');
body.append('scheduled_at', '2052-12-12');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/push-city

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

city_id   string     

Deve ser um UUID válido. Must match an existing stored value. Example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed

title   string     

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

body   string     

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

url   string  optional    

Must be a valid URL. Não pode conter mais de 191 caracteres. Example: http://rempel.com/sunt-nihil-accusantium-harum-mollitia

scheduled_at   string  optional    

Deve ser uma data válida. Deve conter uma data posterior a now. Example: 2052-12-12

Autocomplete

requires authentication

List a maximum of 50 items.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/autocomplete"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/push-city/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name email is_active created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name email Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

Update push

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "city_id=6ff8f7f6-1eb3-3525-be4a-3932c805afed"\
    --form "title=g"\
    --form "body=z"\
    --form "url=http://rempel.com/sunt-nihil-accusantium-harum-mollitia"\
    --form "scheduled_at=2052-12-12"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('city_id', '6ff8f7f6-1eb3-3525-be4a-3932c805afed');
body.append('title', 'g');
body.append('body', 'z');
body.append('url', 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia');
body.append('scheduled_at', '2052-12-12');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/push-city/{push_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

push_uuid   integer     

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

Body Parameters

city_id   string  optional    

Deve ser um UUID válido. Must match an existing stored value. Example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed

title   string  optional    

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

body   string  optional    

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

url   string  optional    

Must be a valid URL. Não pode conter mais de 191 caracteres. Example: http://rempel.com/sunt-nihil-accusantium-harum-mollitia

scheduled_at   string  optional    

Deve ser uma data válida. Deve conter uma data posterior a now. Example: 2052-12-12

Export push

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&city_id=uuid&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/export"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "city_id": "uuid",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Request      

GET api/v1/admin/push-city/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id title body scheduled_at send_at created_at city.name Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid title body city.name Example: architecto

city_id   string  optional    

City relationship Example: uuid

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Get push

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/push-city/{push_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

push_uuid   integer     

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

Remove push

requires authentication

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-city/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/admin/push-city/{push_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

push_uuid   integer     

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

Push General

Notificações push do app (painel "Notificações push"): envio manual (título, texto, público todos/selecionados, conteúdo ou link opcional, agendamento opcional) e o histórico de tudo o que foi enviado, inclusive os avisos automáticos (source: content conteúdo publicado, live_webinar webinar ao vivo, tv TV Unity ao vivo).

O envio é feito pelo comando push-general:send (agendador, a cada minuto) pelo Expo Push (PUSH_DRIVER=expo; no local e nos testes, PUSH_DRIVER=log só grava em storage/logs/push.log). Só recebe quem está com a chave Notificações ligada no app; aparelhos com token inválido são removidos. status: scheduled (agendado), queued (na fila, sai em até 1 minuto) ou sent (enviado, com total_users, total_devices e total_failed).

Get all push

requires authentication

Histórico das notificações push (manuais e automáticas).

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general?limit=20&page=1&orderBy=id%3Adesc&search=architecto&source=manual&status=sent&audience=all&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "id:desc",
    "search": "architecto",
    "source": "manual",
    "status": "sent",
    "audience": "all",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
            "title": "Novo webinar disponível",
            "body": "Otimização de Margem em Centros Cirúrgicos",
            "url": null,
            "audience": "all",
            "source": "manual",
            "status": "sent",
            "content": {
                "uuid": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
                "type": "webinar",
                "title": "Otimização de Margem em Centros Cirúrgicos"
            },
            "user": {
                "uuid": "4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f",
                "name": "Admin Unity Health"
            },
            "customers_count": 0,
            "total_users": 12,
            "total_devices": 14,
            "total_failed": 1,
            "scheduled_at": null,
            "send_at": "2026-10-22T10:01:00-03:00",
            "created_at": "2026-10-22T10:00:00-03:00",
            "updated_at": "2026-10-22T10:00:00-03:00",
            "deleted_at": null
        }
    ],
    "links": {},
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "per_page": 20,
        "to": 1,
        "total": 1
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/push-general

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 title body scheduled_at send_at created_at Example: id:desc

search   string  optional    

Available fields: uuid title body Example: architecto

source   string  optional    

Available values: manual content live_webinar tv Example: manual

status   string  optional    

Available values: scheduled queued sent Example: sent

audience   string  optional    

Available values: all selected Example: all

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Create push

requires authentication

Envio manual. Sem scheduled_at, sai em até 1 minuto. audience=selected exige customers (uuids dos usuários do app). content (uuid) faz o app abrir o conteúdo ao tocar no push; url abre um link.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (201):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "title": "Novo webinar disponível",
        "body": "Assista agora.",
        "url": null,
        "audience": "all",
        "source": "manual",
        "status": "queued",
        "content": null,
        "total_users": null,
        "scheduled_at": null,
        "send_at": null,
        "created_at": "2026-10-22T10:00:00-03:00",
        "updated_at": "2026-10-22T10:00:00-03:00"
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "customers": [
            "Escolha ao menos um usuário."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/push-general

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Autocomplete

requires authentication

List a maximum of 50 items.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/autocomplete"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/push-general/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name email is_active created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name email Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

Update push

requires authentication

Só enquanto não foi enviado.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (201):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "title": "Novo webinar disponível",
        "status": "scheduled"
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "status": [
            "Este push já foi enviado."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/push-general/{push_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

push_uuid   integer     

Example: 1

Export push

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&source=manual&status=sent&audience=all&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/export"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "source": "manual",
    "status": "sent",
    "audience": "all",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Request      

GET api/v1/admin/push-general/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id title body scheduled_at send_at created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid title body Example: architecto

source   string  optional    

Available values: manual content live_webinar tv Example: manual

status   string  optional    

Available values: scheduled queued sent Example: sent

audience   string  optional    

Available values: all selected Example: all

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Get push

requires authentication

Detalhe com os usuários selecionados e o resultado do envio (api_response: driver, totais e amostra dos tickets do Expo).

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "title": "Novo webinar disponível",
        "body": "Assista agora.",
        "audience": "selected",
        "source": "manual",
        "status": "sent",
        "customers": [
            {
                "uuid": "1d2f4e0a-9a51-6f1d-2b3c-4d5e9b1f6c1e",
                "name": "Mariana Vasconcellos",
                "email": "mariana@unityhealth.com.br"
            }
        ],
        "total_users": 1,
        "total_devices": 1,
        "total_failed": 0,
        "api_response": {
            "driver": "log",
            "users": 1,
            "devices": 1,
            "failed": 0,
            "removed": 0,
            "tickets": [
                {
                    "status": "ok",
                    "id": "log-..."
                }
            ]
        }
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

GET api/v1/admin/push-general/{push_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

push_uuid   integer     

Example: 1

Remove push

requires authentication

Cancela um push que ainda não foi enviado.

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-general/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204):

Empty response
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

DELETE api/v1/admin/push-general/{push_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

push_uuid   integer     

Example: 1

Push State

Get all push

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&state_id=uuid&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "state_id": "uuid",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/push-state

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 title body scheduled_at send_at created_at state.name Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid title body state.name Example: architecto

state_id   string  optional    

State relationship Example: uuid

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Create push

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "state_id=6ff8f7f6-1eb3-3525-be4a-3932c805afed"\
    --form "title=g"\
    --form "body=z"\
    --form "url=http://rempel.com/sunt-nihil-accusantium-harum-mollitia"\
    --form "scheduled_at=2052-12-12"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('state_id', '6ff8f7f6-1eb3-3525-be4a-3932c805afed');
body.append('title', 'g');
body.append('body', 'z');
body.append('url', 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia');
body.append('scheduled_at', '2052-12-12');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/push-state

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

state_id   string     

Deve ser um UUID válido. Must match an existing stored value. Example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed

title   string     

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

body   string     

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

url   string  optional    

Must be a valid URL. Não pode conter mais de 191 caracteres. Example: http://rempel.com/sunt-nihil-accusantium-harum-mollitia

scheduled_at   string  optional    

Deve ser uma data válida. Deve conter uma data posterior a now. Example: 2052-12-12

Autocomplete

requires authentication

List a maximum of 50 items.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/autocomplete"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/push-state/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name email is_active created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name email Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

Update push

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "state_id=6ff8f7f6-1eb3-3525-be4a-3932c805afed"\
    --form "title=g"\
    --form "body=z"\
    --form "url=http://rempel.com/sunt-nihil-accusantium-harum-mollitia"\
    --form "scheduled_at=2052-12-12"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('state_id', '6ff8f7f6-1eb3-3525-be4a-3932c805afed');
body.append('title', 'g');
body.append('body', 'z');
body.append('url', 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia');
body.append('scheduled_at', '2052-12-12');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/push-state/{push_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

push_uuid   integer     

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

Body Parameters

state_id   string  optional    

Deve ser um UUID válido. Must match an existing stored value. Example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed

title   string  optional    

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

body   string  optional    

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

url   string  optional    

Must be a valid URL. Não pode conter mais de 191 caracteres. Example: http://rempel.com/sunt-nihil-accusantium-harum-mollitia

scheduled_at   string  optional    

Deve ser uma data válida. Deve conter uma data posterior a now. Example: 2052-12-12

Export push

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&state_id=uuid&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/export"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "state_id": "uuid",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Request      

GET api/v1/admin/push-state/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id title body scheduled_at send_at created_at state.name Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid title body state.name Example: architecto

state_id   string  optional    

State relationship Example: uuid

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Get push

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/push-state/{push_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

push_uuid   integer     

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

Remove push

requires authentication

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-state/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/admin/push-state/{push_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

push_uuid   integer     

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

Push User

Get all push

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&customer_id=uuid&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "customer_id": "uuid",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/push-user

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 title body scheduled_at send_at created_at user.name Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid title body user.name Example: architecto

customer_id   string  optional    

Customer relationship Example: uuid

created_at   string[]  optional    

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

Create push

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "customer_id=6ff8f7f6-1eb3-3525-be4a-3932c805afed"\
    --form "title=g"\
    --form "body=z"\
    --form "url=http://rempel.com/sunt-nihil-accusantium-harum-mollitia"\
    --form "scheduled_at=2052-12-12"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('customer_id', '6ff8f7f6-1eb3-3525-be4a-3932c805afed');
body.append('title', 'g');
body.append('body', 'z');
body.append('url', 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia');
body.append('scheduled_at', '2052-12-12');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/push-user

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

customer_id   string     

Deve ser um UUID válido. Must match an existing stored value. Example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed

title   string     

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

body   string     

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

url   string  optional    

Must be a valid URL. Não pode conter mais de 191 caracteres. Example: http://rempel.com/sunt-nihil-accusantium-harum-mollitia

scheduled_at   string  optional    

Deve ser uma data válida. Deve conter uma data posterior a now. Example: 2052-12-12

Autocomplete

requires authentication

List a maximum of 50 items.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/autocomplete"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/push-user/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name email is_active created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name email Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

Update push

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "customer_id=6ff8f7f6-1eb3-3525-be4a-3932c805afed"\
    --form "title=g"\
    --form "body=z"\
    --form "url=http://rempel.com/sunt-nihil-accusantium-harum-mollitia"\
    --form "scheduled_at=2052-12-12"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('customer_id', '6ff8f7f6-1eb3-3525-be4a-3932c805afed');
body.append('title', 'g');
body.append('body', 'z');
body.append('url', 'http://rempel.com/sunt-nihil-accusantium-harum-mollitia');
body.append('scheduled_at', '2052-12-12');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/push-user/{push_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

push_uuid   integer     

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

Body Parameters

customer_id   string  optional    

Deve ser um UUID válido. Must match an existing stored value. Example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed

title   string  optional    

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

body   string  optional    

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

url   string  optional    

Must be a valid URL. Não pode conter mais de 191 caracteres. Example: http://rempel.com/sunt-nihil-accusantium-harum-mollitia

scheduled_at   string  optional    

Deve ser uma data válida. Deve conter uma data posterior a now. Example: 2052-12-12

Export push

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&customer_id=uuid&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/export"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "customer_id": "uuid",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Request      

GET api/v1/admin/push-user/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id title body scheduled_at send_at created_at user.name Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid title body user.name Example: architecto

customer_id   string  optional    

Customer relationship Example: uuid

created_at   string[]  optional    

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

Get push

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/push-user/{push_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

push_uuid   integer     

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

Remove push

requires authentication

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/push-user/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/admin/push-user/{push_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

push_uuid   integer     

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

Roles

Get all roles

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/roles

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 description created_at updated_at permissions_count users_count Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name description Example: architecto

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Create role

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "name=b"\
    --form "description=Et animi quos velit et fugiat."\
    --form "permissions[]=5707ca55-f609-3528-be8b-1baeaee1567e"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('name', 'b');
body.append('description', 'Et animi quos velit et fugiat.');
body.append('permissions[]', '5707ca55-f609-3528-be8b-1baeaee1567e');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/roles

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

name   string     

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

description   string     

Não pode conter mais de 100 caracteres. Example: Et animi quos velit et fugiat.

permissions   string[]     

Deve ser um UUID válido.

Autocomplete

requires authentication

List a maximum of 50 items.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/autocomplete"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/roles/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name email is_active created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name email Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

Export roles

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/export"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Request      

GET api/v1/admin/roles/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name description created_at updated_at permissions_count users_count Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name description Example: architecto

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Get role

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/roles/{role_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

role_uuid   integer     

Example: 1

Update role

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "name=b"\
    --form "description=Et animi quos velit et fugiat."\
    --form "permissions[]=5707ca55-f609-3528-be8b-1baeaee1567e"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('name', 'b');
body.append('description', 'Et animi quos velit et fugiat.');
body.append('permissions[]', '5707ca55-f609-3528-be8b-1baeaee1567e');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/roles/{role_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

role_uuid   integer     

Example: 1

Body Parameters

name   string  optional    

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

description   string  optional    

Não pode conter mais de 100 caracteres. Example: Et animi quos velit et fugiat.

permissions   string[]     

Deve ser um UUID válido.

Remove role

requires authentication

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/roles/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/admin/roles/{role_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

role_uuid   integer     

Example: 1

Settings General

Get settings

requires authentication

Inclui o WhatsApp do suporte (whatsapp_support e whatsapp_message), usado no botão "Continuar por lá" do app.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/settings/general" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/settings/general"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "app_url_android": "https://play.google.com/store/apps/details?id=br.com.unityhealth",
        "app_url_ios": "https://apps.apple.com/br/app/unity-health/id0000000000",
        "email_support": "suporte@unityhealth.com.br",
        "phone_support": "(11) 99999-9999",
        "url_site": "https://unityhealth.com.br",
        "whatsapp_support": "(11) 99999-9999",
        "whatsapp_message": "Olá! Preciso de ajuda com o app Unity Health."
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/settings/general

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Update settings

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/settings/general" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "app_url_android=http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html"\
    --form "app_url_ios=https://www.runte.com/ab-provident-perspiciatis-quo-omnis-nostrum-aut-adipisci"\
    --form "email_support=theo.hauck@example.com"\
    --form "phone_support=architecto"\
    --form "url_site=architecto"\
    --form "whatsapp_support=architecto"\
    --form "whatsapp_message=n"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/settings/general"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('app_url_android', 'http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html');
body.append('app_url_ios', 'https://www.runte.com/ab-provident-perspiciatis-quo-omnis-nostrum-aut-adipisci');
body.append('email_support', 'theo.hauck@example.com');
body.append('phone_support', 'architecto');
body.append('url_site', 'architecto');
body.append('whatsapp_support', 'architecto');
body.append('whatsapp_message', 'n');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (204):

Empty response
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "whatsapp_support": [
            "The whatsapp support is invalid."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/settings/general

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

app_url_android   string  optional    

Must be a valid URL. Example: http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html

app_url_ios   string  optional    

Must be a valid URL. Example: https://www.runte.com/ab-provident-perspiciatis-quo-omnis-nostrum-aut-adipisci

email_support   string  optional    

Deve ser um endereço de email válido. Example: theo.hauck@example.com

phone_support   string  optional    

Example: architecto

url_site   string  optional    

Example: architecto

whatsapp_support   string  optional    

Example: architecto

whatsapp_message   string  optional    

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

Settings Notifications

Get settings

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/settings/notifications" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/settings/notifications"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/settings/notifications

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Update settings

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/settings/notifications" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "delete_account[]=gbailey@example.net"\
    --form "create_account[]=rempel.chadrick@example.org"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/settings/notifications"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('delete_account[]', 'gbailey@example.net');
body.append('create_account[]', 'rempel.chadrick@example.org');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/settings/notifications

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

delete_account   string[]     

Deve ser um endereço de email válido.

create_account   string[]     

Deve ser um endereço de email válido.

Social Networks

Get all social networks

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/social-networks?limit=20&page=1&orderBy=order%3Aasc&search=architecto&is_active=1&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/social-networks"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "order:asc",
    "search": "architecto",
    "is_active": "1",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
            "network": "instagram",
            "url": "https://www.instagram.com/unityhealth",
            "order": 1,
            "is_active": true,
            "created_at": "2026-10-22T10:00:00+00:00",
            "updated_at": "2026-10-22T10:00:00+00:00",
            "deleted_at": null
        }
    ],
    "links": {
        "first": "http://localhost/api/v1/admin/social-networks?page=1",
        "last": "http://localhost/api/v1/admin/social-networks?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "path": "http://localhost/api/v1/admin/social-networks",
        "per_page": 20,
        "to": 1,
        "total": 1
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/social-networks

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 network order is_active created_at Default: order:asc|id:asc Example: order:asc

search   string  optional    

Available fields: uuid network url Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Create social network

requires authentication

Uma rede de cada tipo. Sem order, a rede vai para o fim da lista.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/social-networks" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "network=architecto"\
    --form "url=http://bailey.com/"\
    --form "order=17"\
    --form "is_active=1"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/social-networks"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('network', 'architecto');
body.append('url', 'http://bailey.com/');
body.append('order', '17');
body.append('is_active', '1');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (201):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "network": "instagram",
        "url": "https://www.instagram.com/unityhealth",
        "order": 1,
        "is_active": true,
        "created_at": "2026-10-22T10:00:00+00:00",
        "updated_at": "2026-10-22T10:00:00+00:00"
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "network": [
            "The network has already been taken."
        ],
        "url": [
            "The url must be a valid URL."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/social-networks

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

network   string     

Example: architecto

url   string  optional    

Must be a valid URL. Não pode conter mais de 191 caracteres. Example: http://bailey.com/

order   integer  optional    

Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 2147483647. Example: 17

is_active   boolean  optional    

Example: true

Reorder social networks

requires authentication

Recebe os uuids das redes na nova ordem (a primeira fica com order 1).

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/social-networks/reorder" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "uuids[]=architecto"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/social-networks/reorder"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('uuids[]', 'architecto');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
            "network": "instagram",
            "url": "https://www.instagram.com/unityhealth",
            "order": 1,
            "is_active": true,
            "created_at": "2026-10-22T10:00:00+00:00",
            "updated_at": "2026-10-22T11:30:00+00:00",
            "deleted_at": null
        }
    ]
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "uuids.0": [
            "The selected uuids.0 is invalid."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/social-networks/reorder

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

uuids   string[]     

Must match an existing stored value.

Export social networks

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/social-networks/export?orderBy=order%3Aasc&search=architecto&is_active=1&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/social-networks/export"
);

const params = {
    "orderBy": "order:asc",
    "search": "architecto",
    "is_active": "1",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/social-networks/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id network order is_active created_at Example: order:asc

search   string  optional    

Available fields: uuid network url Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Get social network

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/social-networks/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/social-networks/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "network": "instagram",
        "url": "https://www.instagram.com/unityhealth",
        "order": 1,
        "is_active": true,
        "created_at": "2026-10-22T10:00:00+00:00",
        "updated_at": "2026-10-22T10:00:00+00:00",
        "deleted_at": null
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

GET api/v1/admin/social-networks/{social_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

social_uuid   integer     

Example: 1

Update social network

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/social-networks/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "url=http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html"\
    --form "order=5"\
    --form "is_active="
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/social-networks/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('url', 'http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html');
body.append('order', '5');
body.append('is_active', '');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "network": "instagram",
        "url": "https://www.instagram.com/unityhealth",
        "order": 1,
        "is_active": true,
        "created_at": "2026-10-22T10:00:00+00:00",
        "updated_at": "2026-10-22T11:30:00+00:00",
        "deleted_at": null
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "url": [
            "The url must be a valid URL."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/social-networks/{social_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

social_uuid   integer     

Example: 1

Body Parameters

network   string  optional    
url   string  optional    

Must be a valid URL. Não pode conter mais de 191 caracteres. Example: http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html

order   integer  optional    

Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 2147483647. Example: 5

is_active   boolean  optional    

Example: false

Remove social network

requires authentication

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/social-networks/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/social-networks/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204):

Empty response
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

DELETE api/v1/admin/social-networks/{social_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

social_uuid   integer     

Example: 1

Support Conversations

Atendimento do chat de suporte do app (CMS-05): caixa de conversas, mensagens, resposta, "digitando…", encerrar/reabrir e atendente responsável. Uma conversa por usuário do app; só aparecem conversas com mensagens.

Tempo real (WebSocket - Laravel Reverb, protocolo Pusher)

Sem WebSocket (fallback): a caixa consulta GET support-conversations e GET support-conversations/unread a cada 10 s; a conversa aberta consulta GET support-conversations/{uuid}/messages?after={uuid} a cada 4 s (traz meta.typing).

Get agents status

requires authentication

Status do atendente logado (me) e dos atendentes (usuários ativos com acesso às conversas). online = chave ligada e sinal do painel nos últimos 3 minutos. team_online = há atendente online (é o "Online agora" do app).

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-agents/status" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-agents/status"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "me": {
            "uuid": "4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f",
            "name": "Camila Rocha",
            "is_online": true,
            "online": true,
            "last_seen_at": "2026-10-22T09:41:00-03:00"
        },
        "team_online": true,
        "agents": [
            {
                "uuid": "4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f",
                "name": "Camila Rocha",
                "online": true,
                "last_seen_at": "2026-10-22T09:41:00-03:00"
            }
        ]
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/support-agents/status

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Update my status

requires authentication

Liga ou desliga o atendente logado (chave online/offline) e renova o sinal. Sem is_online, só renova o sinal (o painel manda a cada minuto enquanto a tela de Conversas está aberta). O app é avisado da mudança (support.agent-status).

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-agents/status" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "is_online=1"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-agents/status"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('is_online', '1');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "me": {
            "uuid": "4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f",
            "name": "Camila Rocha",
            "is_online": true,
            "online": true,
            "last_seen_at": "2026-10-22T09:41:00-03:00"
        },
        "team_online": true,
        "agents": []
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

POST api/v1/admin/support-agents/status

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

is_online   boolean  optional    

Example: true

Get all conversations

requires authentication

Caixa de conversas. Só conversas com mensagens. unread_count = mensagens do usuário ainda não lidas pelo atendimento.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations?limit=20&page=1&orderBy=last_message_at%3Adesc&search=mariana&status=open&unread=1&agent=me&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "last_message_at:desc",
    "search": "mariana",
    "status": "open",
    "unread": "1",
    "agent": "me",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
            "status": "open",
            "customer": {
                "uuid": "1d2f4e0a-9a51-6f1d-2b3c-4d5e9b1f6c1e",
                "name": "Mariana Vasconcellos",
                "treatment": "Dra.",
                "email": "mariana@unityhealth.com.br",
                "phone": "+5511999990000",
                "avatar": null,
                "is_active": true,
                "deleted": false
            },
            "agent": {
                "uuid": "4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f",
                "name": "Camila Rocha"
            },
            "last_message": {
                "uuid": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
                "from": "customer",
                "text": "Tenho uma dúvida sobre um boleto.",
                "created_at": "2026-10-22T09:41:00-03:00"
            },
            "unread_count": 1,
            "customer_typing": false,
            "customer_online": true,
            "last_message_at": "2026-10-22T09:41:00-03:00",
            "customer_seen_at": "2026-10-22T09:41:00-03:00",
            "closed_at": null,
            "created_at": "2026-10-22T09:40:00-03:00",
            "updated_at": "2026-10-22T09:41:00-03:00",
            "deleted_at": null
        }
    ],
    "links": {},
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "per_page": 20,
        "to": 1,
        "total": 1
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/support-conversations

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 last_message_at created_at Default: last_message_at:desc Example: last_message_at:desc

search   string  optional    

Busca pelo nome ou e-mail do usuário do app. Example: mariana

status   string  optional    

Available values: open closed Example: open

unread   integer  optional    

1 = só com mensagens não lidas. Example: 1

agent   string  optional    

me (minhas), none (sem responsável) ou uuid do atendente. Example: me

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Unread summary

requires authentication

Total de conversas abertas com mensagens não lidas e total dessas mensagens (balão do menu "Suporte").

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/unread" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/unread"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "conversations": 2,
        "messages": 3,
        "open": 5
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/support-conversations/unread

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Export conversations

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/export?orderBy=last_message_at%3Adesc&search=architecto&status=open&unread=1&agent=architecto&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/export"
);

const params = {
    "orderBy": "last_message_at:desc",
    "search": "architecto",
    "status": "open",
    "unread": "1",
    "agent": "architecto",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/support-conversations/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id last_message_at created_at Example: last_message_at:desc

search   string  optional    

Busca pelo nome ou e-mail do usuário do app. Example: architecto

status   string  optional    

Available values: open closed Example: open

unread   integer  optional    

Example: 1

agent   string  optional    

me, none ou uuid do atendente. Example: architecto

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Get conversation

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "status": "open",
        "customer": {
            "uuid": "1d2f4e0a-9a51-6f1d-2b3c-4d5e9b1f6c1e",
            "name": "Mariana Vasconcellos"
        },
        "agent": null,
        "unread_count": 0,
        "customer_typing": false,
        "customer_online": false,
        "last_message_at": "2026-10-22T09:41:00-03:00",
        "closed_at": null
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

GET api/v1/admin/support-conversations/{conversation_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

conversation_uuid   integer     

Example: 1

Get messages

requires authentication

Mensagens da conversa, das mais novas para as mais antigas, 30 por página. before = uuid da mais antiga já carregada; after = uuid da mais nova já carregada (consulta periódica sem WebSocket, até 100). meta.typing = o usuário do app está digitando; meta.customer_online = o app deu sinal no chat nos últimos 45 s.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/messages?before=5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9&after=5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/messages"
);

const params = {
    "before": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
    "after": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
            "from": "customer",
            "text": "Tenho uma dúvida sobre um boleto.",
            "read_at": null,
            "agent": null,
            "created_at": "2026-10-22T09:41:00-03:00",
            "updated_at": "2026-10-22T09:41:00-03:00"
        }
    ],
    "meta": {
        "has_more": false,
        "typing": false,
        "customer_online": true,
        "status": "open",
        "unread_count": 1
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

GET api/v1/admin/support-conversations/{conversation_uuid}/messages

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

conversation_uuid   integer     

Example: 1

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. Example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9

Send message

requires authentication

Responde o usuário do app. Reabre a conversa encerrada; sem responsável, quem responde passa a ser o responsável. O app recebe na hora (WebSocket ou consulta periódica) e, se não estiver aberto no chat, por push.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/messages" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/messages"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (201):


{
    "data": {
        "uuid": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
        "from": "agent",
        "text": "Claro! Pode me dizer o mês de referência?",
        "read_at": null,
        "agent": {
            "uuid": "4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f",
            "name": "Camila Rocha"
        },
        "created_at": "2026-10-22T09:42:00-03:00",
        "updated_at": "2026-10-22T09:42:00-03:00"
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "text": [
            "Escreva a sua mensagem."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/support-conversations/{conversation_uuid}/messages

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

conversation_uuid   integer     

Example: 1

Body Parameters

text   string  optional    

Mark as read

requires authentication

Marca como lidas as mensagens do usuário do app (ao abrir a conversa ou receber mensagem com ela aberta).

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/read" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/read"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "read": 2
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

POST api/v1/admin/support-conversations/{conversation_uuid}/read

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

conversation_uuid   integer     

Example: 1

Typing

requires authentication

Mostra "digitando…" no app (mande no máximo a cada 3 s enquanto digita; vale por 8 s). Responde 204.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/typing" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/typing"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (204):

Empty response
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

POST api/v1/admin/support-conversations/{conversation_uuid}/typing

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

conversation_uuid   integer     

Example: 1

Close conversation

requires authentication

Encerra (marca como resolvida). O app é avisado (support.conversation, action: closed); uma nova mensagem reabre.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/close" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/close"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "status": "closed",
        "closed_at": "2026-10-22T10:00:00-03:00",
        "closed_by": {
            "uuid": "4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f",
            "name": "Camila Rocha"
        }
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "status": [
            "Esta conversa já está encerrada."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/support-conversations/{conversation_uuid}/close

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

conversation_uuid   integer     

Example: 1

Reopen conversation

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/reopen" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/reopen"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "status": "open",
        "closed_at": null
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "status": [
            "Esta conversa já está aberta."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/support-conversations/{conversation_uuid}/reopen

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

conversation_uuid   integer     

Example: 1

Assign agent

requires authentication

Define o atendente responsável (o nome dele aparece no app). agent vazio tira o responsável.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/assign" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "agent=b"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-conversations/1/assign"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('agent', 'b');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "status": "open",
        "agent": {
            "uuid": "4e0a9a51-6f1d-2b3c-4d5e-9b1f6c1e1d2f",
            "name": "Camila Rocha"
        }
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "agent": [
            "Escolha um atendente ativo com acesso às conversas."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/support-conversations/{conversation_uuid}/assign

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

conversation_uuid   integer     

Example: 1

Body Parameters

agent   string  optional    

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

Authorize realtime channel

requires authentication

Autoriza o atendente do painel a escutar um canal privado do WebSocket (Laravel Reverb, protocolo Pusher). Use como authEndpoint do pusher-js / laravel-echo, com o Authorization: Bearer do login. Canais: private-support.inbox e private-support.conversation.{uuid} (permissão support-conversations.list) e private-support.status. Canal não permitido: 403.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/broadcasting/auth" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "socket_id=b"\
    --form "channel_name=n"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/broadcasting/auth"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('socket_id', 'b');
body.append('channel_name', 'n');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "auth": "app-key:5f0a8c...e1"
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "This action is unauthorized.",
    "code": 403,
    "type": "AccessDeniedHttpException"
}
 

Request      

POST api/v1/admin/broadcasting/auth

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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

Support Quick Replies

Sugestões rápidas do chat de suporte do app (ex.: "Dúvida sobre boleto"): aparecem como botões acima do campo de mensagem (quick_replies de GET support/conversation), na ordem (order), só as ativas. Tocar envia o texto.

Get all quick replies

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies?limit=20&page=1&orderBy=order%3Aasc&search=architecto&is_active=1&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "order:asc",
    "search": "architecto",
    "is_active": "1",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
            "text": "Dúvida sobre boleto",
            "order": 1,
            "is_active": true,
            "created_at": "2026-10-22T10:00:00-03:00",
            "updated_at": "2026-10-22T10:00:00-03:00",
            "deleted_at": null
        }
    ],
    "links": {},
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "per_page": 20,
        "to": 1,
        "total": 1
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/support-quick-replies

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 text order is_active created_at Default: order:asc|id:asc Example: order:asc

search   string  optional    

Available fields: uuid text Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Create quick reply

requires authentication

Sem order, a sugestão vai para o fim da lista.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "text=b"\
    --form "order=22"\
    --form "is_active="
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('text', 'b');
body.append('order', '22');
body.append('is_active', '');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (201):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "text": "Dúvida sobre boleto",
        "order": 4,
        "is_active": true,
        "created_at": "2026-10-22T10:00:00-03:00",
        "updated_at": "2026-10-22T10:00:00-03:00"
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "text": [
            "The text has already been taken."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/support-quick-replies

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

text   string     

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

order   integer  optional    

Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 2147483647. Example: 22

is_active   boolean  optional    

Example: false

Reorder quick replies

requires authentication

Recebe os uuids das sugestões na nova ordem (a primeira fica com order 1).

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/reorder" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "uuids[]=architecto"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/reorder"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('uuids[]', 'architecto');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
            "text": "Dúvida sobre boleto",
            "order": 1,
            "is_active": true,
            "created_at": "2026-10-22T10:00:00-03:00",
            "updated_at": "2026-10-22T11:30:00-03:00",
            "deleted_at": null
        }
    ]
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "uuids.0": [
            "The selected uuids.0 is invalid."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/support-quick-replies/reorder

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

uuids   string[]     

Must match an existing stored value.

Export quick replies

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/export?orderBy=order%3Aasc&search=architecto&is_active=1&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/export"
);

const params = {
    "orderBy": "order:asc",
    "search": "architecto",
    "is_active": "1",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/support-quick-replies/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id text order is_active created_at Example: order:asc

search   string  optional    

Available fields: uuid text Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Get quick reply

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "text": "Dúvida sobre boleto",
        "order": 1,
        "is_active": true,
        "created_at": "2026-10-22T10:00:00-03:00",
        "updated_at": "2026-10-22T10:00:00-03:00",
        "deleted_at": null
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

GET api/v1/admin/support-quick-replies/{reply_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

reply_uuid   integer     

Example: 1

Update quick reply

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "text=b"\
    --form "order=22"\
    --form "is_active="
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('text', 'b');
body.append('order', '22');
body.append('is_active', '');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "text": "Dúvida sobre boleto",
        "order": 1,
        "is_active": true,
        "created_at": "2026-10-22T10:00:00-03:00",
        "updated_at": "2026-10-22T11:30:00-03:00",
        "deleted_at": null
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "text": [
            "The text has already been taken."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/support-quick-replies/{reply_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

reply_uuid   integer     

Example: 1

Body Parameters

text   string  optional    

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

order   integer  optional    

Deve conter um número superior ou igual a 0. Não pode conter um valor superior a 2147483647. Example: 22

is_active   boolean  optional    

Example: false

Remove quick reply

requires authentication

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/support-quick-replies/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204):

Empty response
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

DELETE api/v1/admin/support-quick-replies/{reply_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

reply_uuid   integer     

Example: 1

System Log

Get all logs

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/system-log?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&level=ALERT&method=GET&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/system-log"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "level": "ALERT",
    "method": "GET",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/system-log

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 message url created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid message url Example: architecto

level   string  optional    

Available values: ALERT CRITICAL DEBUG EMERGENCY ERROR INFO NOTICE WARNING Example: ALERT

method   string  optional    

Available values: DELETE GET POST Example: GET

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Autocomplete

requires authentication

List a maximum of 50 items.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/system-log/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/system-log/autocomplete"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/system-log/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name email is_active created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name email Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

Export logs

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/system-log/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&level=ALERT&method=GET&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/system-log/export"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "level": "ALERT",
    "method": "GET",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Request      

GET api/v1/admin/system-log/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id message url created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid message url Example: architecto

level   string  optional    

Available values: ALERT CRITICAL DEBUG EMERGENCY ERROR INFO NOTICE WARNING Example: ALERT

method   string  optional    

Available values: DELETE GET POST Example: GET

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Get log

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/system-log/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/system-log/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/system-log/{log_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

log_uuid   integer     

Example: 1

TV Schedules

Get all schedule items

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules?limit=20&page=1&orderBy=starts_at%3Aasc&search=margem&status=on_air&source=stream&is_active=1&starts_at=&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "starts_at:asc",
    "search": "margem",
    "status": "on_air",
    "source": "stream",
    "is_active": "1",
    "starts_at": "",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
            "title": "Otimização de Margem em Centros Cirúrgicos",
            "description": "Ao vivo do estúdio Unity Health.",
            "cover": "https://cdn.exemplo.com/capa.jpg",
            "cover_is_external": true,
            "source": "stream",
            "stream_url": "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8",
            "playback_url": "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8",
            "starts_at": "2026-10-22T14:00:00-03:00",
            "ends_at": "2026-10-22T15:00:00-03:00",
            "duration_minutes": 60,
            "status": "on_air",
            "is_active": true,
            "created_at": "2026-10-22T10:00:00-03:00",
            "updated_at": "2026-10-22T10:00:00-03:00"
        }
    ],
    "links": {},
    "meta": {
        "current_page": 1,
        "total": 1
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/tv-schedules

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 title starts_at ends_at created_at Example: starts_at:asc

search   string  optional    

Busca no título (e uuid). Example: margem

status   string  optional    

Available values: on_air scheduled finished inactive Example: on_air

source   string  optional    

Available values: stream content Example: stream

is_active   integer  optional    

Available values: 0 1 Example: 1

starts_at   string[]  optional    

Período de início. formato: Y-m-d\TH:i:sP

starts_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Create schedule item

requires authentication

Fonte: source=stream com stream_url (HLS/RTMP do provedor) ou source=content com content (uuid de um vídeo do catálogo). Capa: envie a imagem em cover ou a URL em cover_url; sem capa, o app usa a do vídeo do catálogo. Itens ativos não podem se sobrepor (encostar o fim de um no início do outro pode).

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (201):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "title": "Otimização de Margem em Centros Cirúrgicos",
        "source": "stream",
        "stream_url": "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8",
        "playback_url": "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8",
        "starts_at": "2026-10-22T14:00:00-03:00",
        "ends_at": "2026-10-22T15:00:00-03:00",
        "duration_minutes": 60,
        "status": "scheduled",
        "is_active": true
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "starts_at": [
            "O horário conflita com \"Gestão de OPME\" (22/10/2026 14:30 – 15:30)."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/tv-schedules

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Autocomplete

requires authentication

List a maximum of 50 items, from the next ones.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/autocomplete?search=margem&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/autocomplete"
);

const params = {
    "search": "margem",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
            "title": "Otimização de Margem em Centros Cirúrgicos",
            "starts_at": "2026-10-22T14:00:00-03:00",
            "ends_at": "2026-10-22T15:00:00-03:00",
            "status": "on_air",
            "is_active": true
        }
    ]
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Request      

GET api/v1/admin/tv-schedules/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

search   string  optional    

Busca no título. Example: margem

is_active   integer  optional    

Available values: 0 1 Default: only active. Example: 1

Export schedule

requires authentication

Aceita os mesmos filtros da listagem.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/export?orderBy=starts_at%3Aasc&search=margem&status=scheduled&source=stream&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/export"
);

const params = {
    "orderBy": "starts_at:asc",
    "search": "margem",
    "status": "scheduled",
    "source": "stream",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/tv-schedules/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id title starts_at ends_at created_at Example: starts_at:asc

search   string  optional    

Example: margem

status   string  optional    

Available values: on_air scheduled finished inactive Example: scheduled

source   string  optional    

Available values: stream content Example: stream

is_active   integer  optional    

Available values: 0 1 Example: 1

Get schedule item

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "title": "Otimização de Margem em Centros Cirúrgicos",
        "description": "Ao vivo do estúdio Unity Health.",
        "cover": null,
        "cover_is_external": false,
        "source": "content",
        "stream_url": null,
        "playback_url": "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8",
        "starts_at": "2026-10-22T14:00:00-03:00",
        "ends_at": "2026-10-22T15:00:00-03:00",
        "duration_minutes": 60,
        "status": "scheduled",
        "is_active": true,
        "content": {
            "uuid": "0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b",
            "type": "video",
            "title": "Gestão de OPME"
        }
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

GET api/v1/admin/tv-schedules/{schedule_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

schedule_uuid   integer     

Example: 1

Update schedule item

requires authentication

Envie só os campos que mudam. Para remover a capa envie delete_cover=1. A sobreposição é conferida de novo com o resultado final.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "ends_at": [
            "The ends at field must be a date after starts at."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/tv-schedules/{schedule_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

schedule_uuid   integer     

Example: 1

Remove schedule item

requires authentication

Exclusão lógica: o item sai da grade e do app.

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/tv-schedules/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Example response (204):

Empty response
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

DELETE api/v1/admin/tv-schedules/{schedule_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

schedule_uuid   integer     

Example: 1

Terms Of Use

Get terms of use

requires authentication

Título e texto (HTML).

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/terms-of-use" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/terms-of-use"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "name": "Termos de uso",
        "text": "<h3>1. Aceitação</h3><p>Ao usar o app você concorda com estes termos.</p>",
        "created_at": "2026-10-22T10:00:00+00:00",
        "updated_at": "2026-10-22T10:00:00+00:00",
        "deleted_at": null
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/terms-of-use

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Update terms of use

requires authentication

O texto é o HTML do editor: a API remove o que poderia executar código (scripts, eventos, iframes) e guarda a formatação. O app recebe esse texto dividido em seções a cada título (GET pages/termos).

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/terms-of-use" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "name=b"\
    --form "text=n"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/terms-of-use"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('name', 'b');
body.append('text', 'n');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
        "name": "Termos de uso",
        "text": "<h3>1. Aceitação</h3><p>Ao usar o app você concorda com estes termos.</p>",
        "created_at": "2026-10-22T10:00:00+00:00",
        "updated_at": "2026-10-22T11:30:00+00:00",
        "deleted_at": null
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (422):


{
    "message": "The given data was invalid.",
    "errors": {
        "text": [
            "The text field is required."
        ]
    },
    "code": 422,
    "type": "ValidationException"
}
 

Request      

POST api/v1/admin/terms-of-use

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 191 caracteres. Example: b

text   string  optional    

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

Users

Get all users

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/users?limit=20&page=1&orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/users"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/users

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 email is_active created_at updated_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name email Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Create user

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/users" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "name=b"\
    --form "password_random=1"\
    --form "password=]|{+-0pBNvYg"\
    --form "password_confirmation=hwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppw"\
    --form "email=verlie08@example.net"\
    --form "is_active="\
    --form "roles[]=45e62725-5da9-35c7-82db-977f64d08292"\
    --form "avatar=@/tmp/phpD9v0Xd" 
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/users"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('name', 'b');
body.append('password_random', '1');
body.append('password', ']|{+-0pBNvYg');
body.append('password_confirmation', 'hwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppw');
body.append('email', 'verlie08@example.net');
body.append('is_active', '');
body.append('roles[]', '45e62725-5da9-35c7-82db-977f64d08292');
body.append('avatar', document.querySelector('input[name="avatar"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/users

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Body Parameters

avatar   file  optional    

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

name   string     

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

password_random   boolean     

Example: true

password   string  optional    

This field is required when password_random is 0. Deve conter no mínimo 6 caracteres. Example: ]|{+-0pBNvYg

password_confirmation   string  optional    

This field is required when password_random is 0. The value and password must match. Deve conter no mínimo 6 caracteres. Example: hwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppw

email   string     

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

is_active   boolean  optional    

Example: false

roles   string[]     

Deve ser um UUID válido.

Autocomplete

requires authentication

List a maximum of 50 items.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/users/autocomplete?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/users/autocomplete"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/users/autocomplete

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name email is_active created_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name email Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

Export users

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/users/export?orderBy=id%3Aasc%7Ccreated_at%3Adesc&search=architecto&is_active=1&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/users/export"
);

const params = {
    "orderBy": "id:asc|created_at:desc",
    "search": "architecto",
    "is_active": "1",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Request      

GET api/v1/admin/users/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

orderBy   string  optional    

Available fields: id name email is_active created_at updated_at Example: id:asc|created_at:desc

search   string  optional    

Available fields: uuid name email Example: architecto

is_active   integer  optional    

Available values: 0 1 Example: 1

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Get user

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/users/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/users/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/users/{user_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

user_uuid   integer     

Example: 1

Update user

requires authentication

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/users/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt" \
    --form "is_active=1"\
    --form "roles[]=6ff8f7f6-1eb3-3525-be4a-3932c805afed"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/users/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};

const body = new FormData();
body.append('is_active', '1');
body.append('roles[]', '6ff8f7f6-1eb3-3525-be4a-3932c805afed');

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Request      

POST api/v1/admin/users/{user_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

user_uuid   integer     

Example: 1

Body Parameters

is_active   boolean  optional    

Example: true

roles   string[]     

Deve ser um UUID válido.

Remove user

requires authentication

Example request:
curl --request DELETE \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/users/1" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/users/1"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/admin/users/{user_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

user_uuid   integer     

Example: 1

Webinar Questions

Get all questions

requires authentication

status_counts traz o total por situação com os mesmos filtros (exceto status), para as abas da moderação.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions?limit=20&page=1&orderBy=id%3Adesc&search=ociosidade&live_webinar=5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9&status=pending&created_at=" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions"
);

const params = {
    "limit": "20",
    "page": "1",
    "orderBy": "id:desc",
    "search": "ociosidade",
    "live_webinar": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
    "status": "pending",
    "created_at": "",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "uuid": "7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a",
            "text": "Qual métrica direta teve maior impacto na redução de ociosidade das salas robóticas no Q3?",
            "status": "pending",
            "approved_at": null,
            "answered_at": null,
            "rejected_at": null,
            "created_at": "2026-10-22T14:22:00-03:00",
            "updated_at": "2026-10-22T14:22:00-03:00",
            "live_webinar": {
                "uuid": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
                "status": "live",
                "title": "Otimização de Margem em Centros Cirúrgicos"
            },
            "customer": {
                "uuid": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                "name": "Dr. Marcos Villela",
                "email": "marcos@exemplo.com.br"
            }
        }
    ],
    "links": {},
    "meta": {
        "current_page": 1,
        "total": 1
    },
    "status_counts": {
        "pending": 1,
        "approved": 0,
        "answered": 0,
        "rejected": 0
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/webinar-questions

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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 status created_at Example: id:desc

search   string  optional    

Busca no texto da pergunta e no nome/e-mail do cliente. Example: ociosidade

live_webinar   string  optional    

Uuid da transmissão (webinar ao vivo). Example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9

status   string  optional    

Available values: pending approved rejected answered Example: pending

created_at   string[]  optional    

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

created_at.*   string  optional    

date formato: Y-m-d\TH:i:sP Example: architecto

Export questions

requires authentication

Aceita os mesmos filtros da listagem.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/export?live_webinar=5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9&status=approved&search=ociosidade" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/export"
);

const params = {
    "live_webinar": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
    "status": "approved",
    "search": "ociosidade",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "file_url": "{url}"
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Request      

GET api/v1/admin/webinar-questions/export

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

Query Parameters

live_webinar   string  optional    

Uuid da transmissão. Example: 5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9

status   string  optional    

Available values: pending approved rejected answered Example: approved

search   string  optional    

Example: ociosidade

Get question

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/7" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/7"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a",
        "text": "Qual métrica direta teve maior impacto na redução de ociosidade das salas robóticas no Q3?",
        "status": "approved",
        "approved_at": "2026-10-22T14:23:00-03:00",
        "answered_at": null,
        "rejected_at": null,
        "live_webinar": {
            "uuid": "5c2b1a0f-9e8d-4c7b-a6f5-e4d3c2b1a0f9",
            "status": "live",
            "title": "Otimização de Margem em Centros Cirúrgicos"
        },
        "customer": {
            "uuid": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
            "name": "Dr. Marcos Villela"
        },
        "moderator": {
            "uuid": "9b1f6c1e-1d2f-4e0a-9a51-6f1d2b3c4d5e",
            "name": "Administrador"
        }
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

GET api/v1/admin/webinar-questions/{question_uuid}

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

question_uuid   integer     

Example: 7

Approve question

requires authentication

A pergunta passa a aparecer para todos no app.

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/7/approve" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/7/approve"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a",
        "status": "approved",
        "approved_at": "2026-10-22T14:23:00-03:00",
        "answered_at": null,
        "rejected_at": null
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

POST api/v1/admin/webinar-questions/{question_uuid}/approve

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

question_uuid   integer     

Example: 7

Reject question

requires authentication

A pergunta some da lista pública (o autor continua vendo a sua, como recusada).

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/7/reject" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/7/reject"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a",
        "status": "rejected",
        "approved_at": null,
        "answered_at": null,
        "rejected_at": "2026-10-22T14:23:00-03:00"
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

POST api/v1/admin/webinar-questions/{question_uuid}/reject

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

question_uuid   integer     

Example: 7

Mark question as answered

requires authentication

Marca como respondida ao vivo. Continua visível para todos (e é aprovada, se ainda não estava).

Example request:
curl --request POST \
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/7/answer" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/webinar-questions/7/answer"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "uuid": "7d6c5b4a-3f2e-4d1c-b0a9-8f7e6d5c4b3a",
        "status": "answered",
        "approved_at": "2026-10-22T14:23:00-03:00",
        "answered_at": "2026-10-22T14:40:00-03:00",
        "rejected_at": null
    }
}
 

Example response (401):


{
    "message": "Unauthorized - Check the \"Authorization\" in the header request.",
    "code": 401,
    "type": "AuthenticationException"
}
 

Example response (403):


{
    "message": "You do not have permission for this action.",
    "code": 403,
    "type": "UserPermissionException"
}
 

Example response (404):


{
    "message": "Record not found.",
    "code": 404,
    "type": "ModelNotFoundException"
}
 

Request      

POST api/v1/admin/webinar-questions/{question_uuid}/answer

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

question_uuid   integer     

Example: 7

Webservice

Cities

requires authentication

Search city, must enter at least one of the search fields search or state_abbr
List a maximum of 50 items.

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/webservice/cities?search=architecto&state_abbr=architecto" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/webservice/cities"
);

const params = {
    "search": "architecto",
    "state_abbr": "architecto",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/webservice/cities

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/webservice/states?search=architecto" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/webservice/states"
);

const params = {
    "search": "architecto",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

GET api/v1/admin/webservice/states

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

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

requires authentication

Example request:
curl --request GET \
    --get "http://homologacao.clickweb.com.br:8520/api/v1/admin/webservice/zipcode/architecto" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "Accept-Language: pt"
const url = new URL(
    "http://homologacao.clickweb.com.br:8520/api/v1/admin/webservice/zipcode/architecto"
);

const headers = {
    "Authorization": "Bearer {ACCESS_TOKEN}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "Accept-Language": "pt",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Não autorizado - Verifique a \"Authorization\" no cabeçalho da requisição.",
    "code": 401,
    "type": "Illuminate\\Auth\\AuthenticationException"
}
 

Request      

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

Headers

Authorization        

Example: Bearer {ACCESS_TOKEN}

Content-Type        

Example: multipart/form-data

Accept        

Example: application/json

Accept-Language        

Example: pt

URL Parameters

zipcode   string     

The zipcode. Example: architecto