# VPC Flows # Tokens ## Generate authentication token for VPC flow logs export. `magic_network_monitoring.vpc_flows.tokens.create(TokenCreateParams**kwargs) -> TokenCreateResponse` **post** `/accounts/{account_id}/mnm/vpc-flows/token` Generate authentication token for VPC flow logs export. ### Parameters - `account_id: str` ### Returns - `str` Authentication token to be used for VPC Flows export authentication. ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_email=os.environ.get("CLOUDFLARE_EMAIL"), # This is the default and can be omitted api_key=os.environ.get("CLOUDFLARE_API_KEY"), # This is the default and can be omitted ) token = client.magic_network_monitoring.vpc_flows.tokens.create( account_id="6f91088a406011ed95aed352566e8d4c", ) print(token) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": "JWE/JWT auth token", "success": true } ``` ## Domain Types ### Token Create Response - `str` Authentication token to be used for VPC Flows export authentication.