Skip to main content

Ballerina API Documentation

Complete API documentation for all Ballerina standard library modules and extended modules is published on Ballerina Central. This page provides a categorized index of the most important modules used in integration development.

Standard library modules

Network - protocol modules

ModuleDescriptionAPI Docs
ballerina/httpHTTP client and service with HTTP/1.1 and HTTP/2 supportAPI Docs
ballerina/grpcgRPC client and service supportAPI Docs
ballerina/graphqlGraphQL service and client supportAPI Docs
ballerina/websocketWebSocket client and service supportAPI Docs
ballerina/websubWebSub hub, publisher, and subscriberAPI Docs
ballerina/websubhubWebSub hub implementationAPI Docs
ballerina/tcpTCP client and listenerAPI Docs
ballerina/udpUDP client and listenerAPI Docs
ballerina/ftpFTP client and listenerAPI Docs
ballerina/emailSMTP, POP3, and IMAP email supportAPI Docs

Network - messaging modules

ModuleDescriptionAPI Docs
ballerinax/kafkaApache Kafka producer and consumerAPI Docs
ballerinax/rabbitmqRabbitMQ client and listenerAPI Docs
ballerinax/natsNATS client and listenerAPI Docs
ballerinax/stanNATS Streaming (STAN) clientAPI Docs
ballerinax/java.jmsJMS client supportAPI Docs
ballerinax/mqttMQTT client and listenerAPI Docs
ballerinax/asbAzure Service Bus clientAPI Docs

Database modules

ModuleDescriptionAPI Docs
ballerina/sqlGeneric SQL client abstractionAPI Docs
ballerinax/mysqlMySQL database clientAPI Docs
ballerinax/postgresqlPostgreSQL database clientAPI Docs
ballerinax/mssqlMicrosoft SQL Server clientAPI Docs
ballerinax/oracledbOracle Database clientAPI Docs
ballerina/persistData persistence layerAPI Docs

Data handling modules

ModuleDescriptionAPI Docs
ballerina/ioFile and stream I/O operationsAPI Docs
ballerina/xmldataXML data processing utilitiesAPI Docs
ballerina/constraintData validation constraintsAPI Docs
ballerina/regexRegular expression supportAPI Docs
ballerina/mimeMIME type handlingAPI Docs
ballerina/urlURL encoding and decodingAPI Docs
ballerina/data.jsondataJSON data processingAPI Docs
ballerina/data.xmldataXML data bindingAPI Docs
ballerina/data.csvCSV data processingAPI Docs
ballerinax/health.hl7v2HL7 v2 message processingAPI Docs
ballerinax/health.fhir.r4FHIR R4 resource typesAPI Docs

Security modules

ModuleDescriptionAPI Docs
ballerina/authAuthentication frameworkAPI Docs
ballerina/jwtJWT token handlingAPI Docs
ballerina/oauth2OAuth 2.0 client supportAPI Docs
ballerina/cryptoCryptographic operationsAPI Docs

Utility modules

ModuleDescriptionAPI Docs
ballerina/logLogging frameworkAPI Docs
ballerina/timeDate, time, and timezone operationsAPI Docs
ballerina/uuidUUID generationAPI Docs
ballerina/cacheIn-memory cachingAPI Docs
ballerina/taskTask scheduling (cron, timers)API Docs
ballerina/fileFile system operationsAPI Docs
ballerina/osOperating system utilitiesAPI Docs
ballerina/lang.runtimeRuntime managementAPI Docs

Observability modules

ModuleDescriptionAPI Docs
ballerina/observeObservability and tracingAPI Docs
ballerinax/prometheusPrometheus metricsAPI Docs
ballerinax/jaegerJaeger distributed tracingAPI Docs

Cloud and SaaS connector modules

ModuleDescriptionAPI Docs
ballerinax/salesforceSalesforce CRM clientAPI Docs
ballerinax/githubGitHub API clientAPI Docs
ballerinax/googleapis.sheetsGoogle Sheets clientAPI Docs
ballerinax/googleapis.gmailGmail clientAPI Docs
ballerinax/slackSlack messaging clientAPI Docs
ballerinax/twilioTwilio messaging and voiceAPI Docs
ballerinax/aws.s3AWS S3 object storageAPI Docs
ballerinax/aws.sqsAWS SQS messagingAPI Docs
ballerinax/azure.functionsAzure Functions integrationAPI Docs

AI and LLM modules

ModuleDescriptionAPI Docs
ballerinax/ai.agentAI agent frameworkAPI Docs
ballerinax/openai.chatOpenAI Chat API clientAPI Docs
ballerinax/openai.embeddingsOpenAI Embeddings API clientAPI Docs
ballerinax/azure.openaiAzure OpenAI clientAPI Docs

Browsing API docs

On Ballerina central

  1. Go to central.ballerina.io
  2. Use the search bar to find a module by name or keyword
  3. Filter by organization (ballerina for standard library, ballerinax for extended modules)
  4. Select a module to view its API documentation, including types, functions, classes, and examples

In VS code

The WSO2 Integrator VS Code extension provides inline API documentation:

  • Hover over a module import to see the module description
  • Use Ctrl+Click (or Cmd+Click on macOS) on a function or type to navigate to its definition
  • Use the command palette (Ctrl+Shift+P) and search for "Ballerina: Show API Docs"

See also