--- url: "https://asyncapi.com/docs/reference/bindings/http" titulek: "http | AsyncAPI Initiative for event-driven APIs" h1: "http" popis: "HTTP Bindings This document defines how to describe HTTP-specific information on AsyncAPI. Version Current version is 0.3.0. Server Binding Object This object MUST NOT contain any properties." jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 02:46:45" znaku: 3147 slov: 369 kodovani: "utf-8" sha256: "191506409032e3fc7bacdf79af0f039a2035592491a7433da65493eb232453b3" --- ##### On this page HTTP Bindings Version Server Binding Object Channel Binding Object Operation Binding Object Message Binding Object # http Found an error? Have a suggestion?[Edit this page on GitHub](https://github.com/asyncapi/bindings/tree/master/http.md) # HTTP Bindings This document defines how to describe HTTP-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 MUST NOT contain any properties. Its name is reserved for future use. ## Operation Binding Object ##### Fixed Fields | Field Name | Type | Description | | --- | --- | --- | | `method` | string | The HTTP method for the request. Its value MUST be one of `GET`, `POST`, `PUT`, `PATCH`, `DELETE`, `HEAD`, `OPTIONS`, `CONNECT`, and `TRACE`. | | `query` | [Schema Object](https://github.com/asyncapi/spec/blob/master/spec/asyncapi.md#schemaObject) \| [Reference Object](referenceObject) | A Schema object containing the definitions for each query parameter. This schema MUST be of type `object` and have a `properties` key. | | `bindingVersion` | string | The version of this binding. If omitted, "latest" MUST be assumed. | This object MUST contain only the properties defined above. ##### Example ``` channels: employees: address: /employees operations: employees: action: send bindings: http: method: GET query: type: object required: - companyId properties: companyId: type: number minimum: 1 description: The Id of the company. additionalProperties: false bindingVersion: '0.3.0' ``` ## Message Binding Object This object contains information about the message representation in HTTP. ##### Fixed Fields | Field Name | Type | Description | | --- | --- | --- | | `headers` | [Schema Object](https://github.com/asyncapi/spec/blob/master/spec/asyncapi.md#schemaObject) \| [Reference Object](referenceObject) | A Schema object containing the definitions for HTTP-specific headers. This schema MUST be of type `object` and have a `properties` key. | | `statusCode` | number | The HTTP response status code according to [RFC 9110](https://httpwg.org/specs/rfc9110.html#overview.of.status.codes). `statusCode` is only relevant for messages referenced by the [Operation Reply Object](https://www.asyncapi.com/docs/reference/specification/v3.0.0#operationReplyObject), as it defines the status code for the response. In all other cases, this value can be safely ignored. | | `bindingVersion` | string | The version of this binding. If omitted, "latest" MUST be assumed. | This object MUST contain only the properties defined above. ``` channels: test: address: /test messages: testMessage: bindings: http: statusCode: 200 headers: type: object properties: Content-Type: type: string enum: ['application/json'] bindingVersion: '0.3.0' ``` [Go Backgooglepubsub](/docs/reference/bindings/googlepubsub) [Up NextOverview](/docs/reference/bindings) 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%2Fhttp&labels=%F0%9F%93%91%20docs) OR [Create Issue on GitHub](https://github.com/asyncapi/website/issues/new/choose)