Get a course user using GET.
For every API request you make, you'll need to present the API access key in the HTTP Header as X-API-Key to be authenticated.
$request_url = 'https://api.frontcore.com/v2/course-users/289252';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'X-API-Key: {your-api-key}',
'Accept: application/json',
));
$result = curl_exec($ch);
curl_close($ch);
If the method is successful it responds with an JSON structure, as it is shown below.
{
"id": 289252,
"firstname": "Ask",
"lastname": "Hansen",
"email": "ask.hansen@example.com",
"username": null,
"phone": "1",
"company": null,
"orgnr": null,
"position": null,
"department": null,
"legaldepartment": null,
"date_of_birth": "2012-03-18",
"invoice_address": {
"address": "12",
"address_2": "13",
"address_3": "14",
"zipcode": "15",
"city": "16",
"invoice_phone": null
},
"home_address": {
"address": "2",
"address_2": "3",
"address_3": "4",
"zipcode": "5",
"city": "6"
},
"work_address": {
"address": "7",
"address_2": "8",
"address_3": "9",
"zipcode": "10",
"city": "11"
},
"external_id": null,
"company_employee_number": null,
"custom_properties": null,
"customer": {
"id": 32714,
"title": "Beste Kunde AS",
"department": null,
"phone": null,
"fax": null,
"email": null,
"webaddress": null,
"orgnr": "85454545",
"invoice_email": null,
"customer_reference_id": null,
"customer_reference": "Per Pedersen",
"note": null,
"turnover": null,
"idParentCustomer": null,
"invoice_method": "electronic",
"country": {
"id": 159,
"title": "Norway",
"code": "NO"
},
"status": "Deactivated",
"type": "Company",
"duedate_days": 10,
"seller": null,
"invoice_address": {
"address": "Kundeveien 10",
"address_2": null,
"address_3": null,
"zipcode": "2130",
"city": "Oslo"
},
"post_address": {
"address": null,
"address_2": null,
"address_3": null,
"zipcode": null,
"city": null
},
"visit_address": {
"address": null,
"address_2": null,
"address_3": null,
"zipcode": null,
"city": null
},
"custom_properties": null,
"created_at": "2017-03-31T20:27:41+02:00",
"updated_at": "2025-11-06T07:40:28+01:00"
},
"created_at": "2019-10-24T10:52:50+02:00",
"updated_at": "2025-08-18T03:40:56+02:00",
"information_gathered_at": null
}
Unsuccessful response sample:
{
"error": "Wrong API Key"
}