Skip to main content
GET
Get player consent
Reads the tracking consent that you recorded for one player with Set Player Consent. Use it to check a player’s choice before your game or backend sends events. Manalens stores the record. It does not enforce it: your SDK setup and your servers decide what they send. See GDPR and privacy requests.

Authentication

Use an API key (mana_api_...) with the consent:write scope. The same scope reads and writes. See Authentication.
  • The key works on its own project only. Another project’s key gets 404.
  • The key’s creator must be an owner, admin or editor.
  • It works on every plan. The workspace needs an active subscription or trial.
  • Call it from a server. A request with a browser Origin header gets 403.

Path parameters

The record belongs to the key that you use. A record under anon:<id> is not shared with the identified player of that install: read the key that you wrote.

Response

200:

Example

Errors

See Errors for the error format.

Authorizations

Authorization
string
header
required

An API key (mana_api_...) with scopes. It reads reports and writes player traits.

Path Parameters

projectId
string<uuid>
required

The project ID

playerKey
string
required

The player key: user: and the user ID that you send with identify (1 to 255 characters), or anon: and an anonymous ID (a UUID) for a player that never identified. URL-encode it, for example user%3Aplayer-42.

Required string length: 6 - 260
Pattern: ^(user|anon):

Response

The record, or not_set

player_key
string
required

The player key, with an anonymous ID in lowercase

status
enum<string>
required

none: the player declined tracking. anonymous: the player allows tracking without identity. full: the player allows full tracking. not_set: no record exists, so treat it as none.

Available options:
not_set,
none,
anonymous,
full
source
string | null
required

Where the consent was given, as you sent it, for example cookie-banner-v1. null for not_set.

updated_at
string | null
required

When the record was last written (ISO 8601). null for not_set.