Bitel
2.0.0
2.0.0
  • Introduction
  • Authorization
  • API Structure
  • General API Errors
  • SMS
    • Introduction
    • Template SMS
    • OTP SMS
    • Single SMS
    • Batch SMS
    • Batch P2P SMS
    • SMS Status
  • Call
    • Introduction
    • OTP Call
    • Single Call
    • Single TTS Call
    • Batch Call
    • Batch TTS Call
    • Call Status
  • Webhook
    • Sms Webhook Events
    • Voice Webhook Events
  • Files
    • Introduction
    • Upload Voice
    • Text To Speech
    • Download Voice
  • Code Samples
    • C#
    • PHP
    • Python
Powered by GitBook
On this page
  • Call Status
  • Detail Description
  • Call Status

Was this helpful?

  1. Call

Call Status

Retrieve detail of single or batch call

To get the status of a call including the execution date, status, price and more, you need to store the "id" of the request that is returned in the response of call APIs.

Call Status

GET https://api.bitel.rest/api/v2/voice/status/:requestId

Path Parameters

Name
Type
Description

requestId

string

id returned in the response of call APIs

{
    "id": "755021ff3bfd4669af3145b285297756",
    "phoneNumber": "0912*******",
    "status": "NORMAL",
    "statusCode": 1,
    "billSec": 12,
    "requestDate": 1564643999,
    "executionDate": 1564645842,
    "price": -34.2
}
{
  "result": null
  "error": "NotFound"
}
{
    "id": "755021ff3bfd4669af3145b285297756",
    "phoneNumber": "0912*******",
    "status": "NORMAL",
    "statusCode": 1,
    "billSec": 12,
    "requestDate": 1564643999,
    "executionDate": 1564645842,
    "price": -34.2
}

Detail Description

Key

Type

Description

id

string

request identifier

phoneNumber

string

phone number that was called

status

string

call status (see Call Status table)

statusCode

int

integer representation of status(see Call Status table)

requestDate

int64

date the request was created in epoch format

executionDate

int64

date the request was executed in epoch format

billSec

string

duration of the call in seconds

price

float(double)

the cost of request in Toman

Call Status

Status

Status Code

Description

WAITING

0

the call request has been queued

NORMAL

1

the call has finished normally

NO_ANSWER

2

the user didn't pick up the phone

USER_BUSY

3

the phone number was busy

EXPIRED

10

the request has expired, most likely due to high server loads

ERROR

11

an error has occurred while making the call

UNKNOWN

20

oops, something went wrong

PreviousBatch TTS CallNextSms Webhook Events

Last updated 5 years ago

Was this helpful?