← Back

For Developers

Ponifia provides APIs and integration options for developers who want to build on top of the platform or integrate with their own systems.

Access

Currently the only API ready to use is the access endpoint.

Thanks to the access endpoint you can verify user's permission over given target. The target may be either avatar key, group's asset or any other key. You can read about the group assets in the group's section. The access is calculated based on the group's permissions, wearer consents, state and settings, wearer relations and public access level.

GET https://api.ponifia.com/access?u=[comma separated list of user keys]&t=[target_key]&p=[comma separated permissions' list]

The response is a plain text where each line defines a permission for each user. The line is separated with "|" character. The first item on the list is the user key and the second is an integer which indicates the access. Less significant bit corresponds to the first permission on the input list.

This format is easier to parse and lighter for the LSL scripts than json.

The example request:

https://api.ponifia.com/access?u=14a57132-70f4-4c7b-b88a-bf09d2ff5c66|other_key&t=00000000-0000-0000-0000-000000000000&p=collar_lock

The example response:

14a57132-70f4-4c7b-b88a-bf09d2ff5c66|0
other_key|0

In the most cases you will want to use only one user, however the bulk access is provided to help you with SL's throttling policy.