Name or email
GET /api/v1/users
Parameters
Request
Headers
Route
GET /api/v1/users
Query Parameters
{}:
cURL
curl "http://localhost:3000/api/v1/users" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: csRE67kgZtgSwqxYo7jK_iLZy7hjM8CP5Q" \
-H "X-Api-Email: user-248@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"users": [
{
"created_at": "2019-10-31T22:03:02Z",
"role": "owner",
"sanitized_name": "User Name",
"gravatar_url": "https://s.gravatar.com/avatar/00d0cad90e56c41f0e139871ef429a81?d=mm",
"is_teachable_account": false,
"author_bio": null,
"author_bio_id": null,
"custom_role": null,
"custom_role_name": null,
"primary_owner?": false,
"show_custom_role_upgrade?": false,
"email": "user-248@example.com",
"notes": null,
"affiliate_code": "297_624dbo0t",
"name": "User Name",
"is_owner": true,
"sign_in_count": 0,
"is_student": true,
"is_affiliate": false,
"is_author": false,
"src": null,
"current_sign_in_at": null,
"last_four": null,
"paypal_email": null,
"affiliate_revenue_share": null,
"joined_at": "2019-10-31T22:03:02Z",
"signed_up_affiliate_code": null,
"author_revenue_share": 0.0,
"last_sign_in_ip": null,
"current_sign_in_ip": null,
"id": 607,
"school_id": 297,
"teachable_account_id": null,
"is_staff_user": null,
"agree_updated_privacy_policy": true,
"unsubscribe_from_marketing_emails": null,
"meta": {
"class": "user",
"url": null,
"name": "User Name",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:03:02Z",
"role": "owner",
"sanitized_name": "User Name",
"gravatar_url": "https://s.gravatar.com/avatar/4c6079b1b42da105f9d4436bfd404b80?d=mm",
"is_teachable_account": false,
"author_bio": null,
"author_bio_id": null,
"custom_role": null,
"custom_role_name": null,
"primary_owner?": true,
"show_custom_role_upgrade?": false,
"email": "user-247@example.com",
"notes": null,
"affiliate_code": "297__xt2zrhp",
"name": "User Name",
"is_owner": true,
"sign_in_count": 0,
"is_student": true,
"is_affiliate": false,
"is_author": false,
"src": null,
"current_sign_in_at": null,
"last_four": null,
"paypal_email": null,
"affiliate_revenue_share": null,
"joined_at": "2019-10-31T22:03:02Z",
"signed_up_affiliate_code": null,
"author_revenue_share": 0.0,
"last_sign_in_ip": null,
"current_sign_in_ip": null,
"id": 606,
"school_id": 297,
"teachable_account_id": null,
"is_staff_user": null,
"agree_updated_privacy_policy": true,
"unsubscribe_from_marketing_emails": null,
"meta": {
"class": "user",
"url": null,
"name": "User Name",
"description": "",
"image_url": null
}
}
],
"meta": {
"total": 2,
"page": 1,
"from": 1,
"to": 2,
"per": 25,
"number_of_pages": 1,
"query": {
"not_deleted": false,
"not_staff_user": false,
"school_id": 297
}
}
}