--- url: "https://asyncapi.com/docs/reference/bindings/amqp" titulek: "amqp | AsyncAPI Initiative for event-driven APIs" h1: "amqp" popis: "AMQP 0-9-1 Bindings This document defines how to describe AMQP-specific information on AsyncAPI. Version Current version is 0.3.0. Server Binding Object This object MUST NOT contain any prope" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 02:46:41" znaku: 4744 slov: 640 kodovani: "utf-8" sha256: "db8859fa75bbac7567a9c9be6946bcd42032f5a2ade19cf5d7116baec3b83bef" --- ##### On this page AMQP 0-9-1 Bindings Version Server Binding Object Channel Binding Object Operation Binding Object Message Binding Object # amqp Found an error? Have a suggestion?[Edit this page on GitHub](https://github.com/asyncapi/bindings/tree/master/amqp.md) # AMQP 0-9-1 Bindings This document defines how to describe AMQP-specific information on AsyncAPI. ## Version Current version is `0.3.0`. ## Server Binding Object This object MUST NOT contain any properties. Its name is reserved for future use. ## Channel Binding Object This object contains information about the channel representation in AMQP. ##### Fixed Fields | Field Name | Type | Description | | --- | --- | --- | | `is` | string | Defines what type of channel is it. Can be either `queue` or `routingKey` (default). | | `exchange` | Map[string, any] | When `is`=`routingKey`, this object defines the exchange properties. | | `exchange.name` | string | The name of the exchange. It MUST NOT exceed 255 characters long. | | `exchange.type` | string | The type of the exchange. Can be either `topic`, `direct`, `fanout`, `default` or `headers`. | | `exchange.durable` | boolean | Whether the exchange should survive broker restarts or not. | | `exchange.autoDelete` | boolean | Whether the exchange should be deleted when the last queue is unbound from it. | | `exchange.vhost` | string | The virtual host of the exchange. Defaults to `/`. | | `queue` | Map[string, any] | When `is`=`queue`, this object defines the queue properties. | | `queue.name` | string | The name of the queue. It MUST NOT exceed 255 characters long. | | `queue.durable` | boolean | Whether the queue should survive broker restarts or not. | | `queue.exclusive` | boolean | Whether the queue should be used only by one connection or not. | | `queue.autoDelete` | boolean | Whether the queue should be deleted when the last consumer unsubscribes. | | `queue.vhost` | string | The virtual host of the queue. Defaults to `/`. | | `bindingVersion` | string | The version of this binding. If omitted, "latest" MUST be assumed. | This object MUST contain only the properties defined above. ##### Example ``` channels: userSignup: address: 'user/signup' bindings: amqp: is: routingKey exchange: name: myExchange type: topic durable: true autoDelete: false vhost: / bindingVersion: 0.3.0 ``` ``` channels: userSignup: address: 'user/signup' bindings: amqp: is: queue queue: name: my-queue-name durable: true exclusive: true autoDelete: false vhost: / bindingVersion: 0.3.0 ``` ## Operation Binding Object This object contains information about the operation representation in AMQP. ##### Fixed Fields | Field Name | Type | Applies To Action | Description | | --- | --- | --- | --- | | `expiration` | integer | `receive`, `send` | TTL (Time-To-Live) for the message. It MUST be greater than or equal to zero. | | `userId` | string | `receive`, `send` | Identifies the user who has sent the message. | | `cc` | [string] | `receive`, `send` | The routing keys the message should be routed to at the time of publishing. | | `priority` | integer | `receive`, `send` | A priority for the message. | | `deliveryMode` | integer | `receive`, `send` | Delivery mode of the message. Its value MUST be either 1 (transient) or 2 (persistent). | | `mandatory` | boolean | `receive` | Whether the message is mandatory or not. | | `bcc` | [string] | `receive` | Like cc but consumers will not receive this information. | | `timestamp` | boolean | `receive`, `send` | Whether the message should include a timestamp or not. | | `ack` | boolean | Subscribe | Whether the consumer should ack the message or not. | | `bindingVersion` | string | `receive`, `send` | The version of this binding. If omitted, "latest" MUST be assumed. | This object MUST contain only the properties defined above. ##### Example ``` operations: userSignup: channel: $ref: '#/channels/userSignup' bindings: amqp: expiration: 100000 userId: guest cc: ['user.logs'] priority: 10 deliveryMode: 2 mandatory: false bcc: ['external.audit'] timestamp: true ack: false bindingVersion: 0.3.0 ``` ## Message Binding Object This object contains information about the message representation in AMQP. ##### Fixed Fields | Field Name | Type | Description | | --- | --- | --- | | `contentEncoding` | string | A MIME encoding for the message content. | | `messageType` | string | Application-specific message type. | | `bindingVersion` | string | The version of this binding. If omitted, "latest" MUST be assumed. | This object MUST contain only the properties defined above. ``` channels: userSignup: address: 'user/signup' messages: userSignupMessage: bindings: amqp: contentEncoding: gzip messageType: 'user.signup' bindingVersion: 0.3.0 ``` [Go BackReference - x](/docs/reference/extensions/x) [Up Nextamqp1](/docs/reference/bindings/amqp1) Was this helpful? Help us improve the docs by sharing your feedback. [Submit Feedback](https://github.com/asyncapi/website/issues/new?template=docs-feedback.yml&title=Docs%20Feedback%3A%20%2Fdocs%2Freference%2Fbindings%2Famqp&labels=%F0%9F%93%91%20docs) OR [Create Issue on GitHub](https://github.com/asyncapi/website/issues/new/choose)