Leadsmart
  1. Agendas
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
    • Upload Profile Picture
      POST
    • Verify Email
      GET
  • Companies
    • Create Company
    • Join Company
    • Get All User Company
    • Get user Company
    • Update Company
    • Deactivate Company
    • Activate Company
    • Reset Invite Code
  • Members
    • Create a Member
    • Get All Member
    • Get Single Member
    • Update Member
    • Deactivate Member
    • Activate Member
  • Agendas
    • Create Company Agenda
      POST
    • Get All Agendas
      GET
    • Get Single Agenda
      GET
    • Get Agenda with Appoint
      GET
    • Get Available Slots
      GET
    • Update Agenda
      PATCH
    • Delete Agenda
      DELETE
    • Activate Agenda
      PATCH
    • Create Agenda Integration
      POST
    • Delete Agenda Integration
      DELETE
  • 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 Thread By Id
    • Get All By Client
    • Get All By Instance
    • Update Thread
    • 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
  • 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 Active Agent Prompt
    • Get All Agent Prompt Versions
    • Get Agent Prompt Version By ID
    • Create Agent Prompt Version
    • Update Agent Prompt Version
    • Update Agent Prompt Version Copy
    • Delete Agent Prompt Version
  • Messaging
    • Instances
      • Create Instance
      • Get All Instance
      • Get Instance
      • Update Instance
      • Connect Instance
      • Disconnect Instance
      • Activate Instance
      • Deactivate Instance
    • Message
      • Send Message
  • Notifications
    • Get All Notifications
    • Get Notification By ID
    • Create Notification
    • Delete Notification
  • Whatsapp Notification Configuration
    • Get All Whatsapp Notification Configs By Company
    • Create Notification Config
    • Get Notification Config By ID
    • Delete Config Notification
    • Update Config Notification
  • Notification Configurations
    • Get All Notification Configs By Company
    • Create Notification Config
    • Get Notification Config By ID
    • Delete Config Notification
    • Update Config Notification
  1. Agendas

Create Company Agenda

POST
/agendas/{companyId}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/agendas/{{companyId}}' \
--header 'Authorization: {{apiKey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "name": "Dra. Larissa Salvador - Consulta Jurídica Inicial",
  "description": "AGENDA EXCLUSIVA PARA CONSULTAS JURÍDICAS PAGAS: Sessão de 60 minutos com a Dra. ",
  "workTime": {
    "monday": [
      {
        "start": "09:00:00",
        "end": "12:00:00"
      },
      {
        "start": "14:00:00",
        "end": "17:00:00"
      }
    ],
    "tuesday": [
      {
        "start": "09:00:00",
        "end": "12:00:00"
      },
      {
        "start": "14:00:00",
        "end": "17:00:00"
      }
    ],
    "wednesday": [
      {
        "start": "09:00:00",
        "end": "12:00:00"
      },
      {
        "start": "14:00:00",
        "end": "17:00:00"
      }
    ],
    "thursday": [
      {
        "start": "09:00:00",
        "end": "12:00:00"
      },
      {
        "start": "14:00:00",
        "end": "17:00:00"
      }
    ],
    "friday": [],
    "saturday": [],
    "sunday": []
  },
  "slotDuration": {
    "hours": 1,
    "minutes": 0
  },
  "minAdvanceTime": {
    "hours": 24,
    "minutes": 0
  },
  "dailyLimit": 6,
  "timezone": "America/New_York",
  "slotCapacity": 1
}'
Response Response Example
{}

Requisição

Parâmetros Path

Parâmetros Header

Parâmetros Bodyapplication/json

Examples

Respostas

🟢200Success
application/json
Body

Modificado em 2025-08-15 19:37:34
Página anterior
Activate Member
Próxima página
Get All Agendas
Built with