API Reference v0.4 (Beta)

Pico Cloud REST API

Welcome to the Pico Cloud Technology Ltd API documentation. Our REST API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes.

Base URL https://rest.picotw.com

Authentication

PICO API uses API keys and JWT token to authenticate requests. Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.

Authentication to the API is performed via the following HTTP headers. Only the API for retrieving JWT token does not require the Authorization field. You do not need to provide a password.

Required HTTP Headers
"X-API-Key": "1O1IQxPv53888888899999000538888888999999"
"Authorization": "Bearer eyJhbGciOiJIUzUxMiJ9..."

The JWT token expires if the time interval between each request exceeds 30 minutes. If the token is incorrect or expired, you will receive a 401 error:

401 Unauthorized Example
"msg": "請求訪問:/xxx/yyy,驗證失敗,無法訪問系统資源"
"code": "401"

All API requests must be made over HTTPS. Calls over plain HTTP will fail. Requests without authentication will also fail. Please contact our sales team to get the assigned API keys for your account.

Security Warning

Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, or front-end applications.

IP Whitelist

If you need to enable the IP whitelist feature, use the domain api.picotw.com instead of rest.picotw.com. Submit your IP address on the "HTTP IP Whitelist" page in the Pico platform and contact the sales team for backend approval.

Security Schemes
TypeNameIn
apiKey Authorization HEADER
apiKey X-API-Key HEADER

Errors

Pico Cloud uses conventional HTTP response codes to indicate success or failure. Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error based on the information provided.

HTTP CodeStatusDescription
200 OK The request was successful.
400 BAD_REQUEST The request was unacceptable, often due to a missing or invalid parameter.
401 UNAUTHORIZED JWT token is missing, invalid, or expired. Retrieve a new token and retry.
417 EXPECTATION_FAILED The server could not meet the expectation given in the request.
Error Response Body

All error responses return a JSON body with the following structure:

Error Response Schema
{
  "request_id": "9ca38439-732f-4c88-87c7-0b3eda19dfca",
  "errors": ["Error description message"]
}
GET

Retrieve JWT Token

Before performing operations, you must retrieve a JWT token. This token is required in the Authorization header for all subsequent requests.

Path Parameters

username string

Your unique API account username.

Exampleuser333

Header Parameters

X-API-Key string

Your account API Key.

Example3RbGvrZp...

Response Fields

request_id string

The ID of this request operation.

token string

The JWT token for authentication. Use this in the Authorization: Bearer <token> header for all subsequent API requests.

Responses

HTTP CodeDescriptionSchema
200 OK UserTokenResponse
400 BAD_REQUEST MsgExceptionResponse

Produces

application/json

Security

TypeNameScopes
apiKeyapi_keyglobal
cURL
curl -X GET "https://rest.picotw.com/token/user333" \
  -H "X-API-Key: 3RbGvrZp53888888899999000"
Response 200 OK
{
  "request_id": "9ca38439-732f-4c88-87c7-0b3eda19dfca",
  "token": "eyJhbGciOiJIUzUxMiJ9..."
}
Rate Limit: 1 request per second per API key.
POST

Create Campaign

Create a campaign in your account. Campaigns are used to organise and group your message templates.

POST https://rest.picotw.com/campaign

Body Parameters

username string

API account name.

Exampleuser333
name string

The name of the campaign. Length: 1 – 50 characters.

ExampleMy Campaign
remark string

A description or note for the campaign. Length: 0 – 255 characters.

Responses

HTTP CodeDescriptionSchema
200 OK AddCampaignResponse
400 BAD_REQUEST MsgExceptionResponse
417 EXPECTATION_FAILED MsgExceptionResponse

Consumes

application/json

Produces

application/json

Security

TypeNameScopes
apiKeyauthorizationglobal
apiKeyapi_keyglobal
cURL
curl -X POST "https://rest.picotw.com/campaign" \
  -H "X-API-Key: 1O1IQxPv53888888899999000538888888" \
  -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9..." \
  -H "Content-Type: application/json; charset=utf-8" \
  -d '{
    "username": "user333",
    "name": "Campaign",
    "remark": "Campaign"
  }'
Response 200 OK
{
  "request_id": "db675a0f-c0ca-46b1-bfc1-abf76663feee"
}
GET

