Skip to main content
Learn how to authenticate with the CrowdStrike Falcon APIs using different OAuth2 patterns, including single-tenant, multi-tenant (MSSP), and cloud-specific authentication.

Basic Authentication

Request and manage an OAuth2 token for API access.
1

Request a token

Use your API credentials to request an OAuth2 token:
The token is stored in $Falcon and used automatically by all PSFalcon commands.
2

Verify the token

Check if you have an active token:
3

Revoke the token

Always revoke your token when finished:

Cloud-Specific Authentication

Authenticate to different CrowdStrike cloud regions.

Script Template with Token Management

A complete script template with proper token lifecycle management.

Member CID Authentication

Authenticate to a specific child CID in a Flight Control (MSSP) environment.

Multi-Tenant Authentication Loop

Iterate through multiple child CIDs in a Flight Control environment.

Environment Variables

Store credentials securely using environment variables.

Secure Credential Storage

Use PowerShell credential objects for enhanced security.
Always revoke tokens when your script completes. Use try/catch/finally blocks to ensure tokens are revoked even if errors occur.

Error Handling

Handle authentication errors gracefully.

Next Steps

Host Operations

Manage and query hosts

Detection Management

Work with detections