API Endpoints

Learn more about our backend API endpoints!

API Base URLs

Production: https://api.sonoranradio.com

Development: https://radioapi.dev.sonoransoftware.com

Set Server IP

POST /radio/set-server-ip

This endpoint sets the IP address of a Sonoran Radio community, used for resource authentication.

Headers

NameValue

Content-Type

application/json

Body

NameTypeDescription

id

string

Community ID

key

string

Community API Key

Response

{
  "result": "ok"
}

Get Server Subscription from IP

GET /radio/check-server-subscription

This endpoint gets the subscription enumeration value of a Sonoran Radio community, based on the IP address it's called from. The IP address is set via the set server IP endpoint.

Headers

NameValue

Content-Type

application/json

Response

{
  "result": "ok",
  "subscription": 0 // 0 = Free, 1 = Plus, 2 = Pro
}

Last updated