Hosted tool

Send SMS

Coming

Send a notification to a consenting recipient.

phone.smsversion 1

Price

0.01

credits per call

Compute only: upstream charges are not included in this price.

Availability

Coming

Published in the catalog, not yet callable.

Access

Coming

Category Phone & Messaging

Input

{
  "additionalProperties": false,
  "properties": {
    "account_id": {
      "maxLength": 80,
      "minLength": 1,
      "type": "string"
    },
    "body": {
      "maxLength": 160,
      "minLength": 1,
      "type": "string"
    },
    "to": {
      "maxLength": 32,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "account_id",
    "to",
    "body"
  ],
  "type": "object"
}

Result

object<{message_id:string,status:string}>

Default fields: message_id status

Limits

Synchronous deadline15 s
Maximum result65,536 bytes
Result pages1
Maximum upstream read1,048,576 bytes

Example call

Provisional: the invoke contract ships with the execution lane

curl https://haidercode.ai/v1/tools/phone.sms/invoke \
  -H "Authorization: Bearer <HK_KEY>" \
  -H "Content-Type: application/json" \
  -H 'Idempotency-Key: sms-1' \
  -d '{"arguments":{"account_id":"…","to":"…","body":"…"},"max_credits":"0.05"}'

Bound every paid call with max_credits, and repeat the same Idempotency-Key to recover a result rather than pay twice.

phone

Back to the list