Create an Authenticated Server-to-Server Connection
To set up a server-to-server web connection, create an external client app, add the connector in Data 360, and create a data stream for the data. Use a server-to-server connector when your server already collects engagement data that you want to forward to Data 360 or when you require an authenticated connection to Data 360.
Create a Private-Public Key Pair and Certificate
To configure OAuth for the external client app you will use in your server-to-server connection, create a private/public RSA key pair and a digital x509 certificate.
Important: If you already have an external client app that you want to use, ensure that you have the private/public RSA key pair you used to create the x509 certificate for that app, as you need them to enable OAuth in a subsequent step.
From your terminal, change directories to any folder.
Clear the selection for Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows.
Click Create.
On the Policies page, click Edit.
Change Permitted Users policies to All users may self-authorize.
Change IP Relaxation to Relax IP restrictions.
Click Save.
Under the Settings menu, open the OAuth Settings dropdown and note the Callback URL set on creation and Consumer Key by following the link.
Using the Consumer Key and Callback URL created in Enable OAuth settings for the API integration, paste the following URL into your browser using the noted values:
You can create a secure server-to-server connection between your website source and Data 360 to programmatically capture and ingest data.
In Salesforce, go to Setup, and then select Data Cloud Setup.
Click Web & Mobile SDK, and then click New.
Enter the app name, and for connector type, select Server to Server. If needed, you can later edit the app name.
To select a JSON Event Type schema file from your computer, in the Schema section, click Upload Files.
Preview the schema and verify your Event Category, Field data types, Primary Key, and whether a field is marked as required.
Confirm that all events and fields are populated accordingly and save your work.
After your schema is uploaded, compare it with your JSON schema file for accuracy.
To change your schema at any point, click Update Schema. You can only add events or fields; the schema must retain all previous events and fields
To update your schema, click Yes, Update or to view the full schema you uploaded, click View Full Schema.
In the integration section, copy the system-generated Source ID. You need this to make server-to-server requests as the {appSourceId}.
Connect Data from Other Sources in Data 360
Connect non-web and non-mobile data sources to Data 360 to collect customer engagement and profile data. Use this connection type for sources like Agentforce conversations, point-of-sale (POS) transactions, IoT device telemetry, or self-service kiosks that cannot provide browser or mobile app context. This connector requires only three mandatory fields (eventId, eventType, and dateTime), streamlining data ingestion from non-digital sources.
User Permissions Needed
To set up a server-to-server connection for other sources:
Data Cloud Architect
Create a web & mobile connection from Data 360 Setup.
Click New, name the connection, and select Server to Server, and then select Data from Other Sources.
To select a JSON Event Type schema file from your computer, in the Schema section, click Upload Files.
Note: Only three fields are mandatory for this connector type: eventId, eventType, and dateTime. Additional fields such as sessionId, deviceId, and category are optional.
Preview the schema and verify your Event Category, Field data types, Primary Key, and whether a field is marked as required.
Confirm that all events and fields are populated accordingly and then save your work.
In the integration section, copy the system-generated Source ID. You need this to make server-to-server requests as the {appSourceId}.
Create a data stream to begin the flow of engagement and profile data in real time from your server to Data 360. Data streams refresh engagement data every 15 minutes and profile data every hour from the data stream.
In Data Cloud, navigate to the Data Streams tab.
Click New.
Select Server to Server.
If you don’t see the data source that you want, confirm that your Data Cloud architect uploaded the JSON schema for that application.
Note
Click Next.
Select the events to include in the data stream and click Next. The events are pulled from the JSON schema uploaded in Setup.
Review the list of selected events, their associated fields, and how the data source objects are mapped to the data model objects.
Click Next.
A separate data stream is created for each event with category = “Profile”. A single data stream is created for all events with category = “Engagement”. The “Other” category is also supported for server-to-server connections.
Note
If you have more than one data space, select the data space for this data stream using the Data Space dropdown menu.