Flash Calling API
This API enables users to leverage flash calls for quick and efficient number validation or authentication processes.
This API initiates a call to the destination number. If the call is answered, it will be immediately terminated.
POST
/workspaces/{workspaceId}/channels/{channelId}/flashcalls
Create a new channel flash call
Verzoek-payload
from
string
to
string
verplicht
ringTimeout
integer
Antwoord-payload
id
string
verplicht
channelId
string
verplicht
from
string
verplicht
to
string
verplicht
status
string
verplicht
Possible values: accepted, starting, ringing, ongoing, completed, busy, no-answer, failed, cancelled, scheduled
ringTimeout
integer
attemptPrice
object
Onderliggende attributen tonen
attemptPrice.amount
integer
attemptPrice.exponent
integer
attemptPrice.currency
string
connectionPrice
object
Onderliggende attributen tonen
connectionPrice.amount
integer
connectionPrice.exponent
integer
connectionPrice.currency
string
reason
string
duration
integer
createdAt
string
verplicht
updatedAt
string
verplicht
ringingAt
string
answeredAt
string
endedAt
string
Codevoorbeeld
curl -X POST 'https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/flashcalls' \
-H 'Authorization: AccessKey YOUR_ACCESS_KEY'To terminate a flash call resource, or update the result of the verification, user can do a POST to a flash call resource, using this endpoint.
POST
/workspaces/{workspaceId}/channels/{channelId}/flashcalls/{callId}
Completes the channel flash call
Verzoek-payload
receivedCli
string
result
string
verplicht
Possible values: unknown, verified, canceled, timeout, wrong_cli
Antwoord-payload
receivedCli
string
result
string
verplicht
Possible values: unknown, verified, canceled, timeout, wrong_cli
Codevoorbeeld
curl -X POST 'https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/flashcalls/{callId}' \
-H 'Authorization: AccessKey YOUR_ACCESS_KEY'User can also chose to hangup calls, using a combination of From and To numbers:
POST
/workspaces/{workspaceId}/channels/{channelId}/flashcalls/hangup
Completes the channel flash call
Verzoek-payload
receivedCli
string
result
string
verplicht
Possible values: unknown, verified, canceled, timeout, wrong_cli
from
string
verplicht
The phone number that initiated the call.
to
string
verplicht
The phone number that received the call.
Antwoord-payload
receivedCli
string
result
string
verplicht
Possible values: unknown, verified, canceled, timeout, wrong_cli
from
string
verplicht
The phone number that initiated the call.
to
string
verplicht
The phone number that received the call.
Codevoorbeeld
curl -X POST 'https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/flashcalls/hangup' \
-H 'Authorization: AccessKey YOUR_ACCESS_KEY'