For authentication,The Username and Password should be sent as a Basic Auth tokens in the Authorization header of the request. Create account.

API endpoint:

get
https://api.txt.ws/v3/template_get/{template_id}

Description:

Received existing template

Request example

curl --location --request GET 'https://api.txt.ws/v3/template_get/212' \
--header 'Authorization: Basic {api_key:secret_key}'
--header 'Content-Type: application/json'
Parameter Type Description
template_id Required string message template unique id

API endpoint:

post
https://api.txt.ws/v3/template_insert

Description:

Create new message template

Request example

curl --location --request POST 'https://api.txt.ws/v3/template_insert' \
--header 'Authorization: Basic {api_key:secret_key}'
--header 'Content-Type: application/json' \
--data-raw '{
"name":"",
"content":"",
}'
Parameter Type Description
name Required string Message template name
content Required string Message template content

API endpoint:

post
https://api.txt.ws/v3/template_update/{template_id}

Description:

Update message template

Request example

curl --location --request POST 'https://api.txt.ws/v3/template_update' \
--header 'Authorization: Basic {api_key:secret_key}'
--header 'Content-Type: application/json' \
--data-raw '{
"name":"",
"content":"",
}'
Parameter Type Description
name Required string name
content Required string content
template_id Required string template_id

API endpoint:

delete
https://api.txt.ws/v3/subscriber_delete/{template_id}

Description:

Delete message template

Request example

curl --location --request DELETE 'https://api.txt.ws/v3/template_delete/232' \
--header 'Authorization: Basic {api_key:secret_key}' \
--header 'Content-Type: application/json'
Parameter Type Description
template_id Required string message template unique id

API endpoint:

post
https://api.txt.ws/v3/template_list

Description:

Getting message template list.

Request example

curl --location --request POST 'https://api.txt.ws/v3/template_list' \
--header 'Accept: application/json' \
--header 'Authorization: Basic {api_key:secret_key}' \
--data-raw '{
"start_date":"string",
"end_date":"string",
"page_size":"integer",
"page_num":"integer",
"template_id":"string",
}'
Parameter Type Description
start_date Optional string Start date range
end_date Optional string End date range
page_size Optional integer Result page size; integer value
page_num Optional integer Result page number; integer value
template_id Optional string Message Template ID

Join the movement
to grow your brand with
TXT Inc everyday

START
YOUR CAMPAIGN
-->