The platform REST APIs help you seamlessly integrate the platform with other solutions. To use the APIs, generate an access token.
You must have Organization Admin privileges to generate an access token.
Step 1: As an Organization Admin, click on the Settings icon on the top right corner of the navigation bar.
Step 2: Scroll down to the API Access Tokens section of the page and enter a name for the API Access Token and click on Generate. Take note of the token displayed in the modal window.
Step 3: You can access the API documentation for all APIs by clicking on the APIs documentation link.
Click on the API documentation (v2) as it is the most recent version.
The API documentation contains information on all of our available API endpoints.
- Click on an API to see more details about it.
- A description of the selected API will be displayed.
- Next, you'll see the parameters associated with the API. In this case, no parameters are required.
- You will also find the body of the selected API, where you can change the media type by selecting from the dropdown.
- Finally, the responses of the API operation is shown, and you can adjust the media type using the available dropdown.
Using the API’s
There are two options to use the APIs.
Option 1
You can also download the Swagger file and use it in Postman. To do this, simply navigate to the management API web page and select Download Swagger JSON Definitions” Once downloaded, you can easily import the Swagger file into Postman for use.
Option 2
You can use a curl command on the terminal. Please look at the example below to call the 'technologies' API (replace YOURAPITOKEN
with your access token value):
Related Articles
Custom Labs: Quick Start Manual
Custom Labs lets you build tailored Code Review labs in just a few clicks, using your own demonstrative code or snippets. They help challenge developers with vulnerabilities that reflect the technologies and patterns they use every day. In Code ...
Setting Assignment Strategy
You can set assignment strategies for new users in your organization. There are four different assignment strategies available, and you can choose your preferred assignment from the ones below. Overview of Assignment Strategy: None: No activities ...
Users
The platform offers multiple user roles with varying levels of privilege to help you run an efficient, secure coding training program. User Role Run Labs Run Learning Paths Create Learning Paths Create Labs Add Remove Update Users Create Tournaments ...
LMS and SCORM
SecureFlag can integrate with existing LMS tools and environments using SCORM standards. You can use any of our existing learning paths, create your own custom learning paths, or combine multiple learning paths and download a single SCORM package to ...
Reports
Prudent, smart decisions rely on quality data. Our platform has built-in functionality allowing report generation with relevant data to assist you and your team to make the right decisions on your path to secure coding glory. The metrics that are ...