---
title: Queues
---

[Skip to content](#_top)

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

Copy Markdown

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

---

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

# Queues

##### [List Queues](https://developers.cloudflare.com/api/typescript/resources/queues/methods/list)

client.queues.list(QueueListParams {account\_id } params, RequestOptionsoptions?): SinglePage< [Queue](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)>) {consumers, consumers\_total\_count, created\_on, 7 more } >

GET/accounts/{account\_id}/queues

##### [Get Queue](https://developers.cloudflare.com/api/typescript/resources/queues/methods/get)

client.queues.get(stringqueueID, QueueGetParams {account\_id } params, RequestOptionsoptions?): [Queue](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)>) {consumers, consumers\_total\_count, created\_on, 7 more }

GET/accounts/{account\_id}/queues/{queue\_id}

##### [Get Queue Metrics](https://developers.cloudflare.com/api/typescript/resources/queues/methods/get_metrics)

client.queues.getMetrics(stringqueueID, QueueGetMetricsParams {account\_id } params, RequestOptionsoptions?): [QueueGetMetricsResponse](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues%20%3E%20(model)%20queue_get_metrics_response%20%3E%20(schema)>) {backlog\_bytes, backlog\_count, oldest\_message\_timestamp\_ms }

GET/accounts/{account\_id}/queues/{queue\_id}/metrics

##### [Create Queue](https://developers.cloudflare.com/api/typescript/resources/queues/methods/create)

client.queues.create(QueueCreateParams {account\_id, queue\_name, jurisdiction } params, RequestOptionsoptions?): [Queue](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)>) {consumers, consumers\_total\_count, created\_on, 7 more }

POST/accounts/{account\_id}/queues

##### [Update Queue](https://developers.cloudflare.com/api/typescript/resources/queues/methods/update)

client.queues.update(stringqueueID, QueueUpdateParams {account\_id, jurisdiction, queue\_name, settings } params, RequestOptionsoptions?): [Queue](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)>) {consumers, consumers\_total\_count, created\_on, 7 more }

PUT/accounts/{account\_id}/queues/{queue\_id}

##### [Update Queue](https://developers.cloudflare.com/api/typescript/resources/queues/methods/edit)

client.queues.edit(stringqueueID, QueueEditParams {account\_id, jurisdiction, queue\_name, settings } params, RequestOptionsoptions?): [Queue](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)>) {consumers, consumers\_total\_count, created\_on, 7 more }

PATCH/accounts/{account\_id}/queues/{queue\_id}

##### [Delete Queue](https://developers.cloudflare.com/api/typescript/resources/queues/methods/delete)

client.queues.delete(stringqueueID, QueueDeleteParams {account\_id } params, RequestOptionsoptions?): [QueueDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues%20%3E%20(model)%20queue_delete_response%20%3E%20(schema)>) {errors, messages, success }

DELETE/accounts/{account\_id}/queues/{queue\_id}

##### ModelsExpand Collapse

<details>

<summary>

Queue {consumers, consumers\_total\_count, created\_on, 7 more }

</summary>

<details>

<summary>

consumers?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)">Consumer</a>&gt;

</summary>

One of the following:

<details>

<summary>

MqWorkerConsumerResponse {consumer\_id, created\_on, dead\_letter\_queue, 4 more }

</summary>

consumer\_id?: string

A Resource identifier.

maxLength32

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20consumer_id">Link to this property</a>

created\_on?: string

formatdate-time

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20created_on">Link to this property</a>

dead\_letter\_queue?: string

Name of the dead letter queue, or empty string if not configured

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20dead_letter_queue">Link to this property</a>

queue\_name?: string

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20queue_name">Link to this property</a>

script\_name?: string

Name of a Worker

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20script_name">Link to this property</a>

<details>

<summary>

settings?: Settings {batch\_size, max\_concurrency, max\_retries, 2 more }

</summary>

batch\_size?: number

The maximum number of messages to include in a batch.

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20settings%20%3E%20(property)%20batch_size">Link to this property</a>

max\_concurrency?: number

Maximum number of concurrent consumers that may consume from this Queue. Set to <code>null</code> to automatically opt in to the platform’s maximum (recommended).

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20settings%20%3E%20(property)%20max_concurrency">Link to this property</a>

max\_retries?: number

The maximum number of retries

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20settings%20%3E%20(property)%20max_retries">Link to this property</a>

max\_wait\_time\_ms?: number

The number of milliseconds to wait for a batch to fill up before attempting to deliver it

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20settings%20%3E%20(property)%20max_wait_time_ms">Link to this property</a>

retry\_delay?: number

The number of seconds to delay before making the message available for another attempt.

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20settings%20%3E%20(property)%20retry_delay">Link to this property</a>

</details>

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20settings">Link to this property</a>

type?: "worker"

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

MqHTTPConsumerResponse {consumer\_id, created\_on, dead\_letter\_queue, 3 more }

</summary>

consumer\_id?: string

A Resource identifier.

maxLength32

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20consumer_id">Link to this property</a>

created\_on?: string

formatdate-time

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20created_on">Link to this property</a>

dead\_letter\_queue?: string

Name of the dead letter queue, or empty string if not configured

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20dead_letter_queue">Link to this property</a>

