Post Data from an Unauthenticated Server-to-Server Connection
Use the POST method to send event data through an unauthenticated server-to-server connection. Use an unauthenticated server-to-server connection when your server already collects engagement data that you want to forward to Data Cloud and you don’t require an authenticated connection.
- URI
/web/events/{appSourceId}
.
Retrieve the {appSourceId} after you create a web or mobile connection in Data Cloud. Mobile connections provide the {appSourceId} during setup. For web connections, you can find it in the JavaScript tag, for example: https://cdn.360a.salesforce.com/beacon/c360a/{appSourceId}/scripts/c360a.min.js.
- Available since release
Salesforce v63.0
- Formats
REST
- HTTP methods
POST
- Request body
You can include multiple event types in a request. See the recommended schema for details.
- Request parameters
Parameter Description eventId
A unique ID for each event dateTime
Timestamp must be in ISO8601 format YYYY-MM-DD'T'HH:mm .SSS'Z' sessionId
Same as the deviceId deviceId
A unique ID, stored in a cookie, for the device from which the request is made eventType
Contains the developerName value used in the definition of an event schema category
Must be profile or engagement - Response body
Code Description 204
No Content (payload posted) 400
Bad Request 401
Unauthorized 500
Server Error