Fermion Backend API (1.0.0)

Download OpenAPI specification:Download

Fermion Support: support@codedamn.com

Documentation for interacting with the Fermion API

Create live session

Create a new live event session that you can use to go live

Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

Create new user

Create a new user in the system using the unique userId from your database. Note that this function is idempotent, therefore, calling it multiple times with the same userId will not do anything.

Authorizations:
FERMION-API-KEY
Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

DSA code execution [batch run]

Request DSA code execution. Batch run mode.

Authorizations:
FERMION-API-KEY
Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

DSA code execution [single]

Request DSA code execution. Single run mode.

Authorizations:
FERMION-API-KEY
Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

DSA code execution result

Get result of DSA code execution attempt

Authorizations:
FERMION-API-KEY
Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

End live event streaming

Call this to end live event streaming and finalize the video. After you call this, the only possible playback mode with livestreaming would be HLS playback

Authorizations:
FERMION-API-KEY
Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

Get leaderboard

Get leaderboard of the top ranking users in your school

Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

Get localized course price

Get price of a single course depending on the country of user requesting it

Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

Get published courses

Get details of all published courses with this API

Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

Get published digital products

Get details of all published digital products with this API

Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

Health check endpoint

Health check for our internal system. This is a placeholder API.

Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
data
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

Lab details

Get details of a lab from its ID

Authorizations:
FERMION-API-KEY
Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

Lab result

Get result of a single user for a given lab

Authorizations:
FERMION-API-KEY
Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

List course items

Get published course items for an individual course

Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

List labs

Get a list of all labs from the school's private library

Authorizations:
FERMION-API-KEY
Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

Modify live session user state

Add or remove people from webrtc meeting stage. This will make the user a participant or instructor in a given live stream. Use this API to make certain user(s) instructors before the stream starts.

Authorizations:
FERMION-API-KEY
Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

Start live event streaming

Call this to begin live event streaming. After you call this, your instructors can join the meeting area

Authorizations:
FERMION-API-KEY
Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

Test function

Test function to check your fermion API key

Authorizations:
FERMION-API-KEY
Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

Update user profile data

Update user data like name, profile photo url, username, etc. using this resolver. Useful for using built-in services like coding labs and live classes

Authorizations:
FERMION-API-KEY
Request Body schema: application/json
required

API Request Body

required
Array of objects
Array
required
object

Responses

Request samples

Content type
application/json
{
  • "data": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]