---
title: List dynamic routes
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[AI Gateway](https://developers.cloudflare.com/api/go/resources/ai_gateway)

[Dynamic Routing](https://developers.cloudflare.com/api/go/resources/ai_gateway/subresources/dynamic_routing)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# List dynamic routes

client.AIGateway.DynamicRouting.List(ctx, gatewayID, params) (\*[DynamicRoutingListResponse](<https://developers.cloudflare.com/api/go/resources/ai_gateway#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/ai-gateway/gateways/{gateway\_id}/routes

Lists the dynamic routes configured on an AI Gateway.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`AI Gateway Write``AI Gateway Read`

##### ParametersExpand Collapse

gatewayID string

[Link to this property](<#(resource)%20ai_gateway.dynamic_routing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20gateway_id%20%3E%20(schema)>)

<details>

<summary>

params DynamicRoutingListParams

</summary>

AccountID param.Field\[string]

Path param

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

Page param.Field\[int64]Optional

Query param: Page number

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20page">Link to this property</a>

PerPage param.Field\[int64]Optional

Query param: Number of routes per page

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20per_page">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway.dynamic_routing%20%3E%20(method)%20list%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type DynamicRoutingListResponse struct{…}

</summary>

<details>

<summary>

Data DynamicRoutingListResponseData

</summary>

OrderBy string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20order_by">Link to this property</a>

OrderByDirection string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20order_by_direction">Link to this property</a>

Page float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20page">Link to this property</a>

PerPage float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20per_page">Link to this property</a>

<details>

<summary>

Routes \[]DynamicRoutingListResponseDataRoute

</summary>

ID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

AccountTag string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20account_tag">Link to this property</a>

CreatedAt Time

formatdate-time

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20created_at">Link to this property</a>

<details>

<summary>

Deployment DynamicRoutingListResponseDataRoutesDeployment

</summary>

CreatedAt string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20deployment%20%3E%20(property)%20created_at">Link to this property</a>

DeploymentID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20deployment%20%3E%20(property)%20deployment_id">Link to this property</a>

VersionID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20deployment%20%3E%20(property)%20version_id">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20deployment">Link to this property</a>

<details>

<summary>

Elements \[]DynamicRoutingListResponseDataRoutesElement

</summary>

One of the following:

<details>

<summary>

type DynamicRoutingListResponseDataRoutesElementsObject struct{…}

</summary>

ID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

Outputs DynamicRoutingListResponseDataRoutesElementsObjectOutputs

</summary>

<details>

<summary>

Next DynamicRoutingListResponseDataRoutesElementsObjectOutputsNext

</summary>

ElementID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20outputs%20%3E%20(property)%20next%20%3E%20(property)%20elementId">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20outputs%20%3E%20(property)%20next">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20outputs">Link to this property</a>

Type DynamicRoutingListResponseDataRoutesElementsObjectType

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type DynamicRoutingListResponseDataRoutesElementsObject struct{…}

</summary>

ID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

Outputs DynamicRoutingListResponseDataRoutesElementsObjectOutputs

</summary>

<details>

<summary>

False DynamicRoutingListResponseDataRoutesElementsObjectOutputsFalse

</summary>

ElementID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20outputs%20%3E%20(property)%20false%20%3E%20(property)%20elementId">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20outputs%20%3E%20(property)%20false">Link to this property</a>

<details>

<summary>

True DynamicRoutingListResponseDataRoutesElementsObjectOutputsTrue

</summary>

ElementID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20outputs%20%3E%20(property)%20true%20%3E%20(property)%20elementId">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20outputs%20%3E%20(property)%20true">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20outputs">Link to this property</a>

<details>

<summary>

Properties DynamicRoutingListResponseDataRoutesElementsObjectProperties

</summary>

Conditions unknownOptional

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20properties%20%3E%20(property)%20conditions">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20properties">Link to this property</a>

Type DynamicRoutingListResponseDataRoutesElementsObjectType

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

type DynamicRoutingListResponseDataRoutesElementsObject struct{…}

</summary>

ID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

Outputs map\[string, DynamicRoutingListResponseDataRoutesElementsObjectOutput]

</summary>

ElementID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20outputs%20%3E%20(items)%20%3E%20(property)%20elementId">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20outputs">Link to this property</a>

Type DynamicRoutingListResponseDataRoutesElementsObjectType

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

type DynamicRoutingListResponseDataRoutesElementsObject struct{…}

</summary>

ID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

Outputs DynamicRoutingListResponseDataRoutesElementsObjectOutputs

</summary>

<details>

<summary>

Fallback DynamicRoutingListResponseDataRoutesElementsObjectOutputsFallback

</summary>

ElementID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20outputs%20%3E%20(property)%20fallback%20%3E%20(property)%20elementId">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20outputs%20%3E%20(property)%20fallback">Link to this property</a>

<details>

<summary>

Success DynamicRoutingListResponseDataRoutesElementsObjectOutputsSuccess

</summary>

ElementID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20outputs%20%3E%20(property)%20success%20%3E%20(property)%20elementId">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20outputs%20%3E%20(property)%20success">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20outputs">Link to this property</a>

<details>

<summary>

Properties DynamicRoutingListResponseDataRoutesElementsObjectProperties

</summary>

Key string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20properties%20%3E%20(property)%20key">Link to this property</a>

Limit float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20properties%20%3E%20(property)%20limit">Link to this property</a>

<details>

<summary>

LimitType DynamicRoutingListResponseDataRoutesElementsObjectPropertiesLimitType

</summary>

One of the following:

const DynamicRoutingListResponseDataRoutesElementsObjectPropertiesLimitTypeCount DynamicRoutingListResponseDataRoutesElementsObjectPropertiesLimitType = "count"

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20properties%20%3E%20(property)%20limitType%20%3E%20(member)%200">Link to this property</a>

const DynamicRoutingListResponseDataRoutesElementsObjectPropertiesLimitTypeCost DynamicRoutingListResponseDataRoutesElementsObjectPropertiesLimitType = "cost"

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20properties%20%3E%20(property)%20limitType%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20properties%20%3E%20(property)%20limitType">Link to this property</a>

Window float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20properties%20%3E%20(property)%20window">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20properties">Link to this property</a>

Type DynamicRoutingListResponseDataRoutesElementsObjectType

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

type DynamicRoutingListResponseDataRoutesElementsObject struct{…}

</summary>

ID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

Outputs DynamicRoutingListResponseDataRoutesElementsObjectOutputs

</summary>

<details>

<summary>

Fallback DynamicRoutingListResponseDataRoutesElementsObjectOutputsFallback

</summary>

ElementID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20outputs%20%3E%20(property)%20fallback%20%3E%20(property)%20elementId">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20outputs%20%3E%20(property)%20fallback">Link to this property</a>

<details>

<summary>

Success DynamicRoutingListResponseDataRoutesElementsObjectOutputsSuccess

</summary>

ElementID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20outputs%20%3E%20(property)%20success%20%3E%20(property)%20elementId">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20outputs%20%3E%20(property)%20success">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20outputs">Link to this property</a>

<details>

<summary>

Properties DynamicRoutingListResponseDataRoutesElementsObjectProperties

</summary>

Model string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20properties%20%3E%20(property)%20model">Link to this property</a>

Provider string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20properties%20%3E%20(property)%20provider">Link to this property</a>

Retries float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20properties%20%3E%20(property)%20retries">Link to this property</a>

Timeout float64

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20properties%20%3E%20(property)%20timeout">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20properties">Link to this property</a>

Type DynamicRoutingListResponseDataRoutesElementsObjectType

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

type DynamicRoutingListResponseDataRoutesElementsObject struct{…}

</summary>

ID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

Outputs map\[string, DynamicRoutingListResponseDataRoutesElementsObjectOutput]

</summary>

ElementID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20outputs%20%3E%20(items)%20%3E%20(property)%20elementId">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20outputs">Link to this property</a>

Type DynamicRoutingListResponseDataRoutesElementsObjectType

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements%20%3E%20(items)%20%3E%20(variant)%205">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20elements">Link to this property</a>

GatewayID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20gateway_id">Link to this property</a>

ModifiedAt Time

formatdate-time

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20modified_at">Link to this property</a>

Name string

minLength1

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

Version DynamicRoutingListResponseDataRoutesVersion

</summary>

<details>

<summary>

Active DynamicRoutingListResponseDataRoutesVersionActive

</summary>

One of the following:

const DynamicRoutingListResponseDataRoutesVersionActiveTrue DynamicRoutingListResponseDataRoutesVersionActive = "true"

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20version%20%3E%20(property)%20active%20%3E%20(member)%200">Link to this property</a>

const DynamicRoutingListResponseDataRoutesVersionActiveFalse DynamicRoutingListResponseDataRoutesVersionActive = "false"

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20version%20%3E%20(property)%20active%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20version%20%3E%20(property)%20active">Link to this property</a>

CreatedAt string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20version%20%3E%20(property)%20created_at">Link to this property</a>

Data string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20version%20%3E%20(property)%20data">Link to this property</a>

VersionID string

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20version%20%3E%20(property)%20version_id">Link to this property</a>

IsValid boolOptional

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20version%20%3E%20(property)%20is_valid">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20version">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20routes">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20data">Link to this property</a>

Success bool

<a href="#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway.dynamic_routing%20%3E%20(model)%20DynamicRoutingListResponse%20%3E%20(schema)>)

### List dynamic routes

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/ai_gateway"
  "github.com/cloudflare/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  dynamicRoutings, err := client.AIGateway.DynamicRouting.List(
    context.TODO(),
    "54442216",
    ai_gateway.DynamicRoutingListParams{
      AccountID: cloudflare.F("0d37909e38d3e99c29fa2cd343ac421a"),
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", dynamicRoutings.Data)
}
```

200 example

```
{
  "data": {
    "order_by": "order_by",
    "order_by_direction": "order_by_direction",
    "page": 0,
    "per_page": 0,
    "routes": [
      {
        "id": "id",
        "account_tag": "account_tag",
        "created_at": "2019-12-27T18:11:19.117Z",
        "deployment": {
          "created_at": "created_at",
          "deployment_id": "deployment_id",
          "version_id": "version_id"
        },
        "elements": [
          {
            "id": "id",
            "outputs": {
              "next": {
                "elementId": "elementId"
              }
            },
            "type": "start"
          }
        ],
        "gateway_id": "gateway_id",
        "modified_at": "2019-12-27T18:11:19.117Z",
        "name": "x",
        "version": {
          "active": "true",
          "created_at": "created_at",
          "data": "data",
          "version_id": "version_id",
          "is_valid": true
        }
      }
    ]
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "data": {
    "order_by": "order_by",
    "order_by_direction": "order_by_direction",
    "page": 0,
    "per_page": 0,
    "routes": [
      {
        "id": "id",
        "account_tag": "account_tag",
        "created_at": "2019-12-27T18:11:19.117Z",
        "deployment": {
          "created_at": "created_at",
          "deployment_id": "deployment_id",
          "version_id": "version_id"
        },
        "elements": [
          {
            "id": "id",
            "outputs": {
              "next": {
                "elementId": "elementId"
              }
            },
            "type": "start"
          }
        ],
        "gateway_id": "gateway_id",
        "modified_at": "2019-12-27T18:11:19.117Z",
        "name": "x",
        "version": {
          "active": "true",
          "created_at": "created_at",
          "data": "data",
          "version_id": "version_id",
          "is_valid": true
        }
      }
    ]
  },
  "success": true
}
```