Run the 18+ check
/api/vrchat-users/age-checkThe 18+ check, as /ageverified does it in a ticket: sets the flag, gives and takes the roles the server chose (the Discord ones go to whoever is linked to this VRChat account), and logs the method, the date and the checker, nothing else. method is badge or photo. A role that could not be changed is a line in lines; the flag stays set.
Needs the EditAgeVerification permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Query Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/vrchat-users/age-check?id=string" \ -H "Content-Type: application/json" \ -d '{ "method": "string" }'{ "profile": { "userId": "string", "known": true, "displayName": null, "plainName": null, "bio": null, "status": null, "statusDescription": null, "pronouns": null, "avatarImageUrl": null, "avatarThumbnailUrl": null, "profilePictureUrl": null, "iconUrl": null, "bannerUrl": null, "representedGroup": null, "dateJoined": null, "tags": [ "string" ], "trustRank": null, "lastPlatform": null, "ageVerificationStatusLastSeen": null, "ageVerifiedLastSeen": null, "eighteenPlus": { "verified": true, "since": null, "source": null, "setByUserId": null, "setByUsername": null }, "firstSeenAt": null, "lastSeenAt": null, "lastRefreshedAt": null, "stale": true, "staleAfterSeconds": 0.1, "refreshError": null, "refreshErrorAt": null, "notFoundAt": null, "refresh": { "pending": true, "reason": null, "requestedAt": null, "inProgress": true, "blocked": null }, "now": "2019-08-24T14:15:22Z" }, "lines": [ "string" ]}Set 18+ flag PUT
The only way the flag is ever cleared: a sync sets it and never clears it, because VRChat users can hide their verification again and hidden is not unverified. Recorded as a fact naming the account that made the change and carrying the reason given. Setting it again to the value it already has changes nothing and records nothing. Needs the `EditAgeVerification` permission.
Get profile history GET
Replayed from the profile facts: the newest version is the profile as stored now, and each earlier one has that change's old values put back. `factId` is the audit log entry that recorded the change. The oldest version is marked `baseline` when it is the first sighting Modbot recorded. Needs the `ViewProfile` permission.