Get Server License Info
To retrieve license information, you can use the curl command to query the info endpoint of your Surfly server. This provides details such as the license status, server version, region, and other relevant information.
Example:
curl localhost:8017/info/The response will be in JSON format and includes the following fields:
{ "cobro_server_version": "2", "description": "US", "downloadable_audit_log": false, "id": "", "ips": "1.1.1.1", "is_backup_server": false, "license": { "can_start_new_session": true, "concurrent_sessions": "unlimited", "expires_on": "2030-02-01" }, "recorder_to_studio_auth_token_present": false, "region": "us", "session_recording_enabled": true, "studio_enabled": false, "version": "Dec02-ca9d0866a7d5cd33b12409e19dd7088a1dbc9026"}The license section contains your subscription details:
can_start_new_session: Indicates if you can start new Surfly sessionsconcurrent_sessions: Shows your limit for simultaneous sessionsexpires_on: Displays the expiration date of your license