Terros OpenAPI Documentation
website·Indexed 31 days ago
https://docs.terros.com/API reference for Terros, featuring endpoints for task management, team and permission administration, KPI reporting, calendar event scheduling, and data import/export operations.
What's inside Terros
- The Terros API allows developers to integrate Terros services into external applications to automate workflows and build custom dashboards or analytics tools. Key capabilities include user authentication, session management, and the generation and retrieval of various report types. The API uses JSON for all request and response bodies.
Retrieve detailed user profile information
Use the/user/profileendpoint to retrieve detailed information about a user's profile, which includes associated company data. This is a POST request.POST /user/profileRetrieve detailed information for a calendar event
Use the/calendar/event/getendpoint to retrieve comprehensive details about a specific calendar event. The response includes information regarding the event owner, the list of attendees, and associated teams.POST /calendar/event/getRetrieve user information using the /user/get endpoint
Use thePOST /user/getendpoint to retrieve detailed information about a user. You can specify auserIdor anemailto fetch a specific user's data; if no identifier is provided, the API defaults to returning information for the currently authenticated user. A successful request returns a200status code.curl -X POST "https://<api-domain>/user/get"Understand Dispositions in Terros
In the Terros system, Dispositions are used to represent the various states of a customer interaction.Bulk import data using the Terros Import API
The Terros Import API allows for asynchronous bulk imports of CSV files. The process follows a three-step flow: initiate the import to get a pre-signed S3 upload URL, upload the CSV file via PUT, and poll the status endpoint until the process is complete. Supported entity types for import includeAccount,CalendarEvent,User,Task, andRecruit.Update account filtering and searching for Workflows
When using
POST /account/list, migrate fromstatusIds(legacy) to the following workflow-based filters:workflowId: Filter by the specific pipeline.stageIds: Filter by workflow stages.actionIds: Find accounts based on their last workflow action.
Monitor assignment run progress
Since the/area/assignoperation is asynchronous, you must poll the/area/getendpoint to track progress. Check thejobInfofield for the current status of the assignment run. Possible statuses include:preparing,queued,running, andcompleted.Authenticate requests to the Terros API
The Terros API uses API key authentication. To authenticate a request, include anAuthorizationheader with the valueApiKeyfollowed by a space and your specific API key.Authorization: ApiKey YOUR_API_KEYInstall Terros CLI via npm
The Terros CLI is available as an npm package. After installation, use theterros auth logincommand to authenticate your account.npm install -g @terros-inc/cli terros auth loginSecure Terros API keys
Terros API keys are secrets and grant full access to your user account. To prevent exposure:
- Use environment variables (e.g., a
.envfile) and ensure they are added to.gitignore. - Keep keys server-side only; never embed them in client-side JavaScript, mobile apps, or desktop clients.
- Rotate keys immediately via the API keys page if they are compromised.
- Use environment variables (e.g., a
Update account data writes for Workflows
When creating or updating accounts via
POST /account/upsert, use theworkflowActionOrStageIdfield instead ofstatusId. This field accepts either a workflow action ID (A.xxx) or a stage ID (S.xxx).Recommendation: Use an action ID (
A.xxx) to ensure the action is recorded in the account's workflow history rather than just updating the current stage.