GET
/
people
cURL
curl --request GET \
  --url https://membership.sjaa.net/api/people \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "active": "<string>",
  "discord_id": "<string>"
}'
[
  {
    "id": [
      "<any>"
    ],
    "contacts": [
      "<any>"
    ],
    "memberships": [
      "<any>"
    ],
    "first_name": "<string>",
    "last_name": "<string>",
    "discord_id": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string

Filter by given email address.

first_name
string

Filter by given first name.

last_name
string

Filter by given last name.

active

People with a current membership.

Allowed value: "yes"
discord_id
string

Filter by given Discord user ID.

Response

Array of people.

id
any[]

Internal database identifier. Use where :id is required.

contacts
any[]

List of contacts, including address, phone, and email.

memberships
any[]

List of memberships, which include start and end dates.

first_name
string

first name.

last_name
string

last name.

discord_id
string

Discord user ID.