Methods List

BYTEHAND REST API methods.

OAuth

A group of methods designed to work with OAuth authorization, both with external providers, and with an internal BYTEHAND provider.

MethodDescription
authorizeWithInnerOAuthGET /oauth/authorize
Opens an OAuth authorization dialog.
bindWithExternalOAuthPATCH /oauth/providers/providerId
Binds a BYTEHAND user and an account in an external OAuth service.
exchangeInnnerOAuthCodePOST /oauth/token
Exchanges an OAuth authorization access code for an access token.
getExternalOAuthProvidersGET /oauth/providers
Returns a list of providers for authorization through external OAuth services.
loginWithExternalOAuthPUT /oauth/providers/providerId
Authorizes a BYTEHAND user through an external OAuth service.
registerWithExternalOAuthPOST /oauth/providers/providerId
Registers a new BYTEHAND user via an external OAuth service.
revokeInnnerOAuthTokenDELETE /oauth/token
Revokes the current access token obtained via OAuth authorization.

Users

Group of methods for working with BYTEHAND users.

MethodDescription
createCurrentUserCredentialPOST /users/current/credentials
Creates a new access key.
deleteCurrentUserAccountDELETE /users/current/oauth/userAccountId
Unlinks an account in an external OAuth service from a BYTEHAND user.
deleteCurrentUserCredentialDELETE /users/current/credentials/credentialId
Deletes an access key by its ID.
getCurrentUserAccountsGET /users/current/oauth
Returns a list of all associated accounts in external OAuth services.
getCurrentUserBillingPlanGET /users/current/billing_plan
Returns information about the user's billing plan.
getCurrentUserContractGET /users/current/contract
Returns information about the contract.
getCurrentUserCredentialByIdGET /users/current/credentials/credentialId
Returns access key information by ID.
getCurrentUserCredentialGeoGET /users/current/credentials/credentialId/geo
Returns geographic information about the creator of an access key by ID.
getCurrentUserCredentialsGET /users/current/credentials
Returns access key information.
getCurrentUserStatisticsGET /users/current/statistics
Returns activity statistics for the last 90 days.
getCurrentUserThisCredentialGET /users/current/credentials/this
Returns information about the current access key.
getCurrentUserGET /users/current
Returns information about the user.
getUsersTimeZoneByIdGET /users/time_zones/timeZoneId
Returns the time zone with the given ID.
getUsersTimeZonesGET /users/time_zones
Returns a list of all time zones used in BYTEHAND.
initiateCurrentUserContractPOST /users/current/contract
Initiates the procedure for signing a user contract with BYTEHAND.
loginUserPUT /users
Authorizes a user with a login and password.
registerUserPOST /users
Creates a new BYTEHAND account.
resetCurrentUserApiKeyV1POST /users/current/api_key_v1
Regenerates the BYTEHAND API v1 access key.
resetCurrentUserSmppPasswordPOST /users/current/smpp_password
Resets the password for the SMPP connection.
resetUserPasswordCompletePATCH /users/password
Completes the user password reset procedure.
resetUserPasswordPOST /users/password
Starts the user password reset procedure.
setCurrentUserRoutingPATCH /users/current/routing
Sets the routing policy to restrict the sending of SMS messages.
updateCurrentUserContractPATCH /users/current/contract
Edits the valid fields in the contract.
updateCurrentUserEmailPATCH /users/current/email
Starts the procedure for changing the email address.
updateCurrentUserPasswordPATCH /users/current/password
Changes the user's password.
updateCurrentUserPATCH /users/current
Updates user information.

SMS Messages

A group of methods for sending, viewing, editing and deleting SMS messages.

MethodDescription
deleteSmsByIdDELETE /sms/messages/smsId
Deletes an SMS message by its ID.
deleteSmsDELETE /sms/messages
Deletes SMS messages.
getSmsByIdGET /sms/messages/smsId
Returns an SMS message by its ID.
getSmsProbeGET /sms/messages/probe
Gets information about the phone number and text of the SMS message.
querySmsCountHEAD /sms/messages
Returns the number of SMS messages that match the query.
querySmsGET /sms/messages
Returns SMS messages that match the query.
sendSmsPOST /sms/messages
Sends one or more SMS messages.
updateSmsByIdPATCH /sms/messages/smsId
Stops or starts sending an SMS message by its ID.
updateSmsPATCH /sms/messages
Stops or starts sending SMS messages.

SMS Campaigns

A group of methods for working with SMS campaigns.