queue\_name?: string

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20queue_name">Link to this property</a>

<details>

<summary>

settings?: Settings {batch\_size, max\_retries, retry\_delay, visibility\_timeout\_ms }

</summary>

batch\_size?: number

The maximum number of messages to include in a batch.

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20settings%20%3E%20(property)%20batch_size">Link to this property</a>

max\_retries?: number

The maximum number of retries

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20settings%20%3E%20(property)%20max_retries">Link to this property</a>

retry\_delay?: number

The number of seconds to delay before making the message available for another attempt.

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20settings%20%3E%20(property)%20retry_delay">Link to this property</a>

visibility\_timeout\_ms?: number

The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20settings%20%3E%20(property)%20visibility_timeout_ms">Link to this property</a>

</details>

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20settings">Link to this property</a>

type?: "http\_pull"

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20consumers">Link to this property</a>

consumers\_total\_count?: number

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20consumers_total_count">Link to this property</a>

created\_on?: string

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

jurisdiction?: "eu"| "us"| "fedramp"

</summary>

One of the following:

"eu"

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20jurisdiction%20%3E%20(member)%200">Link to this property</a>

"us"

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20jurisdiction%20%3E%20(member)%201">Link to this property</a>

"fedramp"

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20jurisdiction%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20jurisdiction">Link to this property</a>

modified\_on?: string

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

<details>

<summary>

producers?: Array&lt;MqWorkerProducer {script, type } | MqR2Producer {bucket\_name, type } &gt;

</summary>

One of the following:

<details>

<summary>

MqWorkerProducer {script, type }

</summary>

script?: string

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20producers%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20script">Link to this property</a>

type?: "worker"

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20producers%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20producers%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

MqR2Producer {bucket\_name, type }

</summary>

bucket\_name?: string

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20producers%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20bucket_name">Link to this property</a>

type?: "r2\_bucket"

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20producers%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20producers%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20producers">Link to this property</a>

producers\_total\_count?: number

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20producers_total_count">Link to this property</a>

queue\_id?: string

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20queue_id">Link to this property</a>

queue\_name?: string

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20queue_name">Link to this property</a>

<details>

<summary>

settings?: Settings {delivery\_delay, delivery\_paused, message\_retention\_period }

</summary>

delivery\_delay?: number

Number of seconds to delay delivery of all messages to consumers.

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20settings%20%3E%20(property)%20delivery_delay">Link to this property</a>

delivery\_paused?: boolean

Indicates if message delivery to consumers is currently paused.

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20settings%20%3E%20(property)%20delivery_paused">Link to this property</a>

message\_retention\_period?: number

Number of seconds after which an unconsumed message will be delayed.

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20settings%20%3E%20(property)%20message_retention_period">Link to this property</a>

</details>

<a href="#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)%20%3E%20(property)%20settings">Link to this property</a>

</details>

