Skip to main content

create_api_key

Function create_api_key 

Source
pub async fn create_api_key(
    configuration: &Configuration,
    app_id: &str,
    create_api_key_request: CreateApiKeyRequest,
) -> Result<CreateApiKeyResponse, Error<CreateApiKeyError>>
Expand description

Use this API to create a new App API Key (also called a Rich Authentication Token) for a specific OneSignal app. These keys are used to authenticate API requests at the app level and offer enhanced security features, including optional IP allowlisting.