List Campaigns

Retrieve a list of all campaigns associated with your account.

GET https://rest.picotw.com/campaign

Response Fields

campaigns array

Array of campaign objects. Each contains campaignId, name, remark, username, and createdDatetime.

request_id string

The ID of this request operation.

total integer

Total number of campaigns in your account.

Example1

Responses

HTTP CodeDescriptionSchema
200 OK FindCampaignResponse
400 BAD_REQUEST MsgExceptionResponse
417 EXPECTATION_FAILED MsgExceptionResponse

Produces

application/json

Security

TypeNameScopes
apiKeyauthorizationglobal
apiKeyapi_keyglobal
cURL
curl -X GET "https://rest.picotw.com/campaign" \
  -H "X-API-Key: 1O1IQxPv53888888899999000538888888" \
  -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9..."
Response 200 OK
{
  "campaigns": [
    {
      "campaignId": "db675a0f-c0ca-46b1-bfc1-abf76663feee",
      "name": "Campaign",
      "remark": "Campaign",
      "username": "user333",
      "createdDatetime": "2024-01-01T00:00:00.000Z"
    }
  ],
  "request_id": "9ca38439-732f-4c88-87c7-0b3eda19dfca",
  "total": 1
}
PUT

Update Campaign

Update the name or remark of an existing campaign in your account.

PUT https://rest.picotw.com/campaign

Body Parameters

campaignId string

The ID of the campaign to update.

Exampledb675a0f-...
username string

API account name.

Exampleuser333
name string

The new name for the campaign. Length: 1 – 50 characters.

ExampleNew Campaign
remark string

An updated note for the campaign. Length: 0 – 255 characters.

Responses

HTTP CodeDescriptionSchema
200 OK UpdateCampaignResponse
400 BAD_REQUEST MsgExceptionResponse
417 EXPECTATION_FAILED MsgExceptionResponse

Consumes

application/json

Produces

application/json

Security

TypeNameScopes
apiKeyauthorizationglobal
apiKeyapi_keyglobal
cURL
curl -X PUT "https://rest.picotw.com/campaign" \
  -H "X-API-Key: 1O1IQxPv53888888899999000538888888" \
  -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9..." \
  -H "Content-Type: application/json; charset=utf-8" \
  -d '{
    "campaignId": "db675a0f-c0ca-46b1-bfc1-abf76663feee",
    "username": "user333",
    "name": "New Campaign",
    "remark": "New Campaign"
  }'
Response 200 OK
{
  "campaign_id": "db675a0f-c0ca-46b1-bfc1-abf76663feee",
  "request_id": "9ca38439-732f-4c88-87c7-0b3eda19dfca"
}
DELETE

Delete Campaign

Permanently delete a campaign from your account.

DELETE https://rest.picotw.com/campaign

Body Parameters

campaignId string

The ID of the campaign to delete.

Exampledb675a0f-...

Responses

HTTP CodeDescriptionSchema
200 OK DeleteCampaignResponse
400 BAD_REQUEST MsgExceptionResponse
417 EXPECTATION_FAILED MsgExceptionResponse

Produces

application/json

Security

TypeNameScopes
apiKeyauthorizationglobal
apiKeyapi_keyglobal
cURL
curl -X DELETE "https://rest.picotw.com/campaign" \
  -H "X-API-Key: 1O1IQxPv53888888899999000538888888" \
  -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9..." \
  -H "Content-Type: application/json; charset=utf-8" \
  -d '{
    "campaignId": "db675a0f-c0ca-46b1-bfc1-abf76663feee"
  }'
Response 200 OK
{
  "campaign_id": "db675a0f-c0ca-46b1-bfc1-abf76663feee",
  "request_id": "9ca38439-732f-4c88-87c7-0b3eda19dfca"
}
POST

Create SMS Template

Create a new SMS template to use for future campaigns.

POST https://rest.picotw.com/template/sms

Body Parameters

username string

API account name.

Exampleuser333
campaignId string

The ID of the campaign to associate this template with.

Exampledb675a0f-...
text string

The content of the SMS template. Length: 1 – 4000 characters.

ExampleHello World

Responses

