The KiwiHacks Account API allows you to retrieve user identity information after they've authorized your app via OAuth.
You may want to read the OAuth Guide first to get access tokens.
Authentication
Base URL
https://account.kiwihacks.com
Endpoints
GET /api/v1/me
Get the authenticated user's identity information based on granted scopes.
GET /api/v1/me
Authentication: Required
Response:
{
"identity": {
"id": "ident!30fJ69",
"ysws_eligible": true,
"verification_status": "needs_submission",
"first_name": "Kiki",
"last_name": "Trashworth",
"primary_email": "[email protected]",
"slack_id": "U00000077",
"phone_number": "+64211234567",
"birthday": "2005-06-15",
"discord_id": "100000000000000077",
"legal_first_name": "Hakkuun",
"legal_last_name": "[WOULDN'T YOU LIKE TO KNOW]",
"addresses": [
{
"id": "addr!Jn0u3z",
"first_name": "Kiki",
"last_name": "Hackworth",
"line_1": "12 Queen Street",
"line_2": "Level 3",
"city": "Auckland",
"state": "Auckland",
"postal_code": "1010",
"country": "NZ",
"phone_number": "+64211234567",
"primary": true
}
]
},
"scopes": [
"email",
"name",
"verification_status",
"slack_id",
"discord_id",
"basic_info",
"address",
"legal_name",
"phone"
]
}
Verification status values:
- needs_submission - User hasn't started verification
- pending - Verification is being reviewed
- verified - Successfully verified
- ineligible - Verification was rejected
GET /api/external/check
Check the verification status of a user by their ID, email, or Slack ID. This is a public endpoint that doesn't require authentication.
GET /api/external/[email protected]
Authentication: Not required
Parameters (provide one):
- idv_id - User's public ID (format: ident!xxxxx)
- email - User's email address
- slack_id - User's Slack ID
Response:
{
"result": "verified_eligible"
}
Possible result values:
- needs_submission - User hasn't started verification
- pending - Verification is being reviewed
- verified_eligible - Verified and eligible for YSWS (under 18)
- verified_but_over_18 - Verified but over 18
- rejected - Verification was rejected
- not_found - No user found with the provided identifier
Available Scopes
When requesting OAuth authorization, you can request the following scopes.
For OIDC-specific scopes and claims, see the OpenID Connect guide.
| Scope | Description | Community Access |
|---|---|---|
openid |
Enable OpenID Connect authentication | ✅ |
profile |
Name and profile information (OIDC) | ✅ |
email |
Access to email address | ✅ |
name |
Access to first and last name | ✅ |
slack_id |
Access to Slack ID | ✅ |
discord_id |
Access to Discord ID | ✅ |
verification_status |
Verification status and YSWS eligibility | ✅ |
phone |
Access to phone number | HQ only |
birthdate |
Date of birth (OIDC) | HQ only |
basic_info |
Email, name, verification status, birthday, phone | HQ only |
legal_name |
Legal first and last name | HQ only |
address |
Mailing addresses | HQ only |
set_slack_id |
Ability to associate Slack IDs | HQ only, deprecated |
Error Responses
Program-wide endpoints
GET /api/v1/identities/:id
Get a specific user's identity by their public ID.
GET /api/v1/identities/ident!abc123
Authentication: Program key required
Parameters:
- id (path) - The user's public ID (e.g., ident!abc123)
Response:
{
"identity": {
"id": "ident!OVfV6Jb",
"first_name": "Kiki",
"last_name": "Hacksworth"
}
}
Fields returned depend on your program's configured scopes.
GET /api/v1/identities
List all identities that have authorized your application, 100 per page.
Query parameters: page (default 1) and per_page (1–100, default 100). Keep requesting meta.next_page until it is null.
GET /api/v1/identities
Authentication: Program key required
Response:
{
"identities": [
{
"id": "ident!Dp3fXN",
"first_name": "Kiki",
"last_name": "Latta"
},
{
"id": "ident!eNvfPg",
"first_name": "Kiki",
"last_name": "Wofford"
}
],
"meta": {
"page": 1,
"per_page": 100,
"total_count": 2,
"total_pages": 1,
"next_page": null
}
}