Custom Business Name (Alpha ID)
This API is to create a Sender ID using your Business Name. Send a request to our team to use your business name. Our team will contact you to verity and activate your new Alpha ID.
Parameters for Creating Business Name
Headers Parameters
Parameters | Description |
---|---|
Authorization | Please add provided Bearer token - linked to your Cellcast account. Check here |
Content-Type | application/json |
Request Body Parameters
Name | Example | Description |
---|---|---|
businessname | Pizza Business | Required. Must be between 3 and 11 characters. |
customerContact | +61400000000 | Optional. Your contact number. We may contact you on this number for business name approval. You can use formats +61400000000 , 61400000000 , 0400000000 , or 400000000 . |
Code Samples
Post https://api.cellcast.com/api/v1/business/add
bash
curl --location 'https://api.cellcast.com/api/v1/business/add' \
--header 'authorization: Bearer {{API_KEY}}' \
--header 'content-type: application/json' \
--data '{
"businessname":"Pizza Business",
"customerContact":"+61400000000"
}'
js
const axios = require('axios');
async function addBusiness() {
const url = 'https://api.cellcast.com/api/v1/business/add';
const apiKey = 'your_api_key_here'; // Replace with your actual API key
const payload = {
businessname: 'Pizza Business',
customerContact: '+61400000000',
};
try {
const response = await axios.post(url, payload, {
headers: {
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
});
console.log('Response:', response.data);
} catch (error) {
console.error('Error:', error.response ? error.response.data : error.message);
}
}
addBusiness();
Replace with the actual API key that you own.
Responses
200 Success
json
{
"app_type": "web",
"app_version": "1.0",
"maintainence": 0,
"new_version": 0,
"force_update": 0,
"invalid_token": 0,
"refresh_token": "",
"show_message": 0,
"is_enc": false,
"status": true,
"message": "Request added successfully for business name!",
"message_type": "toast",
"data": {
"isDeleted": false,
"isDefault": false,
"_id": "6764ecd0adc3a30000000000",
"businessname": "Pizza Business",
"user": "67458f462d96c90000000000",
"requestedAt": "2024-12-20T04:04:32.661Z",
"status": "REQUESTED",
"createdBy": "67458f462d96c90000000000",
"createdAt": "2024-12-20T04:04:32.662Z",
"updatedAt": "2024-12-20T04:04:32.662Z",
"__v": 0
},
"error": {}
}
400 Business Name Required
json
{
"app_type": "web",
"app_version": "1.0",
"maintainence": 0,
"new_version": 0,
"force_update": 0,
"invalid_token": 0,
"refresh_token": "",
"show_message": 0,
"is_enc": false,
"status": true,
"message": "Busniess Name is required!",
"message_type": "toast",
"data": 400,
"error": {}
}
401 Unauthorized
json
{
"code": 401,
"message": "Token expired",
"stack": "APIError: Token expired ...."
}