Repository navigation
web sdk system endpoints
The Web SDK provides endpoints for querying license usage, retrieving the current user's web token, 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 (for example, Camera, Door, Cardholder). The name is case-sensitive and must match exactly. To discover valid item names for your system, call GET /licenseItemUsage first.
{
"Rsp": {
"Status": "Ok",
"Result": {
"CurrentCount": 8,
"MaximumCount": 100000
}
}
}An invalid item name, or a name with the wrong casing, returns HTTP 400 with an HTML error body rather than a JSON Rsp envelope.
Retrieve the current user's web token as a signed JSON Web Token (JWT). The token carries Genetec-specific claims that identify the user, their administrator status, and the issuing Security Center system. Other Genetec components that accept genetec://WebToken-audience JWTs use this token to authorize requests on the user's behalf. The encoded endpoint returns the token string; the decoded endpoint returns the token's claims as a JSON object, which is useful for inspecting what the token carries.
GET /GetWebTokenEncodedReturns the current user's web token as a JWT string in compact serialized form. Pass this token to another Genetec component that accepts genetec://WebToken-audience JWTs to authorize requests on the user's behalf.
{
"Rsp": {
"Status": "Ok",
"Result": {
"ErrorDescription": null,
"Success": true,
"Token": "eyJhbGciOiJSUzI1NiIs..."
}
}
}-
Success:trueif the token was generated successfully. -
Token: The JWT 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. Use this to inspect the claims the token carries.
{
"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.
Check whether the Web SDK service is online.
GET /Returns HTTP 200 when the service is running. Use this request to confirm that the Web SDK is reachable before sending other requests.
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 returnsRsp.Status="Ok"when the remaining query segments succeed. -
false: Exceptions are reported normally asRsp.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]"
}
}
}-
Working with partitions: Set default creation partitions with the
/creationpartitionendpoint. - Getting started with Security Center Web SDK: Authentication, your first API call, and Web SDK role setup.
- Overview
- Connecting to Security Center
- SDK certificates
- Referencing SDK assemblies
- ASP.NET hosting
- SDK compatibility
- Migrating to modern .NET
- Entities
- Entity cache
- Entity loading, cache, and query options
- Detecting entity changes
- Entity change event reference
- Transactions
- Security Center events
- Actions
- Security Desk
- Custom events
- Event-to-actions
- Managing macros
- ReportManager
- ReportManager query reference
- Access control raw events
- DownloadAllRelatedData and StrictResults
- Privileges
- Partitions
- Entity write restrictions
- About custom fields
- About video
- About cameras
- Enrolling a video unit
- Ingesting third-party video
- Archiver and auxiliary archiver roles
- Archive transfer
- About access control
- About cardholders and credentials
- About doors, areas, elevators, and access points
- About access rules and schedules
- About access control units and interface modules
- Enrolling an access control unit
- Door templates
- Visitors
- Mobile credentials
- About threat levels
- About alarms
- About incidents
- Maps
- Logging
- Overview
- Localization
- Certificates
- Lifecycle
- Threading
- State management
- Configuration
- Restricted configuration
- Events
- Queries
- Request manager
- Database
- Entity ownership
- Engine extensions
- Entity mappings
- Server management
- Custom privileges
- Custom entity types
- Resolving non-SDK assemblies
- Deploying plugins
- Modern .NET support
- Overview
- Localization
- Certificates
- Creating modules
- Tasks
- Pages
- Components
- Tile extensions
- Services
- Contextual actions
- Custom 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
- Media file formats
- 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
- Endpoints
- Constants
- Enumerations
- Under the hood
- Troubleshooting