BUCKET

A bucket is a collection of phone numbers that can be uploaded, organized into an excel format

CREATE BUCKET

This endpoint allows you to create a bucket which contains all the phone numbers to be reached via sms.

POST https://sandbox-api-d.squadco.com/sms/bucket

Request Body

Name
Type
Description

name*

String

Name of the bucket

description*

String

Description of bucket

file_name*

String

name of file (should have a .csv extension)

Once a request is successfully sent a file path (signed_url) is provided in the response message, you are to follow the link on a browser and upload a csv file containing the list of phone numbers

Sample Request

{
  "name": "file1234",
  "description": "baa baa black sheep",
  "file_name": "teest.csv"
}
{
    "status": 200,
    "success": true,
    "message": "Success",
    "data": {
        "uuid": "ec571a9a-0c78-4d98-9956-1e5ede72d344",
        "status": "pending",
        "name": "file1234",
        "description": "baa baa black sheep",
        "merchant_id": "AABBCCDDEEFFGGHHJJKK",
        "updatedAt": "2025-05-22T09:34:58.800Z",
        "createdAt": "2025-05-22T09:34:58.800Z",
        "size": null,
        "file_url": null,
        "estimated_cost": null,
        "headers": null,
        "meta": null,
        "signed_url": "https://s3.eu-west-2.amazonaws.com/squadinc.co-gateway-mobile-app-service-dev/bulk_sms/AABBCCDDEEFFGGHHJJKK/campaign/ec571a9a-0c78-4d98-9956-1e5ede72d344/teest.csv/1747906498860-523754.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAYPHEQVFJHOQDZNU6%2F20250522%2Feu-west-2%2Fs3%2Faws4_request&X-Amz-Date=20250522T093458Z&X-Amz-Expires=300&X-Amz-Signature=1f1f0017519941522352b1e8496d41b7641d7a8dd800cc3948afaf8850f86e79&X-Amz-SignedHeaders=host%3Bx-amz-acl&x-amz-acl=public-read"
    }
}

GET ALL CREATED BUCKETS

This endpoint allows you to retrieve created buckets

GET https://sandbox-api-d.squadco.com/sms/bucket

DELETE CREATED BUCKETS

This endpoint allows you to delete a bucket

DELETE https://sandbox-api-d.squadco.com//sms/bucket/{{:id}}

id is a String

Sample Response

Last updated

Was this helpful?