[Link to this property](<#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)>)

<details>

<summary>

QueueGetMetricsResponse {backlog\_bytes, backlog\_count, oldest\_message\_timestamp\_ms }

Best-effort metrics for the queue. Values may be approximate due to the distributed nature of queues.

</summary>

backlog\_bytes: number

The size in bytes of unacknowledged messages in the queue.

<a href="#(resource)%20queues%20%3E%20(model)%20queue_get_metrics_response%20%3E%20(schema)%20%3E%20(property)%20backlog_bytes">Link to this property</a>

backlog\_count: number

The number of unacknowledged messages in the queue.

<a href="#(resource)%20queues%20%3E%20(model)%20queue_get_metrics_response%20%3E%20(schema)%20%3E%20(property)%20backlog_count">Link to this property</a>

oldest\_message\_timestamp\_ms: number

Unix timestamp in milliseconds of the oldest unacknowledged message in the queue. Returns 0 if unknown.

<a href="#(resource)%20queues%20%3E%20(model)%20queue_get_metrics_response%20%3E%20(schema)%20%3E%20(property)%20oldest_message_timestamp_ms">Link to this property</a>

</details>

[Link to this property](<#(resource)%20queues%20%3E%20(model)%20queue_get_metrics_response%20%3E%20(schema)>)

<details>

<summary>

QueueDeleteResponse {errors, messages, success }

</summary>

<details>

<summary>

errors?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)">ResponseInfo</a> {code, message, documentation\_url, source } &gt;

minLength1

</summary>

code: number

minimum1000

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20code">Link to this property</a>

message: string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url?: string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source?: Source {pointer }

</summary>

pointer?: string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20queues%20%3E%20(model)%20queue_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

messages?: Array&lt;string&gt;

<a href="#(resource)%20queues%20%3E%20(model)%20queue_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success?: true

Indicates if the API call was successful or not.

<a href="#(resource)%20queues%20%3E%20(model)%20queue_delete_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20queues%20%3E%20(model)%20queue_delete_response%20%3E%20(schema)>)

#### QueuesMessages

##### [Push Message](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/messages/methods/push)

client.queues.messages.push(stringqueueID, MessagePushParamsparams, RequestOptionsoptions?): [MessagePushResponse](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.messages%20%3E%20(model)%20message_push_response%20%3E%20(schema)>) {metadata }

POST/accounts/{account\_id}/queues/{queue\_id}/messages

##### [Acknowledge + Retry Queue Messages](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/messages/methods/ack)

client.queues.messages.ack(stringqueueID, MessageAckParams {account\_id, acks, retries } params, RequestOptionsoptions?): [MessageAckResponse](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.messages%20%3E%20(model)%20message_ack_response%20%3E%20(schema)>) {ackCount, retryCount, warnings }

POST/accounts/{account\_id}/queues/{queue\_id}/messages/ack

##### [Pull Queue Messages](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/messages/methods/pull)

client.queues.messages.pull(stringqueueID, MessagePullParams {account\_id, batch\_size, visibility\_timeout\_ms } params, RequestOptionsoptions?): [MessagePullResponse](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.messages%20%3E%20(model)%20message_pull_response%20%3E%20(schema)>) {message\_backlog\_count, messages, metadata }

POST/accounts/{account\_id}/queues/{queue\_id}/messages/pull

##### [Push Message Batch](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/messages/methods/bulk_push)

client.queues.messages.bulkPush(stringqueueID, MessageBulkPushParams {account\_id, delay\_seconds, messages } params, RequestOptionsoptions?): [MessageBulkPushResponse](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.messages%20%3E%20(model)%20message_bulk_push_response%20%3E%20(schema)>) {metadata }

POST/accounts/{account\_id}/queues/{queue\_id}/messages/batch

##### [Peek Queue Messages](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/messages/methods/peek)

client.queues.messages.peek(stringqueueID, MessagePeekParams {account\_id, batch\_size } params, RequestOptionsoptions?): [MessagePeekResponse](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.messages%20%3E%20(model)%20message_peek_response%20%3E%20(schema)>) {messages }

POST/accounts/{account\_id}/queues/{queue\_id}/messages/peek

##### [Purge Peeked Queue Messages](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/messages/methods/purge)

client.queues.messages.purge(stringqueueID, MessagePurgeParams {account\_id, refs } params, RequestOptionsoptions?): [MessagePurgeResponse](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.messages%20%3E%20(model)%20message_purge_response%20%3E%20(schema)>) {errors, warnings }

POST/accounts/{account\_id}/queues/{queue\_id}/messages/purge

##### ModelsExpand Collapse

<details>

<summary>

MessagePushResponse {metadata }

</summary>

<details>

<summary>

metadata?: Metadata {metrics }

</summary>

<details>

<summary>

metrics?: Metrics {backlog\_bytes, backlog\_count, oldest\_message\_timestamp\_ms }

Best-effort metrics for the queue. Values may be approximate due to the distributed nature of queues.

</summary>

backlog\_bytes: number

The size in bytes of unacknowledged messages in the queue.

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_push_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20metrics%20%3E%20(property)%20backlog_bytes">Link to this property</a>

backlog\_count: number

The number of unacknowledged messages in the queue.

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_push_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20metrics%20%3E%20(property)%20backlog_count">Link to this property</a>

oldest\_message\_timestamp\_ms: number

Unix timestamp in milliseconds of the oldest unacknowledged message in the queue. Returns 0 if unknown.

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_push_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20metrics%20%3E%20(property)%20oldest_message_timestamp_ms">Link to this property</a>

</details>

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_push_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20metrics">Link to this property</a>

</details>

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_push_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

</details>

[Link to this property](<#(resource)%20queues.messages%20%3E%20(model)%20message_push_response%20%3E%20(schema)>)

<details>

<summary>

MessageAckResponse {ackCount, retryCount, warnings }

</summary>

ackCount?: number

The number of messages that were succesfully acknowledged.

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_ack_response%20%3E%20(schema)%20%3E%20(property)%20ackCount">Link to this property</a>

retryCount?: number

The number of messages that were succesfully retried.

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_ack_response%20%3E%20(schema)%20%3E%20(property)%20retryCount">Link to this property</a>

warnings?: Record&lt;string, string&gt;

Map of lease IDs to warning messages encountered during acknowledgement.

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_ack_response%20%3E%20(schema)%20%3E%20(property)%20warnings">Link to this property</a>

</details>

[Link to this property](<#(resource)%20queues.messages%20%3E%20(model)%20message_ack_response%20%3E%20(schema)>)

<details>

<summary>

MessagePullResponse {message\_backlog\_count, messages, metadata }

</summary>

message\_backlog\_count?: number

The number of unacknowledged messages in the queue.

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_pull_response%20%3E%20(schema)%20%3E%20(property)%20message_backlog_count">Link to this property</a>

<details>

<summary>

messages?: Array&lt;Message&gt;

</summary>

id?: string

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_pull_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

attempts?: number

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_pull_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20attempts">Link to this property</a>

body?: string

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_pull_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20body">Link to this property</a>

lease\_id?: string

An ID that represents an “in-flight” message that has been pulled from a Queue. You must hold on to this ID and use it to acknowledge this message.

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_pull_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20lease_id">Link to this property</a>

metadata?: unknown

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_pull_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20metadata">Link to this property</a>

timestamp\_ms?: number

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_pull_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20timestamp_ms">Link to this property</a>

</details>

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_pull_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

<details>

<summary>

metadata?: Metadata {metrics }

</summary>

<details>

<summary>

metrics?: Metrics {backlog\_bytes, backlog\_count, oldest\_message\_timestamp\_ms }

Best-effort metrics for the queue. Values may be approximate due to the distributed nature of queues.

</summary>

backlog\_bytes: number

The size in bytes of unacknowledged messages in the queue.

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_pull_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20metrics%20%3E%20(property)%20backlog_bytes">Link to this property</a>

backlog\_count: number

The number of unacknowledged messages in the queue.

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_pull_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20metrics%20%3E%20(property)%20backlog_count">Link to this property</a>

oldest\_message\_timestamp\_ms: number

Unix timestamp in milliseconds of the oldest unacknowledged message in the queue. Returns 0 if unknown.

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_pull_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20metrics%20%3E%20(property)%20oldest_message_timestamp_ms">Link to this property</a>

</details>

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_pull_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20metrics">Link to this property</a>

</details>

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_pull_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

</details>

[Link to this property](<#(resource)%20queues.messages%20%3E%20(model)%20message_pull_response%20%3E%20(schema)>)

<details>

<summary>

MessageBulkPushResponse {metadata }

</summary>

<details>

<summary>

metadata?: Metadata {metrics }

</summary>

<details>

<summary>

metrics?: Metrics {backlog\_bytes, backlog\_count, oldest\_message\_timestamp\_ms }

Best-effort metrics for the queue. Values may be approximate due to the distributed nature of queues.

</summary>

backlog\_bytes: number

The size in bytes of unacknowledged messages in the queue.

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_bulk_push_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20metrics%20%3E%20(property)%20backlog_bytes">Link to this property</a>

backlog\_count: number

The number of unacknowledged messages in the queue.

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_bulk_push_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20metrics%20%3E%20(property)%20backlog_count">Link to this property</a>

oldest\_message\_timestamp\_ms: number

Unix timestamp in milliseconds of the oldest unacknowledged message in the queue. Returns 0 if unknown.

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_bulk_push_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20metrics%20%3E%20(property)%20oldest_message_timestamp_ms">Link to this property</a>

</details>

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_bulk_push_response%20%3E%20(schema)%20%3E%20(property)%20metadata%20%3E%20(property)%20metrics">Link to this property</a>

</details>

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_bulk_push_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

</details>

[Link to this property](<#(resource)%20queues.messages%20%3E%20(model)%20message_bulk_push_response%20%3E%20(schema)>)

<details>

<summary>

MessagePeekResponse {messages }

</summary>

<details>

<summary>

messages?: Array&lt;Message&gt;

</summary>

id?: string

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_peek_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

attempts?: number

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_peek_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20attempts">Link to this property</a>

body?: string

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_peek_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20body">Link to this property</a>

metadata?: unknown

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_peek_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20metadata">Link to this property</a>

ref?: string

An opaque reference to a peeked message. You must hold on to this value and use it to purge the message.

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_peek_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20ref">Link to this property</a>

timestamp\_ms?: number

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_peek_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20timestamp_ms">Link to this property</a>

</details>

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_peek_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

</details>

[Link to this property](<#(resource)%20queues.messages%20%3E%20(model)%20message_peek_response%20%3E%20(schema)>)

<details>

<summary>

MessagePurgeResponse {errors, warnings }

</summary>

<details>

<summary>

errors?: Array&lt;Error&gt;

Errors encountered while purging messages.

</summary>

message?: string

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_purge_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

</details>

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_purge_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

warnings?: Record&lt;string, string&gt;

Map of refs to warning messages encountered during purge.

<a href="#(resource)%20queues.messages%20%3E%20(model)%20message_purge_response%20%3E%20(schema)%20%3E%20(property)%20warnings">Link to this property</a>

</details>

[Link to this property](<#(resource)%20queues.messages%20%3E%20(model)%20message_purge_response%20%3E%20(schema)>)

#### QueuesPurge

##### [Get Queue Purge Status](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/purge/methods/status)

client.queues.purge.status(stringqueueID, PurgeStatusParams {account\_id } params, RequestOptionsoptions?): [PurgeStatusResponse](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.purge%20%3E%20(model)%20purge_status_response%20%3E%20(schema)>) {completed, started\_at }

GET/accounts/{account\_id}/queues/{queue\_id}/purge

##### [Purge Queue](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/purge/methods/start)

client.queues.purge.start(stringqueueID, PurgeStartParams {account\_id, delete\_messages\_permanently } params, RequestOptionsoptions?): [Queue](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues%20%3E%20(model)%20queue%20%3E%20(schema)>) {consumers, consumers\_total\_count, created\_on, 7 more }

POST/accounts/{account\_id}/queues/{queue\_id}/purge

##### ModelsExpand Collapse

<details>

<summary>

PurgeStatusResponse {completed, started\_at }

</summary>

completed?: string

Indicates if the last purge operation completed successfully.

<a href="#(resource)%20queues.purge%20%3E%20(model)%20purge_status_response%20%3E%20(schema)%20%3E%20(property)%20completed">Link to this property</a>

started\_at?: string

Timestamp when the last purge operation started.

<a href="#(resource)%20queues.purge%20%3E%20(model)%20purge_status_response%20%3E%20(schema)%20%3E%20(property)%20started_at">Link to this property</a>

</details>

[Link to this property](<#(resource)%20queues.purge%20%3E%20(model)%20purge_status_response%20%3E%20(schema)>)

#### QueuesConsumers

##### [List Queue Consumers](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/consumers/methods/list)

client.queues.consumers.list(stringqueueID, ConsumerListParams {account\_id } params, RequestOptionsoptions?): SinglePage< [Consumer](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)>)>

GET/accounts/{account\_id}/queues/{queue\_id}/consumers

##### [Get Queue Consumer](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/consumers/methods/get)

client.queues.consumers.get(stringconsumerID, ConsumerGetParams {account\_id, queue\_id } params, RequestOptionsoptions?): [Consumer](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)>)

GET/accounts/{account\_id}/queues/{queue\_id}/consumers/{consumer\_id}

##### [Create a Queue Consumer](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/consumers/methods/create)

client.queues.consumers.create(stringqueueID, ConsumerCreateParamsparams, RequestOptionsoptions?): [Consumer](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)>)

POST/accounts/{account\_id}/queues/{queue\_id}/consumers

##### [Update Queue Consumer](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/consumers/methods/update)

client.queues.consumers.update(stringconsumerID, ConsumerUpdateParamsparams, RequestOptionsoptions?): [Consumer](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)>)

PUT/accounts/{account\_id}/queues/{queue\_id}/consumers/{consumer\_id}

##### [Delete Queue Consumer](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/consumers/methods/delete)

client.queues.consumers.delete(stringconsumerID, ConsumerDeleteParams {account\_id, queue\_id } params, RequestOptionsoptions?): [ConsumerDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.consumers%20%3E%20(model)%20consumer_delete_response%20%3E%20(schema)>) {errors, messages, success }

DELETE/accounts/{account\_id}/queues/{queue\_id}/consumers/{consumer\_id}

##### ModelsExpand Collapse

<details>

<summary>

Consumer = MqWorkerConsumerResponse {consumer\_id, created\_on, dead\_letter\_queue, 4 more } | MqHTTPConsumerResponse {consumer\_id, created\_on, dead\_letter\_queue, 3 more }

Response body representing a consumer

</summary>

One of the following:

<details>

<summary>

MqWorkerConsumerResponse {consumer\_id, created\_on, dead\_letter\_queue, 4 more }

</summary>

consumer\_id?: string

A Resource identifier.

maxLength32

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20consumer_id">Link to this property</a>

created\_on?: string

formatdate-time

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20created_on">Link to this property</a>

dead\_letter\_queue?: string

Name of the dead letter queue, or empty string if not configured

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20dead_letter_queue">Link to this property</a>

queue\_name?: string

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20queue_name">Link to this property</a>

script\_name?: string

Name of a Worker

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20script_name">Link to this property</a>

<details>

<summary>

settings?: Settings {batch\_size, max\_concurrency, max\_retries, 2 more }

</summary>

batch\_size?: number

The maximum number of messages to include in a batch.

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20settings%20%3E%20(property)%20batch_size">Link to this property</a>

max\_concurrency?: number

Maximum number of concurrent consumers that may consume from this Queue. Set to <code>null</code> to automatically opt in to the platform’s maximum (recommended).

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20settings%20%3E%20(property)%20max_concurrency">Link to this property</a>

max\_retries?: number

The maximum number of retries

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20settings%20%3E%20(property)%20max_retries">Link to this property</a>

max\_wait\_time\_ms?: number

The number of milliseconds to wait for a batch to fill up before attempting to deliver it

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20settings%20%3E%20(property)%20max_wait_time_ms">Link to this property</a>

retry\_delay?: number

The number of seconds to delay before making the message available for another attempt.

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20settings%20%3E%20(property)%20retry_delay">Link to this property</a>

</details>

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20settings">Link to this property</a>

type?: "worker"

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

MqHTTPConsumerResponse {consumer\_id, created\_on, dead\_letter\_queue, 3 more }

</summary>

consumer\_id?: string

A Resource identifier.

maxLength32

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20consumer_id">Link to this property</a>

created\_on?: string

formatdate-time

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20created_on">Link to this property</a>

dead\_letter\_queue?: string

Name of the dead letter queue, or empty string if not configured

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20dead_letter_queue">Link to this property</a>

queue\_name?: string

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20queue_name">Link to this property</a>

<details>

<summary>

settings?: Settings {batch\_size, max\_retries, retry\_delay, visibility\_timeout\_ms }

</summary>

batch\_size?: number

The maximum number of messages to include in a batch.

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20settings%20%3E%20(property)%20batch_size">Link to this property</a>

max\_retries?: number

The maximum number of retries

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20settings%20%3E%20(property)%20max_retries">Link to this property</a>

retry\_delay?: number

The number of seconds to delay before making the message available for another attempt.

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20settings%20%3E%20(property)%20retry_delay">Link to this property</a>

visibility\_timeout\_ms?: number

The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20settings%20%3E%20(property)%20visibility_timeout_ms">Link to this property</a>

</details>

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20settings">Link to this property</a>

type?: "http\_pull"

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20queues.consumers%20%3E%20(model)%20consumer%20%3E%20(schema)>)

<details>

<summary>

ConsumerDeleteResponse {errors, messages, success }

</summary>

<details>

<summary>

errors?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)">ResponseInfo</a> {code, message, documentation\_url, source } &gt;

minLength1

</summary>

code: number

minimum1000

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20code">Link to this property</a>

message: string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url?: string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source?: Source {pointer }

</summary>

pointer?: string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

messages?: Array&lt;string&gt;

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success?: true

Indicates if the API call was successful or not.

<a href="#(resource)%20queues.consumers%20%3E%20(model)%20consumer_delete_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20queues.consumers%20%3E%20(model)%20consumer_delete_response%20%3E%20(schema)>)

#### QueuesSubscriptions

##### [List Event Subscriptions](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/subscriptions/methods/list)

client.queues.subscriptions.list(SubscriptionListParams {account\_id, direction, order, 2 more } params, RequestOptionsoptions?): V4PagePaginationArray< [SubscriptionListResponse](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)>) {id, created\_at, destination, 5 more } >

GET/accounts/{account\_id}/event\_subscriptions/subscriptions

##### [Get Event Subscription](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/subscriptions/methods/get)

client.queues.subscriptions.get(stringsubscriptionID, SubscriptionGetParams {account\_id } params, RequestOptionsoptions?): [SubscriptionGetResponse](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)>) {id, created\_at, destination, 5 more }

