-
Notifications
You must be signed in to change notification settings - Fork 6
web sdk system endpoints
The Web SDK provides endpoints for querying license usage, generating authentication tokens, and controlling server-wide exception handling behavior.
Retrieve the current and maximum allowed counts for licensed items in the system.
GET /licenseItemUsage{
"Rsp": {
"Status": "Ok",
"Result": {
"Camera": {
"CurrentCount": 8,
"MaximumCount": 100000
},
"Door": {
"CurrentCount": 0,
"MaximumCount": 100000
},
"Cardholder": {
"CurrentCount": 16,
"MaximumCount": 1000000
}
}
}
}The response contains an entry for every licensed item type in the system. Each entry has two fields:
- CurrentCount: The number of items currently in use
-
MaximumCount: The maximum number of items allowed by the license. A value of
-1indicates no limit.
GET /licenseItemUsage/{item-name}Replace {item-name} with the name of the license item (e.g., Camera, Door, Cardholder). The name is case-sensitive and must match exactly.
{
"Rsp": {
"Status": "Ok",
"Result": {
"CurrentCount": 8,
"MaximumCount": 100000
}
}
}An invalid or wrongly-cased item name returns HTTP 400 with an HTML error body rather than a JSON Rsp envelope.
Generate signed JWT tokens for the authenticated session. The tokens contain Genetec-specific claims that identify the user, their administrator status, and the issuing Security Center system.
GET /GetWebTokenEncoded{
"Rsp": {
"Status": "Ok",
"Result": {
"ErrorDescription": null,
"Success": true,
"Token": "eyJhbGciOiJSUzI1NiIs..."
}
}
}-
Success:
trueif the token was generated successfully - Token: The JWT token string in compact serialized form
-
ErrorDescription:
nullon success, or an error message if token generation failed
GET /GetWebTokenDecodedReturns the JWT payload as a JSON object instead of the encoded token string.
{
"Rsp": {
"Status": "Ok",
"Result": {
"http://genetec.com/Claims/Name": "Admin",
"http://genetec.com/Claims/UserId": "00000000000000000000000000000003",
"http://genetec.com/Claims/IsAdmin": 1,
"nbf": 1772129813,
"exp": 1772158613,
"iat": 1772129813,
"iss": "GenetecSts://4f970080738a4f2b8890ec960e1d0352",
"aud": "genetec://WebToken"
}
}
}-
http://genetec.com/Claims/Name: The display name of the authenticated user -
http://genetec.com/Claims/UserId: The GUID of the authenticated user (without hyphens) -
http://genetec.com/Claims/IsAdmin:1if the user is an administrator,0otherwise - nbf: The "not before" timestamp (Unix epoch seconds)
- exp: The token expiration timestamp (Unix epoch seconds)
- iat: The "issued at" timestamp (Unix epoch seconds)
- iss: The token issuer identifier
- aud: The intended audience for the token
Control how the Web SDK handles exceptions from method calls and collection updates during q= query processing.
POST /ignoreremoteexception/{state}Replace {state} with true or false.
-
true: Exceptions from method calls and collection updates are suppressed. The failed operation is omitted from the response and the request returns
Rsp.Status="Ok"when the remaining query segments succeed. -
false: Exceptions are reported normally as
Rsp.Status="Fail". This is the default behavior.
This flag does not affect property read errors, property write errors, query parsing errors, or indexed collection reads such as Credentials[0]. Those still fail regardless of this setting.
Warning
This flag is process-wide on the Web SDK instance. Setting it from one session affects every other caller on that instance until it is changed again. Set it back to false when you are done.
{
"Rsp": {
"Status": "Ok"
}
}{
"Rsp": {
"Status": "Fail",
"Result": {
"SdkErrorCode": "InvalidValue",
"Message": "Invalid value [invalid]"
}
}
}- Overview
- Connecting to Security Center
- SDK certificates
- Referencing SDK assemblies
- SDK compatibility
- Entities
- Entity cache
- Transactions
- Events
- Actions
- Security Desk
- Custom events
- ReportManager
- ReportManager query reference
- DownloadAllRelatedData and StrictResults
- Privileges
- Partitions
- Logging
- Overview
- Certificates
- Lifecycle
- Threading
- State management
- Configuration
- Restricted configuration
- Events
- Queries
- Request manager
- Database
- Entity ownership
- Entity mappings
- Server management
- Custom privileges
- Custom entity types
- Resolving non-SDK assemblies
- Deploying plugins
- .NET 8 support
- Overview
- Certificates
- Creating modules
- Tasks
- Pages
- Components
- Tile extensions
- Services
- Contextual actions
- Options extensions
- Configuration pages
- Monitors
- Shared components
- Commands
- Extending events
- Map extensions
- Timeline providers
- Image extractors
- Credential encoders
- Credential readers
- Cardholder fields extractors
- Badge printers
- Content builders
- Dashboard widgets
- Incidents
- Logon providers
- Pinnable content builders
- Custom report pages
- Overview
- Getting started
- MediaPlayer
- VideoSourceFilter
- MediaExporter
- MediaFile
- G64 converters
- FileCryptingManager
- PlaybackSequenceQuerier
- PlaybackStreamReader
- OverlayFactory
- PtzCoordinatesManager
- AudioTransmitter
- AudioRecorder
- AnalogMonitorController
- Camera blocking
- Overview
- Getting started
- Referencing entities
- Entity operations
- About access control in the Web SDK
- About video in the Web SDK
- Users and user groups
- Partitions
- Custom fields
- Custom card formats
- Actions
- Events and alarms
- Incidents
- Reports
- Tasks
- Macros
- Custom entity types
- System endpoints
- Performance guide
- Reference
- Under the hood
- Troubleshooting