Surge
POST
/accounts/{account_id}/blasts

Sends a Blast.

Authorization

authorization
AuthorizationBearer <token>

In: header

Path Parameters

account_id*string

The account for which the blast should be sent.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://api.surge.app/accounts/acct_01j9a43avnfqzbjfch6pygv1td/blasts" \  -H "Content-Type: application/json" \  -d '{    "attachments": [      {        "url": "https://example.com/image.jpg"      }    ],    "body": "Join us for our grand opening!",    "from": "+18015552345",    "name": "Grand Opening Announcement",    "send_at": "2024-02-01T15:00:00Z",    "to": [      "aud_01j9dy8mdzfn3r0e8x1tbdrdrf",      "ctc_01j9dy8mdzfn3r0e8x1tbdrdrf",      "+18015551234",      "+18015555678"    ]  }'
{
  "attachments": [
    {
      "url": "https://example.com/image.jpg"
    }
  ],
  "body": "Join us for our grand opening!",
  "id": "bst_01j9dy8mdzfn3r0e8x1tbdrdrf",
  "name": "Grand Opening Announcement",
  "send_at": "2024-02-01T15:00:00Z"
}
{
  "error": {
    "message": "The requested resource could not be found.",
    "type": "not_found"
  }
}