You can see below the API reference of this module.
Creates the instance of the Karix
class.
- Object
options
: An object containing: accountId
(String): Karix Account ID (mandatory).accountToken
(String): Karix Account Token (mandatory)host
(String): Thekarix.io
host (default:https://api.karix.io/
).
Create a new subaccount
- Object
data
: The Subaccount object as documented here. - Function
cb
: The callback function.
Get a list of details of all subaccounts, including the main account.
- Object
params
: The query params as documented here. - Function
cb
: The callback function.
Get details of an account by its uid. Both main account and subaccounts can be fetched using their uids.
- String
uid
: Alphanumeric ID of the subaccount to get. - Function
cb
: The callback function.
Edit details of your account or its subaccount
- String
uid
: Alphanumeric ID of the subaccount to edit. - Object
data
: The Subaccount object (documented here). - Function
cb
: The callback function.
Send a message to a list of destinations.
- Object
data
: The Create Message object data (documented here). - Function
cb
: The callback function.
Get list of messages sent or received. Sorted by descending order of created_time (latest messages are first)
- Object
params
: The query params (documented here). - Function
cb
: The callback function.
Get message details by id.
- String
uid
: Alphanumeric ID of the message to get. - Function
cb
: The callback function.
Download or Stream media by id
- String
uid
: Alphanumeric ID of the media to get. - Function
cb
: The callback function.
Create webhooks to receive Message
- Object
data
: The Create Webhook object (documented here). - Function
cb
: The callback function.
Get a list of your webhooks
- Object
params
: The query params (documented here). - Function
cb
: The callback function.
Get a webhook by ID
- Object
params
: Alphanumeric ID of the webhook to get. - Function
cb
: The callback function.
Edit a webhook
- String
uid
: Alphanumeric ID of the webhook to edit. - Object
data
: The request body (documented here). - Function
cb
: The callback function.
Delete a webhook by ID
- String
uid
: Alphanumeric ID of the webhook to delete. - Function
cb
: The callback function.
Query for phone numbers in our inventory.
- Object
params
: The query params (documented here). - Function
cb
: The callback function.
Rent a phone number
- Object
data
: The Rent Details object (documented here). - Function
cb
: The callback function.
Get details of all phone numbers linked to your account.
- Object
params
: The query params data (documented here). - Function
cb
: The callback function.
Get details of a number
- Integer
number
: Number for which details need to be fetched. - Function
cb
: The callback function.
Edit phone number belonging to your account
- Integer
number
: Number which needs to be edited. - Object
data
: The request body object (documented here). - Function
cb
: The callback function.
Unrent number from your account
- Integer
number
: Number which needs to be unrented. - Function
cb
: The callback function.