POST /v1/subjects to create a new subject profile. Choose a type — study, training, or inactive — which determines what content the subject tracks and how its blocks appear in the app.
Endpoint
Body Parameters
Display name for the subject. Maximum 40 characters. Must be unique across your account — the API returns a
VALIDATION_ERROR if the name is already in use.The subject type. Must be one of
study, training, or inactive. This determines what content fields are available and cannot be changed after creation.A hex color code to represent this subject in the app (e.g.
#6366f1). If omitted, a color is assigned automatically.An array of weekly time slot objects. Each slot defines when this subject is regularly scheduled. If omitted, the subject is created with no scheduled slots.Each slot object has the following shape:
days— array of integers representing days of the weekstart— slot start time inHH:MMformatend— slot end time inHH:MMformat; must be afterstart
Response
Returns the newly created subject object inside thedata field with HTTP status 201 Created.
Unique identifier for the newly created subject.
Display name of the subject.
The subject type:
study, training, or inactive.Hex color code assigned to this subject.
The weekly time slots configured for this subject. Empty array if none were provided.
Array of syllabus topic objects. Empty on creation. Each item has
title (string), duration (integer, minutes), and done (boolean).Examples
After creating a subject, use the List Blocks or Create Block endpoints to start scheduling study sessions for it.