Bulk import already-issued certificates
curl --request POST \
--url https://api.journeybee.io/v1/certifications/enrollments/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rows": [
{
"learner_email": "<string>",
"certification_uuid": "<string>",
"issue_date": "<string>",
"passed": true,
"partnership_uuid": "<string>",
"expiry_date": "<string>",
"score": 50
}
]
}
'import requests
url = "https://api.journeybee.io/v1/certifications/enrollments/import"
payload = { "rows": [
{
"learner_email": "<string>",
"certification_uuid": "<string>",
"issue_date": "<string>",
"passed": True,
"partnership_uuid": "<string>",
"expiry_date": "<string>",
"score": 50
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rows: [
{
learner_email: '<string>',
certification_uuid: '<string>',
issue_date: '<string>',
passed: true,
partnership_uuid: '<string>',
expiry_date: '<string>',
score: 50
}
]
})
};
fetch('https://api.journeybee.io/v1/certifications/enrollments/import', 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.journeybee.io/v1/certifications/enrollments/import",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'rows' => [
[
'learner_email' => '<string>',
'certification_uuid' => '<string>',
'issue_date' => '<string>',
'passed' => true,
'partnership_uuid' => '<string>',
'expiry_date' => '<string>',
'score' => 50
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.journeybee.io/v1/certifications/enrollments/import"
payload := strings.NewReader("{\n \"rows\": [\n {\n \"learner_email\": \"<string>\",\n \"certification_uuid\": \"<string>\",\n \"issue_date\": \"<string>\",\n \"passed\": true,\n \"partnership_uuid\": \"<string>\",\n \"expiry_date\": \"<string>\",\n \"score\": 50\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.journeybee.io/v1/certifications/enrollments/import")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"rows\": [\n {\n \"learner_email\": \"<string>\",\n \"certification_uuid\": \"<string>\",\n \"issue_date\": \"<string>\",\n \"passed\": true,\n \"partnership_uuid\": \"<string>\",\n \"expiry_date\": \"<string>\",\n \"score\": 50\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/certifications/enrollments/import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rows\": [\n {\n \"learner_email\": \"<string>\",\n \"certification_uuid\": \"<string>\",\n \"issue_date\": \"<string>\",\n \"passed\": true,\n \"partnership_uuid\": \"<string>\",\n \"expiry_date\": \"<string>\",\n \"score\": 50\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"learner_email": "<string>",
"certification_uuid": "<string>",
"result": "created",
"reason": "unknown_contact",
"message": "<string>",
"enrollment_uuid": "<string>"
}
],
"summary": {
"created": 0,
"updated": 0,
"unchanged": 0,
"rejected": 0
}
}Certification Enrollments
Bulk import already-issued certificates
POST
/
certifications
/
enrollments
/
import
Bulk import already-issued certificates
curl --request POST \
--url https://api.journeybee.io/v1/certifications/enrollments/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rows": [
{
"learner_email": "<string>",
"certification_uuid": "<string>",
"issue_date": "<string>",
"passed": true,
"partnership_uuid": "<string>",
"expiry_date": "<string>",
"score": 50
}
]
}
'import requests
url = "https://api.journeybee.io/v1/certifications/enrollments/import"
payload = { "rows": [
{
"learner_email": "<string>",
"certification_uuid": "<string>",
"issue_date": "<string>",
"passed": True,
"partnership_uuid": "<string>",
"expiry_date": "<string>",
"score": 50
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rows: [
{
learner_email: '<string>',
certification_uuid: '<string>',
issue_date: '<string>',
passed: true,
partnership_uuid: '<string>',
expiry_date: '<string>',
score: 50
}
]
})
};
fetch('https://api.journeybee.io/v1/certifications/enrollments/import', 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.journeybee.io/v1/certifications/enrollments/import",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'rows' => [
[
'learner_email' => '<string>',
'certification_uuid' => '<string>',
'issue_date' => '<string>',
'passed' => true,
'partnership_uuid' => '<string>',
'expiry_date' => '<string>',
'score' => 50
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.journeybee.io/v1/certifications/enrollments/import"
payload := strings.NewReader("{\n \"rows\": [\n {\n \"learner_email\": \"<string>\",\n \"certification_uuid\": \"<string>\",\n \"issue_date\": \"<string>\",\n \"passed\": true,\n \"partnership_uuid\": \"<string>\",\n \"expiry_date\": \"<string>\",\n \"score\": 50\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.journeybee.io/v1/certifications/enrollments/import")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"rows\": [\n {\n \"learner_email\": \"<string>\",\n \"certification_uuid\": \"<string>\",\n \"issue_date\": \"<string>\",\n \"passed\": true,\n \"partnership_uuid\": \"<string>\",\n \"expiry_date\": \"<string>\",\n \"score\": 50\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/certifications/enrollments/import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rows\": [\n {\n \"learner_email\": \"<string>\",\n \"certification_uuid\": \"<string>\",\n \"issue_date\": \"<string>\",\n \"passed\": true,\n \"partnership_uuid\": \"<string>\",\n \"expiry_date\": \"<string>\",\n \"score\": 50\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"learner_email": "<string>",
"certification_uuid": "<string>",
"result": "created",
"reason": "unknown_contact",
"message": "<string>",
"enrollment_uuid": "<string>"
}
],
"summary": {
"created": 0,
"updated": 0,
"unchanged": 0,
"rejected": 0
}
}Authorizations
Body
application/json
Bulk import certificates already issued outside the platform. Each row creates or updates the learner's enrolment and completes its current period with exactly the supplied dates, marked as imported — re-running the same row changes nothing and never fires automations. Rows are applied independently; a rejected row does not affect the others.
Bulk import certificates already issued outside the platform. Each row creates or updates the learner's enrolment and completes its current period with exactly the supplied dates, marked as imported — re-running the same row changes nothing and never fires automations. Rows are applied independently; a rejected row does not affect the others.