HTTP CodeDescriptionSchema
200 OK AddMessageTemplateResponse
400 BAD_REQUEST MsgExceptionResponse
417 EXPECTATION_FAILED MsgExceptionResponse

Consumes

application/json

Produces

application/json

Security

TypeNameScopes
apiKeyauthorizationglobal
apiKeyapi_keyglobal
cURL
curl -X POST "https://rest.picotw.com/template/sms" \
  -H "X-API-Key: 1O1IQxPv53888888899999000538888888" \
  -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9..." \
  -H "Content-Type: application/json; charset=utf-8" \
  -d '{
    "username": "user333",
    "campaignId": "db675a0f-c0ca-46b1-bfc1-abf76663feee",
    "text": "【OKX】Due to regional restriction, please upgrade and switch to the international version abcd.xyz abcd.xyz"
  }'
Response 200 OK
{
  "request_id": "9ca38439-732f-4c88-87c7-0b3eda19dfca"
}
POST

Create MMS Template

Create a new MMS template with text, an optional subject, and an optional image URL.

POST https://rest.picotw.com/template/mms

Body Parameters

username string

API account name.

Exampleuser333
campaignId string

The ID of the campaign to associate this template with.

Exampledb675a0f-...
text string

The text content of the MMS template. Length: 1 – 4000 characters.

ExampleHello World
subject string

The subject line of the MMS. Length: 1 – 15 characters.

ExampleNotice
image_url string

The URL of the media image to attach to this MMS template.

Examplehttps://...

Responses

HTTP CodeDescriptionSchema
200 OK AddMessageTemplateResponse
400 BAD_REQUEST MsgExceptionResponse
417 EXPECTATION_FAILED MsgExceptionResponse

Consumes

application/json

Produces

application/json

Security

TypeNameScopes
apiKeyauthorizationglobal
apiKeyapi_keyglobal
cURL
curl -X POST "https://rest.picotw.com/template/mms" \
  -H "X-API-Key: 1O1IQxPv53888888899999000538888888" \
  -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9..." \
  -H "Content-Type: application/json; charset=utf-8" \
  -d '{
    "username": "user333",
    "campaignId": "db675a0f-c0ca-46b1-bfc1-abf76663feee",
    "subject": "Important Notice",
    "text": "Your message content here",
    "image_url": "https://iili.io/abc.jpg"
  }'
Response 200 OK
{
  "request_id": "9ca38439-732f-4c88-87c7-0b3eda19dfca"
}
GET

List Message Templates

Retrieve all message templates in your account, filtered by type (SMS or MMS).

GET https://rest.picotw.com/template?type={SMS|MMS}

Query Parameters

type enum

The type of message template to list.

ExampleSMS

Response Fields

message_templates array

Array of template objects. Each contains templateId, campaignId, campaignName, text, status, username, and createdDatetime.

request_id string

The ID of this request operation.

total integer

Total number of templates returned.

Example1

Responses

HTTP CodeDescriptionSchema
200 OK FindMessageTemplateResponse
400 BAD_REQUEST MsgExceptionResponse
417 EXPECTATION_FAILED MsgExceptionResponse

Produces

application/json

Security

TypeNameScopes
apiKeyauthorizationglobal
apiKeyapi_keyglobal
cURL
curl -X GET "https://rest.picotw.com/template?type=SMS" \
  -H "X-API-Key: 1O1IQxPv53888888899999000538888888" \
  -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9..."
Response 200 OK
{
  "message_templates": [
    {
      "templateId": "04183157-6249-4fbc-bac9-4d1bbf792e89",
      "campaignId": "db675a0f-c0ca-46b1-bfc1-abf76663feee",
      "campaignName": "Campaign",
      "text": "Your template text",
      "status": "active",
      "username": "user333",
      "createdDatetime": "2024-01-01T00:00:00.000Z"
    }
  ],
  "request_id": "9ca38439-732f-4c88-87c7-0b3eda19dfca",
  "total": 1
}
DELETE

Delete Message Template

Permanently delete a message template from your account.

DELETE https://rest.picotw.com/template

Body Parameters

templateId string

The ID of the template to delete.

Example04183157-...

Responses

