All URIs are relative to https://api.clerk.dev/v1
Method | HTTP request | Description |
---|---|---|
create_phone_number | POST /phone_numbers | Create a phone number |
delete_phone_number | DELETE /phone_numbers/{phone_number_id} | Delete a phone number |
get_phone_number | GET /phone_numbers/{phone_number_id} | Retrieve a phone number |
update_phone_number | PATCH /phone_numbers/{phone_number_id} | Update a phone number |
crate::models::PhoneNumber create_phone_number(create_phone_number_request) Create a phone number
Create a new phone number
Name | Type | Description | Required | Notes |
---|---|---|---|---|
create_phone_number_request | Option<CreatePhoneNumberRequest> |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::DeletedObject delete_phone_number(phone_number_id) Delete a phone number
Delete the phone number with the given ID
Name | Type | Description | Required | Notes |
---|---|---|---|---|
phone_number_id | String | The ID of the phone number to delete | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::PhoneNumber get_phone_number(phone_number_id) Retrieve a phone number
Returns the details of a phone number
Name | Type | Description | Required | Notes |
---|---|---|---|---|
phone_number_id | String | The ID of the phone number to retrieve | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::PhoneNumber update_phone_number(phone_number_id, update_phone_number_request) Update a phone number
Updates a phone number
Name | Type | Description | Required | Notes |
---|---|---|---|---|
phone_number_id | String | The ID of the phone number to update | [required] | |
update_phone_number_request | Option<UpdatePhoneNumberRequest> |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]