MethodDescription
deleteSmsCampaignByIdDELETE /sms/campaigns/smsCampaignId
Deletes an SMS campaign by its ID.
deleteSmsCampaignsDELETE /sms/campaigns
Deletes SMS Campaigns.
getSmsCampaignByIdGET /sms/campaigns/smsCampaignId
Returns SMS CampaignById.
getSmsCampaignCountriesGET /sms/campaigns/smsCampaignId/countries
Returns country statistics for SMS campaigns by its ID.
getSmsCampaignPartsGET /sms/campaigns/smsCampaignId/parts
Returns statistics on the number of message parts for SMS campaigns by its ID.
getSmsCampaignStatesGET /sms/campaigns/smsCampaignId/errors
Returns statistics on message statuses and errors for SMS campaigns by its ID.
querySmsCampaignCountHEAD /sms/campaigns
Returns the number of SMS messages matching the query.
querySmsCampaignsGET /sms/campaigns
Returns SMS campaigns that match the query.
sendSmsCampaignPOST /sms/campaigns
Sends Campaign SMS
updateSmsCampaignByIdPATCH /sms/campaigns/smsCampaignId
Stops or starts sending SMS campaigns by campaign ID.
updateSmsCampaignsPATCH /sms/campaigns
Stops or starts sending SMS campaigns.

SMS Senders

A group of methods for creating and removing SMS senders.

MethodDescription
deleteSmsSenderByIdDELETE /sms/senders/smsSenderId
Deletes the signature of an SMS sender by its ID.
deleteSmsSendersDELETE /sms/senders
Deletes signatures of SMS senders.
getSmsSenderByIdGET /sms/senders/smsSenderId
Returns the SMS sender's signature by ID.
putSmsSenderPUT /sms/senders
Creates or changes the signature of an SMS sender.
querySmsSendersCountHEAD /sms/senders
Returns the number of signatures of SMS senders that match the query.
querySmsSendersGET /sms/senders
Returns the signatures of SMS senders that match the query.

SMS Templates

A group of methods for working with SMS templates.

MethodDescription
createSmsTemplatePOST /sms/templates
Creates an SMS template.
deleteSmsTemplateByIdDELETE /sms/templates/smsTemplateId
Deletes an SMS template by its ID.
deleteSmsTemplatesDELETE /sms/templates
Deletes SMS message templates.
getSmsTemplateByIdGET /sms/templates/smsTemplateId
Returns the SMS template by its ID.
querySmsTemplateCategoriesGET /sms/templates/categories
Returns SMS template categories.
querySmsTemplatesCountHEAD /sms/templates
Returns the number of SMS templates that match the query.
querySmsTemplatesGET /sms/templates
Returns SMS templates that match the query.
updateSmsTemplateByIdPATCH /sms/templates/smsTemplateId
Edits an SMS template by its ID.

Contacts

A group of methods for working with the address book and contacts.

MethodDescription
createContactListContactsPOST /contact_lists/listId/contacts
Creates one or more contacts in the contact list.
createContactListPropertyPOST /contact_lists/listId/properties
Creates an additional field for the contact list.
createContactListSegmentPOST /contact_lists/listId/segments
Creates a new segment for the contact list.
createContactListPOST /contact_lists
Creates a contact list.
deleteContactListByIdDELETE /contact_lists/listId
Deletes a contact list by its ID.
deleteContactListContactByIdDELETE /contact_lists/listId/contacts/contactId
Deletes a contact in the contact list by its ID.
deleteContactListContactsDELETE /contact_lists/listId/contacts
Deletes contacts in the contact list.
deleteContactListPropertyByIdDELETE /contact_lists/listId/properties/propertyId
Deletes a field from the contact list by its ID.
deleteContactListSegmentByIdDELETE /contact_lists/listId/segments/segmentId
Deletes a segment from the contact list by its ID.
deleteContactListsDELETE /contact_lists
Deletes contact lists.
deleteContactListsV1DELETE /contact_lists/v1
Deletes contact lists in legacy format.
deleteContactListV1ByIdDELETE /contact_lists/v1/listId
Deletes a legacy contact list by ID.
getContactListByIdGET /contact_lists/listId
Returns a contact list by its ID.
getContactListContactByIdGET /contact_lists/listId/contacts/contactId
Returns a contact in the contact list by its ID.
getContactListPropertiesGET /contact_lists/listId/properties
Returns the fields in the contact list.
getContactListPropertyByIdGET /contact_lists/listId/properties/propertyId
Returns a field in the contact list by its ID.
getContactListSegmentByIdGET /contact_lists/listId/segments/segmentId
Returns a segment in the contact list by its ID.
getContactListSegmentsGET /contact_lists/listId/segments
Returns the segments in the contact list.
getContactListV1ByIdGET /contact_lists/v1/listId
Returns contact lists in legacy format.
queryContactListContactsCountHEAD /contact_lists/listId/contacts
Returns the number of contacts from the contact list that match the query.
queryContactListContactsGET /contact_lists/listId/contacts
Returns the contacts and contact list that match the query.
queryContactListsCountHEAD /contact_lists
Returns the number of contact lists that match the query.
queryContactListsCountV1HEAD /contact_lists/v1
Returns the number of legacy contact lists that match the query.
queryContactListsGET /contact_lists
Returns lists of contacts that match the query.
queryContactListsV1GET /contact_lists/v1
Returns legacy contact lists that match the query.
updateContactListContactByIdPATCH /contact_lists/listId/contacts/contactId
Edits a contact in the contact list by its ID.
updateContactListContactsPATCH /contact_lists/listId/contacts
Edits contacts in the contact list.
updateContactListPropertyByIdPATCH /contact_lists/listId/properties/propertyId
Edits the contact list field by its ID.
updateContactListSegmentByIdPATCH /contact_lists/listId/segments/segmentId
Edits a contact list segment by its ID.
updateContactListPATCH /contact_lists/listId
Edits the contact list.
upgradeContactListV1ByIdPOST /contact_lists/v1/listId
Upgrades a contact list from a legacy format by its ID to the current format.

