Skip to content
Last updated

← Back to Documentation Home

Gensail Analytics API

Welcome to the Gensail Analytics API documentation.

Overview

The Gensail Analytics API processes call recordings and transcripts through configurable AI algorithms, delivering structured results via webhooks.

Base URLs

  • Production: https://gensail-pipeline-api.onrender.com
  • Test: https://gensail-pipeline-api-test.onrender.com

Use the Test environment for validation and the Production environment for live traffic.

Processing Flow

  1. Submit - Send audio URL or transcript via POST
  2. Queue - Receive job ID immediately (202 Accepted)
  3. Process - Pipeline processes asynchronously (transcription → analysis)
  4. Deliver - Results delivered to configured webhooks
  5. Monitor - Poll job status if needed

Authentication

All /api/v1/* endpoints require authentication using one of:

  • Bearer Token: Authorization: Bearer <token>
  • API Key Header: x-api-key: <token>

Tokens are workspace-scoped and provided by your Gensail administrator.

Endpoints

Calls

EndpointMethodDescription
/api/v1/calls/audioPOSTSubmit audio URL for processing
/api/v1/calls/audio-filePOSTUpload audio file for processing
/api/v1/calls/transcriptPOSTSubmit transcript for processing

Jobs

EndpointMethodDescription
/api/v1/jobsGETList jobs with filtering and pagination
/api/v1/jobs/lookupGETLookup job by source call/company IDs
/api/v1/jobs/{job_id}GETGet job status and details
/api/v1/jobs/{job_id}/logsGETGet job processing logs
/api/v1/jobs/{job_id}/runsGETGet algorithm run results
/api/v1/jobs/{job_id}/retryPOSTRetry a job (requeue, redeliver, or rerun)
/api/v1/jobs/retryPOSTRetry a job by source IDs
/api/v1/jobs/{job_id}/statusPATCHUpdate job status (requeue skipped jobs)
/api/v1/jobs/{job_id}/run-algorithmsPOSTRun algorithms on existing transcript

Algorithm Runs & Feedback

EndpointMethodDescription
/api/v1/algorithm-runs/{id}/feedbackPOSTSubmit feedback corrections
/api/v1/algorithm-runs/{id}/redeliver-webhookPOSTRe-deliver webhook payload
/api/v1/feedbackGETList workspace feedback
/api/v1/feedback/algorithms/{algorithm_id}/statsGETGet algorithm accuracy stats
/api/v1/feedback/exportGETExport feedback data

Algorithms

EndpointMethodDescription
/api/v1/algorithmsGETList available algorithms
/api/v1/algorithms/{id}/variablesGET/PATCHView or update algorithm variables
/api/v1/algorithms/{id}/copyPOSTCopy an algorithm
/api/v1/algorithms/{id}/deprecatePOSTDeprecate an algorithm
/api/v1/algorithms/{id}/restorePOSTRestore a deprecated algorithm

Config

EndpointMethodDescription
/api/v1/config/schemaGETGet config schema
/api/v1/config/schema/{section}GETGet section schema
/api/v1/config/workspaces/{workspace_id}GETGet workspace config
/api/v1/config/workspaces/{workspace_id}PUTReplace workspace config
/api/v1/config/workspaces/{workspace_id}/{section}PATCHUpdate config section
/api/v1/config/workspaces/{workspace_id}/resolvedGETGet resolved config

Stats

EndpointMethodDescription
/api/v1/statsGETAggregate job statistics
/api/v1/stats/dailyGETDaily job statistics
/api/v1/stats/duration-distributionGETCall duration distribution
/api/v1/stats/by-organizationGETStats grouped by organization
/api/v1/stats/trendsGETDaily call/duration trends

Health

EndpointMethodDescription
/healthGETBasic health check (unauthenticated)
/api/v1/healthGETDetailed system health
/api/v1/health/integrationsGETIntegration health status

Support

For questions or issues, contact support@gensail.com.


Documentation powered by Redocly