GET/accounts/{account\_id}/event\_subscriptions/subscriptions/{subscription\_id}

##### [Create Event Subscription](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/subscriptions/methods/create)

client.queues.subscriptions.create(SubscriptionCreateParams {account\_id, destination, enabled, 3 more } params, RequestOptionsoptions?): [SubscriptionCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)>) {id, created\_at, destination, 5 more }

POST/accounts/{account\_id}/event\_subscriptions/subscriptions

##### [Update Event Subscription](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/subscriptions/methods/update)

client.queues.subscriptions.update(stringsubscriptionID, SubscriptionUpdateParams {account\_id, destination, enabled, 2 more } params, RequestOptionsoptions?): [SubscriptionUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)>) {id, created\_at, destination, 5 more }

PATCH/accounts/{account\_id}/event\_subscriptions/subscriptions/{subscription\_id}

##### [Delete Event Subscription](https://developers.cloudflare.com/api/typescript/resources/queues/subresources/subscriptions/methods/delete)

client.queues.subscriptions.delete(stringsubscriptionID, SubscriptionDeleteParams {account\_id } params, RequestOptionsoptions?): [SubscriptionDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/queues#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)>) {id, created\_at, destination, 5 more }

DELETE/accounts/{account\_id}/event\_subscriptions/subscriptions/{subscription\_id}

##### ModelsExpand Collapse

<details>

<summary>

SubscriptionListResponse {id, created\_at, destination, 5 more }

</summary>

id: string

Unique identifier for the subscription

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_at: string

When the subscription was created

formatdate-time

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

<details>

<summary>

destination: Destination {queue\_id, type }

Destination configuration for the subscription

</summary>

queue\_id: string

ID of the target queue

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20destination%20%3E%20(property)%20queue_id">Link to this property</a>

type: "queues.queue"

Type of destination

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20destination%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20destination">Link to this property</a>

enabled: boolean

Whether the subscription is active

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

events: Array&lt;string&gt;

List of event types this subscription handles

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20events">Link to this property</a>

modified\_at: string

When the subscription was last modified

formatdate-time

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

name: string

Name of the subscription

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

source: MqEventSourceImages {type } | MqEventSourceKV {type } | MqEventSourceR2 {type } | 6 more

Source configuration for the subscription

</summary>

One of the following:

<details>

<summary>

MqEventSourceImages {type }

</summary>

type?: "images"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

MqEventSourceKV {type }

</summary>

type?: "kv"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

MqEventSourceR2 {type }

</summary>

type?: "r2"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%202%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

MqEventSourceSuperSlurper {type }

</summary>

type?: "superSlurper"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%203%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

MqEventSourceVectorize {type }

</summary>

type?: "vectorize"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%204%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

MqEventSourceWorkersAIModel {model\_name, type }

</summary>

model\_name?: string

Name of the Workers AI model

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%205%20%3E%20(property)%20model_name">Link to this property</a>

type?: "workersAi.model"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%205%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%205">Link to this property</a>

<details>

<summary>

MqEventSourceWorkersBuildsWorker {type, worker\_name }

</summary>

type?: "workersBuilds.worker"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%206%20%3E%20(property)%20type">Link to this property</a>

worker\_name?: string

Name of the worker

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%206%20%3E%20(property)%20worker_name">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%206">Link to this property</a>

<details>

<summary>

MqEventSourceWorkersScript {script\_tag, type }

</summary>

script\_tag?: string

Tag of the Worker script

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%207%20%3E%20(property)%20script_tag">Link to this property</a>

type?: "workers.script"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%207%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%207">Link to this property</a>

<details>

<summary>

MqEventSourceWorkflowsWorkflow {type, workflow\_name }

</summary>

type?: "workflows.workflow"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%208%20%3E%20(property)%20type">Link to this property</a>

workflow\_name?: string

Name of the workflow

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%208%20%3E%20(property)%20workflow_name">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%208">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_list_response%20%3E%20(schema)>)

