Skip to main content

arianet sms

This reference is generated from the CLI's own help on every release, so it always matches the latest arianet. The command help is the same text arianet <command> --help prints. For installation, configuration and a guided start, see the CLI page.

The global flags work with every command on this page.

arianet sms​

Send verification codes and service notices from approved templates

Send verification codes and service notices to your own users through your sender lines, and read what was sent and received. The service carries service messages only: every message is an approved template (arianet sms templates create, reviewed within minutes) whose {placeholders} are filled with short values (one line, at most 40 characters, no link or phone number). Advertising is not accepted. A new account submits its activation request first (arianet sms application submit).

The commands call /sms/v1 on the API host with your API token. Token scopes: sms:messages:read, sms:messages:write, sms:lines:read, sms:templates:read, sms:templates:write (a token without scopes may do everything). --region picks a regional install (default: the product's default region). Add -o json to print the service's answer as is.

Token scopes: sms:messages:read, sms:messages:write, sms:lines:read, sms:templates:read, sms:templates:write

Usage

arianet sms <command>

Flags

FlagTypeDefaultDescription
--regionstringregional install to call, e.g. iran-1 (default: the product's default region)

Subcommands

  • api: Send any request to the /sms/v1 API and print the answer as JSON
  • application: Your activation request: what you send and to whom
  • batches: Read send batches
  • blocked: Manage numbers you never send to
  • inbound: List messages received on your lines
  • lines: List your sender lines or ask for a dedicated one
  • lookup: Send an approved template to one recipient (verification codes, notices)
  • messages: Read sent messages
  • prices: Show the price per message and its volume tiers
  • report: Show the sending summary (sent, delivered, failed, spend)
  • scheduled: List and cancel scheduled sends
  • send: Send an approved template to up to 100 recipients, now or at a set time
  • templates: Manage message templates
  • webhook: Manage the webhook (batch, delivery and inbound events)

arianet sms api​

Send any request to the /sms/v1 API and print the answer as JSON

Usage

arianet sms api <method> <path> [flags]

Examples

arianet sms api GET /openapi.json
arianet sms api POST /some/path --data '{"key":"value"}'

Flags

FlagTypeDefaultDescription
--datastringthe JSON request body
--filestringread the JSON request body from this file

Inherited flags: --region (from arianet sms)

arianet sms application​

Your activation request: what you send and to whom

Usage

arianet sms application <command>

Aliases: activation

Inherited flags: --region (from arianet sms)

Subcommands

  • get: Show whether the account is active and its latest request
  • submit: Submit the activation request (reviewed before the account can send)

arianet sms application get​

Show whether the account is active and its latest request

Usage

arianet sms application get [flags]

Aliases: show, status

Examples

arianet sms application get

Inherited flags: --region (from arianet sms)

arianet sms application submit​

Submit the activation request (reviewed before the account can send)

Usage

arianet sms application submit [flags]

Examples

arianet sms application submit --brand "Acme Shop" --website acme.example --use-case otp --use-case transactional \
--description "Login codes and order status messages to customers registered in our shop" --accept-terms

Flags

FlagTypeDefaultDescription
--accept-termsboolyou send service messages to your own users only, never advertising (required)
--brandstringbrand name that appears in your messages (required)
--descriptionstringwhat you send, to whom, and why they expect it (at least 20 characters) (required)
--samplestringa sample message
--use-casestringArrayotp, transactional or alerts (required) (repeatable, or comma separated)
--websitestringyour website or app; links in templates may only point there

Inherited flags: --region (from arianet sms)

arianet sms batches​

Read send batches

Usage

arianet sms batches <command>

Aliases: batch

Inherited flags: --region (from arianet sms)

Subcommands

  • get: Show one batch
  • list: List batches

arianet sms batches get​

Show one batch

Usage

arianet sms batches get <batch-id> [flags]

Aliases: show

Examples

arianet sms batches get 1204

Inherited flags: --region (from arianet sms)

arianet sms batches list​

List batches

Usage

arianet sms batches list [flags]

Aliases: ls

Examples

arianet sms batches list --per-page 20

Flags

FlagTypeDefaultDescription
--pagestringpage number
--per-pagestringitems per page (at most 200)

Inherited flags: --region (from arianet sms)

arianet sms blocked​

Manage numbers you never send to

Usage

arianet sms blocked <command>

Aliases: blocked-recipients, blocklist

Inherited flags: --region (from arianet sms)

Subcommands

  • add: Block a number
  • delete: Unblock a number
  • list: List blocked numbers

arianet sms blocked add​

Block a number

Usage

arianet sms blocked add [flags]

Examples

arianet sms blocked add --phone 09121234567 --note 'asked to stop'

Flags

FlagTypeDefaultDescription
--notestringwhy (optional)
--phonestringmobile number (required)

Inherited flags: --region (from arianet sms)

arianet sms blocked delete​

Unblock a number

Usage

arianet sms blocked delete <id> [flags]

Aliases: rm, unblock

Examples

arianet sms blocked delete 17

Inherited flags: --region (from arianet sms)

arianet sms blocked list​

List blocked numbers

Usage

arianet sms blocked list [flags]

Aliases: ls

Examples

arianet sms blocked list
arianet sms blocked list --phone 0912

Flags

FlagTypeDefaultDescription
--pagestringpage number
--per-pagestringitems per page (at most 200)
--phonestringonly numbers containing this

Inherited flags: --region (from arianet sms)

arianet sms inbound​

List messages received on your lines

Usage

arianet sms inbound [flags]

Examples

arianet sms inbound --per-page 50

Flags

FlagTypeDefaultDescription
--pagestringpage number
--per-pagestringitems per page (at most 200)

Inherited flags: --region (from arianet sms)

arianet sms lines​

List your sender lines or ask for a dedicated one

Usage

arianet sms lines <command>

Aliases: line

Inherited flags: --region (from arianet sms)

Subcommands

  • list: List the sender lines you can send from
  • request: Ask for a dedicated sender line (opens a request with support)

arianet sms lines list​

List the sender lines you can send from

Usage

arianet sms lines list [flags]

Aliases: ls

Examples

arianet sms lines list

Flags

FlagTypeDefaultDescription
--pagestringpage number
--per-pagestringitems per page (at most 200)

Inherited flags: --region (from arianet sms)

arianet sms lines request​

Ask for a dedicated sender line (opens a request with support)

Usage

arianet sms lines request [flags]

Examples

arianet sms lines request --number 30001234 --note 'for OTP codes'

Flags

FlagTypeDefaultDescription
--notestringanything support should know (optional)
--numberstringthe number you would like (optional)

Inherited flags: --region (from arianet sms)

arianet sms lookup​

Send an approved template to one recipient (verification codes, notices)

Usage

arianet sms lookup [flags]

Examples

arianet sms lookup --to 09121234567 --template login --token code=48213
arianet sms lookup --to 09121234567 --template 7 --token order=A-1001 --token date=1405/09/01 --from 3

Flags

FlagTypeDefaultDescription
--fromstringsender line number or ID; the account's default line when not given
--referencestringyour own reference; a send repeated with the same reference is not sent twice
--templatestringapproved template name or ID (required)
--tostringrecipient mobile number (required)
--tokenstringArrayvalue of a {placeholder} of the template (repeatable name=value)

Inherited flags: --region (from arianet sms)

arianet sms messages​

Read sent messages

Usage

arianet sms messages <command>

Aliases: message, msg

Inherited flags: --region (from arianet sms)

Subcommands

  • get: Show one message and its delivery
  • list: List sent messages

arianet sms messages get​

Show one message and its delivery

Usage

arianet sms messages get <message-id> [flags]

Aliases: show

Examples

arianet sms messages get 90211

Inherited flags: --region (from arianet sms)

arianet sms messages list​

List sent messages

Usage

arianet sms messages list [flags]

Aliases: ls

Examples

arianet sms messages list --status failed
arianet sms messages list --to 09121234567 --batch 1204

Flags

FlagTypeDefaultDescription
--batchstringonly the messages of this batch
--pagestringpage number
--per-pagestringitems per page (at most 200)
--statusstringonly messages in this status, e.g. delivered or failed
--tostringonly messages to this number

Inherited flags: --region (from arianet sms)

arianet sms prices​

Show the price per message and its volume tiers

Usage

arianet sms prices [flags]

Examples

arianet sms prices

Inherited flags: --region (from arianet sms)

arianet sms report​

Show the sending summary (sent, delivered, failed, spend)

Usage

arianet sms report [flags]

Examples

arianet sms report --from 2026-11-01 --to 2026-11-30

Flags

FlagTypeDefaultDescription
--fromstringfirst day, e.g. 2026-11-01
--tostringlast day, e.g. 2026-11-30

Inherited flags: --region (from arianet sms)

arianet sms scheduled​

List and cancel scheduled sends

Usage

arianet sms scheduled <command>

Aliases: schedule

Inherited flags: --region (from arianet sms)

Subcommands

  • cancel: Cancel a pending scheduled send
  • list: List scheduled sends

arianet sms scheduled cancel​

Cancel a pending scheduled send

Usage

arianet sms scheduled cancel <scheduled-id> [flags]

Aliases: delete, rm

Examples

arianet sms scheduled cancel 66 --yes

Flags

FlagTypeDefaultDescription
-y, --yesboolskip the confirmation prompt

Inherited flags: --region (from arianet sms)

arianet sms scheduled list​

List scheduled sends

Usage

arianet sms scheduled list [flags]

Aliases: ls

Examples

arianet sms scheduled list

Flags

FlagTypeDefaultDescription
--pagestringpage number
--per-pagestringitems per page (at most 200)

Inherited flags: --region (from arianet sms)

arianet sms send​

Send an approved template to up to 100 recipients, now or at a set time

Usage

arianet sms send [flags]

Examples

arianet sms send --from 3 --to 09121234567,09351234567 --template 7 --token order=A-1001 --reference order-981
arianet sms send --from 3 --to 09121234567 --template renewal --token date=1405/09/01 --at 2026-12-01T09:00:00+03:30

Flags

FlagTypeDefaultDescription
--atstringsend later, at this ISO 8601 time; the send is then listed by arianet sms scheduled list
--datastringthe JSON request body; flags given as well override its fields
--filestringread the JSON request body from this file
--fromint64sender line ID (arianet sms lines list) (required)
--referencestringyour own reference; a send repeated with the same reference is not sent twice
--templatestringapproved template ID or name (arianet sms templates list) (required)
--tostringArrayrecipient mobile number, at most 100 (required) (repeatable, or comma separated)
--tokenstringArrayvalue of a {placeholder} of the template (repeatable name=value)

Inherited flags: --region (from arianet sms)

arianet sms templates​

Manage message templates

Usage

arianet sms templates <command>

Aliases: template

Inherited flags: --region (from arianet sms)

Subcommands

  • create: Create a template (sent for review; usable once approved)
  • delete: Delete a template
  • get: Show one template
  • list: List templates and their review status
  • update: Replace a template's name and text (a changed text is reviewed again)

arianet sms templates create​

Create a template (sent for review; usable once approved)

Usage

arianet sms templates create [flags]

Examples

arianet sms templates create --name login --category otp --body "Your Acme login code: {code}"

Flags

FlagTypeDefaultDescription
--bodystringtemplate text; variable parts are written {name} (lower-case letters, digits, _) (required)
--categorystringotp or transactional (default transactional)
--namestringtemplate name, unique in your account (required)

Inherited flags: --region (from arianet sms)

arianet sms templates delete​

Delete a template

Usage

arianet sms templates delete <template-id> [flags]

Aliases: rm

Examples

arianet sms templates delete 8 --yes

Flags

FlagTypeDefaultDescription
-y, --yesboolskip the confirmation prompt

Inherited flags: --region (from arianet sms)

arianet sms templates get​

Show one template

Usage

arianet sms templates get <template-id> [flags]

Aliases: show

Examples

arianet sms templates get 8

Inherited flags: --region (from arianet sms)

arianet sms templates list​

List templates and their review status

Usage

arianet sms templates list [flags]

Aliases: ls

Examples

arianet sms templates list

Flags

FlagTypeDefaultDescription
--pagestringpage number
--per-pagestringitems per page (at most 200)

Inherited flags: --region (from arianet sms)

arianet sms templates update​

Replace a template's name and text (a changed text is reviewed again)

Usage

arianet sms templates update <template-id> [flags]

Examples

arianet sms templates update 8 --name login-code --category otp --body 'Your code: {code}'

Flags

FlagTypeDefaultDescription
--bodystringtemplate text (required)
--categorystringotp or transactional
--namestringtemplate name (required)

Inherited flags: --region (from arianet sms)

arianet sms webhook​

Manage the webhook (batch, delivery and inbound events)

Usage

arianet sms webhook <command>

Inherited flags: --region (from arianet sms)

Subcommands

  • get: Show the webhook URL and its signing secret
  • rotate-secret: Replace the webhook signing secret
  • set: Set the webhook URL (an empty --url turns it off)

arianet sms webhook get​

Show the webhook URL and its signing secret

Usage

arianet sms webhook get [flags]

Aliases: show

Examples

arianet sms webhook get

Inherited flags: --region (from arianet sms)

arianet sms webhook rotate-secret​

Replace the webhook signing secret

Usage

arianet sms webhook rotate-secret [flags]

Examples

arianet sms webhook rotate-secret --yes

Flags

FlagTypeDefaultDescription
-y, --yesboolskip the confirmation prompt

Inherited flags: --region (from arianet sms)

arianet sms webhook set​

Set the webhook URL (an empty --url turns it off)

Usage

arianet sms webhook set [flags]

Examples

arianet sms webhook set --url https://example.com/hooks/sms --events message.delivered,message.failed
arianet sms webhook set --url ''

Flags

FlagTypeDefaultDescription
--enabledboolturn the webhook on or off
--eventsstringArrayper-message events: message.delivered,message.failed,inbound.received (batch.completed is always sent) (repeatable, or comma separated)
--urlstringHTTPS URL that receives the events (required)

Inherited flags: --region (from arianet sms)