Skip to main content

API Overview

design

Introduction

Make the most out of Cotalker's potential for your automation processes using its API tools.

Everything available in Cotalker's GUI is accessible through API requests. This permits developers to add extra layers of automatization and the ability to integrate other systems with Cotalker. Here are some examples of what you can do with Cotalker's API tools:

  • easily upload large amounts of data
  • scale and automate the work of admins
  • integrate ERP, CRM, Satellites, and IoT
  • externally automate processes
  • gather data from different endpoints
  • configure user, group, and other platform settings
  • quickly modify user permissions and access roles
  • configure workflows and tasks
  • manage the data in your collections
  • and much more!

Learn more about the different endpoints and start taking your company's automation process to the next level!

Getting Started

Using the web API through a script or integration is as simple as calling an endpoint, e.g., getting all users:
GET https://www.cotalker.com/api/v2/users.

All endpoints MUST be called with the corresponding authorization or access-token.

URLs

URLs are used based on the endpoint that is called. The documentation for each endpoint indicates the appropriate URL.

Available URLs:

  • https://www.cotalker.com/api/v1
  • https://www.cotalker.com/api/v2
  • https://www.cotalker.com/api/v3
demo users

If you're using Cotalker through a free-trial demo, use the following URL paths:

  • https://demo.cotalker.com/api/v1
  • https://demo.cotalker.com/api/v2
  • https://demo.cotalker.com/api/v3

Endpoints

In this documentation, you can find basic REST API requests with samples and references to their data models. For a complete schematic guide to our APIs, please consult our API documentation in Swagger.

Here's a list of the endpoints we cover in this documentation:

EndpointDescriptionData Model(s)
/auth/localauthentication tokenN/A
/companiescompany configuration and settingsCOTCompany
/usersusers in your company, both humans and botsCOTUser
/accessrolesset of permissions granted to usersCOTAccessRole
/jobtitlesjob titles can group users and give them special attributesCOTJobTitle
/groupsgroups hold together tasks and channels or act as links to URLsCOTGroup
/channelsworkspace channels where users can view task information, answer surveys, or chat with other users associated with the channelCOTChannel
/propertyTypesproperty types (collections) are like tables that can store all kinds of dataCOTPropertyType
/propertiesproperties (elements) make up the property types and can be used to act as assets or even statesCOTProperty
/messagesmessages correspond to chat messages users send to each in channels, responses submitted in a survey, or system-generated messagesCOTMessage, COTMessageContentType
/media/fileupload and retrieve files
/surveyssurveys gather different types of input from usersCOTSurvey
/surveychatseach survey chat holds questions that correspond to a surveycomponentCOTSurveyChat
/questionsquestions form part of survey componentsCOTQuestion, COTQuestionContentType, COTQuestionExec
/answersanswers represent the input submitted through surveysCOTAnswer, COTAnswerData
/tasksthis endpoint holds together everything related to tasks: tasks, task groups, state machines, states, and SLAsCOTTask, COTTaskGroup, COTSMStateMachine, COTSMState, COTSMSLA
/botsbots carry out diverse programmable routinesCOTBot, COTParametrizedBot
/schedulesschedules are automated scheduled routinesCOTSchedule, COTParametrizedBot
/pbscriptscorresponds to saved routine stages that can be later incorporated to any routineCOTPBScript, COTParametrizedBot

Interactions

graph LR; U[Users] --> C U --> A U --> P G[Groups] --> C C[Channels] --> P C --> B P[Databases] M[Messages] --> C S[Surveys] --> P S --> A A[Access Roles] X[State Machine] X --> G T[Tasks] --> X T --> C R[Scheduler] Z[Company] B[Bots] W[Answer] S --> W U --> W C --> W