<details>

<summary>

SubscriptionGetResponse {id, created\_at, destination, 5 more }

</summary>

id: string

Unique identifier for the subscription

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_at: string

When the subscription was created

formatdate-time

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

<details>

<summary>

destination: Destination {queue\_id, type }

Destination configuration for the subscription

</summary>

queue\_id: string

ID of the target queue

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20destination%20%3E%20(property)%20queue_id">Link to this property</a>

type: "queues.queue"

Type of destination

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20destination%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20destination">Link to this property</a>

enabled: boolean

Whether the subscription is active

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

events: Array&lt;string&gt;

List of event types this subscription handles

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20events">Link to this property</a>

modified\_at: string

When the subscription was last modified

formatdate-time

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

name: string

Name of the subscription

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

source: MqEventSourceImages {type } | MqEventSourceKV {type } | MqEventSourceR2 {type } | 6 more

Source configuration for the subscription

</summary>

One of the following:

<details>

<summary>

MqEventSourceImages {type }

</summary>

type?: "images"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

MqEventSourceKV {type }

</summary>

type?: "kv"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

MqEventSourceR2 {type }

</summary>

type?: "r2"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%202%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

MqEventSourceSuperSlurper {type }

</summary>

type?: "superSlurper"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%203%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

MqEventSourceVectorize {type }

