import 'package:cloudflare_dart/api.dart';All URIs are relative to https://api.cloudflare.com/client/v4
| Method | HTTP request | Description |
|---|---|---|
| emailRoutingDestinationAddressesCreateADestinationAddress | POST /accounts/{account_id}/email/routing/addresses | Create a destination address |
| emailRoutingDestinationAddressesDeleteDestinationAddress | DELETE /accounts/{account_id}/email/routing/addresses/{destination_address_identifier} | Delete destination address |
| emailRoutingDestinationAddressesGetADestinationAddress | GET /accounts/{account_id}/email/routing/addresses/{destination_address_identifier} | Get a destination address |
| emailRoutingDestinationAddressesListDestinationAddresses | GET /accounts/{account_id}/email/routing/addresses | List destination addresses |
EmailDestinationAddressResponseSingle emailRoutingDestinationAddressesCreateADestinationAddress(accountId, emailCreateDestinationAddressProperties)
Create a destination address
Create a destination address to forward your emails to. Destination addresses need to be verified before they can be used.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getEmailRoutingDestinationAddressesApi();
final String accountId = accountId_example; // String |
final EmailCreateDestinationAddressProperties emailCreateDestinationAddressProperties = ; // EmailCreateDestinationAddressProperties |
try {
final response = api.emailRoutingDestinationAddressesCreateADestinationAddress(accountId, emailCreateDestinationAddressProperties);
print(response);
} catch on DioException (e) {
print('Exception when calling EmailRoutingDestinationAddressesApi->emailRoutingDestinationAddressesCreateADestinationAddress: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| emailCreateDestinationAddressProperties | EmailCreateDestinationAddressProperties |
EmailDestinationAddressResponseSingle
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EmailDestinationAddressResponseSingle emailRoutingDestinationAddressesDeleteDestinationAddress(destinationAddressIdentifier, accountId)
Delete destination address
Deletes a specific destination address.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getEmailRoutingDestinationAddressesApi();
final String destinationAddressIdentifier = destinationAddressIdentifier_example; // String |
final String accountId = accountId_example; // String |
try {
final response = api.emailRoutingDestinationAddressesDeleteDestinationAddress(destinationAddressIdentifier, accountId);
print(response);
} catch on DioException (e) {
print('Exception when calling EmailRoutingDestinationAddressesApi->emailRoutingDestinationAddressesDeleteDestinationAddress: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| destinationAddressIdentifier | String | ||
| accountId | String |
EmailDestinationAddressResponseSingle
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EmailDestinationAddressResponseSingle emailRoutingDestinationAddressesGetADestinationAddress(destinationAddressIdentifier, accountId)
Get a destination address
Gets information for a specific destination email already created.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getEmailRoutingDestinationAddressesApi();
final String destinationAddressIdentifier = destinationAddressIdentifier_example; // String |
final String accountId = accountId_example; // String |
try {
final response = api.emailRoutingDestinationAddressesGetADestinationAddress(destinationAddressIdentifier, accountId);
print(response);
} catch on DioException (e) {
print('Exception when calling EmailRoutingDestinationAddressesApi->emailRoutingDestinationAddressesGetADestinationAddress: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| destinationAddressIdentifier | String | ||
| accountId | String |
EmailDestinationAddressResponseSingle
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EmailDestinationAddressesResponseCollection emailRoutingDestinationAddressesListDestinationAddresses(accountId, page, perPage, direction, verified)
List destination addresses
Lists existing destination addresses.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getEmailRoutingDestinationAddressesApi();
final String accountId = accountId_example; // String |
final num page = 8.14; // num |
final num perPage = 8.14; // num |
final String direction = asc; // String |
final bool verified = true; // bool |
try {
final response = api.emailRoutingDestinationAddressesListDestinationAddresses(accountId, page, perPage, direction, verified);
print(response);
} catch on DioException (e) {
print('Exception when calling EmailRoutingDestinationAddressesApi->emailRoutingDestinationAddressesListDestinationAddresses: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| page | num | [optional] [default to 1] | |
| perPage | num | [optional] [default to 20] | |
| direction | String | [optional] [default to 'asc'] | |
| verified | bool | [optional] [default to true] |
EmailDestinationAddressesResponseCollection
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]