Calls
Operations related to calls
Returns a list of calls with pagination support.
Page number to retrieve.
Number of items per page.
Call name to filter calls by (partial match).
Unauthorized - missing or invalid API key
GET /api/v1/calls HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"callId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"status": "completed",
"name": "Sales Call with Acme Corp",
"startDateTime": "2024-07-15T10:00:00.000Z",
"endDateTime": "2024-07-15T11:00:00.000Z",
"duration": 3600,
"description": "Discussion about new product features",
"language": "en",
"direction": "OUTBOUND",
"fromNumber": "+1234567890",
"toNumber": "+0987654321",
"callType": {
"id": "type123",
"name": "Sales Call"
},
"aiScore": 0.95,
"url": "https://app.salescaling.com/calls/5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
}
Uploads a call. You can either provide a mediaUrl in the body or upload a file directly.
Name of the call for uploading
Sales Call Recording
URL of the media file to upload (alternative to file upload)
https://example.com/upload/call_recording.mp3
Scheduled start date and time of the call
2024-07-18T14:00:00.000Z
Description of the call
Recording of the sales call with Acme Corp.
Phone number of the caller
+1234567890
Phone number of the callee
+0987654321
Audio file to upload (alternative to mediaUrl)
Unauthorized - missing or invalid API key
POST /api/v1/calls/upload HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 261
{
"name": "Sales Call Recording",
"mediaUrl": "https://example.com/upload/call_recording.mp3",
"startDateTime": "2024-07-18T14:00:00.000Z",
"description": "Recording of the sales call with Acme Corp.",
"fromNumber": "+1234567890",
"toNumber": "+0987654321",
"file": "binary"
}
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"callId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
}
Get a call by ID.
Call ID to retrieve.
Unauthorized - missing or invalid API key
GET /api/v1/calls/{id} HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"callId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"status": "completed",
"name": "Sales Call with Acme Corp",
"startDateTime": "2024-07-15T10:00:00.000Z",
"endDateTime": "2024-07-15T11:00:00.000Z",
"duration": 3600,
"description": "Discussion about new product features",
"language": "en",
"direction": "OUTBOUND",
"fromNumber": "+1234567890",
"toNumber": "+0987654321",
"callType": {
"id": "type123",
"name": "Sales Call"
},
"aiScore": 0.95,
"url": "https://app.salescaling.com/calls/5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
}
Deletes a call by ID.
Call ID to delete.
Unauthorized - missing or invalid API key
DELETE /api/v1/calls/{id} HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": true
}
Returns a list of participants for a given call ID.
Call ID to get participants from.
Unauthorized - missing or invalid API key
GET /api/v1/calls/{id}/participants HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"callId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"participants": [
{
"id": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"name": "John Doe",
"phone": "+1234567890",
"isHost": true,
"isInternal": false
}
]
}
}
Returns a summary for a given call ID.
Call ID to get summary from.
Unauthorized - missing or invalid API key
GET /api/v1/calls/{id}/summary HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"callId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"summary": "The call was productive, and we finalized the project timeline.",
"nextSteps": [
{
"action": "Send follow-up email",
"actors": [
"John Doe",
"Team Leads"
],
"deadline": "2024-07-20"
}
],
"aiOpinion": "Positive sentiment detected overall.",
"insights": {
"intro": "Introduction to the project",
"questions": [
{
"question": "What is the timeline?",
"answer": "We aim to complete in 3 months"
}
],
"objections": {
"summary": "Some concerns about pricing",
"objections": [
{
"objection": "Price is too high",
"answer": "We can offer a discount"
}
]
},
"closing": {
"summary": "Agreed to follow up next week",
"closing": [
{
"statement": "Let's schedule a follow-up",
"doneBy": "John Doe"
}
]
}
}
}
}
Returns a transcript for a given call ID.
Call ID to get transcript from.
Unauthorized - missing or invalid API key
GET /api/v1/calls/{id}/transcript HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"callId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"transcript": [
{
"startTime": 10,
"endTime": 25,
"personId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"participantName": "John Doe",
"content": "John Doe said something important."
}
]
}
}
Returns a list of notes for a given call ID.
Call ID to get notes from.
Unauthorized - missing or invalid API key
GET /api/v1/calls/{id}/notes HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"callId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"notes": [
{
"content": "Customer interested in premium features",
"smartCategory": {
"id": "cat123",
"name": "Customer Interest"
}
}
]
}
}
Returns a chat for a given call ID.
Call ID to get chat from.
Unauthorized - missing or invalid API key
GET /api/v1/calls/{id}/chat HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"callId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"messages": [
{
"question": "What time does the call start?",
"answer": "The call starts at 10:00 AM"
}
]
}
}
Returns a list of contacts for a given call ID.
Call ID to get contacts from.
Page number to retrieve.
Number of items per page.
Unauthorized - missing or invalid API key
GET /api/v1/calls/{id}/contacts HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"contactId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
}
Returns a list of companies for a given call ID.
Call ID to get companies from.
Page number to retrieve.
Number of items per page.
Unauthorized - missing or invalid API key
GET /api/v1/calls/{id}/companies HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"companyId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
}
Returns a list of opportunities for a given call ID.
Call ID to get opportunities from.
Page number to retrieve.
Number of items per page.
Unauthorized - missing or invalid API key
GET /api/v1/calls/{id}/opportunities HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"opportunityId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
}