Leadsmart
  1. Authentication
Leadsmart
  • API Reference
  • Docs
    • LeadSmart API Documentation
    • Services
    • Middleware
    • Integrations
    • Database
    • Architecture
  • Authentication
    • Register
      POST
    • Update User
      PATCH
    • Login
      POST
    • Logout
      POST
    • Reset Password
      POST
    • Change Email
      POST
    • Request Password Reset
      POST
    • Request Email Change
      POST
    • Verify Email
      GET
  • Companies
    • Create Company
      POST
    • Join Company
      POST
    • Get All User Company
      GET
    • Get user Company
      GET
    • Update Company
      PATCH
    • Deactivate Company
      PATCH
    • Activate Company
      PATCH
    • Reset Invite Code
      PATCH
  • Members
    • Create a Member
      POST
    • Get All Member
      GET
    • Get Single Member
      GET
    • Update Member
      PATCH
    • Deactivate Member
      PATCH
    • Activate Member
      PATCH
  • Agendas
    • Create Company Agenda
    • Get All Agendas
    • Get Single Agenda
    • Get Agenda with Appoint
    • Get Available Slots
    • Update Agenda
    • Delete Agenda
    • Activate Agenda
    • Create Agenda Integration
    • Delete Agenda Integration
  • Appointments
    • Create Appointment
    • Get All Appointments
    • Get Appointment
    • Add Members
    • Delete Members
    • Update Appointment
    • Update Date
  • Plans
    • Get Single Plan
    • Get All Plans
    • Create Plan
    • Delete Plan
    • Update Plan
  • Plans Duration
    • Get Single Plan Duration
    • Create Plan Duration
    • Delete Plan Duration
    • Update Plan Duration
  • Company Roles
    • Get Single Company Role
    • Get All Company Roles
    • Create Company Role
    • Delete Company Role
    • Update Company Role
  • Clients
    • Get All Clients
    • Create Client
    • Get Client By Id
    • Update Client
    • Delete Client
  • Client Threads
    • Get All By Client
    • Get All By Instance
    • Create Client Thread
    • Get Client By Id
    • Update Client
    • Delete Client Thread
  • Admin
    • Get All Plans Duration
    • Get All Plans
    • Create Plan
    • Get All Members
    • Get All Companies
  • Chatwoot Accounts
    • Get Chatwoot Account
    • Update Chatwoot Account
    • Delete Chatwoot Account
    • Create Chatwoot Account
  • Integrations
    • Tokens
      • Fetch All Tokens
      • Fetch Token
      • Update Token
      • Remove Token
    • Google
      • Create Auth URL
      • Regenerate Auth URL
      • Renew Google Webhook
    • External Calendar
      • Create External Event
      • Update External Event
      • Delete External Event
      • Validate Calendar Id
      • Fetch External Calendars
  • Messaging
    • Instances
      • Create Instance
      • Get All Instance
      • Get Instance
      • Update Instance
      • Connect Instance
      • Disconnect Instance
      • Activate Instance
      • Deactivate Instance
    • Message
      • Send Message
  • AI Keys
    • Get All AI Keys
    • Get AI Keys By ID
    • Create AI Key
    • Update AI Key
    • Delete AI Key
  • Agent Prompts
    • Get All Agent Prompts
    • Get Agent Prompt By ID
    • Create Agent Prompt
    • Update Agent Prompt
    • Delete Agent Prompt
  • Agent Configuration
    • Get All Agent Configurations
    • Get Agent Configuration By ID
    • Create Agent Configuration
    • Update Agent Configuration
    • Delete Configuration Prompt
  • Agent Prompt Versions
    • Get All Agent Prompt Versions
    • Get Agent Prompt Version By ID
    • Create Agent Prompt Version
    • Update Agent Prompt Version
    • Delete Agent Prompt Version
  1. Authentication

Request Email Change

POST
/auth/request-email-change
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/auth/request-email-change' \
--header 'apikey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJlbXJyZnhic3RyY2dsdXdhbHdkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzM0MTU1NjAsImV4cCI6MjA0ODk5MTU2MH0.pNTwRcjh_Im0m7BKgd9L82OYqMHZx5BSN2_nXLwdcVU' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJlbXJyZnhic3RyY2dsdXdhbHdkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzM0MTU1NjAsImV4cCI6MjA0ODk5MTU2MH0.pNTwRcjh_Im0m7BKgd9L82OYqMHZx5BSN2_nXLwdcVU' \
--header 'Content-Type: application/json' \
--data-raw '/*{
  "email": "miguel@dataxmarketing.com.br",
  "password": "Dataxmarketing2022*"
}*/

{
  "email": "miguel@leadsmart.com.br",
  "newEmail": "miguel@dataxmarketing.com.br"
}'
Response Response Example
{}

Requisição

Parâmetros Header
Content-Type
string 
requerido
Exemplo:
application/json
apikey
string 
requerido
Exemplo:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJlbXJyZnhic3RyY2dsdXdhbHdkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzM0MTU1NjAsImV4cCI6MjA0ODk5MTU2MH0.pNTwRcjh_Im0m7BKgd9L82OYqMHZx5BSN2_nXLwdcVU
Authorization
string 
requerido
Exemplo:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJlbXJyZnhic3RyY2dsdXdhbHdkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzM0MTU1NjAsImV4cCI6MjA0ODk5MTU2MH0.pNTwRcjh_Im0m7BKgd9L82OYqMHZx5BSN2_nXLwdcVU
Parâmetros Bodyapplication/json
email
string 
requerido
newEmail
string 
requerido
Examples

Respostas

🟢200Success
application/json
Body
object {0}
Modificado em 2025-04-24 20:06:01
Página anterior
Request Password Reset
Próxima página
Verify Email
Built with