Progresso do aluno
curl --request GET \
--url https://api.sandbox.gravitypay.app/v1/students/{id}/progress \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.gravitypay.app/v1/students/{id}/progress"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.gravitypay.app/v1/students/{id}/progress', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.gravitypay.app/v1/students/{id}/progress",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.gravitypay.app/v1/students/{id}/progress"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.gravitypay.app/v1/students/{id}/progress")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.gravitypay.app/v1/students/{id}/progress")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"object": "course_progress",
"enrollmentId": "clx1enroll001",
"courseId": "clx1course0001",
"studentId": "clx1student01",
"completedLessons": 2,
"totalLessons": 4,
"percent": 50,
"completedAt": null,
"lastActivityAt": "2026-09-12T09:30:00.000Z",
"certificate": null,
"lessons": [
{
"lessonId": "clx1lesson001",
"moduleId": "clx1module001",
"status": "COMPLETED",
"watchedSeconds": 312,
"percentWatched": 100,
"completedAt": "2026-09-12T09:30:00.000Z"
},
{
"lessonId": "clx1lesson002",
"moduleId": "clx1module001",
"status": "NOT_STARTED",
"watchedSeconds": 0,
"percentWatched": 0,
"completedAt": null
}
]
}
]
}{
"error": {
"type": "<string>",
"message": "<string>",
"param": "<string>",
"requiredScope": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"param": "<string>",
"requiredScope": "<string>"
}
}{
"error": {
"type": "insufficient_scope",
"message": "Esta chave de API não tem o escopo students:read.",
"requiredScope": "students:read"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"param": "<string>",
"requiredScope": "<string>"
}
}Alunos
Progresso do aluno
Retorna o progresso detalhado de cada matrícula do aluno, inclusive revogada ou vencida, sem paginação. totalLessons conta só as aulas publicadas, de módulos publicados, que a turma da matrícula vê. Aluno de outra loja ou de pré-visualização responde 404; courseId de outra loja responde 400.
Escopo exigido: students:read.
GET
/
v1
/
students
/
{id}
/
progress
Progresso do aluno
curl --request GET \
--url https://api.sandbox.gravitypay.app/v1/students/{id}/progress \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.gravitypay.app/v1/students/{id}/progress"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.gravitypay.app/v1/students/{id}/progress', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.gravitypay.app/v1/students/{id}/progress",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.gravitypay.app/v1/students/{id}/progress"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.gravitypay.app/v1/students/{id}/progress")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.gravitypay.app/v1/students/{id}/progress")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"object": "course_progress",
"enrollmentId": "clx1enroll001",
"courseId": "clx1course0001",
"studentId": "clx1student01",
"completedLessons": 2,
"totalLessons": 4,
"percent": 50,
"completedAt": null,
"lastActivityAt": "2026-09-12T09:30:00.000Z",
"certificate": null,
"lessons": [
{
"lessonId": "clx1lesson001",
"moduleId": "clx1module001",
"status": "COMPLETED",
"watchedSeconds": 312,
"percentWatched": 100,
"completedAt": "2026-09-12T09:30:00.000Z"
},
{
"lessonId": "clx1lesson002",
"moduleId": "clx1module001",
"status": "NOT_STARTED",
"watchedSeconds": 0,
"percentWatched": 0,
"completedAt": null
}
]
}
]
}{
"error": {
"type": "<string>",
"message": "<string>",
"param": "<string>",
"requiredScope": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"param": "<string>",
"requiredScope": "<string>"
}
}{
"error": {
"type": "insufficient_scope",
"message": "Esta chave de API não tem o escopo students:read.",
"requiredScope": "students:read"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"param": "<string>",
"requiredScope": "<string>"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Devolve só o progresso da matrícula neste curso.