HTTP CodeDescriptionSchema
200 OK DeleteMessageTemplateResponse
400 BAD_REQUEST MsgExceptionResponse
417 EXPECTATION_FAILED MsgExceptionResponse

Produces

application/json

Security

TypeNameScopes
apiKeyauthorizationglobal
apiKeyapi_keyglobal
cURL
curl -X DELETE "https://rest.picotw.com/template" \
  -H "X-API-Key: 1O1IQxPv53888888899999000538888888" \
  -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9..." \
  -H "Content-Type: application/json; charset=utf-8" \
  -d '{
    "templateId": "04183157-6249-4fbc-bac9-4d1bbf792e89"
  }'
Response 200 OK
{
  "request_id": "9ca38439-732f-4c88-87c7-0b3eda19dfca",
  "templates_id": "04183157-6249-4fbc-bac9-4d1bbf792e89"
}
POST

Send an SMS

Send a single SMS message to a specific phone number. You can use either raw text or a pre-approved templateId.

POST https://rest.picotw.com/sms

Body Parameters

username string · required

API account name.

Exampleuser333
from string · required

The sender ID or number.

Example8612345678888
to string · required

The destination number in E.164 format.

Example8612345678901
text string · conditional

The message body. Length: 1 – 4000. Required if templateId is not provided.

ExampleYour code is 1234
templateId string · conditional

UUID of a pre-approved SMS template. Length: 36. Required if text is not provided.

Examplexxxxxxxx-590b-...
callback string · optional

Webhook URL to receive the Delivery Receipt (DLR). The endpoint must accept HTTP POST requests.

Examplehttps://...

Responses

HTTP CodeDescriptionSchema
200 OK MsgInfo
400 BAD_REQUEST MsgExceptionResponse
417 EXPECTATION_FAILED MsgExceptionResponse

Consumes

application/json

Produces

application/json

Security

TypeNameScopes
apiKeyauthorizationglobal
apiKeyapi_keyglobal
cURL — Using text
curl -X POST "https://rest.picotw.com/sms" \
  -H "X-API-Key: 1O1IQxPv53888888899999000538888888" \
  -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9..." \
  -H "Content-Type: application/json" \
  -d '{
    "username":"user333",
    "from":"8612345678888",
    "to":"8612345678901",
    "text":"Your verification code is 1234",
    "callback":"https://abcdefg.m.pipedream.net/"
  }'
cURL — Using templateId
curl -X POST "https://rest.picotw.com/sms" \
  -H "X-API-Key: 1O1IQxPv53888888899999000538888888" \
  -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9..." \
  -H "Content-Type: application/json" \
  -d '{
    "username":"user333",
    "from":"8612345678888",
    "to":"8612345678901",
    "templateId":"xxxxxxxx-590b-42c5-ab37-ab6894cf3ae8",
    "callback":"https://abcdefg.m.pipedream.net/"
  }'
Response 200 OK
{
  "request_id": "9ca38439-732f-4c88-87c7-0b3eda19dfca"
}
Delivery Receipt (DLR)

When a callback URL is provided, Pico will POST the delivery receipt to that endpoint. If the endpoint does not return HTTP 200, Pico will retry up to 3 times with a 10-minute interval before discarding the receipt.

Sample DLR Payload
{
  "status": "delivered",
  "request_id": "9ca38439-732f-4c88-87c7-0b3eda19dfca",
  "msisdn": "8615512345678",
  "message_timestamp": "2022-01-07T14:21:29.905Z",
  "err-code": "0"
}
DLR Statuses
delivered accepted expired undelivered failed rejected deleted unknown
Rate Limit: 30 requests per second per API key. Contact sales for higher throughput.
POST

Send an MMS

Send a single MMS message using a pre-created MMS template. Each API key is limited to 30 requests per second.

POST https://rest.picotw.com/mms

Body Parameters

username string

API account name.

Exampleuser333
from string

The sender number in E.164 format.

Example8612345678888
to string

Destination number in E.164 format.

Example8612345678901
templateId string

UUID of the MMS template to use for delivery. Length: 36.

Examplexxxxxxxx-...
callback string

Webhook URL to receive the delivery receipt (DLR). Must accept HTTP POST.

Responses