</summary>

type?: "vectorize"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%204%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

MqEventSourceWorkersAIModel {model\_name, type }

</summary>

model\_name?: string

Name of the Workers AI model

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%205%20%3E%20(property)%20model_name">Link to this property</a>

type?: "workersAi.model"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%205%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%205">Link to this property</a>

<details>

<summary>

MqEventSourceWorkersBuildsWorker {type, worker\_name }

</summary>

type?: "workersBuilds.worker"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%206%20%3E%20(property)%20type">Link to this property</a>

worker\_name?: string

Name of the worker

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%206%20%3E%20(property)%20worker_name">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%206">Link to this property</a>

<details>

<summary>

MqEventSourceWorkersScript {script\_tag, type }

</summary>

script\_tag?: string

Tag of the Worker script

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%207%20%3E%20(property)%20script_tag">Link to this property</a>

type?: "workers.script"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%207%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%207">Link to this property</a>

<details>

<summary>

MqEventSourceWorkflowsWorkflow {type, workflow\_name }

</summary>

type?: "workflows.workflow"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%208%20%3E%20(property)%20type">Link to this property</a>

workflow\_name?: string

Name of the workflow

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%208%20%3E%20(property)%20workflow_name">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%208">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_get_response%20%3E%20(schema)>)

<details>

