WizCaller

< All Topics
Print

API Documentation

For Developers: API Documentation

Easily retrieve call and SMS details from your application by sending a simple JSON request to our API endpoints.


Call Details Endpoint

URL

POST https://wizcaller.com/api/request/call-details/

Request Parameters

ParameterTypeDescription
CallSidStringThe unique CallSid of the call to retrieve details for.

Response Parameters

ParameterTypeDescription
Twilio_CallSidStringThe unique identifier for the call.
FromStringThe phone number or client ID of the caller.
ToStringThe phone number or client ID of the recipient.
Answered_ByStringThe receiver of the incoming call (e.g., “Browser Call” or phone number).
Twilio_Number_NameStringThe friendly name of the Twilio number used for the call.
TimeStringThe time when the call was made, in ISO 8601 format.
Call_DurationStringThe duration of the call in hours, minutes, and seconds.
Recording_LinkStringThe URL to access the call recording, if available.
New_CallerStringIndicates if this is a new caller (“Yes” or “No”).

Response Error Codes

CodeMeaning
200Success. The request was processed successfully, and call details are returned.
400Bad Request. Missing parameters. This error appears when mandatory parameters are not provided.
401Authentication Error. Invalid or expired API token.
404Call Not Found. No call record matches the provided CallSid, or access is unauthorized.
500Internal Server Error. An error occurred while processing the request.

SMS Details Endpoint

URL

POST https://app.wizcaller.com/api/request/sms-details/

Request Parameters

ParameterTypeDescription
MessageSidStringThe unique MessageSid of the SMS to retrieve details for.

Response Parameters

ParameterTypeDescription
Twilio_MessageSidStringThe unique identifier for the SMS message.
FromStringThe phone number or client ID of the sender.
ToStringThe phone number or client ID of the recipient.
Twilio_Number_NameStringThe friendly name of the Twilio number used for the message.
TimeStringThe time when the message was sent, in ISO 8601 format.
MessageStringThe content of the SMS message.

Response Error Codes

CodeMeaning
200Success. The request was processed successfully, and SMS details are returned.
400Bad Request. Missing parameters. This error appears when mandatory parameters are not provided.
401Authentication Error. Invalid or expired API token.
404Message Not Found. No SMS record matches the provided MessageSid, or access is unauthorized.
500Internal Server Error. An error occurred while processing the request.

Authentication and Rate Limiting

To access these endpoints, you must include an Authorization header with a valid bearer token. Each user is limited to 60 requests per minute.

Example Authorization Header:

Authorization: Bearer <your-bearer-token>

To get your bearer token, please reach out to support@wizcaller.com.


Example JSON Request

Call Details Request:

POST https://app.wizcaller.com/api/request/call-details/
Authorization: Bearer <your-api-token>
{
   "CallSid": "CA12345678901234567890123456789012"
}

SMS Details Request:

POST https://app.wizcaller.com/api/request/sms-details/
Authorization: Bearer <your-api-token>
{
   "MessageSid": "SM12345678901234567890123456789012"
}

Example JSON Response

Call Details Response:

{
   "Twilio_CallSid": "CA12345678901234567890123456789012",
   "From": "+1234567890",
   "To": "+0987654321",
   "Answered_By": "Browser Call",
   "Twilio_Number_Name": "Support Line",
   "Time": "2024-11-12T15:30:00Z",
   "Call_Duration": "2 minutes 30 seconds",
   "Recording_Link": "https://yourappdomain.com/play-recording/recording_code",
   "New_Caller": "Yes"
}

SMS Details Response:

{
   "Twilio_MessageSid": "SM12345678901234567890123456789012",
   "From": "+1234567890",
   "To": "+0987654321",
   "Twilio_Number_Name": "Support Line",
   "Time": "2024-11-12T15:30:00Z",
   "Message": "Hello, how can I assist you today?"
}

Table of Contents