for owner
GET /api/v1/current_user
Request
Headers
Route
GET /api/v1/current_user
Query Parameters
{}:
cURL
curl "http://localhost:3000/api/v1/current_user" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: npF6mVRsnyghDvh8bupGKTrY9jxn_xcqTA" \
-H "X-Api-Email: user-739@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"created_at": "2019-10-31T22:07:07Z",
"custom_role": null,
"show_custom_role_upgrade": false,
"role": "owner",
"sanitized_name": "User Name",
"gravatar_url": "https://s.gravatar.com/avatar/f004387b002e5f363a60e1884d9215ec?d=mm",
"is_teachable_account": false,
"author_bio": null,
"author_bio_id": null,
"custom_role_name": null,
"primary_owner?": false,
"show_custom_role_upgrade?": false,
"email": "user-739@example.com",
"notes": null,
"affiliate_code": "536_5azg1pyy",
"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:07:07Z",
"signed_up_affiliate_code": null,
"author_revenue_share": 0.0,
"last_sign_in_ip": null,
"current_sign_in_ip": null,
"id": 1099,
"school_id": 536,
"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
},
"channels": [
"presence-gid;@@fedora@User@1099"
]
}