HTTP CodeDescriptionSchema
200 OK MsgInfo
400 BAD_REQUEST MsgExceptionResponse
417 EXPECTATION_FAILED MsgExceptionResponse

Consumes

application/json

Produces

application/json

Security

TypeNameScopes
apiKeyauthorizationglobal
apiKeyapi_keyglobal
cURL
curl -X POST "https://rest.picotw.com/mms" \
  -H "X-API-Key: 1O1IQxPv53888888899999000538888888" \
  -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9..." \
  -H "Content-Type: application/json" \
  -d '{
    "username": "user333",
    "from": "8612345678888",
    "to": "8612345678901",
    "templateId": "xxxxxxxx-590b-42c5-ab37-ab6894cf3ae8",
    "callback": "https://callback.url/"
  }'
Response 200 OK
{
  "request_id": "9ca38439-732f-4c88-87c7-0b3eda19dfca"
}
Rate Limit: 30 requests per second per API key. Contact sales for higher throughput.
POST

Send Voice TTS

Convert text to speech and deliver it as a voice call. PICO's TTS API helps you send automated voice messages to any phone number.

POST https://rest.picotw.com/voice/tts

Body Parameters

username string

API account name.

Exampleuser333
from string

The caller number in E.164 format (e.g., 8612345678888).

Example8612345678888
to string

Destination number in E.164 format (e.g., 8612345678901).

Example8612345678901
text string

The text to be converted to speech. Length: 1 – 4000 characters.

ExampleYour code is 9999

Responses

HTTP CodeDescriptionSchema
200 OK MsgInfo
400 BAD_REQUEST MsgExceptionResponse
417 EXPECTATION_FAILED MsgExceptionResponse

Consumes

application/json

Produces

application/json

Security

TypeNameScopes
apiKeyauthorizationglobal
apiKeyapi_keyglobal
cURL
curl -X POST "https://rest.picotw.com/voice/tts" \
  -H "X-API-Key: 1O1IQxPv53888888899999000538888888" \
  -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9..." \
  -H "Content-Type: application/json" \
  -d '{
    "username":"user333",
    "from":"8612345678888",
    "to":"8612345678901",
    "text":"Your verification code is 9999"
  }'
Response 200 OK
{
  "request_id": "9ca38439-732f-4c88-87c7-0b3eda19dfca"
}
Rate Limit: 30 requests per second per API key. Contact sales for higher throughput.
GET

Get Account Balance

Retrieve the remaining credit balance in your account. Each API key is limited to 1 request per second.

GET https://rest.picotw.com/balance/{username}

Path Parameters

username string

Your API account username.

Exampleuser333

Response Fields

balance string

The remaining balance in the account.

Example1234.56
request_id string

The ID of this request operation.

username string

The API account name associated with this balance.

Exampleuser333

Responses

HTTP CodeDescriptionSchema
200 OK UserBalanceResponse
400 BAD_REQUEST MsgExceptionResponse
417 EXPECTATION_FAILED MsgExceptionResponse

Produces

application/json

Security

TypeNameScopes
apiKeyauthorizationglobal
apiKeyapi_keyglobal
cURL
curl -X GET "https://rest.picotw.com/balance/user333" \
  -H "X-API-Key: 3RbGvrZp53888888899999000" \
  -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9..."
Response 200 OK
{
  "balance": "1234.56",
  "request_id": "9ca38439-732f-4c88-87c7-0b3eda19dfca",
  "username": "user333"
}
Rate Limit: 1 request per second per API key.

Definitions

Data schemas referenced by the API responses above.