History

A group of methods for obtaining information about previously performed actions.

MethodDescription
queryHistoryGET /history
Returns the history of sending SMS messages by phone number.

Payments

Group of methods for working with payments, invoices and transactions.

MethodDescription
activateBonusPOST /payments/bonuses
Activates the promo code.
activateStartupBonusPOST /payments/bonuses/startup
Activates the initial bonus for testing the service.
createDepositRequestPOST /payments/deposits
Starts a deposit operation.
createInvoicePOST /payments/invoices
Creates an invoice for payment via bank transfer.
createPaybackPOST /payments/paybacks
Creates a withdrawal request.
createRecurringPaymentPOST /payments/recurring
Starts auto payment connection.
deleteInvoiceDELETE /payments/invoices/invoiceId
Deletes an invoice.
deleteRecurringPaymentDELETE /payments/recurring
Deletes an enabled auto payment.
getInvoiceByIdGET /payments/invoices/invoiceId
Returns an invoice by its ID.
getInvoicesGET /payments/invoices
Returns invoices.
getPossibleDepositRequestsGET /payments/deposits
Returns available payment options.
getProvidedServicesActsGET /payments/acts
Returns information for printing acts of services provided.
getReferralByIdGET /payments/referrals/referralId
Returns the referral user by their ID.
getReferralStatisticsByIdGET /payments/referrals/referralId/statistics
Returns statistics for a referral user by their ID.
queryReferralCountHEAD /payments/referrals
Returns the number of referral users that matched the query.
queryReferralsGET /payments/referrals
Returns referral users that match the query.
queryTransactionCountHEAD /payments/transactions/group
Returns the number of transactions that matched the query.
queryTransactionsGET /payments/transactions/group
Returns transactions that match the query.

Billing Plans

A group of methods for obtaining information on billing plans.

MethodDescription
getBillingPlansGET /billing_plans
Returns billing plans.

News

A group of methods for receiving BYTEHAND news.

MethodDescription
getNewsByIdGET /news/newsId
Returns a news item by its ID.
queryNewsCountHEAD /news
Returns the number of news items matching the query.
queryNewsGET /news
Returns the news that matches the query.

Applications

Group of methods for working with BYTEHAND applications.

MethodDescription
getApplicationByIdGET /applications/applicationId
Retrieves the application by unique ID.
queryApplicationsCountHEAD /applications
Returns the number of applications matching the query.
queryApplicationsGET /applications
Returns BYTEHAND applications that match the query.

Other

A group of helper methods.

MethodDescription
getCompaniesSuggestionsGET /companies/suggestions
Returns information about legal entities for Russia.
getLegalEntitiesGET /legal_entities
Returns a list of legal entities with which it is possible to sign a contract.
querySmsRouteIntervalsCountHEAD /sms/routes/intervals
Returns the number of route intervals for SMS messages that match the query.
querySmsRouteIntervalsGET /sms/routes/intervals
Returns the route intervals for SMS messages that match the query.
querySmsRoutesCountHEAD /sms/routes
Returns the number of routes for SMS messages that match the query.
querySmsRoutesGET /sms/routes
Returns the routes for SMS messages that match the query.
sendSupportTicketPOST /support
Sends a message to BYTEHAND support.