Individual users API

view

GET /api/v1/users/:id

Parameters

Name Description
id id
id id

Request

Headers

Accept: application/json
X-Api-Token: 6iVrevQ1gJWM4hG_7M88xHK-6mNs39xyyw
X-Api-Email: user-314@example.com

Route

GET /api/v1/users/1420

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/users/1420" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: 6iVrevQ1gJWM4hG_7M88xHK-6mNs39xyyw" \
	-H "X-Api-Email: user-314@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 1034

Status

200 OK

Body

{
  "created_at": "2019-10-31T22:10:10Z",
  "role": "student",
  "sanitized_name": "User Name",
  "gravatar_url": "https://s.gravatar.com/avatar/b44a3d94705f157ca544bbb1c39bd4de?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-315@example.com",
  "notes": null,
  "affiliate_code": "690_negxinku",
  "name": "User Name",
  "is_owner": false,
  "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:10:10Z",
  "signed_up_affiliate_code": null,
  "author_revenue_share": 0.0,
  "last_sign_in_ip": null,
  "current_sign_in_ip": null,
  "id": 1420,
  "school_id": 690,
  "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
  },
  "transactions_gross": 0
}