Types:
from sent_dm.types import (
APIMeta,
APIResponseWebhook,
CallEvent,
CallEventPayload,
ChannelEvent,
ChannelEventPayload,
ContactEvent,
ContactEventPayload,
ErrorDetail,
InboundMessageEvent,
InboundMessageEventPayload,
MessageEvent,
MessageEventPayload,
MutationRequest,
PaginationMeta,
TemplateEvent,
TemplateEventPayload,
WebhookEventType,
WebhookResponse,
WebhookListEventTypesResponse,
WebhookListEventsResponse,
WebhookRotateSecretResponse,
WebhookTestResponse,
)Methods:
client.webhooks.create(**params) -> APIResponseWebhookclient.webhooks.retrieve(id) -> APIResponseWebhookclient.webhooks.update(id, **params) -> APIResponseWebhookclient.webhooks.list(**params) -> SyncWebhooksPage[WebhookResponse]client.webhooks.delete(id) -> Noneclient.webhooks.list_event_types() -> WebhookListEventTypesResponseclient.webhooks.list_events(id, **params) -> SyncWebhookEventsPage[WebhookListEventsResponse]client.webhooks.rotate_secret(id, **params) -> WebhookRotateSecretResponseclient.webhooks.test(id, **params) -> WebhookTestResponseclient.webhooks.toggle_status(id, **params) -> APIResponseWebhook
Types:
from sent_dm.types import APIResponseOfUser, UserResponse, UserListResponseMethods:
client.users.retrieve(user_id) -> APIResponseOfUserclient.users.list() -> UserListResponseclient.users.invite(**params) -> APIResponseOfUserclient.users.remove(user_id, **params) -> Noneclient.users.update_role(user_id, **params) -> APIResponseOfUser
Types:
from sent_dm.types import (
APIResponseTemplate,
AuthenticationConfig,
Template,
TemplateBody,
TemplateBodyContent,
TemplateButton,
TemplateButtonProps,
TemplateDefinition,
TemplateFooter,
TemplateHeader,
TemplateVariable,
)Methods:
client.templates.create(**params) -> APIResponseTemplateclient.templates.retrieve(id) -> APIResponseTemplateclient.templates.update(id, **params) -> APIResponseTemplateclient.templates.list(**params) -> SyncTemplatesPage[Template]client.templates.delete(id, **params) -> None
Types:
from sent_dm.types import (
APIResponseOfProfileDetail,
BillingContactInfo,
BrandBusinessInfo,
BrandComplianceInfo,
BrandContactInfo,
BrandsBrandData,
DestinationCountry,
PaymentDetails,
ProfileDetail,
TcrBrandRelationship,
TcrVertical,
ProfileListResponse,
ProfileCompleteResponse,
)Methods:
client.profiles.create(**params) -> APIResponseOfProfileDetailclient.profiles.retrieve(profile_id) -> APIResponseOfProfileDetailclient.profiles.update(profile_id, **params) -> APIResponseOfProfileDetailclient.profiles.list() -> ProfileListResponseclient.profiles.delete(profile_id, **params) -> Noneclient.profiles.complete(profile_id, **params) -> ProfileCompleteResponse
Types:
from sent_dm.types.profiles import (
APIResponseOfBrandCampaign,
APIResponseOfListOfBrandCampaign,
BrandCampaign,
CampaignData,
CampaignUseCase,
CampaignUseCaseData,
MessagingUseCaseUs,
)Methods:
client.profiles.campaigns.create(profile_id, **params) -> APIResponseOfBrandCampaignclient.profiles.campaigns.update(campaign_id, *, profile_id, **params) -> APIResponseOfBrandCampaignclient.profiles.campaigns.list(profile_id) -> APIResponseOfListOfBrandCampaignclient.profiles.campaigns.delete(campaign_id, *, profile_id, **params) -> None
Types:
from sent_dm.types import NumberLookupResponseMethods:
client.numbers.lookup(phone_number) -> NumberLookupResponse
Types:
from sent_dm.types import (
MessageRetrieveActivitiesResponse,
MessageRetrieveStatusResponse,
MessageSendResponse,
)Methods:
client.messages.retrieve_activities(id) -> MessageRetrieveActivitiesResponseclient.messages.retrieve_status(id) -> MessageRetrieveStatusResponseclient.messages.send(**params) -> MessageSendResponse
Types:
from sent_dm.types import (
APIResponseOfContact,
APIResponseOfContactMessageSummary,
ContactMessageSummary,
ContactResponse,
)Methods:
client.contacts.create(**params) -> APIResponseOfContactclient.contacts.retrieve(id) -> APIResponseOfContactclient.contacts.update(id, **params) -> APIResponseOfContactclient.contacts.list(**params) -> SyncContactsPage[ContactResponse]client.contacts.delete(id, **params) -> Noneclient.contacts.retrieve_message_summary(contact_id) -> APIResponseOfContactMessageSummary
Types:
from sent_dm.types import APIResponseOfConversationMessagesList, ConversationMessagesListMethods:
client.conversations.list(**params) -> SyncConversationsPage[Message]client.conversations.list_messages(id, **params) -> SyncConversationsPage[Message]
Types:
from sent_dm.types import (
APIResponseOfCall,
APIResponseOfCallRecordings,
APIResponseOfCallsList,
Call,
CallParty,
CallRecording,
CallRecordings,
CallTimelineEntry,
CallsList,
)Methods:
client.calls.retrieve(id) -> APIResponseOfCallclient.calls.list(**params) -> SyncCallsPage[Call]client.calls.hangup(id, **params) -> Noneclient.calls.list_recordings(id) -> APIResponseOfCallRecordingsclient.calls.record(id, **params) -> None
Types:
from sent_dm.types.calls import (
APIResponseOfListOfCallParticipant,
CallParticipant,
CallParticipantTarget,
)Methods:
client.calls.participants.update(participant_id, *, id, **params) -> Noneclient.calls.participants.list(id) -> APIResponseOfListOfCallParticipantclient.calls.participants.add(id, **params) -> APIResponseOfCallclient.calls.participants.remove(participant_id, *, id, **params) -> Noneclient.calls.participants.remove_all(id, **params) -> None
Types:
from sent_dm.types.channels import (
APIResponseOfListOfVoiceNumber,
APIResponseOfVoiceCallbackTest,
APIResponseOfVoiceNumber,
APIResponseOfVoiceNumberCreated,
APIResponseOfVoiceSecret,
APIResponseOfVoiceToken,
VoiceCallbackTest,
VoiceCallbackTestErrorInfo,
VoiceCallbackTestRequestInfo,
VoiceCallbackTestResponseInfo,
VoiceNumber,
VoiceNumberCreated,
VoiceSecret,
VoiceToken,
)Methods:
client.channels.voice.create(**params) -> APIResponseOfVoiceNumberCreatedclient.channels.voice.retrieve(number) -> APIResponseOfVoiceNumberclient.channels.voice.update(number, **params) -> APIResponseOfVoiceNumberclient.channels.voice.list() -> APIResponseOfListOfVoiceNumberclient.channels.voice.create_token(**params) -> APIResponseOfVoiceTokenclient.channels.voice.rotate_secret(number, **params) -> APIResponseOfVoiceSecretclient.channels.voice.test(number, **params) -> APIResponseOfVoiceCallbackTest
Types:
from sent_dm.types import ProfileSettings, MeRetrieveResponseMethods:
client.me.retrieve() -> MeRetrieveResponse