TIS Training API Documentation
  • Welcome!
  • Quick Start
  • Managing Users
  • Single Sign On (SSO)
    • General Options
    • Role and Group Mappings
    • Connection Types
      • Microsoft Entra ID (Formerly Azure AD)
      • Google Workspace
      • OpenID Connect (OIDC)
      • SAML (Security Assertion Markup Language)
  • SCORM Packages
  • Webhooks
  • API Reference
    • Users
      • 🔵GET users
      • 🔵GET users/seats
      • 🟢POST users
      • 🟠PUT users
      • 🟢POST users/password
      • 🟡PATCH users/enable
      • 🟡PATCH users/disable
      • 🔴DELETE users
    • Results
      • 🔵GET results
      • 🔵GET results/group
    • Groups
      • 🔵GET groups
      • 🟢POST groups/users
      • 🔴DELETE groups/users
    • 🔵GET courses
    • 🔵GET filters
    • 🟢POST login
    • â›”Standard Error Format
  • Webhook Reference
    • Standard Structure
    • Course Complete
    • Multi-Course Complete
  • OpenAPI Specification
Powered by GitBook
On this page
  • URL
  • Parameters
  • Responses
  1. API Reference

GET courses

Fetches a list of courses available to the organisation.

URL

GET https://training.tapintosafety.com.au/api/v2/courses

Parameters

Query Parameters

Name
Type
Description

categoryType

string

Filter the courses returned by category.

name

string

Filter the courses returned by name.

curl https://training.tapintosafety.com.au/api/v2/courses \
    -G -d "categoryType=safety-training" -d "name=Safety" \
    -H "Authorization: Bearer $APIKey"

Responses

200 - OK

A list of courses from the database. List may be empty.

Name
Type
Description

entities

array

The list of the courses returned.

┃ id

string

The Id of the course. Formatted as a GUID.

┃ name

string

The name of the course.

┃ passRate

integer

The pass rate in percent from 0-100, or null if the organisation has not specified a pass rate.

â”— categories

array

A list of the categories the course belongs to.

┃ type

string

The type of the category. Can be used for the categoryType filter.

â”— name

string

The display name of the category.

page

integer

The current page of results (Starts at 1).

entitiesReturned

integer

The number of courses in the entities array.

totalEntities

integer

The total entities across all pages for the current parameters.

links

array

A list of links relevant to the current request. No links are currently returned with this request.

{
  "entities": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "name": "Example Name",
      "passRate": 80,
      "categories": [
        {
          "type": "example-category",
          "name": "Example Category"
        }
      ]
    }
  ],
  "page": 1,
  "entitiesReturned": 1,
  "totalEntities": 1,
  "links": []
}
PreviousDELETE groups/usersNextGET filters

Last updated 9 months ago

🔵