AddCampaignRequest
NameDescriptionSchema
namerequiredThe name of campaign
Length: 1 – 50
string
remarkoptionalThe remark of campaign
Length: 0 – 255
string
usernamerequiredAPI account namestring
AddCampaignResponse
NameDescriptionSchema
request_idrequiredThe ID of the created campaignstring
AddMessageTemplateResponse
NameDescriptionSchema
request_idrequiredThe ID of the created templatestring
AddMmsTemplateRequest
NameDescriptionSchema
usernamerequiredAPI account namestring
campaignIdrequiredThe ID of campaignstring
textrequiredThe text of MMS template
Length: 1 – 4000
string
subjectoptionalThe subject of MMS template
Length: 1 – 15
string
image_urloptionalThe media URL of MMS templatestring
AddSmsTemplateRequest
NameDescriptionSchema
usernamerequiredAPI account namestring
campaignIdrequiredThe ID of campaignstring
textrequiredThe text of SMS template
Length: 1 – 4000
string
Campaign
NameDescriptionSchema
campaignIdrequiredThe ID of campaignstring (uuid)
namerequiredThe name of campaignstring
remarkrequiredThe remark of campaignstring
usernamerequiredThe owner of campaignstring
createdDatetimerequiredThe created datetime of campaignstring
DeleteCampaignRequest
NameDescriptionSchema
campaignIdrequiredThe ID of the deleted campaignstring
DeleteCampaignResponse
NameDescriptionSchema
campaign_idrequiredThe ID of the deleted campaignstring
request_idrequiredThe ID of this request operationstring
DeleteMessageTemplateRequest
NameDescriptionSchema
templateIdrequiredThe ID of the deleted templatestring
DeleteMessageTemplateResponse
NameDescriptionSchema
request_idrequiredThe ID of this request operationstring
templates_idrequiredThe ID of the deleted templatestring
FindCampaignResponse
NameDescriptionSchema
campaignsrequiredAll campaigns in your account< Campaign > array
request_idrequiredThe ID of this request operationstring
totalrequiredThe total quantity of campaigns in your accountinteger (int64)
FindMessageTemplateResponse
NameDescriptionSchema
message_templatesrequiredAll templates in your account< MessageTemplate > array
request_idrequiredThe ID of this request operationstring
totalrequiredThe total quantity of templates in your accountinteger (int64)
MessageTemplate
NameDescriptionSchema
templateIdrequiredThe ID of templatestring (uuid)
campaignIdrequiredThe ID of campaignstring (uuid)
campaignNamerequiredThe name of campaignstring
textrequiredThe text of templatestring
statusrequiredThe status of templatestring
usernamerequiredThe owner of templatestring
createdDatetimerequiredThe created datetime of templatestring
subjectoptionalThe subject of MMS templatestring
mediaUrloptionalThe media URL of MMS templatestring
MmsNormalRequest
NameDescriptionSchema
usernamerequiredAPI account namestring
fromrequiredThe deliverer number in E.164 formatstring
torequiredThe recipient number in E.164 formatstring
templateIdrequiredThe ID of template for MMS delivery.
Length: 36
string
MsgExceptionResponse
NameDescriptionSchema
request_idrequiredThe ID of this request operationstring
errorsrequiredThe description of the errors< string > array
MsgInfo
NameDescriptionSchema
request_idrequiredThe ID of this request operationstring
SmsNormalRequest
NameDescriptionSchema
usernamerequiredAPI account namestring
fromrequiredThe deliverer numberstring
torequiredThe recipient number in E.164 formatstring
textrequiredThe message body. Cannot be used with templateId.
Length: 1 – 4000
string
templateIdrequiredTemplate ID for SMS delivery. Cannot be used with text.
Length: 36
string
callbackoptionalWebhook URL for delivery receipt (DLR). Must accept HTTP POST.string
UpdateCampaignRequest
NameDescriptionSchema
campaignIdrequiredThe ID of the updated campaignstring
usernamerequiredAPI account namestring
namerequiredThe name of campaign
Length: 1 – 50
string
remarkoptionalThe remark of campaign
Length: 0 – 255
string
UpdateCampaignResponse
NameDescriptionSchema
campaign_idrequiredThe ID of the updated campaignstring
request_idrequiredThe ID of this request operationstring
UserBalanceResponse
NameDescriptionSchema
balancerequiredThe remaining balance in the accountstring
request_idrequiredThe ID of this request operationstring
usernamerequiredAPI account namestring
UserTokenResponse
NameDescriptionSchema
request_idrequiredThe ID of this request operationstring
tokenrequiredThe JWT token for authenticationstring
VoiceTtsRequest
NameDescriptionSchema
usernamerequiredAPI account namestring
fromrequiredThe caller number in E.164 formatstring
torequiredThe recipient number in E.164 formatstring
textrequiredThe TTS text to be converted.
Length: 1 – 4000
string