<summary>

SubscriptionCreateResponse {id, created\_at, destination, 5 more }

</summary>

id: string

Unique identifier for the subscription

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_at: string

When the subscription was created

formatdate-time

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

<details>

<summary>

destination: Destination {queue\_id, type }

Destination configuration for the subscription

</summary>

queue\_id: string

ID of the target queue

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20destination%20%3E%20(property)%20queue_id">Link to this property</a>

type: "queues.queue"

Type of destination

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20destination%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20destination">Link to this property</a>

enabled: boolean

Whether the subscription is active

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

events: Array&lt;string&gt;

List of event types this subscription handles

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20events">Link to this property</a>

modified\_at: string

When the subscription was last modified

formatdate-time

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

name: string

Name of the subscription

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

source: MqEventSourceImages {type } | MqEventSourceKV {type } | MqEventSourceR2 {type } | 6 more

Source configuration for the subscription

</summary>

One of the following:

<details>

<summary>

MqEventSourceImages {type }

</summary>

type?: "images"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

MqEventSourceKV {type }

</summary>

type?: "kv"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

MqEventSourceR2 {type }

</summary>

type?: "r2"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%202%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

MqEventSourceSuperSlurper {type }

</summary>

type?: "superSlurper"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%203%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

MqEventSourceVectorize {type }

</summary>

type?: "vectorize"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%204%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

MqEventSourceWorkersAIModel {model\_name, type }

</summary>

model\_name?: string

Name of the Workers AI model

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%205%20%3E%20(property)%20model_name">Link to this property</a>

type?: "workersAi.model"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%205%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%205">Link to this property</a>

<details>

<summary>

MqEventSourceWorkersBuildsWorker {type, worker\_name }

</summary>

type?: "workersBuilds.worker"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%206%20%3E%20(property)%20type">Link to this property</a>

worker\_name?: string

Name of the worker

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%206%20%3E%20(property)%20worker_name">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%206">Link to this property</a>

<details>

<summary>

MqEventSourceWorkersScript {script\_tag, type }

</summary>

script\_tag?: string

Tag of the Worker script

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%207%20%3E%20(property)%20script_tag">Link to this property</a>

type?: "workers.script"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%207%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%207">Link to this property</a>

<details>

<summary>

MqEventSourceWorkflowsWorkflow {type, workflow\_name }

</summary>

type?: "workflows.workflow"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%208%20%3E%20(property)%20type">Link to this property</a>

workflow\_name?: string

Name of the workflow

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%208%20%3E%20(property)%20workflow_name">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%208">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_create_response%20%3E%20(schema)>)

