Show a public peer-to-peer program page
Returns the public peer-to-peer campaign page for a client and program slug. The endpoint only returns programs whose settings mark them as peer_to_peer, then builds recipient cards, donation totals, checkout setting ids, and public display flags from program settings. Public checkout clients use the response to render the campaign listing and decide whether recipients can still accept donations.
Path Parameters
Organization identifier from the public URL. The controller accepts a numeric client id or a slug generated from the client organization name and uses it to scope the program lookup.
Peer-to-peer program slug in name-id format. The controller extracts the trailing numeric program id and verifies the program belongs to the resolved client and has program_type set to peer_to_peer.
Response
Public peer-to-peer program data.
Program id extracted from the route slug.
42
Owning client id.
207
Program display name.
"Sponsor a Student"
Canonical name-id slug generated from the program name and id.
"sponsor-a-student-42"
Visible recipient cards built from entity records, profile uploads, and donation totals.
Program info text from program settings.
"Help students reach their fundraising goals."
Public campaign image URL from the program placeholder setting.
"https://s3-us-west-1.amazonaws.com/hys/banner.jpg"
Overall campaign donation target from program settings when configured.
50000
Sum of donations to visible recipients. Null when settings hide donation amounts.
12450
Campaign progress percentage when a positive target and visible donation amounts are available.
24.9
Count of visible recipients returned in the recipients array.
18
Program setting id used by checkout for this campaign.
901
Organization name duplicated for frontend compatibility.
"Acme Foundation"
Whether public responses may show raised amounts.
true
How donor names are displayed on recipient profiles.
full, first_initial, anonymous "full"
Whether checkout may offer recurring gifts for this peer-to-peer campaign.
true
Whether recipients that have met their target can continue accepting donations.
true
Legacy frontend flag controlling donor login UI visibility.
0, 1 "1"
True when at least one visible recipient can receive donations.
true
Public subset of program settings used by the checkout and public campaign UI.