Tutorial Endpoints

Description of endpoints used to get data related to tutorials on the DeSo blockchain

Please make sure you've read 3️⃣ Data: API so you are familiar with the following types referenced in this documentation:

Get Tutorial Creators

POST POST /api/v0/get-tutorial-creators

Get the well-known and up-and-coming creators featured in the Buy a Creator step of the tutorial. Creators who have a founder's reward greater than 10% are excluded here.

Endpoint implementation in backend.

Example usage in frontend: - Make request to Get Tutorial Creators - Use GetTutorialCreators to display creators to the user when they are prompted to buy well-known or up-and-coming creators in the tutorial

Request Body

NameTypeDescription

ResponseLimit*

int

Number of creators to return for each category

{
  "WellKnownProfileEntryResponses": [<ProfileEntryResponse>, <ProfileEntryResponse>...], // ProfileEntryResponses of creators randomly selected from the Well-Known category
  "UpAndComingProfileEntryResponses": [<ProfileEntryResponse>, <ProfileEntryResponse>...], // ProfileEntryResponses of creators randomly selected from Up-And-Coming category
}

Start Or Skip Tutorial

POST /api/v0/start-or-skip-tutorial

Begin or skip the tutorial.

Endpoint implementation in backend.

Example usages in frontend: - Make request to Start Or Skip Tutorial - Use StartOrSkipTutorial to send user into tutorial or skip

Request Body

NameTypeDescription

PublicKeyBase58Check*

string

Public key of user starting or skipping tutorial

JWT*

string

JSON web token authenticating user

IsSkip

boolean

if true, update the user's tutorial status to skipped. Otherwise, set the tutorial status to started

No response body

Update Tutorial Status

POST /api/v0/update-tutorial-status

Override endpoint to automatically update a user's tutorial status

Valid values for tutorial status are TutorialStarted, TutorialSkipped, InvestInOthersBuyComplete, InvestInOthersSellComplete, TutorialCreateProfileComplete, InvestInYourselfComplete, FollowCreatorsComplete, GiveADiamondComplete, TutorialComplete

Endpoint implementation in backend.

Example usages in diamondapp.com's frontend: - Make request to Update Tutorial Status - Use UpdateTutorialStatus to set the user's tutorial status to the current step in your tutorial

Request Body

NameTypeDescription

PublicKeyBase58Check*

string

Public key of user whose tutorial status is being updated

JWT*

string

JSON web token authenticating user

TutorialStatus*

string

Value to be set for user's Tutorial status.

CreatorPurchasedInTutorialPublicKey

string

Public key of creator the well-known or up-and-coming the user purchased in the tutorial

ClearCreatorCoinPurchasedInTutorial

boolean

If true, sets the user's CreatorCoinsPurchasedInTutorial to 0

No response body.

Last updated