published and unpublished
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: e_ihuPLbyjeaLS6trtjAbPzY1zyAkgvxpQ" \
-H "X-Api-Email: user-260@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:06Z",
"role": "author",
"sanitized_name": "User Name",
"gravatar_url": "https://s.gravatar.com/avatar/a83b13209c6ba34bf12817829acfa2f8?d=mm",
"is_teachable_account": false,
"author_bio": {
"id": 202,
"headline": "MyText",
"profile_image_url": "http://www.example.com",
"bio": "MyText",
"facebook_username": "MyText",
"twitter_username": "MyText",
"google_plus_username": "MyText",
"school_id": 303,
"user_id": 619,
"created_at": "2019-10-31T22:03:06Z",
"updated_at": "2019-10-31T22:03:06Z",
"is_published": true,
"position": null,
"name": "Author Name",
"legacy_id": null,
"courses_count": 0
},
"author_bio_id": 202,
"custom_role": null,
"custom_role_name": null,
"primary_owner?": false,
"show_custom_role_upgrade?": false,
"email": "user-260@example.com",
"notes": null,
"affiliate_code": "303_id1fna5s",
"name": "User Name",
"is_owner": false,
"sign_in_count": 0,
"is_student": true,
"is_affiliate": false,
"is_author": true,
"src": null,
"current_sign_in_at": null,
"last_four": null,
"paypal_email": null,
"affiliate_revenue_share": null,
"joined_at": "2019-10-31T22:03:06Z",
"signed_up_affiliate_code": null,
"author_revenue_share": 0.0,
"last_sign_in_ip": null,
"current_sign_in_ip": null,
"id": 619,
"school_id": 303,
"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": 1,
"page": 1,
"from": 1,
"to": 1,
"per": 25,
"number_of_pages": 1,
"query": {
"not_deleted": false,
"not_staff_user": false,
"school_id": 303
}
}
}