{
 "openapi": "3.1.0",
 "info": {
  "title": "Interaction (CRM)",
  "version": "20261030b",
  "description": "The interaction service of CRM: 10 operation(s)."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {}
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/crm/interaction/platforms": {
   "get": {
    "summary": "Platforms",
    "operationId": "action_interaction_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/interaction/connections/{id}/credential": {
   "post": {
    "summary": "Connections credential",
    "operationId": "action_interaction_0_7",
    "description": "Body keys: token, key, client_secret, auth_token, password",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/interaction/connections/{id}/events-address": {
   "post": {
    "summary": "Connections events address",
    "operationId": "action_interaction_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/interaction/connections/{id}/test": {
   "post": {
    "summary": "Connections test",
    "operationId": "action_interaction_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/interaction/call": {
   "post": {
    "summary": "Call",
    "operationId": "action_interaction_0_5",
    "description": "Body keys: fromUserId, to*, connectionId, queueId, accountId, contactId, leadId, caseId, subject, channel; channel one of voice|video|meeting|chat|sms|whatsapp|email|social|callback|internal",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/interaction/log": {
   "post": {
    "summary": "Log",
    "operationId": "action_interaction_0_5",
    "description": "Body keys: channel, direction, accountId, contactId, leadId, caseId, opportunityId, from, to, callerName, subject, notes, disposition, outcome, sentiment, startedAt, talkSeconds; channel one of voice|video|meeting|chat|sms|whatsapp|email|social|callback|internal; direction one of inbound|outbound|internal; sentiment one of positive|neutral|negative|mixed",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/interaction/calls/{id}/close": {
   "post": {
    "summary": "Calls close",
    "operationId": "action_interaction_0_7",
    "description": "Body keys: reopen, disposition, outcome, notes, sentiment, priority, amount; sentiment one of positive|neutral|negative|mixed",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/interaction/presence": {
   "post": {
    "summary": "Presence",
    "operationId": "action_interaction_0_5",
    "description": "Body keys: state, reason; state one of available|busy|on_call|wrap_up|break|training|meeting|away|do_not_disturb|offline",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/interaction/presence/sync": {
   "post": {
    "summary": "Presence sync",
    "operationId": "action_interaction_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/crm/interaction/board": {
   "get": {
    "summary": "Board",
    "operationId": "action_interaction_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}