Set a user variable. This variable contains data that will be accessible by this user.
Request
Query Params
type
string
required
The type of request. (setvar)
Example:
setvar
var
string
required
The name of the user variable
data
string
required
The data being added to the user variable
sessionid
string
required
The session ID of the user logging in. Obtained by initializing on the application first and finding the session by visiting https://keyauth.cc/app/?page=sessions
name
string
required
The name of the application
ownerid
string
required
Your owner ID
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://keyauth.win/api/1.3/?type=setvar&var=&data=&sessionid=&name=&ownerid='
Responses
🟢200Success
application/json
Body
object{0}
Example
{"success":true,"message":"Successfully set variable","nonce":""}