Send events to RudderStack directly via HTTP API calls from your server-side applications.
3 minute read
The HTTP source lets you send events to RudderStack using standard HTTP REST API requests.
This guide will help you set up and use the HTTP source in RudderStack.
Overview
The HTTP source is helpful for server-to-server data ingestion, making it ideal for backend services, microservices, and serverless functions that need to send event data to RudderStack.
Some key features of this source integration are listed below:
Zero configuration: No source-specific settings required — this integration works out of the box
Server-side processing: Events are processed by RudderStack’s cloud infrastructure
Standard HTTP API: Uses standard REST API endpoints for event ingestion
Universal compatibility: Works with any application that can make HTTP requests
Full event support: Supports all standard RudderStack event types (track, identify, page, screen, group, alias)
The HTTP source supports all standard RudderStack event types.
You can send events by making HTTP POST requests to the RudderStack API endpoint:
POST https://<DATA_PLANE_URL>/v1/<EVENT_TYPE>
The HTTP source supports the following endpoints:
Endpoint
Use case
/v1/track
Track user actions and events
/v1/identify
Update user traits and attributes
/v1/page
Track page views
/v1/screen
Track screen views (mobile apps)
/v1/group
Associate users with groups
/v1/alias
Merge user identities
/v1/batch
Send multiple events in a single request
API reference
See the RudderStack HTTP API documentation for more information on API authentication, endpoints, request/response format, response codes, and error handling.
Request size limits
RudderStack allows messages with a maximum size of 32KB per call.
The /v1/batch endpoint accepts a maximum call size of 4MB per batch and 32KB per call.
Examples
This section provides examples of how to use the HTTP source to send events to RudderStack.
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.