Skip to main content
Looking for FiveM hosting? View our current hosting offer.

Sonoran JS - NPM Library

Sonoran CMS offers a complete Node API library from NPM! npm i @sonoransoftware/sonoran.js Learn more about our NPM library!

Available API Endpoints

General Endpoints

View all general endpoints for user account actions, administrative actions, and more!

general

Server Endpoints

View all server endpoints for game server whitelist, server management, etc.

servers

Server Endpoints

View all event endpoints for calendar events!

events

API Code Examples

Javascript

This example makes a get community account request based on a given API ID (Discord ID here). This uses the Axios library to help make the HTTP POST request. The server response is then logged to console.

Lua

This example makes a get community account request based on a given API ID (Discord ID here). This uses the FiveM performHttpRequest native to help make the HTTP POST request. The server response is then logged to console.

Endpoints Subscription Requirements

Each endpoint requires a certain subscription, some may be available for communities on the Free plan or some may require the Pro plan, the table below shows what subscription is required per endpoint.