API endpoints for managing and verifying user-owned numbers as sender IDs for messaging services.
API endpoints for managing and verifying user-owned numbers as sender IDs for messaging services.
List own numbers.
Parameter | In | Type | Required | Description |
---|---|---|---|---|
offset | query | uuid | false | Page(offset) to be used for pagination. Example: offset=f99872cc-11a6-48ba-a9f2-bcfb6dd1e3d4#8fa5ebc2-777b-45db-a448-ec76a40d4384 |
page_size | query | integer | false | Number of records per page. Default: 10. Range [1..500] |
filter[status][] | query | string | false | Filter by statuses. Value must be in enum [PENDING , APPROVED , REJECTED ]. For example: filter[status][0]=PENDING&filter[status][1]=APPROVED . |
sort_by | query | string | false | Sort by parameter. Default: created_timestamp |
sort_direction | query | string | false | Direction of sorting. Default: asc . Value must be in enum [asc , desc ]. |
Refer to Status Codes for definitions of HTTP status code responses.
This endpoint requires authentication, more info...
curl --include \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
--request GET \
'https://rest.clicksend.com/v3/own-numbers?page_size=50&filter[status][0]=PENDING&filter[status][1]=APPROVED&sort_by=created_timestamp&sort_direction=asc'
{ "own_numbers": [ { … } ], "_metadata": { "pagination": { … } } }
Get a specific own numbers.
Parameter | In | Type | Required | Description |
---|---|---|---|---|
own_number_id | path | uuid | true | ID of the own number |
Refer to Status Codes for definitions of HTTP status code responses.
This endpoint requires authentication, more info...
curl --include \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
--request GET \
'https://rest.clicksend.com/v3/own-numbers/60b34fe9-1b45-43f8-b9ef-06b7fdb3a9f5'
Successful response
The unique identifier for the account.
The unique identifier for the workspace.
The unique identifier for the user.
The timestamp when the phone number was verified.
Indicates whether the phone number verification is nearing its expiration date:
The timestamp when the record was created.
{ "id": "8fa5ebc2-777b-45db-a448-ec76a40d4384", "account_id": "85edb794-ee6d-4a38-9f63-c5fa8acf0d79", "workspace_id": "85edb794-ee6d-4a38-9f63-c5fa8acf0d79", "user_id": "85edb794-ee6d-4a38-9f63-c5fa8acf0d79", "phone_number": "+61412345678", "country": "AU", "label": "My phone number", "status": "APPROVED", "verified_timestamp": "2023-08-31T12:00:00Z", "is_nearing_expiration": true, "created_timestamp": "2023-08-25T08:00:00Z", "updated_timestamp": "2023-08-25T08:30:00Z" }
Update details of a specific own numbers.
Parameter | In | Type | Required | Description |
---|---|---|---|---|
own_number_id | path | uuid | true | ID of the own number |
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
label | string | false | none | Custom label for phone number. Length must be between 1 - 200 characters. |
Refer to Status Codes for definitions of HTTP status code responses.
This endpoint requires authentication, more info...
curl --include \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
--request PATCH \
--data-binary " {
\"label\": \"My phone number\"
}" \
'https://rest.clicksend.com/v3/own-numbers/60b34fe9-1b45-43f8-b9ef-06b7fdb3a9f5'
Successful response
The unique identifier for the account.
The unique identifier for the workspace.
The unique identifier for the user.
The timestamp when the phone number was verified.
Indicates whether the phone number verification is nearing its expiration date:
The timestamp when the record was created.
{ "id": "8fa5ebc2-777b-45db-a448-ec76a40d4384", "account_id": "85edb794-ee6d-4a38-9f63-c5fa8acf0d79", "workspace_id": "85edb794-ee6d-4a38-9f63-c5fa8acf0d79", "user_id": "85edb794-ee6d-4a38-9f63-c5fa8acf0d79", "phone_number": "+61412345678", "country": "AU", "label": "My phone number", "status": "APPROVED", "verified_timestamp": "2023-08-31T12:00:00Z", "is_nearing_expiration": true, "created_timestamp": "2023-08-25T08:00:00Z", "updated_timestamp": "2023-08-25T08:30:00Z" }
Delete a specific own numbers.
Parameter | In | Type | Required | Description |
---|---|---|---|---|
own_number_id | path | uuid | true | ID of the own number |
Refer to Status Codes for definitions of HTTP status code responses.
This endpoint requires authentication, more info...
curl --include \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
--request DELETE \
'https://rest.clicksend.com/v3/own-numbers/60b34fe9-1b45-43f8-b9ef-06b7fdb3a9f5'
Successful response
The unique identifier for the account.
The unique identifier for the workspace.
The unique identifier for the user.
The timestamp when the phone number was verified.
Indicates whether the phone number verification is nearing its expiration date:
The timestamp when the record was created.
{ "id": "8fa5ebc2-777b-45db-a448-ec76a40d4384", "account_id": "85edb794-ee6d-4a38-9f63-c5fa8acf0d79", "workspace_id": "85edb794-ee6d-4a38-9f63-c5fa8acf0d79", "user_id": "85edb794-ee6d-4a38-9f63-c5fa8acf0d79", "phone_number": "+61412345678", "country": "AU", "label": "My phone number", "status": "APPROVED", "verified_timestamp": "2023-08-31T12:00:00Z", "is_nearing_expiration": true, "created_timestamp": "2023-08-25T08:00:00Z", "updated_timestamp": "2023-08-25T08:30:00Z" }
Request to generate own number verification OTP
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
label | string | false | none | Custom label for phone number. Length must be between 1 - 200 characters. |
phone_number | string | true | none | Phone number. |
country | string | false | none | Country code. |
Refer to Status Codes for definitions of HTTP status code responses.
This endpoint requires authentication, more info...
curl --include \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
--request POST \
--data-binary " {
\"label\": \"My phone number\",
\"phone_number\": \"+61412345678\",
\"country\": \"AU\"
}" \
'https://rest.clicksend.com/v3/own-numbers/verifications'
{ "id": "db630385-cb76-457d-8f16-76df1b394257", "own_number_id": "db630385-cb76-457d-8f16-76df1b394257", "status": "APPROVED", "expires_timestamp": "2023-08-31T12:00:00Z", "remaining_attempts": 2, "created_timestamp": "2023-08-25T08:00:00Z", "updated_timestamp": "2023-08-25T08:10:00Z" }
Request to verify an OTP for Own Number verification
Parameter | In | Type | Required | Description |
---|---|---|---|---|
verification_id | path | uuid | true | ID of the Own Number verification |
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
code | string | true | none | OTP code. Length must be 6 characters |
phone_number | string | true | none | Phone number. |
country | string | false | none | Country code. |
Refer to Status Codes for definitions of HTTP status code responses.
This endpoint requires authentication, more info...
curl --include \
--header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \
--request POST \
--data-binary " {
\"code\": \"428312\",
\"phone_number\": \"+61437887111\",
\"country\": \"AU\"
}" \
'https://rest.clicksend.com/v3/own-numbers/verifications/e9bcb7cc-d42b-47cd-ad1f-8677307d4040/verify'
{ "id": "db630385-cb76-457d-8f16-76df1b394257", "own_number_id": "db630385-cb76-457d-8f16-76df1b394257", "status": "APPROVED", "expires_timestamp": "2023-08-31T12:00:00Z", "remaining_attempts": 1, "created_timestamp": "2023-08-25T08:00:00Z", "updated_timestamp": "2023-08-25T08:15:00Z" }