bandwidth / sdk
Bandwidth's Communication APIs
v14.0.0
2026-09-22 17:35 UTC
Requires
- php: ^8.1
- ext-curl: *
- ext-dom: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.4.5
- guzzlehttp/psr7: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- overtrue/phplint: ^9.0
- phpunit/phpunit: ^9.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- v14.0.0
- v13.0.0
- v12.0.0
- v11.0.1
- v11.0.0
- v10.6.1
- v10.6.0
- v10.5.0
- v10.4.0
- v10.3.0
- v10.2.0
- v10.1.0
- v10.0.1
- v10.0.0
- v9.1.0
- v9.0.0
- v8.2.0
- v8.1.2
- v8.1.1
- v8.1.0
- v8.0.1
- v8.0.0
- v7.0.0
- v6.0.0
- v5.3.0
- v5.2.0
- v5.1.0
- v5.0.0
- v4.0.0
- v3.0.0
- v2.14.0
- v2.13.3
- v2.13.2
- v2.13.1
- v2.13.0
- v2.12.0
- v2.11.1
- v2.11.0
- v2.10.0
- v2.9.0
- v2.8.0
- v2.7.0
- v2.6.0
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.0
- v2.1.0
- v2.0.0
- v1.2.2
- v1.2.1-alpha
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.0
- v0.0.10
- v0.0.1
- v0.0.0
- dev-SWI-11661
- dev-VAPI-3160
- dev-DX-2246
This package is auto-updated.
Last update: 2026-09-22 18:15:59 UTC
README
Bandwidth's Communication APIs
For more information, please visit https://dev.bandwidth.com.
Installation & Usage
Requirements
PHP 8.1 and later.
Composer
To install the bindings via Composer, run:
composer require bandwidth/sdk
Manual Installation
Download the files and include autoload.php:
<?php require_once('/path/to/Bandwidth SDK/vendor/autoload.php');
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure HTTP basic authorization: Basic $config = Bandwidth\Configuration::getDefaultConfiguration() ->setUsername('YOUR_USERNAME') ->setPassword('YOUR_PASSWORD'); // Configure OAuth2 access token for authorization: OAuth2 $config = Bandwidth\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new Bandwidth\Api\CallsApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $account_id = 9900000; // string | Your Bandwidth Account ID. $create_call = new \Bandwidth\Model\CreateCall(); // \Bandwidth\Model\CreateCall | JSON object containing information to create an outbound call try { $result = $apiInstance->createCall($account_id, $create_call); print_r($result); } catch (Exception $e) { echo 'Exception when calling CallsApi->createCall: ', $e->getMessage(), PHP_EOL; }
API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| CallsApi | createCall | POST /accounts/{accountId}/calls | Create Call |
| CallsApi | getCallState | GET /accounts/{accountId}/calls/{callId} | Get Call State Information |
| CallsApi | listCalls | GET /accounts/{accountId}/calls | Get Calls |
| CallsApi | updateCall | POST /accounts/{accountId}/calls/{callId} | Update Call |
| CallsApi | updateCallBxml | PUT /accounts/{accountId}/calls/{callId}/bxml | Update Call BXML |
| ConferencesApi | downloadConferenceRecording | GET /accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId}/media | Download Conference Recording |
| ConferencesApi | getConference | GET /accounts/{accountId}/conferences/{conferenceId} | Get Conference Information |
| ConferencesApi | getConferenceMember | GET /accounts/{accountId}/conferences/{conferenceId}/members/{memberId} | Get Conference Member |
| ConferencesApi | getConferenceRecording | GET /accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId} | Get Conference Recording Information |
| ConferencesApi | listConferenceRecordings | GET /accounts/{accountId}/conferences/{conferenceId}/recordings | Get Conference Recordings |
| ConferencesApi | listConferences | GET /accounts/{accountId}/conferences | Get Conferences |
| ConferencesApi | updateConference | POST /accounts/{accountId}/conferences/{conferenceId} | Update Conference |
| ConferencesApi | updateConferenceBxml | PUT /accounts/{accountId}/conferences/{conferenceId}/bxml | Update Conference BXML |
| ConferencesApi | updateConferenceMember | PUT /accounts/{accountId}/conferences/{conferenceId}/members/{memberId} | Update Conference Member |
| EndpointsApi | createEndpoint | POST /accounts/{accountId}/endpoints | Create Endpoint |
| EndpointsApi | deleteEndpoint | DELETE /accounts/{accountId}/endpoints/{endpointId} | Delete Endpoint |
| EndpointsApi | getEndpoint | GET /accounts/{accountId}/endpoints/{endpointId} | Get Endpoint |
| EndpointsApi | listEndpoints | GET /accounts/{accountId}/endpoints | List Endpoints |
| EndpointsApi | updateEndpointBxml | PUT /accounts/{accountId}/endpoints/{endpointId}/bxml | Update Endpoint BXML |
| MFAApi | generateMessagingCode | POST /accounts/{accountId}/code/messaging | Messaging Authentication Code |
| MFAApi | generateVoiceCode | POST /accounts/{accountId}/code/voice | Voice Authentication Code |
| MFAApi | verifyCode | POST /accounts/{accountId}/code/verify | Verify Authentication Code |
| MediaApi | deleteMedia | DELETE /users/{accountId}/media/{mediaId} | Delete Media |
| MediaApi | getMedia | GET /users/{accountId}/media/{mediaId} | Get Media |
| MediaApi | listMedia | GET /users/{accountId}/media | List Media |
| MediaApi | uploadMedia | PUT /users/{accountId}/media/{mediaId} | Upload Media |
| MessagesApi | createMessage | POST /users/{accountId}/messages | Create Message |
| MessagesApi | listMessages | GET /users/{accountId}/messages | List Messages |
| MultiChannelApi | createMultiChannelMessage | POST /users/{accountId}/messages/multiChannel | Create Multi-Channel Message |
| PhoneNumberLookupApi | createAsyncBulkLookup | POST /accounts/{accountId}/phoneNumberLookup/bulk | Create Asynchronous Bulk Number Lookup |
| PhoneNumberLookupApi | createSyncLookup | POST /accounts/{accountId}/phoneNumberLookup | Create Synchronous Number Lookup |
| PhoneNumberLookupApi | getAsyncBulkLookup | GET /accounts/{accountId}/phoneNumberLookup/bulk/{requestId} | Get Asynchronous Bulk Number Lookup |
| RecordingsApi | deleteRecording | DELETE /accounts/{accountId}/calls/{callId}/recordings/{recordingId} | Delete Recording |
| RecordingsApi | deleteRecordingMedia | DELETE /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media | Delete Recording Media |
| RecordingsApi | deleteRecordingTranscription | DELETE /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Delete Transcription |
| RecordingsApi | downloadCallRecording | GET /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media | Download Recording |
| RecordingsApi | getCallRecording | GET /accounts/{accountId}/calls/{callId}/recordings/{recordingId} | Get Call Recording |
| RecordingsApi | getRecordingTranscription | GET /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Get Transcription |
| RecordingsApi | listAccountCallRecordings | GET /accounts/{accountId}/recordings | Get Call Recordings |
| RecordingsApi | listCallRecordings | GET /accounts/{accountId}/calls/{callId}/recordings | List Call Recordings |
| RecordingsApi | transcribeCallRecording | POST /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Create Transcription Request |
| RecordingsApi | updateCallRecordingState | PUT /accounts/{accountId}/calls/{callId}/recording | Update Recording |
| StatisticsApi | getStatistics | GET /accounts/{accountId}/statistics | Get Account Statistics |
| TollFreeVerificationApi | createWebhookSubscription | POST /accounts/{accountId}/tollFreeVerification/webhooks/subscriptions | Create Webhook Subscription |
| TollFreeVerificationApi | deleteVerificationRequest | DELETE /accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification | Delete a Toll-Free Verification Submission |
| TollFreeVerificationApi | deleteWebhookSubscription | DELETE /accounts/{accountId}/tollFreeVerification/webhooks/subscriptions/{id} | Delete Webhook Subscription |
| TollFreeVerificationApi | getTollFreeVerificationStatus | GET /accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification | Get Toll-Free Verification Status |
| TollFreeVerificationApi | listTollFreeUseCases | GET /tollFreeVerification/useCases | List Toll-Free Use Cases |
| TollFreeVerificationApi | listWebhookSubscriptions | GET /accounts/{accountId}/tollFreeVerification/webhooks/subscriptions | List Webhook Subscriptions |
| TollFreeVerificationApi | requestTollFreeVerification | POST /accounts/{accountId}/tollFreeVerification | Request Toll-Free Verification |
| TollFreeVerificationApi | updateTollFreeVerificationRequest | PUT /accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification | Update Toll-Free Verification Request |
| TollFreeVerificationApi | updateWebhookSubscription | PUT /accounts/{accountId}/tollFreeVerification/webhooks/subscriptions/{id} | Update Webhook Subscription |
| TranscriptionsApi | deleteRealTimeTranscription | DELETE /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Delete Real-time Transcription |
| TranscriptionsApi | getRealTimeTranscription | GET /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Get Real-time Transcription |
| TranscriptionsApi | listRealTimeTranscriptions | GET /accounts/{accountId}/calls/{callId}/transcriptions | List Real-time Transcriptions |
Models
- AccountStatistics
- AdditionalDenialReason
- Address
- AnswerCallback
- AsyncLookupRequest
- BlockedWebhook
- BridgeCompleteCallback
- BridgeTargetCompleteCallback
- BrtcError
- BrtcErrorResponse
- BrtcErrorSource
- BrtcLink
- BusinessEntityTypeEnum
- BusinessRegistrationTypeEnum
- CallDirectionEnum
- CallRecordingMetadata
- CallState
- CallStateEnum
- CallTranscription
- CallTranscriptionDetectedLanguageEnum
- CallTranscriptionMetadata
- CallTranscriptionResponse
- CallTranscriptionTrackEnum
- Callback
- CallbackMethodEnum
- CardWidthEnum
- CodeRequest
- CompletedLookupStatusEnum
- Conference
- ConferenceCompletedCallback
- ConferenceCreatedCallback
- ConferenceMember
- ConferenceMemberExitCallback
- ConferenceMemberJoinCallback
- ConferenceRecordingAvailableCallback
- ConferenceRecordingMetadata
- ConferenceRedirectCallback
- ConferenceStateEnum
- Contact
- CreateAsyncBulkLookupResponse
- CreateAsyncBulkLookupResponseData
- CreateCall
- CreateCallResponse
- CreateEndpointRequestBase
- CreateEndpointResponse
- CreateEndpointResponseData
- CreateMessageRequestError
- CreateMultiChannelMessageResponse
- CreateSyncLookupResponse
- CreateSyncLookupResponseData
- CreateWebRtcConnectionRequest
- DeactivationEventEnum
- Device
- DeviceStatusEnum
- DisconnectCallback
- Diversion
- DtmfCallback
- Endpoint
- EndpointDirectionEnum
- EndpointEvent
- EndpointEventTypeEnum
- EndpointResponse
- EndpointStatusEnum
- EndpointTypeEnum
- Endpoints
- ErrorObject
- ErrorSource
- FailureWebhook
- FieldError
- FileFormatEnum
- GatherCallback
- GetAsyncBulkLookupResponse
- GetAsyncBulkLookupResponseData
- InProgressLookupStatusEnum
- InboundCallback
- InboundCallbackMessage
- InboundCallbackTypeEnum
- InitiateCallback
- LatestMessageDeliveryStatusEnum
- LineTypeEnum
- Link
- LinkSchema
- LinksObject
- ListEndpointsResponse
- ListMessageDirectionEnum
- ListMessageItem
- LookupErrorResponse
- LookupErrorSchema
- LookupErrorSchemaMeta
- LookupResult
- MachineDetectionCompleteCallback
- MachineDetectionConfiguration
- MachineDetectionModeEnum
- MachineDetectionResult
- Media
- Message
- MessageDirectionEnum
- MessageRequest
- MessageStatusEnum
- MessageTypeEnum
- MessagesList
- MessagingCodeResponse
- MessagingRequestError
- MfaForbiddenRequestError
- MfaRequestError
- MfaUnauthorizedRequestError
- MmsMessageContent
- MmsMessageContentFile
- MultiChannelAction
- MultiChannelActionCalendarEvent
- MultiChannelChannelListMMSObject
- MultiChannelChannelListMMSResponseObject
- MultiChannelChannelListObjectBase
- MultiChannelChannelListOwnerObject
- MultiChannelChannelListRBMObject
- MultiChannelChannelListRBMObjectAllOfContent
- MultiChannelChannelListRBMResponseObject
- MultiChannelChannelListRequestObject
- MultiChannelChannelListResponseObject
- MultiChannelChannelListSMSObject
- MultiChannelChannelListSMSResponseObject
- MultiChannelError
- MultiChannelMessageChannelEnum
- MultiChannelMessageContent
- MultiChannelMessageRequest
- MultiChannelMessageResponseData
- OptInWorkflow
- Page
- PageInfo
- PriorityEnum
- ProductTypeEnum
- RbmActionBase
- RbmActionDial
- RbmActionOpenUrl
- RbmActionTypeEnum
- RbmActionViewLocation
- RbmCardContent
- RbmCardContentMedia
- RbmLocationResponse
- RbmMediaHeightEnum
- RbmMessageCarouselCard
- RbmMessageContentFile
- RbmMessageContentRichCard
- RbmMessageContentText
- RbmMessageMedia
- RbmOpenUrlEnum
- RbmStandaloneCard
- RbmSuggestionResponse
- RbmWebViewEnum
- RecordingAvailableCallback
- RecordingCompleteCallback
- RecordingStateEnum
- RecordingTranscriptionClip
- RecordingTranscriptionMetadata
- RecordingTranscriptions
- RedirectCallback
- RedirectMethodEnum
- ReferCallStatusEnum
- ReferCompleteCallback
- SipConnectionMetadata
- SipCredentials
- SmsMessageContent
- StandaloneCardOrientationEnum
- StatusCallback
- StatusCallbackMessage
- StatusCallbackTypeEnum
- StirShaken
- SyncLookupRequest
- TelephoneNumber
- TfvBasicAuthentication
- TfvCallbackStatusEnum
- TfvError
- TfvStatus
- TfvStatusEnum
- TfvSubmissionInfo
- TfvSubmissionWrapper
- ThumbnailAlignmentEnum
- TranscribeRecording
- Transcription
- TranscriptionAvailableCallback
- TransferAnswerCallback
- TransferCompleteCallback
- TransferDisconnectCallback
- UpdateCall
- UpdateCallRecording
- UpdateConference
- UpdateConferenceMember
- VerificationDenialWebhook
- VerificationRequest
- VerificationUpdateRequest
- VerificationWebhook
- VerifyCodeRequest
- VerifyCodeResponse
- VoiceApiError
- VoiceCodeResponse
- WebhookSubscription
- WebhookSubscriptionBasicAuthentication
- WebhookSubscriptionError
- WebhookSubscriptionRequestSchema
- WebhookSubscriptionTypeEnum
- WebhookSubscriptionsListBody
Authorization
Basic
- Type: HTTP basic authentication
OAuth2
- Type:
OAuth - Flow:
application - Authorization URL: ``
- Scopes: N/A
Tests
To run the tests, use:
composer install vendor/bin/phpunit
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.0.0- Generator version:
7.25.0
- Generator version:
- Build package:
org.openapitools.codegen.languages.PhpNextgenClientCodegen