app.bsky.ageassurance.getState

Returns server-computed Age Assurance state, if available, and any additional metadata needed to compute Age Assurance state client-side.

Details · query
Kindquery
Authorityageassurance.bsky.app
Indexed
cid bafyreialq63q3obxzsrzbwx25stjmtha3frlifzbgkvtthr535oal3467y

Checks

Valid
  • unlimited-string defs.main.parameters.properties.countryCodeNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.parameters.properties.regionCodeNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Returns server-computed Age Assurance state, if available, and any additional metadata needed to compute Age Assurance state client-side.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "metadata": {
              "ref": "app.bsky.ageassurance.defs#stateMetadata",
              "type": "ref"
            },
            "state": {
              "ref": "app.bsky.ageassurance.defs#state",
              "type": "ref"
            }
          },
          "required": [
            "state",
            "metadata"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "countryCode": {
            "type": "string"
          },
          "regionCode": {
            "type": "string"
          }
        },
        "required": [
          "countryCode"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "app.bsky.ageassurance.getState",
  "lexicon": 1
}