AsyncAPI specification handling for event-driven API documentation. Parse, validate, and generate documentation for message-based APIs including Kafka, MQTT, WebSocket, and AMQP systems.
AsyncAPI specification handling for event-driven API documentation. Parse, validate, and generate documentation for message-based APIs including Kafka, MQTT, WebSocket, and AMQP systems.
asyncapi:3.0.0info:title:UserEventsAPIversion:1.0.0description:|
Event-driven API for user management operations.
## OverviewThisAPIpublisheseventswhenuserdatachanges.Consumerscansubscribetospecificchannelstoreceivereal-timeupdates.## AuthenticationAllconnectionsrequireavalidAPIkeypassedintheconnectionheaders.contact:name:APITeamemail:api-team@example.comlicense:name:Apache2.0url:https://www.apache.org/licenses/LICENSE-2.0servers:production:host:kafka.example.com:9092protocol:kafkadescription:ProductionKafkaclustersecurity:-$ref:'#/components/securitySchemes/sasl'tags:-name:productiondescription:Productionenvironmentstaging:host:kafka-staging.example.com:9092protocol:kafkadescription:Stagingenvironmentchannels:userCreated:address:user.events.createdmessages:UserCreatedMessage:$ref:'#/components/messages/UserCreated'description:|
Published when a new user account is created.
**Trigger**:Userregistrationcompletion**Frequency**:~1000events/dayuserUpdated:address:user.events.updatedmessages:UserUpdatedMessage:$ref:'#/components/messages/UserUpdated'operations:publishUserCreated:action:sendchannel:$ref:'#/channels/userCreated'summary:Publishusercreatedeventdescription:|
Publishes an event when a new user is created.
Events are partitioned by user ID.
tags:-name:usersbindings:kafka:groupId:user-serviceclientId:user-publishersubscribeUserCreated:action:receivechannel:$ref:'#/channels/userCreated'summary:Subscribetousercreatedeventsdescription:|
Subscribe to receive notifications when new users
are created. Ideal for:
- Welcome email services
- Analytics tracking
- Audit logging
components:messages:UserCreated:name:UserCreatedtitle:UserCreatedEventsummary:EventpublishedwhenauseriscreatedcontentType:application/jsontraits:-$ref:'#/components/messageTraits/commonHeaders'payload:$ref:'#/components/schemas/UserCreatedPayload'examples:-name:NewUsersummary:Standardusercreationpayload:userId:"usr_123456"email:"john@example.com"createdAt:"2026-01-24T10:30:00Z"source:"web-signup"UserUpdated:name:UserUpdatedtitle:UserUpdatedEventsummary:EventpublishedwhenuserdatachangescontentType:application/jsonpayload:$ref:'#/components/schemas/UserUpdatedPayload'schemas:UserCreatedPayload:type:objectdescription:Payloadforusercreatedeventsrequired:-userId-email-createdAtproperties:userId:type:stringdescription:Uniqueuseridentifierpattern:"^usr_[a-zA-Z0-9]+$"examples:-"usr_123456"email:type:stringformat:emaildescription:User'semailaddresscreatedAt:type:stringformat:date-timedescription:Timestampofusercreationsource:type:stringenum:-web-signup-mobile-app-admin-portal-apidescription:RegistrationsourceUserUpdatedPayload:type:objectrequired:-userId-updatedAt-changesproperties:userId:type:stringdescription:UniqueuseridentifierupdatedAt:type:stringformat:date-timechanges:type:arrayitems:type:objectproperties:field:type:stringoldValue:type:stringnewValue:type:stringmessageTraits:commonHeaders:headers:type:objectproperties:correlationId:type:stringdescription:CorrelationIDfordistributedtracingformat:uuidtimestamp:type:stringformat:date-timedescription:Eventtimestampversion:type:stringdescription:SchemaversionsecuritySchemes:sasl:type:scramSha256description:SASL/SCRAM-SHA-256authentication