API Endpoints

View all of our API endpoints, learn about our data structuring, and integrate your framework with Sonoran CMS.

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.

Endpoint
Minimum Subscription Level

/general/get_sub_version

Free

/general/check_com_apiid

Standard

/general/get_com_account

Plus

/general/get_account_ranks

Standard

/general/clock_in_out

Plus

/servers/get_game_servers

Standard

/servers/verify_whitelist

Plus

/servers/full_whitelist

Plus

Last updated

Was this helpful?