API Documentation for Scripters

To get LSL clients to connect to your LSL server your scripts need to work with our API
You can do this with a private_key provided thru our generate page.
Once you've successfully connected with our API, you will receive a public_key that you can use in your client scripts.

HTTP Method: POST
API URL: https://txgear.x10.mx/dns/api/


Set URL (for Servers)

Generate a URL with llRequestURL() and connect to our API using your private_key and obj_url

{
"private_key":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"obj_url":"http://simhost-0xxxxxxxxxxxxxxxx.agni.secondlife.io:12046/cap/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

If successfull the API will respond with status 200 and a public_key in JSON format.

status: 200

{"public_key" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}

If unsuccessfull our API will respond with status 404 and error message in JSON format.

status: 404

{"error": "Invalid Private Key"}


Get URL (for Clients)

LSL Clients connect to our API using the public_key (provided by your server script).

{"public_key" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}

status: 200

If successfull the API responds with status 200, you will receive a URL and a object key
The object key can be used to email as a auxilary communication method {obj_key}@lsl.secondlife.com

{
"obj_key" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"obj_url" : "http://simhost-0xxxxxxxxxxxxxxxx.agni.secondlife.io:12046/cap/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

status: 404

If unsuccessfull the API responds with status 404 and a error message in JSON format.

{"error" : "Invalid Public Key"}