<details>

<summary>

SubscriptionUpdateResponse {id, created\_at, destination, 5 more }

</summary>

id: string

Unique identifier for the subscription

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_at: string

When the subscription was created

formatdate-time

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

<details>

<summary>

destination: Destination {queue\_id, type }

Destination configuration for the subscription

</summary>

queue\_id: string

ID of the target queue

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20destination%20%3E%20(property)%20queue_id">Link to this property</a>

type: "queues.queue"

Type of destination

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20destination%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20destination">Link to this property</a>

enabled: boolean

Whether the subscription is active

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

events: Array&lt;string&gt;

List of event types this subscription handles

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20events">Link to this property</a>

modified\_at: string

When the subscription was last modified

formatdate-time

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

name: string

Name of the subscription

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

source: MqEventSourceImages {type } | MqEventSourceKV {type } | MqEventSourceR2 {type } | 6 more

Source configuration for the subscription

</summary>

One of the following:

<details>

<summary>

MqEventSourceImages {type }

</summary>

type?: "images"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

MqEventSourceKV {type }

</summary>

type?: "kv"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

MqEventSourceR2 {type }

</summary>

type?: "r2"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%202%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

MqEventSourceSuperSlurper {type }

</summary>

type?: "superSlurper"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%203%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

MqEventSourceVectorize {type }

</summary>

type?: "vectorize"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%204%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

MqEventSourceWorkersAIModel {model\_name, type }

</summary>

model\_name?: string

Name of the Workers AI model

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%205%20%3E%20(property)%20model_name">Link to this property</a>

type?: "workersAi.model"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%205%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%205">Link to this property</a>

<details>

<summary>

MqEventSourceWorkersBuildsWorker {type, worker\_name }

</summary>

type?: "workersBuilds.worker"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%206%20%3E%20(property)%20type">Link to this property</a>

worker\_name?: string

Name of the worker

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%206%20%3E%20(property)%20worker_name">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%206">Link to this property</a>

<details>

<summary>

MqEventSourceWorkersScript {script\_tag, type }

</summary>

script\_tag?: string

Tag of the Worker script

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%207%20%3E%20(property)%20script_tag">Link to this property</a>

type?: "workers.script"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%207%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%207">Link to this property</a>

<details>

<summary>

MqEventSourceWorkflowsWorkflow {type, workflow\_name }

</summary>

type?: "workflows.workflow"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%208%20%3E%20(property)%20type">Link to this property</a>

workflow\_name?: string

Name of the workflow

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%208%20%3E%20(property)%20workflow_name">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%208">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)>)

<details>

<summary>

SubscriptionDeleteResponse {id, created\_at, destination, 5 more }

</summary>

id: string

Unique identifier for the subscription

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_at: string

When the subscription was created

formatdate-time

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

<details>

<summary>

destination: Destination {queue\_id, type }

Destination configuration for the subscription

</summary>

queue\_id: string

ID of the target queue

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20destination%20%3E%20(property)%20queue_id">Link to this property</a>

type: "queues.queue"

Type of destination

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20destination%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20destination">Link to this property</a>

enabled: boolean

Whether the subscription is active

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

events: Array&lt;string&gt;

List of event types this subscription handles

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20events">Link to this property</a>

modified\_at: string

When the subscription was last modified

formatdate-time

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

name: string

Name of the subscription

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

source: MqEventSourceImages {type } | MqEventSourceKV {type } | MqEventSourceR2 {type } | 6 more

Source configuration for the subscription

</summary>

One of the following:

<details>

<summary>

MqEventSourceImages {type }

</summary>

type?: "images"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

MqEventSourceKV {type }

</summary>

type?: "kv"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

MqEventSourceR2 {type }

</summary>

type?: "r2"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%202%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

MqEventSourceSuperSlurper {type }

</summary>

type?: "superSlurper"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%203%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

MqEventSourceVectorize {type }

</summary>

type?: "vectorize"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%204%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

MqEventSourceWorkersAIModel {model\_name, type }

</summary>

model\_name?: string

Name of the Workers AI model

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%205%20%3E%20(property)%20model_name">Link to this property</a>

type?: "workersAi.model"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%205%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%205">Link to this property</a>

<details>

<summary>

MqEventSourceWorkersBuildsWorker {type, worker\_name }

</summary>

type?: "workersBuilds.worker"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%206%20%3E%20(property)%20type">Link to this property</a>

worker\_name?: string

Name of the worker

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%206%20%3E%20(property)%20worker_name">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%206">Link to this property</a>

<details>

<summary>

MqEventSourceWorkersScript {script\_tag, type }

</summary>

script\_tag?: string

Tag of the Worker script

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%207%20%3E%20(property)%20script_tag">Link to this property</a>

type?: "workers.script"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%207%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%207">Link to this property</a>

<details>

<summary>

MqEventSourceWorkflowsWorkflow {type, workflow\_name }

</summary>

type?: "workflows.workflow"

Type of source

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%208%20%3E%20(property)%20type">Link to this property</a>

workflow\_name?: string

Name of the workflow

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%208%20%3E%20(property)%20workflow_name">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(variant)%208">Link to this property</a>

</details>

<a href="#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20queues.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)>)