coupon used
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: DQEayKCyKSs2Ux9weF22uTB22pesKt3RoQ" \
-H "X-Api-Email: user-250@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/7ea20013dd8cc28c755d45e8e0683f1c?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-250@example.com",
"notes": null,
"affiliate_code": "298_3awwribz",
"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": 609,
"school_id": 298,
"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/db87dad4dffb52b6e9cb00f5b3dca26f?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-249@example.com",
"notes": null,
"affiliate_code": "298_enfdfitx",
"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": 608,
"school_id": 298,
"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": 298
}
}
}