Make a GET request to retrieve user information about the current user.
GET /api/v1/me/
HTTP 200 OK
Content-Type: application/json
Vary: Accept
Allow: GET, HEAD, OPTIONS
X-API-Time: 0.055s
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 1,
"type": "user",
"url": "/api/v1/users/1/",
"related": {
"admin_of_organizations": "/api/v1/users/1/admin_of_organizations/",
"organizations": "/api/v1/users/1/organizations/",
"credentials": "/api/v1/users/1/credentials/",
"permissions": "/api/v1/users/1/permissions/",
"activity_stream": "/api/v1/users/1/activity_stream/",
"projects": "/api/v1/users/1/projects/",
"teams": "/api/v1/users/1/teams/"
},
"created": "2015-08-25T01:00:07.127Z",
"username": "admin",
"first_name": "",
"last_name": "",
"email": "admin@example.com",
"is_superuser": true,
"ldap_dn": ""
}
]
}
One result should be returned containing the following fields:
id
: Database ID for this user. (integer)type
: Data type for this user. (multiple choice)user
: Userurl
: URL for this user. (string)related
: Data structure with URLs of related resources. (object)created
: Timestamp when this user was created. (datetime)username
: Required. 30 characters or fewer. Letters, numbers and @/./+/-/_ characters (string)first_name
: (string)last_name
: (string)email
: (email)is_superuser
: Designates that this user has all permissions without explicitly assigning them. (boolean)password
: Write-only field used to change the password. (string)ldap_dn
: (string)Use the primary URL for the user (/api/v1/users/N/
) to modify the user.
The Options Endpoint table offers a view of the Options for this endpoint. When viewing the endpoint in the browsable API, clicking the “Options” button gives you the raw JSON for the following:
name | Me |
---|---|
description |
Make a GET request to retrieve user information about the current user.
|
renders | |
parses | |
added_in_version | 1.2 |
types | |
actions | |
search_fields |