|||||/ /////| |||||))))) |||||\ ''''' /////|| ||||| ))))) |||||\\\ ///// /////||| ||||| ))))) |||||\\\\ ///// /////|||| ||||| ))))) |||||\\\\\ ///// /////||||| |||||\\\\\ ||||| \\\\\ ///// ///// ||||| ||||| \\\\\ ||||| \\\\\ ///// ///// ||||| ||||| \\\\\ ||||| \\\\\ Welcome to the IARA API! For full documentation, check /docs POST /api/accounts ......................................... Create account POST /api/accounts/:accountId/recover-password ............. Recover account password GET /api/me ................................................ Get current account GET /api/accounts/by-clerk-id/:clerkId ..................... Get account by Clerk ID GET /api/accounts/by-email/:email .......................... Get account by email GET /api/accounts .......................................... List accounts GET /api/accounts/count .................................... Count accounts GET /api/accounts/:accountId ............................... Get account by id or username PATCH /api/accounts/:accountId ............................. Update account POST /api/accounts/:accountId/send-email-verification ...... Send email verification POST /api/accounts/:accountId/verify-email-code ............ Verify email with code POST /api/accounts/:accountId/change-password .............. Change account password DELETE /api/accounts/:accountId ............................ Delete account GET /api/accounts/financial-report ......................... Generate financial report POST /api/analytics ........................................ Send analytics events POST /api/analytics/query .................................. Query analytics data GET /api/analytics-clients ................................. Get analytics clients GET /api/analytics-clients/count ........................... Count analytics clients POST /api/analytics-clients ................................ Create analytics client GET /api/analytics-clients/:analyticsClientId .............. Get analytics client by ID PUT /api/analytics-clients/:analyticsClientId .............. Update analytics client DELETE /api/analytics-clients/:analyticsClientId ........... Delete analytics client GET /api/charts ............................................ Get charts GET /api/charts/count ...................................... Count charts POST /api/charts ........................................... Create chart GET /api/charts/:id ........................................ Get chart by ID PUT /api/charts/:id ........................................ Update chart DELETE /api/charts/:id ..................................... Delete chart POST /api/charts/:id/execute ............................... Execute chart query GET /api/correlations ...................................... Get correlations GET /api/correlations/count ................................ Count correlations POST /api/correlations ..................................... Create correlation GET /api/correlations/:id .................................. Get correlation by ID PUT /api/correlations/:id .................................. Update correlation DELETE /api/correlations/:id ............................... Delete correlation GET /api/dashboards ........................................ Get dashboards GET /api/dashboards/count .................................. Count dashboards POST /api/dashboards ....................................... Create dashboard GET /api/dashboards/:id .................................... Get dashboard by ID PUT /api/dashboards/:id .................................... Update dashboard DELETE /api/dashboards/:id ................................. Delete dashboard GET /api/events ............................................ Get events GET /api/events/count ...................................... Count events POST /api/events ........................................... Create event GET /api/events/:id ........................................ Get event by ID PUT /api/events/:id ........................................ Update event DELETE /api/events/:id ..................................... Delete event GET /api/analytics-clients/:analyticsClientId/events ....... Get events by analytics client GET /api/analytics-clients/:analyticsClientId/events/count . Count events by analytics client GET /api/funnels ........................................... Get funnels GET /api/funnels/count ..................................... Count funnels POST /api/funnels .......................................... Create funnel GET /api/funnels/:id ....................................... Get funnel by ID PUT /api/funnels/:id ....................................... Update funnel DELETE /api/funnels/:id .................................... Delete funnel GET /api/providers ......................................... Get providers GET /api/providers/count ................................... Count providers POST /api/providers ........................................ Create provider GET /api/providers/:id ..................................... Get provider by ID PUT /api/providers/:id ..................................... Update provider DELETE /api/providers/:id .................................. Delete provider GET /api/sessions .......................................... Get sessions GET /api/sessions/count .................................... Count sessions POST /api/sessions ......................................... Create session GET /api/sessions/:id ...................................... Get session by ID PUT /api/sessions/:id ...................................... Update session DELETE /api/sessions/:id ................................... Delete session GET /api/analytics-clients/:analyticsClientId/sessions ..... Get sessions by analytics client GET /api/analytics-clients/:analyticsClientId/sessions/count ........................................................... Count sessions by analytics client GET /api/utm-histories ..................................... Get UTM histories GET /api/utm-histories/count ............................... Count UTM histories POST /api/utm-histories .................................... Create UTM history GET /api/utm-histories/:id ................................. Get UTM history by ID PUT /api/utm-histories/:id ................................. Update UTM history DELETE /api/utm-histories/:id .............................. Delete UTM history GET /api/oauth/authorize ................................... Authorization Request POST /api/oauth/token ...................................... Code Exchange POST /api/oauth/link-clerk-account ......................... Link Clerk Account GET /api/social-account-credentials ........................ Get Social Account Credentials GET /api/tokens ............................................ List tokens GET /api/tokens/:token ..................................... Retrieve tokens POST /api/tokens ........................................... Create token DELETE /api/tokens/:token .................................. Delete token GET /api/authorization-code/:code .......................... Retrieve authorization code GET /api/batch-tasks ....................................... Get all batch tasks GET /api/batch-tasks/count ................................. Count batch tasks GET /api/batch-tasks/:id ................................... Get a batch task by ID POST /api/batch-tasks ...................................... Create a new batch task PUT /api/batch-tasks/:id ................................... Update a batch task PATCH /api/batch-tasks/:id/state ........................... Update batch task state DELETE /api/batch-tasks/:id ................................ Soft delete a batch task GET /api/batch-items ....................................... Get batch items GET /api/batch-items/count ................................. Count batch items GET /api/batch-tasks/:id/items ............................. Get batch items for a specific batch task GET /api/batch-tasks/:id/items/count ....................... Count batch items for a specific batch task GET /api/batch-items/:id ................................... Get a batch item by ID POST /api/batch-items ...................................... Create a new batch item POST /api/batch-items/bulk ................................. Create multiple batch items PUT /api/batch-items/:id ................................... Update a batch item PATCH /api/batch-items/:id/state ........................... Update batch item state DELETE /api/batch-items/:id ................................ Soft delete a batch item GET /api/models ............................................ List model pricing GET /api/skus/count ........................................ Count all SKUs GET /api/skus .............................................. List all SKU pricing GET /api/usage ............................................. List usage cycles GET /api/usage/count ....................................... Count usage cycles GET /api/usage/:usageCycle/entries ......................... List usage entries for a specific usage cycle GET /api/usage/:usageCycle/entries/count ................... Count usage entries for a specific usage cycle GET /api/credits/balance ................................... Get credit balance for account GET /api/credits/transactions .............................. List credit transactions for account GET /api/credits/transactions/count ........................ Count credit transactions for account POST /api/credits/purchase ................................. Initiate credit purchase GET /api/credits/can-consume/:amount ....................... Check if account has sufficient credits GET /api/offer-subscriptions ............................... List offer subscriptions GET /api/offer-subscriptions/count ......................... Count offer subscriptions GET /api/offer-subscriptions/:id ........................... Get offer subscription details POST /api/offer-subscriptions .............................. Create new offer subscription PATCH /api/offer-subscriptions/:id ......................... Update offer subscription DELETE /api/offer-subscriptions/:id ........................ Cancel offer subscription POST /api/process-billing .................................. Process recurring billing for due subscriptions GET /api/base-plans ........................................ List base plans GET /api/base-plans/count .................................. Count base plans GET /api/base-plans/:id .................................... Get base plan details GET /api/offers ............................................ List offers GET /api/offers/count ...................................... Count offers GET /api/offers/:id ........................................ Get offer details GET /api/features .......................................... List features GET /api/features/count .................................... Count features GET /api/features/:id ...................................... Get feature details GET /api/account/features .................................. Get account features GET /api/coupons/validate/:code ............................ Validate coupon code GET /api/referrals ......................................... List referrals GET /api/referrals/count ................................... Count referrals GET /api/referrals/:id ..................................... Get referral details GET /api/referrals/by-code/:code ........................... Get referral by code POST /api/referrals ........................................ Create referral PATCH /api/referrals/:id ................................... Update referral DELETE /api/referrals/:id .................................. Delete referral GET /api/billing-settings .................................. Get billing settings for account PUT /api/billing-settings .................................. Update billing settings for account GET /api/auto-renewal/check ................................ Check if auto-renewal is needed POST /api/auto-renewal/trigger ............................. Trigger auto-renewal manually GET /api/auto-renewal/history .............................. Get auto-renewal transaction history GET /api/auto-renewal/history/count ........................ Count auto-renewal history transactions GET /api/checkout-api/health-check ......................... Health check endpoint GET /api/clients ........................................... List checkout clients GET /api/clients/:clientId ................................. Get checkout client by id POST /api/clients .......................................... Create checkout client PATCH /api/clients/:clientId ............................... Update checkout client GET /api/order/:orderId .................................... POST /api/orders/:orderId/pay .............................. GET /api/orders/count ...................................... Count orders GET /api/orders/sum ........................................ Sum order prices GET /api/orders ............................................ Get all orders POST /api/orders ........................................... Create a new order DELETE /api/order/:orderId ................................. Delete an order by ID GET /api/accounts/:accountId/system/orders ................. Get all SYSTEM scoped orders for an account GET /api/orders/:orderId/transactions ...................... List checkout transactions GET /api/orders/:orderId/transactions/:transactionId ....... Get checkout transaction by id POST /api/orders/:orderId/transactions ..................... Create a transcation/Pay an order GET /api/pagarme/customers ................................. Get Pagar.me customer for account POST /api/pagarme/customers ................................ Create Pagar.me customer PUT /api/pagarme/customers ................................. Update Pagar.me customer DELETE /api/pagarme/customers .............................. Delete Pagar.me customer GET /api/wallet/pagarme-cards .............................. List Pagar.me credit cards in wallet POST /api/wallet/pagarme-cards ............................. Add Pagar.me credit card to wallet PUT /api/wallet/pagarme-cards/:cardId/default .............. Set Pagar.me card as default for auto-renewal DELETE /api/wallet/pagarme-cards/:cardId ................... Remove Pagar.me credit card from wallet GET /api/wallet/pagarme-cards/:cardId ...................... Get Pagar.me credit card details GET /api/wallet/pagarme-cards/default ...................... Get default Pagar.me credit card for wallet GET /api/addresses ......................................... List addresses POST /api/addresses ........................................ Create address GET /api/addresses/:id ..................................... Get address by ID PATCH /api/addresses/:id ................................... Update address GET /api/phones ............................................ List phones POST /api/phones ........................................... Create phone GET /api/phones/:id ........................................ Get phone by ID PATCH /api/phones/:id ...................................... Update phone GET /api/leads ............................................. Get all leads with optional filters GET /api/leads/count ....................................... Count leads with optional filters GET /api/leads/:id ......................................... Get a lead by ID POST /api/leads ............................................ Create a new lead PATCH /api/leads/:id ....................................... Update a lead PATCH /api/leads/:id/status ................................ Update lead status DELETE /api/leads/:id ...................................... Delete a lead GET /api/leads/by-status/:status ........................... Get leads by status GET /api/leads/by-status/:status/count ..................... Count leads by status GET /api/leads/by-followup/:followupId ..................... Get leads for a specific followup GET /api/leads/by-followup/:followupId/count ............... Count leads for a specific followup GET /api/leads/by-campaign/:campaignId ..................... Get leads for a specific campaign GET /api/leads/by-campaign/:campaignId/count ............... Count leads for a specific campaign GET /api/leads/by-tag/:tagId ............................... Get leads for a specific tag GET /api/leads/by-tag/:tagId/count ......................... Count leads for a specific tag POST /api/leads/search ..................................... Search leads by specific criteria POST /api/leads/search/query ............................... Search leads by query string GET /api/tags .............................................. Get all tags GET /api/tags/count ........................................ Count all tags GET /api/tags/:id .......................................... Get a tag by ID POST /api/tags ............................................. Create a new tag PATCH /api/tags/:id ........................................ Update a tag DELETE /api/tags/:id ....................................... Delete a tag POST /api/tags/lead-relations/:leadId/:tagId ............... Add tag to lead DELETE /api/tags/lead-relations/:leadId/:tagId ............. Remove tag from lead GET /api/tags/by-lead/:leadId .............................. Get tags for a specific lead GET /api/tags/by-lead/:leadId/count ........................ Count tags for a specific lead GET /api/message-templates ................................. Get all message templates GET /api/message-templates/count ........................... Count all message templates GET /api/message-templates/:id ............................. Get a message template by ID POST /api/message-templates ................................ Create a new message template PATCH /api/message-templates/:id ........................... Update a message template DELETE /api/message-templates/:id .......................... Delete a message template POST /api/message-templates/:id/duplicate .................. Duplicate a message template GET /api/message-templates/type/:type ...................... Get templates by type GET /api/message-templates/whatsapp ........................ Get WhatsApp message templates GET /api/message-templates/whatsapp/count .................. Count WhatsApp message templates GET /api/message-templates/generic-chat .................... Get generic chat message templates GET /api/message-templates/generic-chat/count .............. Count generic chat message templates GET /api/campaigns ......................................... Get all campaigns GET /api/campaigns/count ................................... Count all campaigns GET /api/campaigns/:id ..................................... Get a campaign by ID POST /api/campaigns ........................................ Create a new campaign PATCH /api/campaigns/:id ................................... Update a campaign PATCH /api/campaigns/:id/status ............................ Update campaign status DELETE /api/campaigns/:id .................................. Delete a campaign GET /api/campaigns/status/:status .......................... Get campaigns by status GET /api/campaigns/status/:status/count .................... Count campaigns by status GET /api/campaigns/scheduled ............................... Get scheduled campaigns ready to run GET /api/campaigns/scheduled/count ......................... Count scheduled campaigns ready to run POST /api/campaigns/:id/leads .............................. Add a lead to campaign POST /api/campaigns/:id/leads/bulk ......................... Add multiple leads to campaign DELETE /api/campaigns/:id/leads/:leadId .................... Remove a lead from campaign DELETE /api/campaigns/:id/leads ............................ Remove multiple leads from campaign GET /api/campaigns/:id/target-leads ........................ Get target leads for campaign based on filters GET /api/campaigns/:id/target-leads/count .................. Count target leads for campaign based on filters POST /api/campaigns/:id/duplicate .......................... Duplicate a campaign GET /api/campaigns/by-lead/:leadId ......................... Get campaigns for a specific lead GET /api/campaigns/by-lead/:leadId/count ................... Count campaigns for a specific lead POST /api/campaigns/:id/trigger-send ....................... Trigger sending messages for a campaign GET /api/followups ......................................... Get all followups GET /api/followups/count ................................... Count all followups GET /api/followups/:id ..................................... Get a followup by ID POST /api/followups ........................................ Create a new followup PATCH /api/followups/:id ................................... Update a followup DELETE /api/followups/:id .................................. Delete a followup POST /api/followups/:id/leads .............................. Add a lead to followup POST /api/followups/:id/leads/bulk ......................... Add multiple leads to followup DELETE /api/followups/:id/leads/:leadId .................... Remove a lead from followup DELETE /api/followups/:id/leads ............................ Remove multiple leads from followup POST /api/followups/:id/duplicate .......................... Duplicate a followup GET /api/followups/by-lead/:leadId ......................... Get followups for a specific lead GET /api/followups/by-lead/:leadId/count ................... Count followups for a specific lead GET /api/portfolios ........................................ Get all portfolios GET /api/portfolios/count .................................. Count all portfolios GET /api/portfolios/:id .................................... Get a portfolio by ID POST /api/portfolios ....................................... Create a new portfolio PATCH /api/portfolios/:id .................................. Update a portfolio DELETE /api/portfolios/:id ................................. Delete a portfolio GET /api/portfolios/:id/leads .............................. Get all leads for a portfolio GET /api/portfolios/:id/leads/count ........................ Count all leads for a portfolio GET /api/portfolios/:id/tags ............................... Get all tags for a portfolio GET /api/portfolios/:id/tags/count ......................... Count all tags for a portfolio GET /api/portfolios/:id/campaigns .......................... Get all campaigns for a portfolio GET /api/portfolios/:id/campaigns/count .................... Count all campaigns for a portfolio GET /api/portfolios/:id/message-templates .................. Get all message templates for a portfolio GET /api/portfolios/:id/message-templates/count ............ Count all message templates for a portfolio GET /api/portfolios/:id/followups .......................... Get all followups for a portfolio GET /api/portfolios/:id/followups/count .................... Count all followups for a portfolio POST /api/leads/export ..................................... Export leads to CSV or JSON format POST /api/leads/import ..................................... Import leads from CSV or JSON data POST /api/leads/segment .................................... Segment leads based on criteria POST /api/leads/clean-duplicates ........................... Clean duplicate leads based on email and phone GET /api/leads/template/csv ................................ Download CSV template for lead import GET /api/leads/template/json ............................... Download JSON template for lead import GET /api/leads/template/vcf ................................ Download vCARD template for lead import GET /api/followups/heartbeat/stats ......................... Get FollowupLead statistics GET /api/categories/count .................................. Count product categories GET /api/categories ........................................ List product categories GET /api/categories/:id .................................... Get a product category GET /api/categories/lookup ................................. Get a product category by slug POST /api/categories ....................................... Create product category PATCH /api/categories/:id .................................. Update product category DELETE /api/categories/:id ................................. Delete product category GET /api/carts/count ....................................... Count carts GET /api/carts ............................................. List carts GET /api/carts/:id ......................................... Get a cart by ID POST /api/carts ............................................ Create a new cart PATCH /api/carts/:id ....................................... Update cart DELETE /api/carts/:id ...................................... Delete a cart POST /api/carts/:id/items .................................. Add item to cart PATCH /api/carts/:id/items/:itemId ......................... Update cart item DELETE /api/carts/:id/items/:itemId ........................ Remove item from cart GET /api/ecommerce/orders/count ............................ Count orders GET /api/ecommerce/orders/sum .............................. Sum total price of orders GET /api/ecommerce/orders .................................. List orders GET /api/ecommerce/orders/:id .............................. Get an order by ID POST /api/ecommerce/orders ................................. Create a new order PATCH /api/ecommerce/orders/:id ............................ Update an order DELETE /api/ecommerce/orders/:id ........................... Delete an order GET /api/products/count .................................... Count products GET /api/products .......................................... List products GET /api/products/:id ...................................... Get a product GET /api/products/lookup ................................... Get a product by SKU or Slug GET /api/products/search/count ............................. Count search products GET /api/products/search ................................... Search products POST /api/products ......................................... Create product PATCH /api/products/:id .................................... Update product DELETE /api/products/:id ................................... Delete product POST /api/products/export .................................. Export products to Google Merchant Center XML format POST /api/products/import .................................. Import products from Google Merchant Center XML data or URL POST /api/products/import/file ............................. Import products from uploaded XML file GET /api/products/template/xml ............................. Download XML template for product import GET /api/stores/count ...................................... Count stores GET /api/stores ............................................ List stores GET /api/stores/:id ........................................ Get a store POST /api/stores ........................................... Create store PATCH /api/stores/:id ...................................... Update store DELETE /api/stores/:id ..................................... Delete store GET /api/files ............................................. List files GET /api/files/count ....................................... Count files GET /api/files/sum ......................................... Sum file sizes and download counts GET /api/files/:id ......................................... Get file by ID GET /api/files/:id/download ................................ Download file GET /api/files/:id/signed .................................. Get signed URL for a file GET /api/files/:id/thumbnail/signed ........................ Get signed URL for a file POST /api/files/upload ..................................... Initialize file upload with signed URL POST /api/files/upload/direct .............................. Direct file upload DELETE /api/files/:id ...................................... Delete file POST /api/files/cache ...................................... Cache external file GET /api/files/:id/versions ................................ Get file versions GET /api/files/:id/versions/count .......................... Count file versions GET /api/files/:id/versions/sum ............................ Sum file version sizes GET /api/files/:id/versions/:version/download .............. Download specific file version GET /api/files/:id/versions/:version/signed ................ Get signed URL for specific file version GET /api/files/:id/image/:options .......................... Get resized/transformed image via CDN GET /api/files/:id/media/:options .......................... Get transcoded video stream via CDN PATCH /api/files/:id ....................................... Update file information POST /api/files/:id/content/upload ......................... Initialize file content update with signed URL POST /api/files/:id/content/direct ......................... Direct file content update POST /api/files/:id/content/cache .......................... Update file content from external URL POST /api/files/:id/content/complete ....................... Complete file content update (for signed URL uploads) GET /api/directories ....................................... List directories GET /api/directories/count ................................. Count directories GET /api/directories/:id ................................... Get directory by ID POST /api/directories ...................................... Create directory POST /api/directories/create-path .......................... Create directory path (creates parent directories as needed) DELETE /api/directories/:id ................................ Delete directory GET /api/directories/tree .................................. Get directory tree PATCH /api/directories/:id ................................. Update directory information GET /api/assistants/count .................................. Count AI assistants GET /api/assistants ........................................ List AI assistants GET /api/assistants/:id .................................... Get an AI assistant PATCH /api/assistants/:id .................................. Update an AI assistant POST /api/assistants ....................................... Create an AI assistant DELETE /api/assistants/:id ................................. Delete an AI assistant POST /api/chat/completions ................................. Create chat completion GET /api/chat/participants/count ........................... Count chat participants GET /api/chat/participants ................................. List chat participants GET /api/chat/participants/:id ............................. Get a chat participant POST /api/chat/participants ................................ Create a chat participant PATCH /api/chat/participants/:id ........................... Update a chat participant DELETE /api/chat/participants/:id .......................... Delete a chat participant GET /api/chat/rules/count .................................. Count chat rules GET /api/chat/rules ........................................ List chat rules GET /api/chat/rules/:id .................................... Get a chat rule PATCH /api/chat/rules/:id .................................. Update a chat rule POST /api/chat/rules ....................................... Create a chat rule DELETE /api/chat/rules/:id ................................. Delete a chat rule GET /api/generic-chat-endpoints/count ...................... Count generic chat endpoints GET /api/generic-chat-endpoints ............................ List generic chat endpoints GET /api/generic-chat-endpoints/:id ........................ Get a generic chat endpoint PATCH /api/generic-chat-endpoints/:id ...................... Update a generic chat endpoint POST /api/generic-chat-endpoints ........................... Create a generic chat endpoint DELETE /api/generic-chat-endpoints/:id ..................... Delete a generic chat endpoint GET /api/hubs/count ........................................ Count hubs GET /api/hubs .............................................. List hubs POST /api/hubs ............................................. Create a hub GET /api/hubs/:id .......................................... Get a hub PATCH /api/hubs/:id ........................................ Update a hub DELETE /api/hubs/:id ....................................... Delete a hub GET /api/instagram/accounts/count .......................... Count Instagram accounts GET /api/instagram/accounts ................................ List Instagram accounts GET /api/instagram/accounts/:id ............................ Get an Instagram account PATCH /api/instagram/accounts/:id .......................... Update an Instagram account POST /api/instagram/accounts ............................... Register an Instagram account DELETE /api/instagram/accounts/:id ......................... Delete an Instagram account GET /api/knowledge/count ................................... Count knowledge pages GET /api/knowledge ......................................... List knowledge pages GET /api/knowledge/:id ..................................... Get a knowledge page GET /api/knowledge/search .................................. Search knowledge pages POST /api/knowledge ........................................ Create knowledge page PATCH /api/knowledge/:id ................................... Update knowledge page DELETE /api/knowledge/:id .................................. Delete knowledge page GET /api/twilio/numbers/count .............................. Count Twilio numbers GET /api/twilio/numbers .................................... List Twilio numbers GET /api/twilio/numbers/:id ................................ Get a Twilio number PATCH /api/twilio/numbers/:id .............................. Update a Twilio number POST /api/twilio/numbers ................................... Register a Twilio number DELETE /api/twilio/numbers/:id ............................. Delete a Twilio number GET /api/whatsapp/numbers/count ............................ Count WhatsApp numbers GET /api/whatsapp/numbers .................................. List WhatsApp numbers GET /api/whatsapp/numbers/:id .............................. Get a WhatsApp number PATCH /api/whatsapp/numbers/:id ............................ Update a WhatsApp number POST /api/whatsapp/numbers ................................. Register a WhatsApp number DELETE /api/whatsapp/numbers/:id ........................... Delete a WhatsApp number GET /api/whatsapp/webhook/:id .............................. (Webhook) Verify WhatsApp Setup POST /api/whatsapp/webhook/:id ............................. (Webhook) Receive WhatsApp Messages POST /api/whatsapp/messages ................................ Send a WhatsApp Message POST /api/chat/webhook/:id ................................. (Webhook) Receive a message from a generic chat service POST /api/chat/messages .................................... Send a message to a generic chat service POST /api/twilio/webhook/:id ............................... (Webhook) Receive Twilio Messages POST /api/twilio/messages .................................. Send a Twilio Message GET /api/instagram/webhook/:id ............................. (Webhook) Verify Instagram Setup POST /api/instagram/webhook/:id ............................ (Webhook) Receive Instagram Messages POST /api/instagram/messages ............................... Send an Instagram Message POST /api/instagram/sender-actions ......................... Send an Instagram Sender Action (typing, sticker, reaction, mark_seen) POST /api/notifications/send ............................... Send a notification GET /api/notification-providers ............................ List provider configurations GET /api/notification-providers/count ...................... Count provider configurations GET /api/notification-providers/:id ........................ Get provider configuration by ID POST /api/notification-providers ........................... Create provider configuration PUT /api/notification-providers/:id ........................ Update provider configuration DELETE /api/notification-providers/:id ..................... Delete provider configuration GET /api/notification-templates ............................ List notification templates GET /api/notification-templates/count ...................... Count notification templates GET /api/notification-templates/:id ........................ Get template by ID POST /api/notification-templates ........................... Create notification template PUT /api/notification-templates/:id ........................ Update notification template POST /api/notification-templates/:id/duplicate ............. Duplicate notification template DELETE /api/notification-templates/:id ..................... Delete notification template POST /api/system/notifications/send ........................ Send a system notification GET /api/system/notifications/providers .................... List system notification providers GET /api/schedules ......................................... Get all schedules GET /api/schedules/count ................................... Count schedules GET /api/schedules/:scheduleId ............................. Get a schedule POST /api/schedules ........................................ Create a schedule PUT /api/schedules/:scheduleId ............................. Update a schedule DELETE /api/schedules/:scheduleId .......................... Delete a schedule GET /api/schedules/:scheduleId/resources ................... Get all resources GET /api/schedules/:scheduleId/resources/count ............. Count resources GET /api/schedules/:scheduleId/resources/:resourceId ....... Get a resource POST /api/schedules/:scheduleId/resources .................. Create a resource PUT /api/schedules/:scheduleId/resources/:resourceId ....... Update a resource DELETE /api/schedules/:scheduleId/resources/:resourceId .... Delete a resource GET /api/schedules/:scheduleId/locations ................... Get all locations GET /api/schedules/:scheduleId/locations/count ............. Count locations GET /api/schedules/:scheduleId/locations/:locationId ....... Get a location POST /api/schedules/:scheduleId/locations .................. Create a location PUT /api/schedules/:scheduleId/locations/:locationId ....... Update a location DELETE /api/schedules/:scheduleId/locations/:locationId .... Delete a location GET /api/schedules/:scheduleId/services .................... Get all services GET /api/schedules/:scheduleId/services/count .............. Count services GET /api/schedules/:scheduleId/services/:serviceId ......... Get a service POST /api/schedules/:scheduleId/services ................... Create a service PUT /api/schedules/:scheduleId/services/:serviceId ......... Update a service DELETE /api/schedules/:scheduleId/services/:serviceId ...... Delete a service GET /api/schedules/events/count ............................ Count all events GET /api/schedules/events .................................. Get all events GET /api/schedules/:scheduleId/events ...................... Get all events for a schedule GET /api/schedules/:scheduleId/events/count ................ Count events for a schedule GET /api/schedules/:scheduleId/events/:eventId ............. Get an event DELETE /api/schedules/:scheduleId/events/:eventId .......... Delete an event POST /api/schedules/:scheduleId/events ..................... Create an event PUT /api/schedules/:scheduleId/events/:eventId ............. Update an event PATCH /api/schedules/:scheduleId/events/:eventId ........... Update an event GET /api/schedules/:scheduleId/associations ................ Get all associations GET /api/schedules/:scheduleId/associations/count .......... Count associations GET /api/schedules/:scheduleId/associations/:locationId/:resourceId/:serviceId ........................................................... Get an association POST /api/schedules/:scheduleId/associations/:locationId/:resourceId/:serviceId ........................................................... Create an association PUT /api/schedules/:scheduleId/associations/:locationId/:resourceId/:serviceId ........................................................... Update an association DELETE /api/schedules/:scheduleId/associations/:locationId/:resourceId/:serviceId ........................................................... Delete an association DELETE /api/schedules/:scheduleId/associations/by-id/:associationId ........................................................... Delete an association by ID GET /api/schedules/:scheduleId/get-availability ............ Get availability GET /api/search/documents/:id .............................. Get a document by ID GET /api/search ............................................ Perform search GET /api/search/concepts ................................... Concept Arithmetic Search GET /api/search/related .................................... Find related documents GET /api/search/concepts/list .............................. List available concepts GET /api/shipments/count ................................... Count all shipments GET /api/shipments/sum ..................................... Sum weight and price of all shipments GET /api/shipments ......................................... Get all shipments GET /api/shipments/:id ..................................... Get a shipment by ID POST /api/shipments ........................................ Create a new shipment PATCH /api/shipments/:id ................................... Update a shipment DELETE /api/shipments/:id .................................. Delete a shipment (soft delete) GET /api/shipments/by-carrier/:carrier/count ............... Count shipments by carrier GET /api/shipments/by-carrier/:carrier ..................... Get shipments by carrier GET /api/shipments/by-external-id/:shipmentId .............. Get a shipment by external shipment ID GET /api/shipments/by-pickup-id/:pickupId/count ............ Count shipments by pickup ID GET /api/shipments/by-pickup-id/:pickupId .................. Get shipments by pickup ID GET /api/shipments/:id/waybill ............................. Generate waybill PDF for a shipment GET /api/shipments/tracking ................................ GET /api/shipment-estimates/count .......................... Count all shipment estimates GET /api/shipment-estimates/sum ............................ Sum weight of all shipment estimates GET /api/shipment-estimates ................................ Get all shipment estimates GET /api/shipment-estimates/:id ............................ Get a shipment estimate by ID POST /api/shipment-estimates ............................... Create a new shipment estimate PATCH /api/shipment-estimates/:id .......................... Update a shipment estimate DELETE /api/shipment-estimates/:id ......................... Delete a shipment estimate (soft delete) GET /api/shipment-estimates/by-carrier/:carrier/count ...... Count shipment estimates by carrier GET /api/shipment-estimates/by-carrier/:carrier ............ Get shipment estimates by carrier GET /api/shipment-estimates/by-meta/count .................. Count shipment estimates by meta field GET /api/shipment-estimates/by-meta ........................ Get shipment estimates by meta field GET /api/links ............................................. List links GET /api/links/count ....................................... Count links GET /api/links/:linkId ..................................... Get a link GET /api/links/lookup ...................................... Get links for an entity GET /api/links/lookup/count ................................ Count links for an entity POST /api/links ............................................ Create a link PATCH /api/links/:linkId ................................... Update a link DELETE /api/links/:linkId .................................. Delete a link