# app.tempomusic.actor.getAnalyticsConsent

> Published by [lexicons.tempomusic.fan](https://lexicon.garden/identity/did:plc:pxsuqmultto34oks44m2lgxm)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:pxsuqmultto34oks44m2lgxm/app.tempomusic.actor.getAnalyticsConsent)
- [Documentation](https://lexicon.garden/lexicon/did:plc:pxsuqmultto34oks44m2lgxm/app.tempomusic.actor.getAnalyticsConsent/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:pxsuqmultto34oks44m2lgxm/app.tempomusic.actor.getAnalyticsConsent/examples)

## Definitions

### `app.tempomusic.actor.getAnalyticsConsent`

**Type**: `query`

Fetch the requesting viewer's analytics consent preferences. The viewer DID is read from the service-auth JWT (`iss` claim). `preferences` and `updatedAtMicros` are absent together when the viewer has never stored preferences — the client then hydrates its early-access defaults.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `preferences` | `ref` → `app.tempomusic.actor.defs#analyticsConsentPreferences` | No |  |
| `updatedAtMicros` | `integer` | No | Client wall-clock microseconds of the stored document's write (LWW tie-breaker). Absent together with `preferences`. |

## Raw Schema

```json
{
  "id": "app.tempomusic.actor.getAnalyticsConsent",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "properties": {
            "preferences": {
              "ref": "app.tempomusic.actor.defs#analyticsConsentPreferences",
              "type": "ref"
            },
            "updatedAtMicros": {
              "type": "integer",
              "description": "Client wall-clock microseconds of the stored document's write (LWW tie-breaker). Absent together with `preferences`."
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Fetch the requesting viewer's analytics consent preferences. The viewer DID is read from the service-auth JWT (`iss` claim). `preferences` and `updatedAtMicros` are absent together when the viewer has never stored preferences — the client then hydrates its early-access defaults."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
