# Source: https://docs.datadoghq.com/ddsql_reference/data_directory/aws/aws.apigatewayv2_route.dataset.md

---
title: API Gateway Route
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > DDSQL Reference > Data Directory > API Gateway Route
---

# API Gateway Route

An API Gateway Route in AWS defines how incoming requests are directed to backend integrations within an API Gateway v2 API. It matches requests based on an HTTP method and a route key, such as a specific path or wildcard pattern. Routes determine which integration, like a Lambda function or HTTP endpoint, should handle the request. This allows you to control request flow, organize endpoints, and manage how clients interact with your API.

```
aws.apigatewayv2_route
```

## Fields

| Title                               | ID   | Type          | Data Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Description |
| ----------------------------------- | ---- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| _key                                | core | string        |
| account_id                          | core | string        |
| api_gateway_managed                 | core | bool          | Specifies whether a route is managed by API Gateway. If you created an API using quick create, the $default route is managed by API Gateway. You can't modify the $default route key.                                                                                                                                                                                                                                                                                                                                                                   |
| api_id                              | core | string        |
| api_key_required                    | core | bool          | Specifies whether an API key is required for this route. Supported only for WebSocket APIs.                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| authorization_scopes                | core | array<string> | A list of authorization scopes configured on a route. The scopes are used with a JWT authorizer to authorize the method invocation. The authorization works by matching the route scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any route scope matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the route scope is configured, the client must provide an access token instead of an identity token for authorization purposes. |
| authorization_type                  | core | string        | The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.                                                                                                                                                                                                  |
| authorizer_id                       | core | string        | The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.                                                                                                                                                                                                                                                                                                                                                                                      |
| model_selection_expression          | core | string        | The model selection expression for the route. Supported only for WebSocket APIs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| operation_name                      | core | string        | The operation name for the route.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| request_models                      | core | hstore        | The request models for the route. Supported only for WebSocket APIs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| request_parameters                  | core | string        | The request parameters for the route. Supported only for WebSocket APIs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| route_arn                           | core | string        |
| route_id                            | core | string        | The route ID.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| route_response_selection_expression | core | string        | The route response selection expression for the route. Supported only for WebSocket APIs.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| tags                                | core | hstore_csv    |
| target                              | core | string        | The target for the route.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |