Subaccounts (1.0.0)

Everything about Subaccounts.

View Subaccounts

Get all subaccounts

Parameters

Parameter In Type Required Description
page query integer(int32) false Page number
limit query integer(int32) false Number of records per page

Refer to Status Codes for definitions of HTTP status code responses.

This endpoint requires authentication, more info...
Request
header Parameters
Content-Type
string
Example: application/json
Responses
200

Successful response

get/v3/subaccounts
Request samples
curl --include \
     --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \

'https://rest.clicksend.com/v3/subaccounts'
Response samples
application/json
{
  • "http_code": 200,
  • "response_code": "SUCCESS",
  • "response_msg": "SUCCESS",
  • "data": [
    ]
}

Create Subaccount

Create new subaccount

Properties

Name Type Required Restrictions Description
api_username string true none Your new api username.
password string true none Your new password
email string true none Your new email.
phone_number string true none Your phone number in E.164 format.
first_name string true none Your firstname
last_name string true none Your lastname
access_users integer(int1) false none Flag value must be 1 for yes or 0 for no.
access_billing integer(int1) false none Flag value must be 1 for yes or 0 for no.
access_reporting integer(int1) false none Flag value must be 1 for yes or 0 for no.
access_contacts integer(int1) false none Flag value must be 1 for yes or 0 for no.
access_settings integer(int1) false none Flag value must be 1 for yes or 0 for no.

Refer to Status Codes for definitions of HTTP status code responses.

This endpoint requires authentication, more info...
Request
header Parameters
Content-Type
string
Example: application/json
Request Body schema: application/json
object
Responses
200

Successful response

post/v3/subaccounts
Request samples
application/json
{
  • "api_username": "test",
  • "password": "test123",
  • "email": "test@test.com",
  • "phone_number": "+61411111111",
  • "first_name": "John",
  • "last_name": "Doe",
  • "user_id": 3839,
  • "sms_deidentify_message": 0,
  • "access_smpp": 0,
  • "access_users": 1,
  • "access_billing": 1,
  • "access_reporting": 1,
  • "access_contacts": 1,
  • "access_settings": 1,
  • "notes": "these are test notes"
}
Response samples
application/json
{
  • "http_code": 200,
  • "response_code": "SUCCESS",
  • "response_msg": "New account has been created.",
  • "data": {
    }
}

View Specific Subaccount

Get specific subaccount

Parameters

Parameter In Type Required Description
subaccount_id path integer(int32) true ID of subaccount to get

Refer to Status Codes for definitions of HTTP status code responses.

This endpoint requires authentication, more info...
Request
path Parameters
subaccount_id
required
string
header Parameters
Content-Type
string
Example: application/json
Responses
200

Successful response

get/v3/subaccounts/{subaccount_id}
Request samples
curl --include \
     --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \

'https://rest.clicksend.com/v3/subaccounts/{subaccount_id}'
Response samples
application/json
{
  • "http_code": 200,
  • "response_code": "SUCCESS",
  • "response_msg": "Here are your data.",
  • "data": {
    }
}

Update Subaccount

Update subaccount

Parameters

Parameter In Type Required Description
subaccount_id path integer(int32) true ID of subaccount to update

Properties

Name Type Required Restrictions Description
api_username string true none Your new api username.
password string true none Your new password
email string true none Your new email.
phone_number string true none Your phone number in E.164 format.
first_name string true none Your firstname
last_name string true none Your lastname
access_users integer(int1) false none Flag value must be 1 for yes or 0 for no.
access_billing integer(int1) false none Flag value must be 1 for yes or 0 for no.
access_reporting integer(int1) false none Flag value must be 1 for yes or 0 for no.
access_contacts integer(int1) false none Flag value must be 1 for yes or 0 for no.
access_settings integer(int1) false none Flag value must be 1 for yes or 0 for no.

Refer to Status Codes for definitions of HTTP status code responses.

This endpoint requires authentication, more info...
Request
path Parameters
subaccount_id
required
string
header Parameters
Content-Type
string
Example: application/json
Request Body schema: application/json
object
Responses
200

Successful response

put/v3/subaccounts/{subaccount_id}
Request samples
application/json
{
  • "access_sms": 1,
  • "email": "{{email}}"
}
Response samples
application/json
{
  • "http_code": 200,
  • "response_code": "SUCCESS",
  • "response_msg": "Subaccount #59 has been updated.",
  • "data": {
    }
}

Delete Subaccount

Delete a subaccount

Parameters

Parameter In Type Required Description
subaccount_id path integer(int32) true ID of subaccount to delete

Refer to Status Codes for definitions of HTTP status code responses.

This endpoint requires authentication, more info...
Request
path Parameters
subaccount_id
required
string
header Parameters
Content-Type
string
Example: application/json
Responses
200

Successful response

delete/v3/subaccounts/{subaccount_id}
Request samples
curl --include \
     --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
     --request DELETE \

'https://rest.clicksend.com/v3/subaccounts/{subaccount_id}'
Response samples
application/json
{
  • "http_code": 200,
  • "response_code": "SUCCESS",
  • "response_msg": "Subaccount #59 has been deleted",
  • "data": true
}

Generate New API Key

Regenerate an API Key

Parameters

Parameter In Type Required Description
subaccount_id path integer(int32) true ID of subaccount to regenerate API key for

Refer to Status Codes for definitions of HTTP status code responses.

This endpoint requires authentication, more info...
Request
path Parameters
subaccount_id
required
string
header Parameters
Content-Type
string
Example: application/json
Request Body schema: application/json
object
Responses
200

Successful response

put/v3/subaccounts/{subaccount_id}/regen-api-key
Request samples
application/json
{
  • "access_sms": 1,
  • "email": "{{email}}",
  • "notes": "This is a test"
}
Response samples
application/json
{
  • "http_code": 200,
  • "response_code": "SUCCESS",
  • "response_msg": "Your API Key has been regenerated.",
  • "data": {
    }
}
Copyright © ClickSend 2024. All right reserved.