API

Users

Overview

  1. List users
  2. Get currently authenticated user

List users

Endpoint

GET https://api.siteleaf.com/v2/sites/:site_id/users

Response

Status: 200 OK
Link: <https://api.siteleaf.com/v2/:path?page=2>; rel="next",
      <https://api.siteleaf.com/v2/:path?page=9>; rel="last"
[
  {
    "id": "5697cc7b16d5640c40000000",
    "email": "jill@example.com",
    "firstname": "Jill",
    "lastname": "Smith",
    "fullname": "Jill Smith",
    "created_at": "2013-06-03 04:42:35 +0000",
    "updated_at": "2015-08-30 20:31:31 +0000",
    "role": "admin"
  }
]

Get the currently authenticated user

Endpoint

GET https://api.siteleaf.com/v2/users/me

Response

Status: 200 OK
{
  "id": "5697cc7b16d5640c40000000",
  "email": "jill@example.com",
  "firstname": "Jill",
  "lastname": "Smith",
  "fullname": "Jill Smith",
  "created_at": "2013-06-03 04:42:35 +0000",
  "updated_at": "2015-08-30 20:31:31 +0000",
  "role": "admin"
}

Help improve this page