HomeGuidesAPI ReferenceChangelog
API Reference

RegScale API Documentation

The RegScale API enables secure, real-time integration with external systems. This guide explains what the API is, how to use it, authentication methods, security features, and record relationships.

Authentication

All RegScale API calls require a JSON Web Token (JWT) for authorization. Include the token in the Authorization header of each request:

Authorization: Bearer <auth_token>

Method 1: API Login

Send a POST request to:

/api/authentication/login

Request body:

{ "username": "your_username", "password": "your_password", "oldPassword": "" }

The response includes an auth_token and user details. Use this token in subsequent API requests.

Method 2: Copy from User Profile

  1. In RegScale, click your name in the top right → My Profile
  2. Scroll to Current Access Token
  3. Click the copy icon

Tokens are valid for 24 hours and carry the permissions of the authenticated user.

Method 3: Service Accounts

Administrators can create service accounts for long-term, automated integrations:

  • Navigate to Admin Panel → Setup → Service Accounts
  • Set a name, purpose, and expiration
  • Copy the generated token for use in code or secure storage

These tokens inherit Administrator privileges and do not consume user licenses.


Security

JWT Validation

  • JWTs are signed server-side to prevent tampering
  • Include user roles and metadata used for access control
  • Expire based on the configured session timeout

Role-Based Access

RegScale APIs enforce two levels of access control:

  • Authentication required: Most endpoints require a valid JWT
  • Role required: Some endpoints require specific roles for access

Unauthorized requests return 401 (unauthenticated) or 403 (unauthorized) errors. Roles are assigned by system administrators and take effect upon the user’s next login.


API Explorer (Swagger)

To interact with the RegScale API using Swagger:

  1. Click your name → APIs
  2. Click Authorize
  3. Paste your Bearer token

Swagger allows you to:

  • Browse available endpoints
  • Submit test inputs
  • Execute requests
  • View request/response data, curl commands, and headers

Swagger follows the OpenAPI specification and is useful for development and testing.


Relating Records

RegScale supports relationships between records using the ParentModule and ParentId fields:

{ "ParentModule": "<module_value>", "ParentId": "<record_id>" }

Module Mapping

ModuleValueID
Assessmentassessments2
Assessment Plansassessmentplans33
Assetassets3
Capabilitycapabilities37
Casecases28
Categorizationcategorization29
Cataloguecatalogues4
Causal Analysiscausalanalysis24
Changeschanges31
Componentcomponents27
Continuous Monitoringcontinuousmonitoring30
Controlsecurity-controls5
Control Implementationcontrols15
Data Calldatacalls6
Exceptionexceptions7
Evidence Lockerevidence32
Incidentincidents8
Interconnectinterconnects9
Issue (POAM)issues10
Policypolicies11
Programprograms36
Projectprojects12
Questionnairequestionnaires26
Requirementrequirements13
Riskrisks14
Security Plansecurityplans16
Security Profileprofiles17
Supply Chain (Contract)supplychain25
Tasktasks18
Threatthreats19
Threat Modelthreatmodels35

Notes:

  • Security Controls are children of Catalogues.
  • Control Implementations are tied to a Security Plan or Component.

Some modules may only be available to administrators.