Skip to main content

For AI agents: a Markdown version of this page is at https://docs.snowplow.io/docs/signals/applications/services.md. The index of all documentation pages is at https://docs.snowplow.io/llms.txt, and the index for this section is at https://docs.snowplow.io/docs/signals/llms.txt.

Define services

Services group attribute groups together for serving to your applications. They provide a stable interface for retrieving attributes: we strongly recommend using services in production applications.

The Node.js SDK reads services but can't create them. Use Console or the Python SDK to define services.

A service can include both stream attribute groups and warehouse attribute groups. If they use the same attribute key, one request to the service returns the real-time and warehouse attributes for that user together.

To create a service, go to Signals > Services in Snowplow Console and follow the instructions.

Create service form with name, description, owner, and attribute group selection

To configure a service, you'll need to specify:

  • A unique name
  • An optional description
  • The email address of the primary owner or maintainer
  • Which attribute groups to include

Versioning​

When choosing which attribute groups to include, you'll select a specific version of each attribute group.

Services themselves are not versioned. You can update them to use different attribute groups, or different attribute group versions, at any time.

Service configuration showing selected attribute groups with version numbers

Control who can read a service​

Each service has an access mode that decides who can read its attributes:

  • authenticated: reading the service requires a Snowplow API token, so only your own backend can read it. This is the default.
  • public: websites and apps can also read the service directly, without a token, for one identifier at a time. See Read attributes from websites and apps.

Use a public service when you want to personalize a page or screen with the current user's attributes, without building a backend to hold the API token and proxy the request.

Public services expose their attributes

Anyone who has an identifier, such as a user's domain_userid, can read that user's attributes from a public service. Every attribute group in the service is exposed. Only make a service public if all of its attributes are safe to show to the user they describe, and are keyed by an identifier the browser or device already holds, such as domain_userid or client_session_user_id. Don't include personal or sensitive data in a public service.

Signals only answers public reads for identifiers in UUID format, which can't be guessed or enumerated. A public service can still be read with an API token, in the same way as any other service.

Choose the access mode in the Access section of the service form: Private or Public. Choosing Public opens a confirmation dialog that describes what becomes readable. Click Make public to confirm.

Public services show a Public badge in the services list and on the service details page. In the attribute groups tables, the badge also marks every attribute group that's part of a public service.

Changes to the access mode take effect within a few seconds of publishing the service.

Manage services​

Services are automatically published as soon as they're created. They're a wrapper for consuming calculated attributes, and don't cause any additional processing themselves.

To edit a service definition, go to the service details page and click the Edit button.

To delete a service, go to the service details page and click the ⋮ button, then choose Delete.

Signals service details page in Snowplow Console showing the Edit button and the three-dot overflow menu expanded with the Delete option

Was this page helpful?