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://squadbygtco.com:8080/dashboard/bucket

Request Body

Name
Type
Description

name*

String

Name of the bucket

description*

String

Description of bucket

Client_id*

Integer

Unique Client ID pre-assigned

items*

Object

Phone number and detail of each

Sample Request

{
  "name": "nov2022",
    "description": "November birthdays",
    "client_id": 1,
    "items": [
        {
            "phone_number": "0701234",
            "param1": "012"
        },
        {
            "phone_number": "0701234",
            "param1": "012"
        }
    ]

}

GET ALL CREATED BUCKETS

This endpoint allows you to retrieve created buckets

GET https://squadbygtco.com:8080/dashboard/bucket/by-client/1?page=1&count=10

UPDATE CREATED BUCKETS

This endpoint allows you to edit details for already created buckets. It allows editing the name of the bucket

PATCH https://squadbygtco.com:8080/dashboard/bucket/1

Sample Request

DELETE CREATED BUCKETS

This endpoint allows you to delete a bucket

DELETE https://squadbygtco.com:8080/dashboard/bucket/1

Sample Response

Last updated

Was this helpful?