SSO Integration

Mirror Data (Branches)

Mirror the partner's data including school branches, classrooms, students, and teachers. Completing this step is required before generating SSO links for teachers and students, enabling seamless access to experiments and classroom management.

Mirror the Data

POST {Tenant endpoint}/api/v2/mirror-data/branches

Send the partner's school and branch data to our system. Includes branches, classrooms, students,and teachers.
Tenant endpoint example: yoursubdomain.jusoorlabs.com
Note: Data synchronization may take time depending on size as it uses queues.

Headers
Name Required Type Description
referer Required string Provided by Jusoor Labs to identify your app (your website at jusoorlabs.com).
accept Required string Set as application/json
token Required string Your API token from Jusoor Labs.
Parameters
Name Required Type Description
branches Required Array An array containing one or more school objects with nested classrooms, sections, subjects, teachers, and students.
branches.id Required Integer Unique identifier for the school.
branches.name Required String Name of the school.
branches.classes Required Array Array of class objects associated with the school.
branches.classes.id Required Integer Unique identifier for the class.
branches.classes.name Required String Name of the class.
branches.classes.sections Required Array Array of section objects within the class.
branches.classes.sections.name Required String Unique identifier for the section.
branches.classes.sections.subjects Required Array Array of subject objects taught in the section.
branches.classes.sections.subjects.id Required Integer Unique identifier for the subject.
branches.classes.sections.subjects.name Required String Name of the subject.
branches.classes.sections.subjects.teachers Required Array Array of teacher objects associated with the subject.
branches.classes.sections.subjects.teachers.uuid Required String Unique identifier for the teacher.
branches.classes.sections.subjects.teachers.name Required String Name of the teacher.
branches.classes.sections.students Required Array Array of student objects enrolled in the section.
branches.classes.sections.students.uuid Required String Unique identifier for the student.
branches.classes.sections.students.name Required String Name of the student.