Get a participant
curl --request GET \
--url https://attend.hackclub.com/api/v1/events/{event_id}/participants/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://attend.hackclub.com/api/v1/events/{event_id}/participants/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://attend.hackclub.com/api/v1/events/{event_id}/participants/{id}', 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://attend.hackclub.com/api/v1/events/{event_id}/participants/{id}",
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://attend.hackclub.com/api/v1/events/{event_id}/participants/{id}"
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://attend.hackclub.com/api/v1/events/{event_id}/participants/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://attend.hackclub.com/api/v1/events/{event_id}/participants/{id}")
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{
"participant": {
"participant_id": 123,
"participant_event_id": 123,
"display_name": "Jane",
"full_name": "Jane Doe",
"email": "jsmith@example.com",
"slack_user_id": "<string>",
"phone": "<string>",
"pronouns": "<string>",
"headshot_url": "<string>",
"status": "invited",
"checked_in_at": "2023-11-07T05:31:56Z",
"nfc_badge_token": "<string>",
"nfc_badge_assigned": true,
"has_anaphylaxis_risk": true,
"requires_refrigeration": true,
"cross_contamination_risk": true,
"high_support_flag": true,
"can_leave_unaccompanied": true,
"waiver_signed": true,
"updated_at": "2023-11-07T05:31:56Z",
"scans_by_context": [
{
"scan_context_id": 123,
"scan_context_name": "<string>",
"checks_in": true,
"is_travel_pickup": true,
"is_airport": true,
"scan_count": 123,
"first_scanned_at": "2023-11-07T05:31:56Z",
"last_scanned_at": "2023-11-07T05:31:56Z"
}
],
"travel_inbound": {
"id": 123,
"direction": "inbound",
"mode": "plane",
"visa_required": true,
"visa_status": "<string>",
"visa_type": "<string>",
"visa_number": "<string>",
"passport_nationality": "<string>",
"is_unaccompanied_minor": true,
"carrier": "<string>",
"flight_number": "<string>",
"train_departure_station": "<string>",
"train_arrival_station": "<string>",
"departure_station": "<string>",
"arrival_station": "<string>",
"departure_city": "<string>",
"arrival_city": "<string>",
"departure_time": "2023-11-07T05:31:56Z",
"arrival_time": "2023-11-07T05:31:56Z",
"expected_arrival_time": "2023-11-07T05:31:56Z",
"bus_departure_location": "<string>",
"bus_arrival_location": "<string>",
"origin_address": "<string>",
"other_details": "<string>",
"notes": "<string>",
"pickup_dismissed_at": "2023-11-07T05:31:56Z",
"legs": [
{
"id": 123,
"position": 123,
"flight_code": "<string>",
"departure_airport": "<string>",
"arrival_airport": "<string>",
"departure_time": "2023-11-07T05:31:56Z",
"arrival_time": "2023-11-07T05:31:56Z",
"live_status": "<string>",
"live_departure_time": "2023-11-07T05:31:56Z",
"live_arrival_time": "2023-11-07T05:31:56Z",
"travel_picked_up_at": "2023-11-07T05:31:56Z",
"airport_picked_up_at": "2023-11-07T05:31:56Z"
}
]
},
"travel_outbound": {
"id": 123,
"direction": "inbound",
"mode": "plane",
"visa_required": true,
"visa_status": "<string>",
"visa_type": "<string>",
"visa_number": "<string>",
"passport_nationality": "<string>",
"is_unaccompanied_minor": true,
"carrier": "<string>",
"flight_number": "<string>",
"train_departure_station": "<string>",
"train_arrival_station": "<string>",
"departure_station": "<string>",
"arrival_station": "<string>",
"departure_city": "<string>",
"arrival_city": "<string>",
"departure_time": "2023-11-07T05:31:56Z",
"arrival_time": "2023-11-07T05:31:56Z",
"expected_arrival_time": "2023-11-07T05:31:56Z",
"bus_departure_location": "<string>",
"bus_arrival_location": "<string>",
"origin_address": "<string>",
"other_details": "<string>",
"notes": "<string>",
"pickup_dismissed_at": "2023-11-07T05:31:56Z",
"legs": [
{
"id": 123,
"position": 123,
"flight_code": "<string>",
"departure_airport": "<string>",
"arrival_airport": "<string>",
"departure_time": "2023-11-07T05:31:56Z",
"arrival_time": "2023-11-07T05:31:56Z",
"live_status": "<string>",
"live_departure_time": "2023-11-07T05:31:56Z",
"live_arrival_time": "2023-11-07T05:31:56Z",
"travel_picked_up_at": "2023-11-07T05:31:56Z",
"airport_picked_up_at": "2023-11-07T05:31:56Z"
}
]
},
"allergies": "<string>",
"medical_conditions": "<string>",
"medications": "<string>",
"diet_type": "<string>",
"life_threatening_allergies": "<string>",
"freedom_waiver_granted": true,
"emergency_contacts": [
{
"name": "<string>",
"phone": "<string>",
"relationship": "<string>",
"priority": 123
}
],
"parent_guardian_name": "<string>",
"parent_guardian_phone": "<string>",
"parent_guardian_email": "<string>",
"personal": {
"legal_first_name": "<string>",
"legal_last_name": "<string>",
"preferred_name": "<string>",
"date_of_birth": "2023-12-25",
"age": 123,
"tshirt_size": "<string>",
"engagement_preference": "<string>",
"engagement_notes": "<string>",
"address": {
"line_1": "<string>",
"line_2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
},
"accommodation": {
"check_in_date": "2023-12-25",
"check_out_date": "2023-12-25",
"gender_identity": "<string>",
"gender_identity_other": "<string>",
"assigned_room": "<string>",
"rooming_exempt": true,
"venue_name": "<string>",
"preferred_roommate_genders": "<string>",
"roommate_preferences": "<string>",
"roommate_exclusions": "<string>",
"quiet_room_preference": "<string>",
"room_type_preference": "<string>",
"accessibility_needs": "<string>",
"notes": "<string>"
},
"consents": [
{
"id": 123,
"consent_type": "<string>",
"status": "<string>",
"pending_on": "<string>",
"sent_at": "2023-11-07T05:31:56Z",
"viewed_at": "2023-11-07T05:31:56Z",
"participant_signed_at": "2023-11-07T05:31:56Z",
"guardian_signed_at": "2023-11-07T05:31:56Z",
"signed_at": "2023-11-07T05:31:56Z",
"document_url": "<string>",
"failure_reason": "<string>"
}
],
"guardians": [
{
"id": 123,
"guardian_id": 123,
"name": "<string>",
"email": "<string>",
"phone": "<string>",
"relationship": "<string>",
"is_primary": true,
"status": "<string>",
"accepted_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"invited_via_email": "<string>",
"invite_token_sent_at": "2023-11-07T05:31:56Z",
"media_permission": "<string>",
"photo_permission": "<string>",
"travel_permission": "<string>",
"emergency_medical_consent": "<string>",
"otc_medication_consent": "<string>",
"emergency_contacts": [
{
"id": 123,
"name": "<string>",
"phone": "<string>",
"email": "<string>",
"relationship": "<string>",
"priority": 123
}
]
}
],
"medical_detail": {
"allergy_severity": "<string>",
"emergency_action_plan": "<string>",
"additional_notes": "<string>"
},
"dietary_detail": {
"intolerances": "<string>",
"notes": "<string>"
},
"accessibility": {},
"safeguarding_detail": {
"high_support_notes": "<string>",
"authorized_pickup_adults": "<string>",
"other_instructions": "<string>",
"curfew_acknowledged": true,
"overnight_rules_acknowledged": true
}
}
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}Participants
Get a participant
Full detailed record for one registration, including personal, accommodation, consent, and guardian sections (and sensitive medical / accessibility / safeguarding detail for permitted callers). Not available to event API keys.
GET
/
events
/
{event_id}
/
participants
/
{id}
Get a participant
curl --request GET \
--url https://attend.hackclub.com/api/v1/events/{event_id}/participants/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://attend.hackclub.com/api/v1/events/{event_id}/participants/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://attend.hackclub.com/api/v1/events/{event_id}/participants/{id}', 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://attend.hackclub.com/api/v1/events/{event_id}/participants/{id}",
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://attend.hackclub.com/api/v1/events/{event_id}/participants/{id}"
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://attend.hackclub.com/api/v1/events/{event_id}/participants/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://attend.hackclub.com/api/v1/events/{event_id}/participants/{id}")
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{
"participant": {
"participant_id": 123,
"participant_event_id": 123,
"display_name": "Jane",
"full_name": "Jane Doe",
"email": "jsmith@example.com",
"slack_user_id": "<string>",
"phone": "<string>",
"pronouns": "<string>",
"headshot_url": "<string>",
"status": "invited",
"checked_in_at": "2023-11-07T05:31:56Z",
"nfc_badge_token": "<string>",
"nfc_badge_assigned": true,
"has_anaphylaxis_risk": true,
"requires_refrigeration": true,
"cross_contamination_risk": true,
"high_support_flag": true,
"can_leave_unaccompanied": true,
"waiver_signed": true,
"updated_at": "2023-11-07T05:31:56Z",
"scans_by_context": [
{
"scan_context_id": 123,
"scan_context_name": "<string>",
"checks_in": true,
"is_travel_pickup": true,
"is_airport": true,
"scan_count": 123,
"first_scanned_at": "2023-11-07T05:31:56Z",
"last_scanned_at": "2023-11-07T05:31:56Z"
}
],
"travel_inbound": {
"id": 123,
"direction": "inbound",
"mode": "plane",
"visa_required": true,
"visa_status": "<string>",
"visa_type": "<string>",
"visa_number": "<string>",
"passport_nationality": "<string>",
"is_unaccompanied_minor": true,
"carrier": "<string>",
"flight_number": "<string>",
"train_departure_station": "<string>",
"train_arrival_station": "<string>",
"departure_station": "<string>",
"arrival_station": "<string>",
"departure_city": "<string>",
"arrival_city": "<string>",
"departure_time": "2023-11-07T05:31:56Z",
"arrival_time": "2023-11-07T05:31:56Z",
"expected_arrival_time": "2023-11-07T05:31:56Z",
"bus_departure_location": "<string>",
"bus_arrival_location": "<string>",
"origin_address": "<string>",
"other_details": "<string>",
"notes": "<string>",
"pickup_dismissed_at": "2023-11-07T05:31:56Z",
"legs": [
{
"id": 123,
"position": 123,
"flight_code": "<string>",
"departure_airport": "<string>",
"arrival_airport": "<string>",
"departure_time": "2023-11-07T05:31:56Z",
"arrival_time": "2023-11-07T05:31:56Z",
"live_status": "<string>",
"live_departure_time": "2023-11-07T05:31:56Z",
"live_arrival_time": "2023-11-07T05:31:56Z",
"travel_picked_up_at": "2023-11-07T05:31:56Z",
"airport_picked_up_at": "2023-11-07T05:31:56Z"
}
]
},
"travel_outbound": {
"id": 123,
"direction": "inbound",
"mode": "plane",
"visa_required": true,
"visa_status": "<string>",
"visa_type": "<string>",
"visa_number": "<string>",
"passport_nationality": "<string>",
"is_unaccompanied_minor": true,
"carrier": "<string>",
"flight_number": "<string>",
"train_departure_station": "<string>",
"train_arrival_station": "<string>",
"departure_station": "<string>",
"arrival_station": "<string>",
"departure_city": "<string>",
"arrival_city": "<string>",
"departure_time": "2023-11-07T05:31:56Z",
"arrival_time": "2023-11-07T05:31:56Z",
"expected_arrival_time": "2023-11-07T05:31:56Z",
"bus_departure_location": "<string>",
"bus_arrival_location": "<string>",
"origin_address": "<string>",
"other_details": "<string>",
"notes": "<string>",
"pickup_dismissed_at": "2023-11-07T05:31:56Z",
"legs": [
{
"id": 123,
"position": 123,
"flight_code": "<string>",
"departure_airport": "<string>",
"arrival_airport": "<string>",
"departure_time": "2023-11-07T05:31:56Z",
"arrival_time": "2023-11-07T05:31:56Z",
"live_status": "<string>",
"live_departure_time": "2023-11-07T05:31:56Z",
"live_arrival_time": "2023-11-07T05:31:56Z",
"travel_picked_up_at": "2023-11-07T05:31:56Z",
"airport_picked_up_at": "2023-11-07T05:31:56Z"
}
]
},
"allergies": "<string>",
"medical_conditions": "<string>",
"medications": "<string>",
"diet_type": "<string>",
"life_threatening_allergies": "<string>",
"freedom_waiver_granted": true,
"emergency_contacts": [
{
"name": "<string>",
"phone": "<string>",
"relationship": "<string>",
"priority": 123
}
],
"parent_guardian_name": "<string>",
"parent_guardian_phone": "<string>",
"parent_guardian_email": "<string>",
"personal": {
"legal_first_name": "<string>",
"legal_last_name": "<string>",
"preferred_name": "<string>",
"date_of_birth": "2023-12-25",
"age": 123,
"tshirt_size": "<string>",
"engagement_preference": "<string>",
"engagement_notes": "<string>",
"address": {
"line_1": "<string>",
"line_2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
}
},
"accommodation": {
"check_in_date": "2023-12-25",
"check_out_date": "2023-12-25",
"gender_identity": "<string>",
"gender_identity_other": "<string>",
"assigned_room": "<string>",
"rooming_exempt": true,
"venue_name": "<string>",
"preferred_roommate_genders": "<string>",
"roommate_preferences": "<string>",
"roommate_exclusions": "<string>",
"quiet_room_preference": "<string>",
"room_type_preference": "<string>",
"accessibility_needs": "<string>",
"notes": "<string>"
},
"consents": [
{
"id": 123,
"consent_type": "<string>",
"status": "<string>",
"pending_on": "<string>",
"sent_at": "2023-11-07T05:31:56Z",
"viewed_at": "2023-11-07T05:31:56Z",
"participant_signed_at": "2023-11-07T05:31:56Z",
"guardian_signed_at": "2023-11-07T05:31:56Z",
"signed_at": "2023-11-07T05:31:56Z",
"document_url": "<string>",
"failure_reason": "<string>"
}
],
"guardians": [
{
"id": 123,
"guardian_id": 123,
"name": "<string>",
"email": "<string>",
"phone": "<string>",
"relationship": "<string>",
"is_primary": true,
"status": "<string>",
"accepted_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"invited_via_email": "<string>",
"invite_token_sent_at": "2023-11-07T05:31:56Z",
"media_permission": "<string>",
"photo_permission": "<string>",
"travel_permission": "<string>",
"emergency_medical_consent": "<string>",
"otc_medication_consent": "<string>",
"emergency_contacts": [
{
"id": 123,
"name": "<string>",
"phone": "<string>",
"email": "<string>",
"relationship": "<string>",
"priority": 123
}
]
}
],
"medical_detail": {
"allergy_severity": "<string>",
"emergency_action_plan": "<string>",
"additional_notes": "<string>"
},
"dietary_detail": {
"intolerances": "<string>",
"notes": "<string>"
},
"accessibility": {},
"safeguarding_detail": {
"high_support_notes": "<string>",
"authorized_pickup_adults": "<string>",
"other_instructions": "<string>",
"curfew_acknowledged": true,
"overnight_rules_acknowledged": true
}
}
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}Authorizations
Mobile token, global API token, series API key, or event API key. See Authentication above for which endpoints each one reaches.
Response
The participant.
The full participant record returned by GET /participants/{id}. Extends the list representation with personal, accommodation, consent and guardian sections, plus sensitive medical / accessibility / safeguarding detail for permitted callers.
Show child attributes
Show child attributes
Was this page helpful?